Search completed in 4.23 seconds.
min-inline-size - CSS: Cascading Style Sheets
the m
in-
inl
ine-size css property def
ines the horizontal or vertical m
inimal size of an element's block, depend
ing on its writ
ing mode.
... it corresponds to either the m
in-width or the m
in-height property, depend
ing on the value of writ
ing-mode.
... the source for this
interactive example is stored
in a github repository.
...And 6 more matches
scroll-padding-inline-end - CSS: Cascading Style Sheets
the scroll-padd
ing-
inl
ine-end property def
ines offsets for the end edge
in the
inl
ine dimension of the optimal view
ing region of the scrollport: the region used as the target region for plac
ing th
ings
in view of the user.
... this allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breath
ing room between a targetted element and the edges of the scrollport.
... the source for this
interactive example is stored
in a github repository.
...And 6 more matches
scroll-padding-inline-start - CSS: Cascading Style Sheets
the scroll-padd
ing-
inl
ine-start property def
ines offsets for the start edge
in the
inl
ine dimension of the optimal view
ing region of the scrollport: the region used as the target region for plac
ing th
ings
in view of the user.
... this allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or simply to put more breath
ing room between a targetted element and the edges of the scrollport.
... the source for this
interactive example is stored
in a github repository.
...And 6 more matches
margin-inline-end - CSS: Cascading Style Sheets
the marg
in-
inl
ine-end css property def
ines the logical
inl
ine end marg
in of an element, which maps to a physical marg
in depend
ing on the element's writ
ing mode, directionality, and text orientation.
...
in other words, it corresponds to the marg
in-top, marg
in-right, marg
in-bottom or marg
in-left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... the source for this
interactive example is stored
in a github repository.
...And 5 more matches
margin-inline-start - CSS: Cascading Style Sheets
the marg
in-
inl
ine-start css property def
ines the logical
inl
ine start marg
in of an element, which maps to a physical marg
in depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the marg
in-top, marg
in-right, marg
in-bottom, or marg
in-left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... the source for this
interactive example is stored
in a github repository.
...And 5 more matches
padding-inline-end - CSS: Cascading Style Sheets
the padd
ing-
inl
ine-end css property def
ines the logical
inl
ine end padd
ing of an element, which maps to a physical padd
ing depend
ing on the element's writ
ing mode, directionality, and text orientation.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 5 more matches
padding-inline-start - CSS: Cascading Style Sheets
the padd
ing-
inl
ine-start css property def
ines the logical
inl
ine start padd
ing of an element, which maps to a physical padd
ing depend
ing on the element's writ
ing mode, directionality, and text orientation.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 5 more matches
Supporting private browsing in plugins - Archive of obsolete content
firefox 3.5
introduced private brows
ing, a mode
in which potentially private
information is not recorded
in any way.
... it also
introduced a mechanism by which plug
ins can determ
ine whether or not private brows
ing mode is
in effect.
... plug
ins should be updated to monitor the state of private brows
ing mode and only save private
information when private brows
ing is disabled.
...And 3 more matches
inset-inline-end - CSS: Cascading Style Sheets
the
inset-
inl
ine-end css property def
ines the logical
inl
ine end
inset of an element, which maps to a physical
inset depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the top, right, bottom, or left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... /* <length> values */
inset-
inl
ine-end: 3px;
inset-
inl
ine-end: 2.4em; /* <percentage>s of the width or height of the conta
ining block */
inset-
inl
ine-end: 10%; /* keyword value */
inset-
inl
ine-end: auto; /* global values */
inset-
inl
ine-end:
inherit;
inset-
inl
ine-end:
initial;
inset-
inl
ine-end: unset; the shorthand for
inset-
inl
ine-start and
inset-
inl
ine-end is
inset-
inl
ine.
...And 3 more matches
inset-inline-start - CSS: Cascading Style Sheets
the
inset-
inl
ine-start css property def
ines the logical
inl
ine start
inset of an element, which maps to a physical offset depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the top, right, bottom, or left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... /* <length> values */
inset-
inl
ine-start: 3px;
inset-
inl
ine-start: 2.4em; /* <percentage>s of the width or height of the conta
ining block */
inset-
inl
ine-start: 10%; /* keyword value */
inset-
inl
ine-start: auto; /* global values */
inset-
inl
ine-start:
inherit;
inset-
inl
ine-start:
initial;
inset-
inl
ine-start: unset; the shorthand for
inset-
inl
ine-start and
inset-
inl
ine-end is
inset-
inl
ine.
...And 3 more matches
margin-inline - CSS: Cascading Style Sheets
the marg
in-
inl
ine css shorthand property is a shorthand property that def
ines both the logical
inl
ine start and end marg
ins of an element, which maps to physical marg
ins depend
ing on the element's writ
ing mode, directionality, and text orientation.
... /* <length> values */ marg
in-
inl
ine: 10px 20px; /* an absolute length */ marg
in-
inl
ine: 1em 2em; /* relative to the text size */ marg
in-
inl
ine: 5% 2%; /* relative to the nearest block conta
iner's width */ marg
in-
inl
ine: 10px; /* sets both start and end values */ /* keyword values */ marg
in-
inl
ine: auto; /* global values */ marg
in-
inl
ine:
inherit; marg
in-
inl
ine:
initial; marg
in-
inl
ine: unset; this property corresponds to the marg
in-top and marg
in-bottom, or marg
in-right, and marg
in-left properties, depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... constituent properties this property is a shorthand for the follow
ing css properties: marg
in-
inl
ine-end marg
in-
inl
ine-start syntax values the marg
in-
inl
ine property takes the same values as the marg
in-left property.
...And 3 more matches
inset-inline - CSS: Cascading Style Sheets
the
inset-
inl
ine css property def
ines the logical start and end offsets of an element
in the
inl
ine direction, which maps to physical offsets depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the top and bottom, or right and left properties depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... /* <length> values */
inset-
inl
ine: 3px 10px;
inset-
inl
ine: 2.4em 3em;
inset-
inl
ine: 10px; /* value applied to start and end */ /* <percentage>s of the width or height of the conta
ining block */
inset-
inl
ine: 10% 5%; /* keyword value */
inset-
inl
ine: auto; /* global values */
inset-
inl
ine:
inherit;
inset-
inl
ine:
initial;
inset-
inl
ine: unset; constituent properties this property is a shorthand for the follow
ing css properties:
inset-
inl
ine-end
inset-
inl
ine-start syntax values the
inset-
inl
ine property takes the same values as the left property.
...And 2 more matches
padding-inline - CSS: Cascading Style Sheets
the padd
ing-
inl
ine css shorthand property def
ines the logical
inl
ine start and end padd
ing of an element, which maps to physical padd
ing properties depend
ing on the element's writ
ing mode, directionality, and text orientation.
... /* <length> values */ padd
ing-
inl
ine: 10px 20px; /* an absolute length */ padd
ing-
inl
ine: 1em 2em; /* relative to the text size */ padd
ing-
inl
ine: 10px; /* sets both start and end values */ /* <percentage> values */ padd
ing-
inl
ine: 5% 2%; /* relative to the nearest block conta
iner's width */ /* global values */ padd
ing-
inl
ine:
inherit; padd
ing-
inl
ine:
initial; padd
ing-
inl
ine: unset; constituent properties this property is a shorthand for the follow
ing css properties: padd
ing-
inl
ine-end padd
ing-
inl
ine-start syntax values the padd
ing-
inl
ine property takes the same values as the padd
ing-left property.
... description values for this property correspond to the padd
ing-top and padd
ing-bottom, or padd
ing-right, and padd
ing-left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
...And 2 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
the html <
input> element is used to create
interactive controls for web-based forms
in order to accept data from the user; a wide variety of types of
input data and control widgets are available, depend
ing on the device and user agent.
... the <
input> element is one of the most powerful and complex
in all of html due to the sheer number of comb
inations of
input types and attributes.
... the source for this
interactive example is stored
in a github repository.
...And 347 more matches
Drawing and Event Handling - Plugins
« previousnext » this chapter tells how to determ
ine whether a plug-
in instance is w
indowed or w
indowless, how to draw and redraw plug-
ins, and how to handle plug-
in events.
... when it comes to determ
ining the way a plug-
in instance appears
in a web page, you (and the web page author) have many options.
... the content provider who writes the web page determ
ines its display mode: whether the plug-
in is embedded, or displayed
in its own separate page.
...And 202 more matches
:any-link - CSS: Cascading Style Sheets
the :any-l
ink css pseudo-class selector represents an element that acts as the source anchor of a hyperl
ink,
independent of whether it has been visited.
...
in other words, it matches every <a>, <area>, or <l
ink> element that has an href attribute.
... thus, it matches all elements that match :l
ink or :visited.
...And 2 more matches
inverted-colors - CSS: Cascading Style Sheets
the
inverted-colors css media feature can be used to test whether the user agent or underly
ing os is
invert
ing colors.
... syntax the
inverted-colors feature is specified as a keyword value chosen from the list below.
...
inverted all pixels with
in the displayed area have been
inverted.
...And 2 more matches
inset-block-end - CSS: Cascading Style Sheets
the
inset-block-end css property def
ines the logical block end offset of an element, which maps to a physical
inset depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the top, right, bottom, or left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... /* <length> values */
inset-block-end: 3px;
inset-block-end: 2.4em; /* <percentage>s of the width or height of the conta
ining block */
inset-block-end: 10%; /* keyword value */
inset-block-end: auto; /* global values */
inset-block-end:
inherit;
inset-block-end:
initial;
inset-block-end: unset; syntax values the
inset-block-end property takes the same values as the left property.
...And 2 more matches
inset-block-start - CSS: Cascading Style Sheets
the
inset-block-start css property def
ines the logical block start offset of an element, which maps to a physical
inset depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the top, right, bottom, or left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... /* <length> values */
inset-block-start: 3px;
inset-block-start: 2.4em; /* <percentage>s of the width or height of the conta
ining block */
inset-block-start: 10%; /* keyword value */
inset-block-start: auto; /* global values */
inset-block-start:
inherit;
inset-block-start:
initial;
inset-block-start: unset; syntax values the
inset-block-start property takes the same values as the left property.
...And 2 more matches
inset-block - CSS: Cascading Style Sheets
the
inset-block css property def
ines the logical block start and end offsets of an element, which maps to physical offsets depend
ing on the element's writ
ing mode, directionality, and text orientation.
... it corresponds to the top and bottom, or right and left properties depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... /* <length> values */
inset-block: 3px 10px;
inset-block: 2.4em 3em;
inset-block: 10px; /* value applied to start and end */ /* <percentage>s of the width or height of the conta
ining block */
inset-block: 10% 5%; /* keyword value */
inset-block: auto; /* global values */
inset-block:
inherit;
inset-block:
initial;
inset-block: unset; constituent properties this property is a shorthand for the follow
ing css properties:
inset-block-end
inset-block-start syntax values the
inset-block property takes the same values as the left property.
...And 2 more matches
inset - CSS: Cascading Style Sheets
the
inset css property, though part of the logical specification, doesn't def
ine logical block or
inl
ine offsets, and
instead def
ines physical offsets, regardless of the element's writ
ing mode, directionality, and text orientation.
... it has the same multi-value syntax of the marg
in shorthand.
... /* <length> values */
inset: 10px; /* value applied to all edges */
inset: 4px 8px; /* top/bottom left/right */
inset: 5px 15px 10px; /* top left/right bottom */
inset: 2.4em 3em 3em 3em; /* top right bottom left */ /* <percentage>s of the width (left/right) or height (top/bottom) of the conta
ining block */
inset: 10% 5% 5% 5%; /* keyword value */
inset: auto; /* global values */
inset:
inherit;
inset:
initial;
inset: unset; syntax values the
inset property takes the same values as the left property.
...And 2 more matches
margin-block - CSS: Cascading Style Sheets
the marg
in-block css shorthand property def
ines the logical block start and end marg
ins of an element, which maps to physical marg
ins depend
ing on the element's writ
ing mode, directionality, and text orientation.
... /* <length> values */ marg
in-block: 10px 20px; /* an absolute length */ marg
in-block: 1em 2em; /* relative to the text size */ marg
in-block: 5% 2%; /* relative to the nearest block conta
iner's width */ marg
in-block: 10px; /* sets both start and end values */ /* keyword values */ marg
in-block: auto; /* global values */ marg
in-block:
inherit; marg
in-block:
initial; marg
in-block: unset; these values corresponds to the marg
in-top and marg
in-bottom, or marg
in-right, and marg
in-left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... constituent properties this property is a shorthand for the follow
ing css properties: marg
in-block-end marg
in-block-start syntax values the marg
in-block property takes the same values as the marg
in-left property.
...And 2 more matches
padding-block - CSS: Cascading Style Sheets
the padd
ing-block css shorthand property def
ines the logical block start and end padd
ing of an element, which maps to physical padd
ing properties depend
ing on the element's writ
ing mode, directionality, and text orientation.
... /* <length> values */ padd
ing-block: 10px 20px; /* an absolute length */ padd
ing-block: 1em 2em; /* relative to the text size */ padd
ing-block: 10px; /* sets both start and end values */ /* <percentage> values */ padd
ing-block: 5% 2%; /* relative to the nearest block conta
iner's width */ /* global values */ padd
ing-block:
inherit; padd
ing-block:
initial; padd
ing-block: unset; these values corresponds to the padd
ing-top and padd
ing-bottom, or padd
ing-right, and padd
ing-left property depend
ing on the values def
ined for writ
ing-mode, direction, and text-orientation.
... constituent properties this property is a shorthand for the follow
ing css properties: padd
ing-block-end padd
ing-block-start syntax values the padd
ing-block property takes the same values as the padd
ing-left property.
...And 2 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?
... the response to the cors request that was sent by the server
includes an access-control-allow-methods header which
includes at least one
invalid method name.
...the header's value is a comma-del
ineated str
ing of http method names, such as get, post, or head.
...And 2 more matches
String.prototype.toString() - JavaScript
the tostr
ing() method returns a str
ing represent
ing the specified object.
... syntax str.tostr
ing() return value a str
ing represent
ing the call
ing object.
... description the str
ing object overrides the tostr
ing() method of the object object; it does not
inherit object.prototype.tostr
ing().
...And 2 more matches
Bypassing Security Restrictions and Signing Code - Archive of obsolete content
early versions of firefox allowed web sites to segregate pr
incipals us
ing signed scripts, and request extra permissions for scopes with
in signed scripts us
ing a function called enableprivelege.
...signed script segregation was removed
in bug 726125, the enableprivilege prompt was removed
in bug 750859, and enableprivilege itself was nerfed
in bug 757046.
... the privilege manager has been deprecated
in firefox 12 and disabled
in firefox 17.
... sites that require additional permissions should now ask firefox users to
install an extension, which can
interact with non-privileged pages if needed.
-moz-binding - Archive of obsolete content
the -moz-b
ind
ing css property is used by mozilla-based applications to attach an xbl b
ind
ing to a dom element.
... syntax /* <url> value */ -moz-b
ind
ing: url(http://www.example.org/xbl/htmlb
ind
ings.xml#checkbox); /* global values */ -moz-b
ind
ing:
inherited; -moz-b
ind
ing:
initial; -moz-b
ind
ing: unset; values <url> the url for the xbl b
ind
ing (
includ
ing the fragment identifier).
... none no xbl b
ind
ing is applied to the element.
... formal def
inition
initial valuenoneapplies toall elements except generated content or pseudo-elements
inheritednocomputed valueas specifiedanimation typediscrete formal syntax <url> | none examples .exampleone { -moz-b
ind
ing: url(http://www.example.org/xbl/htmlb
ind
ings.xml#radiobutton); } specifications not part of any standard.
-moz-windows-accent-color-in-titlebar - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... the -moz-w
indows-accent-color-
in-titlebar gecko-only css media feature can be used to apply styles based on whether accent colors are enabled
in microsoft w
indows titlebars.
... syntax <
integer>
in recent w
indows versions (e.g., 10), if accent colors are enabled
in w
indow titlebars, this is 1.
... media: media/visual accepts m
in/max prefixes: no example @media (-moz-w
indows-accent-color-
in-titlebar: 1) { h1 { color: -moz-w
in-accentcolortext; } body { background-color: -moz-w
in-accentcolor; } } ...
Using JavaScript Generators in Firefox - Archive of obsolete content
warn
ing: this technique works only
in firefox, not ie, chrome, safari, etc.
... generators can be used to simplify asynchronous code
in firefox by opt
ing
in to us
ing javascript version 1.7 or later.
... you can opt
in in html as follows: <script type="text/javascript;version=1.7" src="myscript.js"></script> then your myscript.js file might look like this: // need to stash the generator
in a global variable.
...function closegenerator() { settimeout(function() { generator.close(); }, 0); } // our ma
in steps function databaseoperation() { moz
indexeddb.open("mytestdatabase").onsuccess = grabevent; var event = yield; var db = event.target.result; if (db.version != "1.0") { db.setversion("1.0").onsuccess = grabevent; event = yield; var transaction = event.transaction; db.createobjectstore("stuff"); transaction.oncomplete = grabevent; yield; } db.transaction(["stuff"]).objectstore("stuf...
Domain name - MDN Web Docs Glossary: Definitions of Web-related terms
a doma
in name is a website's address on the
internet.
... doma
in names are used
in urls to identify to which server belong a specific webpage.
... the doma
in name consists of a hierarchial sequence of names (labels) separated by periods (dots) and end
ing with an extension.
... learn more general knowledge doma
in name on wikipedia understand
ing doma
in names ...
Dominator - MDN Web Docs Glossary: Definitions of Web-related terms
in graph theory, node a dom
inates node b if every path from the root node to b passes through a.
...so if the garbage collector found a to be unreachable and eligible for reclaim
ing, than b would also be unreachable and eligible for reclaim
ing.
... so objects that a dom
inates contribute to the reta
ined size of a: that is, the total amount of memory that could be freed if a itself were freed.
... learn more general knowledge dom
inator on wikipedia technical reference dom
inators garbage collection ...
Grid container - MDN Web Docs Glossary: Definitions of Web-related terms
us
ing the value grid or
inl
ine-grid on an element turns it
into a grid conta
iner us
ing css grid layout, and any direct children of this element become grid items.
... when an element becomes a grid conta
iner it establishes a grid formatt
ing context.
... the direct children can now lay themselves out on any explicit grid def
ined us
ing grid-template-columns and grid-template-rows, or on the implicit grid created when an item is placed outside of the explicit grid.
... learn more property reference grid-template-columns grid-template-rows grid-auto-columns grid-auto-rows grid grid-template further read
ing css grid layout guide: basic concepts of grid layout ...
Inheritance - MDN Web Docs Glossary: Definitions of Web-related terms
inheritance is a major feature of object-oriented programm
ing.
... as an app developer, you can choose which of the superclass's attributes and methods to keep and add your own, mak
ing class def
inition very flexible.
... some languages let a class
inherit from more than one parent (multiple
inheritance).
... learn more learn about it
inheritance and the prototype cha
in ...
Internationalization - MDN Web Docs Glossary: Definitions of Web-related terms
internationalization, often shortened to "i18n", is the adapt
ing of a web site or web application to different languages, regional differences, and technical requirements for different regions and countries.
...
internationalization is the process of architect
ing your web application so that it can be quickly and easily adapted to various languages and regions without much eng
ineer
ing effort when new languages and regions are supported.
... also so that a user can browse features to translate or localize the application to access all the content without break
ing the layout.
...
internationalization
includes support for multiple character sets (usually via unicode), units of measure (currency, °c/°f, km/miles, etc.), date and time formats, keyboard layouts, and layout and text directions.
Speed index - MDN Web Docs Glossary: Definitions of Web-related terms
speed
index (si) is a page load performance metric that shows you how quickly the contents of a page are visibly populated.
...expressed
in milliseconds, and dependent on the size of the viewport, the lower the score, the better.
... the calculation calculates what percent of the page is visually complete at every 100ms
interval until the page is visually complete.
... the overall score, the above the fold metric, is a sum of the
individual 10 times per second
intervals of the percent of the screen that is not-visually complete.
Time to interactive - MDN Web Docs Glossary: Definitions of Web-related terms
time to
interactive (tti) is a non-standardized web performance 'progress' metric def
ined as the po
int
in time when the last long task f
inished and was followed by 5 seconds of network and ma
in thread
inactivity.
... tti, proposed by the web
incubator community group
in 2018, is
intended to provide a metric that describes when a page or application conta
ins useful content and the ma
in thread is idle and free to respond to user
interactions,
includ
ing hav
ing event handlers registered.
... caveat: tti is derived by leverag
ing
information from the long tasks api.
... although available
in some performance monitor
ing tools, tti is not a part of any official web specification at the time of writ
ing.
minification - MDN Web Docs Glossary: Definitions of Web-related terms
m
inification is the process of remov
ing unnecessary or redundant data without affect
ing how a resource is processed by the browser.
... m
inification can
include the removal of code comments, white space, and unused code, as well as the shorten
ing of variable and function names.
... m
inification is used to improve web performance by reduc
ing file size.
... as m
inification makes code less legible to humans, developer tools have 'prettification' features that can add white space back
into the code to make it a bit more legible.
Investigating CSS Performance
http://people.mozilla.org/~jmuizelaar/css-perf.patch this patch
instruments a bunch of key places and should give an estimate of the order of magnitude of the different parents.
... two counts are collected which allow for an estimation of the amount of work be
ing done dur
ing restyle: resolvestyleforcount this is
incremented everytime that we do style resolution on an element contentenumfunccount this is
incremented roughly for every rule that we test aga
inst time dur
ing restyle can be spent
in a bunch of places.
... for example, hasstatedependentstyle will compute a h
int that determ
ines how many elements we'll restyle.
... this was developed while
investigat
ing bug 1110625 ...
PR_INSERT_LINK
inserts an element at the head of the list.
... syntax #
include <prclist.h> pr_
insert_l
ink ( prclist *elemp, prclist *listp); parameters elemp a po
inter to the element to be
inserted.
... listp a po
inter to the list.
... description pr_
insert_l
ink
inserts the specified element at the head of the specified list.
JS_GetExternalStringFinalizer
this article covers features
introduced
in spidermonkey 17 get the str
ing f
inalizer of an external str
ing.
... syntax const jsstr
ingf
inalizer * js_getexternalstr
ingf
inalizer(jsstr
ing *str); name type description str jsstr
ing * a str
ing to get f
inalizer.
... description js_getexternalstr
ingf
inalizer returns the f
in parameter passed to js_newexternalstr
ing.
... see also mxr id search for js_ js_newexternalstr
ing bug 724810 ...
JS_StringHasBeenInterned
this article covers features
introduced
in spidermonkey 17 determ
ine if str
ing is
interned.
... syntax bool js_str
inghasbeen
interned(jscontext *cx, jsstr
ing *str); name type description str jsstr
ing * a str
ing to exam
ine.
... description js_str
inghasbeen
interned returns true if the str
ing str is
interned.
... see also mxr id search for js_str
inghasbeen
interned bug 724810 ...
BeginReading
« xpcom api reference summary the beg
inread
ing function returns a const po
inter to the first element of the str
ing's
internal buffer.
... const char_type* beg
inread
ing() const; remarks the result
ing character array is not necessarily null-term
inated.
... the length of the array is determ
ined by the result of the length method.
... example code // count the number of times a particular character appears
in the str
ing pru
int32 countchar(const nsacstr
ing& str, char c) { const char* start = str.beg
inread
ing(); const char* end = str.endread
ing(); pru
int32 count = 0; while (start != end) { if (*start++ == c) ++count; } return count; } see also length, endread
ing ...
BeginReading
« xpcom api reference summary the beg
inread
ing function returns a const po
inter to the first element of the str
ing's
internal buffer.
... const char_type* beg
inread
ing() const; remarks the result
ing character array is not necessarily null-term
inated.
... the length of the array is determ
ined by the result of the length method.
... example code // count the number of times a particular character appears
in the str
ing pru
int32 countchar(const nsastr
ing& str, prunichar c) { const prunichar* start = str.beg
inread
ing(); const prunichar* end = str.endread
ing(); pru
int32 count = 0; while (start != end) { if (*start++ == c) ++count; } return count; } see also length ...
Access debugging in add-ons - Firefox Developer Tools
we are plann
ing to deprecate the use by firefox add-ons of the techniques described
in this document.
... the follow
ing items are accessible
in the context of chrome://browser/content/debugger.xul (or,
in version 23 beta, chrome://browser/content/devtools/debugger.xul): w
indow.addeventlistener("debugger:editorloaded") - called when the read-only script panel loaded.
... w
indow.addeventlistener("debugger:editorunloaded") relevant files: chrome://browser/content/devtools/debugger-controller.js chrome://browser/content/devtools/debugger-toolbar.js chrome://browser/content/devtools/debugger-view.js chrome://browser/content/devtools/debugger-panes.js unfortunately there is not yet any api to evaluate watches/expressions with
in the debugged scope, or highlight elements on the page that are referenced as variables
in the debugged scope.
... (currently a work
in progress, see bug 653545.) ...
Pretty-print a minified file - Firefox Developer Tools
to prettify a m
inified file, click the pretty pr
int source icon () at the bottom of the source pane.
... the debugger formats the source and displays it as a new file with a name like: "{ } [orig
inal-name]".
... after you click the icon, the source code looks like this: the pretty pr
int source icon is available only if the source file is m
inified (i.e., not an orig
inal file), and is not already "prettified".
... note: if you want to prettify some
inl
ine javascript code, just double click the code
in the
inspector pane.
HTMLHyperlinkElementUtils.origin - Web APIs
the htmlhyperl
inkelementutils.orig
in read-only property is a usvstr
ing conta
ining the unicode serialization of the orig
in of the represented url; that is: for url us
ing the http or https, the scheme followed by '://', followed by the doma
in, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url us
ing file: scheme, the value is browser dependant; for url us
ing the blob: scheme, the orig
in of the url follow
ing blob:.
... note: this feature is available
in web workers.
... syntax str
ing = object.orig
in; examples // on this page, returns the orig
in var result = w
indow.location.orig
in; // returns:'https://developer.mozilla.org' specifications specification status comment html liv
ing standardthe def
inition of 'htmlhyperl
inkelementutils.orig
in'
in that specification.
... liv
ing standard
initial def
inition.
InstallEvent.InstallEvent() - Web APIs
the
installevent() constructor creates a new
installevent object.
... syntax var my
installevent = new
installevent(type,
init); parameters type the type of the event.
...
init optional an options object conta
ining any custom sett
ings that you want to apply to the event object.
... available options are as follows: activeworker: the serviceworker that is currently actively controll
ing the page.
MediaSettingsRange.min - Web APIs
the m
in read-only property of the mediasett
ingsrange
interface returns the m
inimum value of the sett
ings range.
... syntax var m
in = mediasett
ingsrange.m
in value a double
integer.
... specifications specification status comment mediastream image capturethe def
inition of 'm
in'
in that specification.
... work
ing draft
initial def
inition.
Window.onappinstalled - Web APIs
the onapp
installed attribute of the w
indow object serves as an event handler for the app
installed event, which is dispatched once the web application is successfully
installed as a progressive web app.
... the event that is fired is a "simple event" that implements the event
interface.
... syntax w
indow.onapp
installed = function(event) { ...
... }; example w
indow.onapp
installed = function(ev) { console.log('the application was
installed.'); }; ...
Window.onbeforeinstallprompt - Web APIs
the w
indow.onbefore
installprompt property is an event handler for process
ing a before
installprompt, which is dispatched on devices when a user is about to be prompted to "
install" a web application.
... syntax w
indow.addeventlistener("before
installprompt", function(event) { ...
... }); w
indow.onbefore
installprompt = function(event) { ...}; example the follow
ing example uses the before
installprompt event to make an
install button operable, by us
ing the event
inside a click handler.
... w
indow.addeventlistener("before
installprompt", function(before
installpromptevent) { before
installpromptevent.preventdefault(); // prevents immediate prompt display // shows prompt after a user clicks an "
install" button
installbutton.addeventlistener("click", function(mouseevent) { // you should not use the mouseevent here, obviously before
installpromptevent.prompt(); });
installbutton.hidden = false; // make button operable }); ...
Window.scrollByLines() - Web APIs
the w
indow.scrollbyl
ines() method scrolls the document by the specified number of l
ines.
... syntax w
indow.scrollbyl
ines(l
ines) parameters l
ines is the number of l
ines to scroll the document by.
... it may be a positive or negative
integer.
... example <!-- scroll up the document by 5 l
ines --> <button id="scroll-up" onclick="scrollbyl
ines(-5);">up 5 l
ines</button> <!-- scroll down the document by 5 l
ines --> <button id="scroll-down" onclick="scrollbyl
ines(5);">down 5 l
ines</button> specification this is not part of any specification.
WindowOrWorkerGlobalScope.crossOriginIsolated - Web APIs
the crossorig
inisolated read-only property of the w
indoworworkerglobalscope
interface returns a boolean value that
indicates whether a sharedarraybuffer can be sent via a w
indow.postmessage() call.
... this value is dependant on any cross-orig
in-opener-policy and cross-orig
in-embedder-policy headers present
in the response.
... syntax var mycrossorig
inisolated = self.crossorig
inisolated; // or just crossorig
inisolated value a boolean value examples if(crossorig
inisolated) { // post sharedarraybuffer } else { // do someth
ing else } specifications specification status comment html liv
ing standardthe def
inition of 'crossorig
inisolated'
in that specification.
... liv
ing standard
initial def
inition.
XRInputSourcesChangeEventInit.added - Web APIs
the xr
inputsourceschangeevent
init property added specifies a list of
input sources, each identified us
ing an xr
inputsource object, which the represented
inputsourceschange event is to
indicate are newly available for use.
... syntax let
inputsourcesevent
init = { session: xrsession, added: [newdevice1, ..., newdevicen], removed: [removeddevice1, ..., newdevicen], }; my
inputsourceschangeevent = new xr
inputsourceschangeevent
init("
inputsourceschange",
inputsourcesevent
init); my
inputsourceschangeevent = new xr
inputsourceschangeevent
init("
inputsourceschange", { session: xrsession, added: addeddevicelist, removed: removeddevicelist }); value an array of zero or more xr
inputsource objects, each represent
ing one
input device added to the xr system.
... specifications specification status comment webxr device apithe def
inition of 'xr
inputsourceschangeevent
init.added'
in that specification.
... work
ing draft
initial def
inition.
XRInputSourcesChangeEventInit.removed - Web APIs
the xr
inputsourceschangeevent
init property removed is an array of zero or more xr
inputsource objects, each represent
ing one
input source which has been removed from the xrsession.
... syntax let
inputsourcesevent
init = { session: xrsession, added: [newdevice1, ..., newdevicen], removed: [removeddevice1, ..., newdevicen], }; my
inputsourceschangeevent = new xr
inputsourceschangeevent
init("
inputsourceschange",
inputsourcesevent
init); my
inputsourceschangeevent = new xr
inputsourceschangeevent
init("
inputsourceschange", { session: xrsession, added: addeddevicelist, removed: removeddevicelist }); value an array of zero or more xr
inputsource objects, each represent
ing one
input device removed from the xr system.
... specifications specification status comment webxr device apithe def
inition of 'xr
inputsourceschangeevent
init.removed'
in that specification.
... work
ing draft
initial def
inition.
XRInputSourcesChangeEventInit.session - Web APIs
the xr
inputsourceschangeevent
init property session specifies the xrsession to which the
input source list change event applies.
... syntax let
inputsourcesevent
init = { session: xrsession, added: [newdevice1, ..., newdevicen], removed: [removeddevice1, ..., newdevicen], }; my
inputsourceschangeevent = new xr
inputsourceschangeevent
init("
inputsourceschange",
inputsourcesevent
init); my
inputsourceschangeevent = new xr
inputsourceschangeevent
init("
inputsourceschange", { session: xrsession, added: addeddevicelist, removed: removeddevicelist }); value an xrsession
indicat
ing the webxr session to which the
input source list change applies.
... specifications specification status comment webxr device apithe def
inition of 'xr
inputsourceschangeevent
init.session'
in that specification.
... work
ing draft
initial def
inition.
XRRenderState.inlineVerticalFieldOfView - Web APIs
the
inl
ineverticalfieldofview read-only property of the xrrenderstate
interface def
ines the angle of the field of view
in radians used when comput
ing projection matrices for "
inl
ine" xrsession objects.
... syntax var adouble = xrrenderstate.
inl
ineverticalfieldofview; value a number.
... specifications specification status comment unknownthe def
inition of 'xrrenderstate.
inl
ineverticalfieldofview'
in that specification.
... unknown
initial def
inition.
XRRenderState.inlineVerticalFieldOfView - Web APIs
the read-only
inl
ineverticalfieldofview property of the xrrenderstate
interface returns the default vertical field of view for "
inl
ine" sessions and null for all immersive sessions.
... syntax var
inl
ineverticalfieldofview = xrrenderstate.
inl
ineverticalfieldofview; value a number for "
inl
ine" sessions, which represents the default field of view, and null for immersive sessions.
... specifications specification status comment webxr device apithe def
inition of 'xrrenderstate.
inl
ineverticalfieldofview'
in that specification.
... work
ing draft
initial def
inition.
:-moz-loading - CSS: Cascading Style Sheets
the :-moz-load
ing css pseudo-class is a mozilla extension that matches elements that can't be displayed because they have not started load
ing, such as images that haven't started to arrive yet.
... note that images that are
in the process of load
ing are not matched by this pseudo-class.
... note: this selector is ma
inly
intended to be used by theme developers.
... syntax :-moz-load
ing examples sett
ing a background for images that are load
ing :-moz-load
ing { background-color: #aaa; background-image: url(load
ing-animation.gif) center no-repeat; } specifications not part of any standard.
::-moz-focus-inner - CSS: Cascading Style Sheets
the ::-moz-focus-
inner css pseudo-element is a mozilla extension that represents an
inner focus r
ing of the <button> element as well as the button, submit, reset, and color types of the <
input> element.
... note: us
ing ::-moz-focus-
inner with anyth
ing than the buttons that support it doesn't match anyth
ing and has no effect.
... syntax syntax not found
in db!
... examples html <
input type="submit" value="
input"/> <button type="submit">button</button> css button::-moz-focus-
inner,
input[type="color"]::-moz-focus-
inner,
input[type="reset"]::-moz-focus-
inner,
input[type="button"]::-moz-focus-
inner,
input[type="submit"]::-moz-focus-
inner { padd
ing-block-start: 0px; padd
ing-
inl
ine-end: 2px; padd
ing-block-end: 0px; padd
ing-
inl
ine-start: 2px; border: 1px dotted red; } result specifications not part of any standard.
::-webkit-meter-inner-element - CSS: Cascading Style Sheets
::-webkit-meter-
inner-element is a proprietary webkit css pseudo-element for select
ing and apply
ing styles to to the outer conta
ining element of a <meter> element.
... syntax ::-webkit-meter-
inner-element specifications not part of any standard.
... examples this will only work
in webkit and bl
ink-based browsers, such as safari, chrome, and chromium-based versions of edge.
... html <meter m
in="0" max="10" value="6">score out of 10</meter> css meter { /* reset the default appearance */ -webkit-appearance: none; -moz-appearance: none; appearance: none; } meter::-webkit-meter-
inner-element { -webkit-appearance:
inherit; box-siz
ing:
inherit; border: 1px solid #aaa; } result ...
Beginner's guide to media queries - Learn web development
media queries are a key part of responsive web design, as they allow you to create different layouts depend
ing on the size of the viewport, but they can also be used to detect other th
ings about the environment your site is runn
ing on, for example whether the user is us
ing a touchscreen rather than a mouse.
...
in this lesson you will first learn about the syntax used
in media queries, and then move on to use them
in a worked example show
ing how a simple design might be made responsive.
... prerequisites: html basics (study
introduction to html), and an idea of how css works (study css first steps and css build
ing blocks.) objective: to understand how to use media queries, and the most common approach for us
ing them to create responsive designs.
...And 101 more matches
GCIntegration - SpiderMonkey Redirect 1
the spidermonkey garbage collector (gc) will be chang
ing a lot
in the future.
... this page is
intended to expla
in the changes that are happen
ing, with a focus on how they will affect gecko code that uses jsapi.
... at a high level, there are three issues to be aware of:
interactions between the garbage collector and the cycle collector
incremental garbage collection mov
ing garbage collection the apis for gc/cc
interaction and
incremental gc are already
in place.
...And 101 more matches
Pointer events - Web APIs
much of today's web content assumes the user's po
int
ing device will be a mouse.
... however, s
ince many devices support other types of po
int
ing
input devices, such as pen/stylus and touch surfaces, extensions to the exist
ing po
int
ing device event models are needed.
... po
inter events address that need.
...And 101 more matches
Media container formats (file types) - Web media technologies
the format of audio and video media files is def
ined
in two parts (three if a file has both audio and video
in it, of course): the audio and/or video codecs used and the media conta
iner format (or file type) used.
...
in this guide, we'll look at the conta
iner formats used most commonly on the web, cover
ing basics about their specifications as well as their benefits, limitations, and ideal use cases.
... webrtc does not use a conta
iner at all.
...And 100 more matches
Extending a Protocol
quick start: extend
ing a protocol this tutorial implements a simple p
ing-pong style ipdl protocol, which sends a message from the content process (ma
in thread) to the chrome process (ui thread).
... the tutorial is designed for beg
inners and will walk you through all the steps you need to get th
ings work
ing.
... the tutorial is designed for browser eng
ineers who are implement
ing dom/web apis that need to, for example, send a message to the os or sp
in up someth
ing off the ma
in thread - so it's biased towards support
ing w3c/whatwg dom apis.
...And 99 more matches
HTMLInputElement - Web APIs
the html
inputelement
interface provides special properties and methods for manipulat
ing the options, layout, and presentation of <
input> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 99 more matches
Basic Concepts of grid layout - CSS: Cascading Style Sheets
css grid layout
introduces a two-dimensional grid system to css.
... grids can be used to lay out major page areas or small user
interface elements.
... this article
introduces the css grid layout and the new term
inology that is part of the css grid layout level 1 specification.
...And 99 more matches
Using the application cache - HTML: Hypertext Markup Language
us
ing this application cache feature is highly discouraged; it’s
in the process of be
ing removed from the web platform.
... as of firefox 44+, when appcache is used to provide offl
ine support for a page, a warn
ing message displays
in the console advis
ing developers to use service workers
instead (bug 1204581).
...
introduction html5 provides an application cach
ing mechanism that lets web applications run offl
ine.
...And 99 more matches
Images in HTML - Learn web development
overview: multimedia and embedd
ing next
in the beg
inn
ing, the web was just text, and it was really quite bor
ing.
... fortunately, it wasn't too long before the ability to embed images (and other more
interest
ing types of content)
inside web pages was added.
... there are other types of multimedia to consider, but it is logical to start with the humble <img> element, used to embed a simple image
in a webpage.
...And 98 more matches
<input type="datetime-local"> - HTML: Hypertext Markup Language
<
input> elements of type datetime-local create
input controls that let the user easily enter both a date and a time,
includ
ing the year, month, and day as well as the time
in hours and m
inutes.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 98 more matches
Creating our first Vue component - Learn web development
previous overview: client-side javascript frameworks next now it's time to dive deeper
into vue, and create our own custom component — we'll start by creat
ing a component to represent each item
in the todo list.
... along the way, we'll learn about a few important concepts such as call
ing components
inside other components, pass
ing data to them via props, and sav
ing data state.
... note: if you need to check your code aga
inst our version, you can f
ind a f
inished version of the sample vue app code
in our todo-vue repository.
...And 97 more matches
Drawing shapes with canvas - Web APIs
« previousnext » now that we have set up our canvas environment, we can get
into the details of how to draw on the canvas.
... by the end of this article, you will have learned how to draw rectangles, triangles, l
ines, arcs and curves, provid
ing familiarity with some of the basic shapes.
... work
ing with paths is essential when draw
ing objects onto the canvas and we will see how that can be done.
...And 97 more matches
Debugging CSS - Learn web development
previous overview: build
ing blocks next sometimes when writ
ing css you will encounter an issue where your css doesn't seem to be do
ing what you expect.
... perhaps you believe that a certa
in selector should match an element, but noth
ing happens, or a box is a different size than you expected.
... this article will give you guidance on how to go about debugg
ing a css problem, and show you how the devtools
included
in all modern browsers can help you to f
ind out what is go
ing on.
...And 96 more matches
<input type="search"> - HTML: Hypertext Markup Language
<
input> elements of type search are text fields designed for the user to enter search queries
into.
... these are functionally identical to text
inputs, but may be styled differently by the user agent.
... the source for this
interactive example is stored
in a github repository.
...And 96 more matches
Theme changes in Firefox 2 - Archive of obsolete content
this article covers the changes that need to be made to update a firefox theme to work properly
in firefox 2.
... note: we could use an article called updat
ing themes for firefox 2 that would serve as a how-to guide for updat
ing themes.
... if anyone with them
ing experience would like to write one, please do!
...And 95 more matches
Tracing JIT
this document is talk
ing about deprecated feature.
... the trac
ing jit
in spidermonkey consists of a generic, low level component called nanojit which is co-ma
inta
ined between adobe and mozilla, and a spidermonkey-specific high level component called jstracer.
... the nanojit component is language agnostic, and conta
ins no knowledge about spidermonkey or any other part of the mozilla codebase.
...And 83 more matches
Introduction to the JavaScript shell
the javascript shell (js) is a command-l
ine program
included
in the spidermonkey source distribution.
... it is the javascript equivalent of python's
interactive prompt, the lisp read-eval-pr
int loop, or ruby's irb.
... this article expla
ins how to use the shell to experiment with javascript code and run javascript programs.
...And 83 more matches
Examine and edit HTML - Firefox Developer Tools
you can exam
ine and edit the page's html
in the html pane.
... navigat
ing the html html breadcrumbs at the bottom on the html pane is a breadcrumbs toolbar.
... this shows the complete hierarchy through the document for the branch conta
ining the selected element: hover
ing over a breadcrumb highlights that element
in the page.
...And 83 more matches
Color picker tool - CSS: Cascading Style Sheets
colorpicker tool html <div id="conta
iner"> <div id="palette" class="block"> <div id="color-palette"></div> <div id="color-
info"> <div class="title"> css color </div> </div> </div> <div id="picker" class="block"> <div class="ui-color-picker" data-topic="picker" data-mode="hsl"></div> <div id="picker-samples" sample-id="master"></div> <div id="controls"> <div id="delete"> <div id="trash-can"></div> </div> <div id="void-sample" class="icon"></div> </div> </div> <div id="canvas" data-tutorial="drop"> <div id="z
index" class="ui-
input-slider" data-topic="z-
index" d...
...ata-
info="z-
index" data-max="20" data-sensivity="10"></div> </div> </div> css /* * color picker tool */ .ui-color-picker { width: 420px; marg
in: 0; border: 1px solid #ddd; background-color: #fff; display: table; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .pick
ing-area { width: 198px; height: 198px; marg
in: 5px; border: 1px solid #ddd; position: relative; float: left; display: table; } .ui-color-picker .pick
ing-area:hover { cursor: default; } /* hsv format - hue-saturation-value(brightness) */ .ui-color-picker .pick
ing-area { background: url('https://mdn.mozillademos.org/files/5707/picker_mask_200.png') center center; background: -moz-l
inear-gradient(bottom, #000 0%,...
... rgba(0, 0, 0, 0) 100%), -moz-l
inear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-l
inear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -webkit-l
inear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -ms-l
inear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -ms-l
inear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -o-l
inear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -o-l
inear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background-color: #f00; } /* hsl format - hue-saturation-lightness */ .ui-color-picker[data-mode='hsl'] .pick
ing-area { background: -moz-l
inear-gradient(top, hsl(0, 0%, 100%) 0%, hsla(0, 0%, 100%, 0) 50%, hsla(0, 0%, 0%, 0) 50%, hsl(0, 0%, 0%) 100%), -moz...
...And 83 more matches
Multiprocess on Windows
overview a high-level overview of the ideas beh
ind the a11y+e10s design is available on the wiki.
... prerequisite read
ing s
ince so much of this design resolves around microsoft com and its concept of the apartment, readers of this document should have a solid understand
ing of what apartments are.
... unfortunately this topic is often poorly expla
ined.
...And 82 more matches
Element Positioning - Archive of obsolete content
« previousnext » here we'll look at controll
ing the position and size of an element.
... box element position
ing so far, we know how to position elements either horizontally or vertically
inside a box.
... we will often need more control over the position and size of elements with
in the box.
...And 81 more matches
Sending form data - Learn web development
and, s
ince we covered validation
in the previous article, we're ready to submit!
...we also look at some of the security concerns associated with send
ing form data.
... prerequisites: basic computer literacy, an understand
ing of html, and basic knowledge of http and server-side programm
ing.
...And 81 more matches
The Firefox codebase: CSS Guidelines
this document conta
ins guidel
ines def
ining how css
inside the firefox codebase should be written, it is notably relevant for firefox front-end eng
ineers.
... basics here are some basic tips that can optimize reviews if you are chang
ing css: avoid !important but if you have to use it, make sure it's obvious why you're us
ing it (ideally with a comment).
... the overrid
ing css section conta
ins more
information about this.
...And 81 more matches
Box-shadow generator - CSS: Cascading Style Sheets
box-shadow generator html content <div id="conta
iner"> <div class="group section"> <div id="layer_manager"> <div class="group section"> <div class="button" data-type="add"> </div> <div class="button" data-type="move-up"> </div> <div class="button" data-type="move-down"> </div> </div> <div id="stack_conta
iner"></div> </div> <div id="preview_zone"> <div id="layer_menu" class="col span_12"> <div class="button" id="element" data-type="subject" data-title="element"> element </div> <div class="button" id="before" data-type="subject" ...
...<div class="title"> </div> <div id="colorpicker" class="group"> <div id="gradient" class="gradient"> <div id="gradient_picker"> </div> </div> <div id="hue" data-topic="hue" class="hue"> <div id="hue_selector"> </div> </div> <div class="
info"> <div class="
input" data-topic="hue" data-title='h:' data-action="hsv"></div> <div class="
input" data-topic="saturation" data-title='s:' data-action="hsv"></div> <div class="
input" data-topic="value" data-title='v:' data-action="hsv"></div> </div> <div class="alpha"> ...
... <div id="alpha" data-topic="alpha"> <div id="alpha_selector"> </div> </div> </div> <div class="
info"> <div class="
input" data-topic="r" data-title='r:' data-action="rgb"></div> <div class="
input" data-topic="g" data-title='g:' data-action="rgb"></div> <div class="
input" data-topic="b" data-title='b:' data-action="rgb"></div> </div> <div class="preview block"> <div id="output_color"> </div> </div> <div class="block
info"> <div class="
input" data-topic="a" data-title='alpha:' data-action="alpha"></d...
...And 81 more matches
Handling Preferences - Archive of obsolete content
« previousnext » preferences
in firefox mozilla applications are highly customizable.
... preferences are used to store sett
ings and
information to change their default behavior.
... to open the preferences w
indow
in firefox, select the follow
ing from the ma
in menu: on w
indows, tools > options on mac, firefox > preferences on l
inux, edit > preferences note: keep
in m
ind the usage of the terms "preferences" and "options"
in different platforms.
...And 80 more matches
Mozilla Application Framework in Detail - Archive of obsolete content
related: xulrunner:what xulrunner provides, xulrunner hall of fame ui
in mozilla mozilla's philosophy of us
ing "the right tool for the right job" is manifested most prom
inently
in the design of the user
interface.
... we provide an xml-based language called xul for def
ining the user
interface of your application.
... css is used to style these ui's and dtd's are used to localize the textual
information - mak
ing your application extremely flexible and able to be utilized across the globe.
...And 80 more matches
Using the Editor from XUL - Archive of obsolete content
warn
ing: the content of this article may be out of date.
... overview the editor
in xul lives on top of a xul <iframe> element; it observes document load
ing
in this <iframe>, and, when document load
ing is complete, it
instantiates an editor on the loaded document.
... note that the <editor> element is really just an <iframe> which takes over some of the task of creat
ing the editor from javascript.
...And 80 more matches
URLs - Plugins
« previousnext » this chapter describes retriev
ing urls and display
ing them on specified target pages, post
ing data to an http server, upload
ing files to an ftp server, and send
ing mail.
... uniform resource locator (url) protocols provide a means for locat
ing and access
ing resources that are available on the
internet and on
intranets.
... plug-
ins can request and receive the data associated with urls of any type that the browser can handle,
includ
ing http, ftp, news, mailto, and gopher.
...And 80 more matches
Compiling from Rust to WebAssembly - WebAssembly
if you have some rust code, you can compile it
into webassembly (wasm).
... this tutorial takes you through all you need to know to compile a rust project to wasm and use it
in an exist
ing web app.
... rust and webassembly use cases there are two ma
in use cases for rust and webassembly: to build an entire application — an entire web app based
in rust.
...And 80 more matches
Using the WebAssembly JavaScript API - WebAssembly
if you have already compiled a module from another language us
ing tools like emscripten, or loaded and run the code yourself, the next step is to learn more about us
ing the other features of the webassembly javascript api.
... note: if you are unfamiliar with the basic concepts mentioned
in this article and need more explanation, read webassembly concepts first, then come back.
... some simple examples let’s run through some examples that expla
in how to use the webassembly javascript api, and how to use it to load a wasm module
in a web page.
...And 80 more matches
Border-image generator - CSS: Cascading Style Sheets
border image generator html content <div id="conta
iner"> <div id="gallery"> <div id="image-gallery"> <img class="image" src="https://udn.realityripple.com/samples/2c/fa0192d18e.png" data-stateid="border1"/> <img class="image" src="https://udn.realityripple.com/samples/b8/dacdd63e77.png" data-stateid="border2"/> <img class="image" src="https://udn.realityripple.com/samples/07/1fcc357205.png" data-stateid="border3"/> <img class="image" src="https://udn.realityripple.com/samples/7b/dd37c1d691.png" data-stateid="border4"/> <img class="image" src="https://udn.realityripple.com/samples/a9/b9fff72dab.png" data-stateid="borde...
...r5"/> <img class="image" src="https://udn.realityripple.com/samples/fb/c0b285d3da.svg" data-stateid="border6"/> </div> </div> <div id="load-actions" class="group section"> <div id="toggle-gallery" data-action="hide"> </div> <div id="load-image" class="button"> upload image </div> <
input id="remote-url" type="text" placeholder="load an image from url"/> <div id="load-remote" class="button"> </div> </div> <div id="general-controls" class="group section"> <div class="name"> control box </div> <div class="separator"></div> <div class="property"> <div class="name">scale</div> <div class="ui-
input-slider" data-topic="scale...
...vity="10"> </div> </div> <div class="separator"></div> <div class="property"> <div class="name">draggable</div> <div class="ui-checkbox" data-topic='drag-subject'></div> </div> <div class="property right"> <div class="name">section height</div> <div class="ui-
input-slider" data-topic="preview-area-height" data-m
in="400" data-max="1000"> </div> </div> </div> <div id="preview_section" class="group section"> <div id="subject"> <div class="guidel
ine" data-axis="y" data-topic="slice-top"></div> <div class="guidel
ine" data-axis="x" data-topic="slice-rig...
...And 64 more matches
CSS values and units - CSS: Cascading Style Sheets
every css declaration
includes a property / value pair.
... depend
ing on the property, the value can
include a s
ingle
integer or keyword, to a series of keywords and values with or without units.
...refer to the page for each value type for more detailed
information.
...And 64 more matches
HTTP caching - HTTP
the performance of web sites and applications can be significantly improved by reus
ing previously fetched resources.
...by mak
ing use of http cach
ing, web sites become more responsive.
... different k
inds of caches cach
ing is a technique that stores a copy of a given resource and serves it back when requested.
...And 64 more matches
Using HTTP cookies - HTTP
typically, it's used to tell if two requests came from the same browser — keep
ing a user logged-
in, for example.
... it remembers stateful
information for the stateless http protocol.
... cookies are ma
inly used for three purposes: session management log
ins, shopp
ing carts, game scores, or anyth
ing else the server should remember personalization user preferences, themes, and other sett
ings track
ing record
ing and analyz
ing user behavior cookies were once used for general client-side storage.
...And 64 more matches
Classes and Inheritance - Archive of obsolete content
a class is a bluepr
int from which
individual objects are created.
... these
individual objects are the
instances of the class.
... each class def
ines one or more members, which are
initialized to a given value when the class is
instantiated.
...And 63 more matches
Using Spacers - Archive of obsolete content
« previousnext »
in this section, we will f
ind out how to add some spac
ing
in between the elements we have created.
... add
ing spacers one of the problems with develop
ing user
interfaces is that each user has a different display.
...
in addition, different platforms may have special requirements on the user
interface.
...And 63 more matches
Debugging HTML - Learn web development
previous overview:
introduction to html next writ
ing html is f
ine, but what if someth
ing goes wrong, and you can't work out where the error
in the code is?
... this article will
introduce you to some tools that can help you f
ind and fix errors
in html.
... prerequisites: html familiarity, as covered
in, for example, gett
ing started with html, html text fundamentals, and creat
ing hyperl
inks.
...And 63 more matches
Experimental features in Firefox
in order to test new features, mozilla publishes a test version of the firefox browser, firefox nightly, every day.
... these nightly builds of firefox typically
include experimental or partially-implemented features,
includ
ing those for proposed or cutt
ing-edge web platform standards.
... this page lists features that are
in nightly versions of firefox along with
information on how to activate them, if necessary.
...And 63 more matches
nsINavHistoryService
toolkit/components/places/ns
inavhistoryservice.idlscriptable this
interface provides complex query functions, more f
ine-gra
ined getters and setters.
... 1.0 66
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".
... to use this service, use: var historyservice = components.classes["@mozilla.org/browser/nav-history-service;1"] .getservice(components.
interfaces.ns
inavhistoryservice); method overview astr
ing getpagetitle(
in nsiuri auri); void markpageasfollowedbookmark(
in nsiuri auri); void markpageasfollowedl
ink(
in nsiuri auri); void markpageastyped(
in nsiuri auri); boolean canadduri(
in nsiuri auri); long long addvisit(
in nsiuri auri,
in prtime atime,
in nsiuri areferr
inguri,
in long atransitiontype,
in boolean aisredirect,
in long long asessionid); obsolete s
ince gecko 22.0 ns
inavhistoryquery getnewquery(); ns
inavhistoryqueryoptions getnewqueryoptions(); ns
inavhistoryresult executequery(...
...And 63 more matches
nsIPrincipal
caps/nsipr
incipal.idlscriptable provides the
interface to a pr
incipal, which represents a security context.
... on the web, for example, a typical pr
incipal is comprised of an url scheme, host, and port.
...
inherits from: nsiserializable last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) for details on pr
incipals, how they work, and how to get the appropriate one, see security check basics.
...And 63 more matches
Using images - Web APIs
one of the more excit
ing features of <canvas> is the ability to use images.
... these can be used to do dynamic photo composit
ing or as backdrops of graphs, for sprites
in games, and so forth.
... external images can be used
in any format supported by the browser, such as png, gif, or jpeg.
...And 63 more matches
Using Promises - JavaScript
« previousnext » a promise is an object represent
ing the eventual completion or failure of an asynchronous operation.
... s
ince most people are consumers of already-created promises, this guide will expla
in consumption of returned promises before expla
ining how to create them.
... essentially, a promise is a returned object to which you attach callbacks,
instead of pass
ing callbacks
into a function.
...And 63 more matches
Handling different text directions - Learn web development
previous overview: build
ing blocks next many of the properties and values that we have encountered so far
in our css learn
ing have been tied to the physical dimensions of our screen.
...
in recent years however, css has evolved
in order to better support different directionality of content,
includ
ing right-to-left but also top-to-bottom content (such as japanese) — these different directionalities are called writ
ing modes.
... as you progress
in your study and beg
in to work with layout, an understand
ing of writ
ing modes will be very helpful to you, therefore we will
introduce them now.
...And 62 more matches
Choosing the right approach - Learn web development
previous overview: asynchronous to f
inish this module off, we'll provide a brief discussion of the different cod
ing techniques and features we've discussed throughout, look
ing at which one you should use when, with recommendations and rem
inders of common pitfalls where appropriate.
... prerequisites: basic computer literacy, a reasonable understand
ing of javascript fundamentals.
... objective: to be able to make a sound choice of when to use different asynchronous programm
ing techniques.
...And 62 more matches
nsINavBookmarkObserver
toolkit/components/places/ns
inavbookmarksservice.idlscriptable this
interface is an observer for bookmark changes.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 21.0 (firefox 21.0 / thunderbird 21.0 / seamonkey 2.18) method overview void onbeforeitemremoved(
in long long aitemid,
in unsigned short aitemtype,
in long long aparentid,
in acstr
ing aguid,
in acstr
ing aparentguid); obsolete s
ince gecko 21.0 void onbeg
inupdatebatch(); void onendupdatebatch(); void onfolderadded(
in pr
int64 folder,
in pr
int64 parent,
in pr
int32
index); obsolete s
ince gecko 1.9 void onfolderchanged(
in pr
int64 folder,
in acstr
ing property); obsolete s
ince gecko 1.9 void onfoldermoved(
in pr
int64 folder,
in pr
int64 oldparent,
in pr
int32 old
index,
in pr
int64 newparent,
in pr
int32 new
index); obsolete s
ince gecko 1.9 ...
... void onfolderremoved(
in pr
int64 folder,
in pr
int64 parent,
in pr
int32
index); obsolete s
ince gecko 1.9 void onitemadded(
in long long aitemid,
in long long aparentid,
in long a
index,
in unsigned short aitemtype,
in nsiuri auri,
in autf8str
ing atitle,
in prtime adateadded,
in acstr
ing aguid,
in acstr
ing aparentguid); void onitemchanged(
in long long aitemid,
in acstr
ing aproperty,
in boolean aisannotationproperty,
in autf8str
ing anewvalue,
in prtime alastmodified,
in unsigned short aitemtype,
in long long aparentid,
in acstr
ing aguid,
in acstr
ing aparentguid); void onitemmoved(
in long long aitemid,
in long long aoldparentid,
in long aold
index,
in long long anewparentid,
in long anew
index,
in unsigned short aitemtype,
in acstr
ing aguid,
in acstr
ing aoldparentguid, i...
...And 62 more matches
nsCAutoString
class declaration nstautostr
ing_chart subclass of nststr
ing_chart that adds support for stack-based str
ing allocation.
... it is normally not a good idea to use this class on the heap, because it will allocate space which may be wasted if the str
ing it conta
ins is significantly smaller or any larger than 64 characters.
... names: nsautostr
ing for wide characters nscautostr
ing for narrow characters method overview constructors operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset compare equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated chara...
...And 41 more matches
Autoconfiguration in Thunderbird
author: ben bucksch please do not change this document without consult
ing the author thunderbird 3.1 and later (and 3.0 to some degree)
includes mail account autoconfiguration functionality.
...
in many cases, people should be able to download and
install thunderbird, enter their real name, email address and password
in the account setup wizard and have a fully function
ing mail client and get and send their mail as securely as possible.
... see also: for
instructions for users, see automatic account configuration on the thunderbird knowledge base.
...And 41 more matches
Settings - Firefox Developer Tools
open
ing sett
ings beg
inn
ing with firefox 62, the icon to open developer tools sett
ings has been moved
into a menu accessed by click
ing/touch
ing ...
... the menu
includes sett
ings to control the location of the developer tools.
... you can choose between the default sett
ing at the bottom of the w
indows, or move the tools to the left or right side of the screen.
...And 41 more matches
Using server-sent events - Web APIs
develop
ing a web application that uses server-sent events is straightforward.
... you'll need a bit of code on the server to stream events to the front-end, but the client side code works almost identically to websockets
in part of handl
ing
incom
ing events.
... receiv
ing events from the server the server-sent event api is conta
ined
in the eventsource
interface; to open a connection to the server to beg
in receiv
ing events from it, create a new eventsource object with the url of a script that generates the events.
...And 41 more matches
Video player styling basics - Developer guides
in the previous cross browser video player article we described how to build a cross-browser html5 video player us
ing the media and fullscreen apis.
... this follow-up article looks at how to style this custom player,
includ
ing mak
ing it responsive.
... the example
in action you can f
ind the code for the updated, styled example on github, and view it live.
...And 41 more matches
User input and controls - Developer guides
modern web user
input goes beyond simple mouse and keyboard: th
ink of touchscreens for example.
... this article provides recommendations for manag
ing user
input and implement
ing controls
in open web apps, along with faqs, real-world examples, and l
inks to further
information for anyone need
ing more detailed
information on the underly
ing technologies.
... relevant apis and events
include touch events, po
inter lock api, screen orientation api, fullscreen api, drag & drop and more.
...And 41 more matches
Writing forward-compatible websites - Developer guides
this page expla
ins how to write websites that do not break when new browser versions are released.
... this is especially important for
intranets and other non-public websites; if we can't see your code, we can't see that it broke.
... it's not always possible to follow all of these, but follow
ing as many of them as possible will help future-proof your website.
...And 41 more matches
Bounding volume collision detection with THREE.js - Game development
this article shows how to implement collision detection between bound
ing boxes and spheres us
ing the three.js library.
... it is assumed that before read
ing this you have read our 3d collision detection
introductory article first, and have basic knowledge about three.js.
... us
ing box3 and sphere three.js has objects that represent mathematical volumes and shapes — for 3d aabb and bound
ing spheres we can use the box3 and sphere objects.
...And 40 more matches
Simple Instantbird build
this page covers the basic steps needed to build a bleed
ing-edge, development version of
instantbird.
... for additional, more detailed
information, see the build documentation.
... this should be kept
in sync with simple thunderbird build, you might want to take a look at that page too.
...And 40 more matches
EncDecMAC using token object - sample 3
encdecmac us
ing token object example: <h2 id="nss_sample_code_3_hash
ing.">nss sample code 3: enc/dec/mac us
ing token object id.</h2> <p class="summary">computes the hash of a file and saves it to another file, illustrates the use of nss message apis.</p> <pre class="brush: cpp"> /* this source code form is subject to the terms of the mozilla public * license, v.
...if a copy of the mpl was not distributed with this * file, you can obta
in one at http://mozilla.org/mpl/2.0/.
... */ /* nspr headers */ #
include #
include #
include #
include #
include #
include #
include /* nss headers */ #
include #
include /* our samples utilities */ #
include "util.h" #def
ine buffersize 80 #def
ine digestsize 16 #def
ine ptext_mac_buffer_size 96 #def
ine ciphersize 96 #def
ine blocksize 32 #def
ine cipher_header "-----beg
in cipher-----" #def
ine cipher_trailer "-----end cipher-----" #def
ine enckey_header "-----beg
in aeskey ckaid-----" #def
ine enckey_trailer "-----end aeskey ckaid-----" #def
ine mackey_header "-----beg
in mackey ckaid-----" #def
ine mackey_trailer "-----end mackey ckaid-----" #def
ine iv_header "-----beg
in iv-----" #def
ine iv_trailer "-----end iv-----" #def
ine mac_header "-----beg
in mac-----" #def
ine mac_trailer "-----end mac-----" #def
ine pad_header "-----beg
in pad-----" #def
ine pad_...
...And 40 more matches
nsXPIDLString
class declaration nstxpidlstr
ing extends nststr
ing 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 str
ing" parameters
in xpidl.
... names: nsxpidlstr
ing for wide characters nsxpidlcstr
ing for narrow characters method overview constructors operator const prunichar* operator[] operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsa...
...scii lowercaseequalsliteral(const char lowercaseequalsliteral(char 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 nsstr
ing data members no public members.
...And 40 more matches
nsINavHistoryResultNode
toolkit/components/places/public/ns
inavhistoryservice.idlscriptable this is the base class for all places history result nodes, conta
ining the uri, title, and other general
information.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) attributes attribute type description accesscount unsigned long total number of times the uri has been accessed.
... for hosts, this is the total number of the children under it, rather than the total number of times the host has been accessed (gett
ing that
information would require an additional query, so for performance reasons that
information isn't given by default).
...And 40 more matches
Border-radius generator - CSS: Cascading Style Sheets
border-radius html content <div id="conta
iner"> <div class="group section"> <div id="preview" class="col span_12"> <div id="subject"> <div id="top-left" class="radius-conta
iner" data-x="left" data-y="top"> </div> <div id="top-right" class="radius-conta
iner" data-x="right" data-y="top"> </div> <div id="bottom-right" class="radius-conta
iner" data-x="right" data-y="bottom"> </div> <div id="bottom-left" class="radius-conta
iner" data-x="left" data-y="bottom"> </div> <div id="radi...
...us-ui-sliders"> <div id="tlr" class="ui-
input-slider" data-topic="top-left" data-unit=" px" data-sensivity="2"></div> <div id="tlw" class="ui-
input-slider" data-topic="top-left-w" data-unit=" px" data-sensivity="2"></div> <div id="tlh" class="ui-
input-slider" data-topic="top-left-h" data-unit=" px" data-sensivity="2"></div> <div id="trr" class="ui-
input-slider" data-topic="top-right" data-unit=" px" data-sensivity="2"></div> <div id="trw" class="ui-
input-slider" data-topic="top-right-w" data-unit=" px" data-sensivity="2"></div> <div id="trh" class...
...="ui-
input-slider" data-topic="top-right-h" data-unit=" px" data-sensivity="2"></div> <div id="brr" class="ui-
input-slider" data-topic="bottom-right" data-unit=" px" data-sensivity="2"></div> <div id="brw" class="ui-
input-slider" data-topic="bottom-right-w" data-unit=" px" data-sensivity="2"></div> <div id="brh" class="ui-
input-slider" data-topic="bottom-right-h" data-unit=" px" data-sensivity="2"></div> <div id="blr" class="ui-
input-slider" data-topic="bottom-left" data-unit=" px" data-sensivity="2"></div> <div id="blw" class="ui-
input-slider" data-topic="bottom-left...
...And 40 more matches
Subgrid - CSS: Cascading Style Sheets
level 2 of the css grid layout specification
includes a subgrid value for grid-template-columns and grid-template-rows.
... important: this feature is shipped
in firefox 71, which is currently the only browser to implement subgrid.
...
introduction to subgrid when you add display: grid to a grid conta
iner, only the direct children become grid items and can then be placed on the grid that you have created.
...And 40 more matches
Creating a status bar extension - Archive of obsolete content
next » this is the first
in a series of articles that will demonstrate how to create
increas
ingly
intricate extensions for the firefox browser.
... some of the samples
in this series may be similar to samples you've seen elsewhere, but the goal of this series of articles is to help compile
information for new extension developers
into one place to make it easy to jump
in and get started.
... note: the extension created by this tutorial won't work
in firefox that don't have a static status bar (that is, firefox 4 and up).
...And 39 more matches
Venkman Internals - Archive of obsolete content
start with venkman
information.
... questions why can't breakpo
ints be set on some source l
ines some of the time?
... sometimes the source has small ticks
in the marg
in for every executable l
ine
in my javascript.
...And 39 more matches
Positioning - Archive of obsolete content
position
ing popups there are several ways
in which the location of a popup on screen may be controlled.
... default position
ing of popups a top level menu popup is, by default, placed with the upper edge of the popup flush with the lower edge of the menu or button it is associated with.
...however, the submenu will appear to the left
instead for right to left locales.
...And 39 more matches
Building Trees - Archive of obsolete content
however, s
ince templates are often used with trees—especially with large amounts of data—the template system supports a special builder just for creat
ing trees.
... rather than generate content for every row
in the tree, the results are stored
in a list
inside the builder.
...this is much more efficient; creat
ing large numbers of dom nodes adds a lot of overhead.
...And 39 more matches
CSS building blocks - Learn web development
this module carries on where css first steps left off — now you've ga
ined familiarity with the language and its syntax, and got some basic experience with us
ing it, its time to dive a bit deeper.
... this module looks at the cascade and
inheritance, all the selector types we have available, units, siz
ing, styl
ing backgrounds and borders, debugg
ing, and lots more.
... the aim here is to provide you with a toolkit for writ
ing competent css and help you understand all the essential theory, before mov
ing on to more specific discipl
ines like text styl
ing and css layout.
...And 39 more matches
SVG Guidelines
pros and cons of svg for images when used as a document format there is usually a compell
ing reason that makes svg the only solution.
...when choos
ing whether or not to use svg it is best to understand the advantages and disadvantages of both.
...on the other hand the size of a raster file of the same image will likely vary tremendously depend
ing on the dimensions of the image s
ince the larger the dimensions the more pixel data the file needs to store.
...And 39 more matches
How to embed the JavaScript engine
in particular, it has more and better code examples!
... a bare bones tutorial hello world sample embedd
ing application the follow
ing code is a very simple application that shows how to embed spidermonkey and run a simple javascript script.
... see the
instructions for build
ing and runn
ing the sample below the code.
...And 39 more matches
nsFixedString
class declaration method overview constructors operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat operator[] first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char ass...
...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 nsstr
ing data members no public members.
... methods constructors void nsfixedstr
ing(prunichar*, pru
int32) - source @param data fixed-size buffer to be used by the str
ing (the contents of this buffer may be modified by the str
ing) @param storagesize the size of the fixed buffer @param length (optional) the length of the str
ing already conta
ined
in the buffer parameters prunichar* data pru
int32 storagesize void nsfixedstr
ing(prunichar*, pru
int32, pru
int32) - source parameters prunichar* data pru
int32 storagesize pru
int32 length operator= nsstr
ing& operator=(const nsstr
ing&) - source parameters nsstr
ing& str nsastr
ing_
internal& operator=(prunichar) - source parameters prunichar c nsastr
ing_
internal& operator=(const prunichar*) - source parameters prunichar* data nsastr
ing_
internal& operator=(const ...
...And 39 more matches
nsPromiseFlatString
class declaration method overview constructors operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat operator[] first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char ass...
...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 nsstr
ing data members no public members.
... methods constructors void nspromiseflatstr
ing(const nsastr
ing_
internal&) - source parameters nsastr
ing_
internal& str void nspromiseflatstr
ing(const nssubstr
ingtuple&) - source parameters nssubstr
ingtuple& tuple operator= nsstr
ing& operator=(const nsstr
ing&) - source parameters nsstr
ing& str nsastr
ing_
internal& operator=(prunichar) - source parameters prunichar c nsastr
ing_
internal& operator=(const prunichar*) - source parameters prunichar* data nsastr
ing_
internal& operator=(const nsastr
ing_
internal&) - source parameters nsastr
ing_
internal& str nsastr
ing_
internal& operator=(const nssubstr
ingtuple&) - source parameters nssubstr
ingtuple& tuple get prunichar* get() const - source returns the null-term
inated str
ing f
ind pr
int32 f
ind(...
...And 39 more matches
nsXPIDLCString
class declaration nstxpidlstr
ing extends nststr
ing 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 str
ing" parameters
in xpidl.
... names: nsxpidlstr
ing for wide characters nsxpidlcstr
ing for narrow characters method overview constructors operator const char* operator[] operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset compare equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercase...
...equalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(char 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 nscstr
ing data members no public members.
...And 39 more matches
nsICachingChannel
netwerk/base/public/nsicach
ingchannel.idlscriptable please add a summary to this article.
...
inherits from: nsicache
infochannel last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this
interface provides: support for "stream as file" semantics (for jar and plug
ins).
... support for "p
inn
ing" cached data
in the cache (for pr
int
ing and save-as).
...And 39 more matches
nsINavHistoryObserver
toolkit/components/places/ns
inavhistoryservice.idlscriptable this
interface is similar to the nsirdfobserver class, but is used to observe
interactions on the global history.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 21.0 (firefox 21.0 / thunderbird 21.0 / seamonkey 2.18) warn
ing: if you are
in the middle of a batch transaction, there may be a database transaction active.
... you can still access the database
in this situation but be careful (of what?).
...And 39 more matches
Intensive JavaScript - Firefox Developer Tools
by default the browser uses a s
ingle thread to run all the javascript
in your page as well as to perform layout, reflows, and garbage collection.
... this means that long-runn
ing javascript functions can block the thread, lead
ing to an unresponsive page and a bad user experience.
... you can use the frame rate and waterfall tools to see when javascript is caus
ing performance problems, and to s
ingle out the particular functions that need attention.
...And 39 more matches
EffectTiming.fill - Web APIs
the web animations api's effecttim
ing dictionary's fill property specifies a fill mode, which def
ines how the element to which the animation is applied should look when the animation sequence is not actively runn
ing, such as before the time specified by iterationstart or after animation's end time.
... for example, sett
ing fill to "none" means the animation's effects are not applied to the element if the current time is outside the range of times dur
ing which the animation is runn
ing, while "forwards" ensures that once the animation's end time has been passed, the element will cont
inue to be drawn
in the state it was
in at its last rendered frame.
... note that authors are discouraged from us
ing fill modes to persist the effect of an animation
indef
initely.
...And 39 more matches
Using the Web Storage API - Web APIs
basic concepts storage objects are simple key-value stores, similar to objects, but they stay
intact through page loads.
... the keys and the values are always str
ings (note that, as with objects,
integer keys will be automatically converted to str
ings).
...these three l
ines all set the (same) colorsett
ing entry: localstorage.colorsett
ing = '#a4509b'; localstorage['colorsett
ing'] = '#a4509b'; localstorage.setitem('colorsett
ing', '#a4509b'); note: it's recommended to use the web storage api (setitem, getitem, removeitem, key, length) to prevent the pitfalls associated with us
ing pla
in objects as key-value stores.
...And 39 more matches
clamp() - CSS: Cascading Style Sheets
clamp() enables select
ing a middle value with
in a range of values between a def
ined m
inimum and maximum.
... it takes three parameters: a m
inimum value, a preferred value, and a maximum allowed value.
... the clamp() function can be used anywhere a <length>, <frequency>, <angle>, <time>, <percentage>, <number>, or <
integer> is allowed.
...And 39 more matches
cross-fade() - CSS: Cascading Style Sheets
the css cross-fade() function can be used to blend two or more images at a def
ined transparency.
... it can be used for many simple image manipulations, such as t
int
ing an image with a solid color or highlight
ing a particular area of the page by comb
ining an image with a radial gradient.
...the specification syntax is expla
ined first.
...And 39 more matches
<input type="color"> - HTML: Hypertext Markup Language
<
input> elements of type color provide a user
interface element that lets a user specify a color, either by us
ing a visual color picker
interface or by enter
ing the color
into a text field
in #rrggbb hexadecimal format.
... the element's presentation may vary substantially from one browser and/or platform to another—it might be a simple textual
input that automatically validates to ensure that the color
information is entered
in the proper format, or a platform-standard color picker, or some k
ind of custom color picker w
indow.
... the source for this
interactive example is stored
in a github repository.
...And 39 more matches
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
previous overview: progressive next hav
ing the ability to cache the contents of an app to work offl
ine is a great feature.
... allow
ing the user to
install the web app on their home screen is even better.
... but
instead of rely
ing only on user actions, we can do more, us
ing push messages and notifications to automatically re-engage and deliver new content whenever it is available.
...And 39 more matches
Appendix F: Monitoring DOM changes - Archive of obsolete content
dom mutation events were
introduced to html several years ago
in order to allow web applications to monitor changes to the dom by other scripts.
... unfortunately, add
ing listeners for any of these events to a document has a highly deleterious effect on performance, an effect which is not mitigated
in the slightest by later remov
ing those listeners.
... for this reason, it is best to avoid us
ing mutation listeners at all costs, especially from extensions.
...And 38 more matches
Creating a Microsummary - Archive of obsolete content
warn
ing: microsummary support was removed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) a microsummary generator is a set of
instructions for creat
ing a microsummary from the content of a page.
... web pages can reference generators via <l
ink rel="microsummary"> elements
in their <head> elements.
... generators can also be
independently downloaded and
installed by users if they
include a list of pages to which they apply.
...And 38 more matches
Template Builder Interface - Archive of obsolete content
« previousnext » when
insert
ing an element
into a xul document, the element is checked to see if it has a datasources attribute.
...both types of builders implement the nsixultemplatebuilder
interface, while the tree builder also implements the nsixultreebuilder
interface.
...the processes of creat
ing a builder for an element applies both when an element is created when the w
indow is loaded and when an element is
inserted dynamically.
...And 38 more matches
Properly configuring server MIME types - Learn web development
this article may conta
in out of date
information, as it has not been significantly updated
in many years.
... background by default, many web servers are configured to report a mime type of text/pla
in or application/octet-stream for unknown content types.
... as new content types are
invented or added to web servers, web adm
inistrators may fail to add the new mime types to their web server's configuration.
...And 38 more matches
Listening to events on all tabs
firefox 3.5 adds support for listen
ing to progress events on all tabs.
... add
ing a listener to listen to progress events on all tabs, call the browser's addtabsprogresslistener() method: gbrowser.addtabsprogresslistener(myprogresslistener); myprogresslistener is an object that implements the callbacks used to provide notifications of progress events.
... remov
ing a listener to remove a previously
installed progress listener, call removetabsprogresslistener(): gbrowser.removetabsprogresslistener(myprogresslistener); implement
ing a listener the listener object itself has five methods it can implement to handle various events: onlocationchange called when the uri of the document displayed
in the tab changes.
...And 38 more matches
Profiling with Xperf
xperf is part of the microsoft w
indows performance toolkit, and has functionality similar to that of shark, oprofile, and (for some th
ings) dtrace/
instruments.
... for stack walk
ing, w
indows vista or higher is required; i haven't tested it at all on xp.
...to see your xperf version, either run 'xperf' on a command l
ine with no arguments, or start 'xperfview' and look at help -> about performance analyzer.
...And 38 more matches
PromiseFlatString (External)
class declaration method overview get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind ...
... f
indchar rf
indchar append
int to
integer base classes nsstr
ingconta
iner data members no public members.
... methods get prunichar* get() const - source operator= nsstr
ing_external& operator=(const nsstr
ing_external&) - source parameters nsstr
ing_external& astr
ing nsastr
ing& operator=(const nsastr
ing&) - source parameters nsastr
ing& astr
ing nsastr
ing& operator=(const prunichar*) - source parameters prunichar* aptr nsastr
ing& operator=(prunichar) - source parameters prunichar achar adopt void adopt(const prunichar*, pru
int32) - source parameters prunichar* adata pru
int32 alength beg
inread
ing pru
int32 beg
inread
ing(const prunichar**, const prunichar**) co...
...And 38 more matches
nsAutoString (External)
class declaration method overview get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind ...
... f
indchar rf
indchar append
int to
integer base classes nsstr
ingconta
iner data members no public members.
... methods get prunichar* get() const - source operator= nsstr
ing_external& operator=(const nsstr
ing_external&) - source parameters nsstr
ing_external& astr
ing nsastr
ing& operator=(const nsastr
ing&) - source parameters nsastr
ing& astr
ing nsastr
ing& operator=(const prunichar*) - source parameters prunichar* aptr nsastr
ing& operator=(prunichar) - source parameters prunichar achar adopt void adopt(const prunichar*, pru
int32) - source parameters prunichar* adata pru
int32 alength beg
inread
ing pru
int32 beg
inread
ing(const prunichar**, const prunichar**) co...
...And 38 more matches
nsDependentString external
class declaration dependent str
ings method overview constructors reb
ind get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 lowe...
...rcaseequalsliteral f
ind rf
ind f
indchar rf
indchar append
int to
integer base classes nsstr
ing_external data members no public members.
... methods constructors void nsdependentstr
ing_external() - source void nsdependentstr
ing_external(const prunichar*, pru
int32) - source parameters prunichar* adata pru
int32 alength reb
ind void reb
ind(const prunichar*, pru
int32) - source parameters prunichar* adata pru
int32 alength get prunichar* get() const - source operator= nsstr
ing_external& operator=(const nsstr
ing_external&) - source parameters nsstr
ing_external& astr
ing nsastr
ing& operator=(const nsastr
ing&) - source parameters nsastr
ing& astr
ing nsastr
ing& operator=(const prunichar*) - source pa...
...And 38 more matches
nsDependentSubstring external
class declaration substr
ings method overview constructors reb
ind beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing setlength length isempty setisvoid isvoid assign assignliteral operator= replace append appendliteral operator+=
insert cut truncate stripchars stripwhitespace trim defaultcomparator compare(const prunichar*, pr
int32 (*) compare(const nsastr
ing&, pr
int32 (*) equals(const prunichar*, pr
int32 (*) equals(const nsastr
ing&, pr
int32 (*) operator< operator...
...<= operator== operator>= operator> operator!= equalsliteral lowercaseequalsliteral f
ind(const nsastr
ing&, pr
int32 (*) f
ind(const nsastr
ing&, pru
int32, pr
int32 (*) f
ind rf
ind(const nsastr
ing&, pr
int32 (*) rf
ind(const nsastr
ing&, pr
int32, pr
int32 (*) rf
ind f
indchar rf
indchar append
int to
integer base classes nsstr
ingconta
iner data members no public members.
... methods constructors void nsdependentsubstr
ing_external() - source void nsdependentsubstr
ing_external(const prunichar*, pru
int32) - source parameters prunichar astart pru
int32 alength void nsdependentsubstr
ing_external(const nsastr
ing&, pru
int32) - source parameters nsastr
ing astr pru
int32 astartpos void nsdependentsubstr
ing_external(const nsastr
ing&, pru
int32, pru
int32) - source parameters nsastr
ing astr pru
int32 astartpos pru
int32 alength reb
ind void reb
ind(const prunichar*, pru
int32) - source parameters prunichar astart pru
int32 alength beg
inread
ing pru
int32 beg
inreadi...
...And 38 more matches
nsFixedCString
class declaration method overview constructors operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset compare equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat operator[] first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowercaseequalsliteral(const char lowercaseequalsliteral(...
...char 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 nscstr
ing data members no public members.
... methods constructors void nsfixedcstr
ing(char*, pru
int32) - source @param data fixed-size buffer to be used by the str
ing (the contents of this buffer may be modified by the str
ing) @param storagesize the size of the fixed buffer @param length (optional) the length of the str
ing already conta
ined
in the buffer parameters char* data pru
int32 storagesize void nsfixedcstr
ing(char*, pru
int32, pru
int32) - source parameters char* data pru
int32 storagesize pru
int32 length operator= nscstr
ing& operator=(const nscstr
ing&) - source parameters nscstr
ing& str nsacstr
ing_
internal& operator=(char) - source parameters char c nsacstr
ing_
internal& operator=(const char*) - source parameters char* data nsacstr
ing_
internal& operator=(const nsacstr
ing_
internal&) - source ...
...And 38 more matches
nsCAutoString (External)
class declaration method overview get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar rf
indchar ...
... append
int to
integer base classes nscstr
ingconta
iner data members no public members.
... methods get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing nsacstr
ing& operator=(const char*) - source parameters char* aptr nsacstr
ing& operator=(char) - source parameters char achar adopt void adopt(const char*, pru
int32) - source parameters char* adata pru
int32 alength beg
inread
ing pru
int32 beg
inread
ing(const char**, const char**) const - source returns the leng...
...And 35 more matches
nsCString external
class declaration method overview constructors get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar ...
... rf
indchar append
int to
integer base classes nscstr
ingconta
iner data members no public members.
... methods constructors void nscstr
ing_external() - source void nscstr
ing_external(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing void nscstr
ing_external(const nsacstr
ing&) - source parameters nsacstr
ing& areadable void nscstr
ing_external(const char*, pru
int32) - source parameters char* adata pru
int32 alength get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing...
...And 35 more matches
nsDependentCString external
class declaration method overview constructors reb
ind get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind ...
... f
indchar rf
indchar append
int to
integer base classes nscstr
ing_external data members no public members.
... methods constructors void nsdependentcstr
ing_external() - source void nsdependentcstr
ing_external(const char*, pru
int32) - source parameters char* adata pru
int32 alength reb
ind void reb
ind(const char*, pru
int32) - source parameters char* adata pru
int32 alength get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing nsacstr
ing& operator=(const char*) - source parameters ch...
...And 35 more matches
nsDependentCSubstring external
class declaration method overview constructors reb
ind beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar rfi...
...ndchar append
int to
integer base classes nscstr
ingconta
iner data members no public members.
... methods constructors void nsdependentcsubstr
ing_external() - source void nsdependentcsubstr
ing_external(const char*, pru
int32) - source parameters char* astart pru
int32 alength void nsdependentcsubstr
ing_external(const nsacstr
ing&, pru
int32) - source parameters nsacstr
ing& astr pru
int32 astartpos void nsdependentcsubstr
ing_external(const nsacstr
ing&, pru
int32, pru
int32) - source parameters nsacstr
ing& astr pru
int32 astartpos pru
int32 alength reb
ind void reb
ind(const char*, pru
int32) - source parameters char* astart pru
int32 alength beg
inread
ing pru
int32 beg
inread
ing(const...
...And 35 more matches
nsLiteralCString (External)
class declaration method overview reb
ind get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar ...
... rf
indchar append
int to
integer base classes nscstr
ing_external data members no public members.
... methods reb
ind void reb
ind(const char*, pru
int32) - source parameters char* adata pru
int32 alength get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing nsacstr
ing& operator=(const char*) - source parameters char* aptr nsacstr
ing& operator=(char) - source parameters char achar adopt void adopt(const char*, pru
int32) - source parameters char* adata pru
in...
...And 35 more matches
nsLiteralString (External)
class declaration method overview reb
ind get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar ...
... rf
indchar append
int to
integer base classes nscstr
ing_external data members no public members.
... methods reb
ind void reb
ind(const char*, pru
int32) - source parameters char* adata pru
int32 alength get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing nsacstr
ing& operator=(const char*) - source parameters char* aptr nsacstr
ing& operator=(char) - source parameters char achar adopt void adopt(const char*, pru
int32) - source parameters char* adata pru
in...
...And 35 more matches
AudioNode.channelInterpretation - Web APIs
the channel
interpretation property of the audionode
interface represents an enumerated value describ
ing the mean
ing of the channels.
... this
interpretation will def
ine how audio up-mix
ing and down-mix
ing will happen.
... when the number of channels doesn't match between an
input and an output, up- or down-mix
ing happens accord
ing the follow
ing rules.
...And 35 more matches
Constraint validation API - Web APIs
the constra
int validation api enables check
ing values that users have entered
into form controls, before submitt
ing the values to the server.
... concepts and usage certa
in html form controls, such as <
input>, <select> and <textarea>, can restrict the format of allowable values, us
ing attributes like required and pattern to set basic constra
ints.
... however, you may want to impose more complex constra
ints, or to provide clearer report
ing of validation failures than the defaults.
...And 35 more matches
TextEncoder.prototype.encodeInto() - Web APIs
the textencoder.prototype.encode
into() method takes a usvstr
ing to encode and a dest
ination u
int8array to put result
ing utf-8 encoded text
into, and returns a dictionary object
indicat
ing the progress of the encod
ing.
... this is potentially more performant than the older encode() method especially when the target buffer is a view
into a wasm heap.
... syntax b1 = encoder.encode
into(str
ing, u
int8array); parameters str
ing is a usvstr
ing conta
ining the text to encode.
...And 35 more matches
<blend-mode> - CSS: Cascading Style Sheets
it is used
in the background-blend-mode and mix-blend-mode properties.
... syntax the <blend-mode> data type is def
ined us
ing a keyword value chosen from the list below.
... values normal the f
inal color is the top color, regardless of what the bottom color is.
...And 35 more matches
clip-path - CSS: Cascading Style Sheets
the clip-path css property creates a clipp
ing region that sets what part of an element should be shown.
... parts that are
inside the region are shown, while those outside are hidden.
... the source for this
interactive example is stored
in a github repository.
...And 35 more matches
cursor - CSS: Cascading Style Sheets
the cursor css property sets the type of mouse cursor, if any, to show when the mouse po
inter is over an element.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 35 more matches
font-family - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
... values are separated by commas to
indicate that they are alternatives.
...And 35 more matches
Object initializer - JavaScript
objects can be
initialized us
ing new object(), object.create(), or us
ing the literal notation (
initializer notation).
... an object
initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, enclosed
in curly braces ({}).
... the source for this
interactive example is stored
in a github repository.
...And 35 more matches
How to make PWAs installable - Progressive web apps (PWAs)
previous overview: progressive next
in the last article, we read about how the example application, js13kpwa, works offl
ine thanks to its service worker, but we can go even further and allow users to
install the web app on mobile and desktop browers that support do
ing so.
... the
installed web app can then be launched by users just as if it were any native app.
... this article expla
ins how to achieve this us
ing the web app's manifest.
...And 35 more matches
Build instructions
these
instructions are outdated.
... use the build
ing nss page for more recent
information.
... gmake is gnu make, usually your l
inux-distro-regular "make" b
inary file, unless maybe it is a bsd make.
...And 24 more matches
JS_DefineProperty
syntax bool js_def
ineproperty(jscontext *cx, js::handleobject obj, const char *name, js::handlevalue value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineproperty(jscontext *cx, js::handleobject obj, const char *name, js::handleobject value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineproperty(jscontext *cx, js::handleobject obj, const char *name, js::handlestr
ing value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineproperty(jscontext *cx, js::handleobject obj, const char *name,
int32_t value, unsigned attrs...
..., jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineproperty(jscontext *cx, js::handleobject obj, const char *name, u
int32_t value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineproperty(jscontext *cx, js::handleobject obj, const char *name, double value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_t namelen, js::handlevalue value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_...
...t namelen, js::handleobject value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_t namelen, js::handlestr
ing value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_t namelen,
int32_t value, unsigned attrs, jsnative getter = nullptr, jsnative setter = nullptr); bool js_def
ineucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_t namelen, u
int32_t value, unsigned attrs, jsnative getter = nu...
...And 24 more matches
JS_EvaluateScriptForPrincipals
obsolete s
ince jsapi 30this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 24 more matches
Running Automated JavaScript Tests
sometimes jstests are called js reftests because of how they are run
in the browser.
...(some js reftests will be skipped when run
in the browser, as it lacks some shell-specific test
ing functionality.) runn
ing jstests runn
ing jstests on a js shell the jstests shell harness is js/src/tests/jstests.py.
... basic usage is: jstests.py path_to_js_shell or us
ing mach: ./mach jstests note that mach will generally f
ind the js shell itself; the --shell argument can be used to specify the location manually.
...And 24 more matches
nsIBinaryOutputStream
xpcom/io/nsib
inaryoutputstream.idlscriptable this
interface allows writ
ing of primitive data types (
integers, float
ing-po
int values, booleans, and so on.) to a stream
in a b
inary, untagged, fixed-endianness format.
... this might be used, for example, to implement network protocols or to produce architecture-neutral b
inary disk files, that is ones that can be read and written by both big-endian and little-endian platforms.
... output is written
in big-endian order (high-order byte first), as this is traditional network order.
...And 24 more matches
nsICompositionStringSynthesizer
dom/
interfaces/base/nsicompositionstr
ingsynthesizer.idlscriptable this
interface is a composition str
ing synthesizer
interface that synthesizes composition str
ing with arbitrary clauses and a caret 1.0 66
introduced gecko 26 obsolete gecko 38
inherits from: nsisupports last changed
in gecko 38.0 (firefox 38.0 / thunderbird 38.0 / seamonkey 2.35) this
interface is obsoleted
in gecko 38.
... you need to use nsitext
inputprocessor
instead of this.
... every
instance is associated with a dom w
indow at created by nsidomw
indowutils.createcompositionstr
ingsynthesizer().
...And 24 more matches
nsIDOMChromeWindow
dom/
interfaces/base/nsidomchromew
indow.idlscriptable this
interface is implemented on the w
indow object
in chrome.
...
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void beg
inw
indowmove(
in nsidomevent mousedownevent); void getattention(); void getattentionwithcyclecount(
in long acyclecount); void maximize(); void m
inimize(); void notifydefaultbuttonloaded(
in nsidomelement defaultbutton); void restore(); void setcursor(
in domstr
ing cursor); attributes attribute type description browserdomw
indow nsibrowserdomw
indow the related nsibrowserdomw
indow
instance which provides access to yet another layer of utility functions by chrome script.
... it will be null for domw
indows not correspond
ing to browsers.
...And 24 more matches
CSSStyleSheet.insertRule() - Web APIs
the cssstylesheet.
insertrule() method
inserts a new css rule
into the current style sheet, with some restrictions.
... note: although
insertrule() is exclusively a method of cssstylesheet, it actually
inserts the rule
into cssstylesheet.cssrules — its
internal cssrulelist.
... syntax stylesheet.
insertrule(rule [,
index]) parameters rule a domstr
ing conta
ining the rule to be
inserted.
...And 24 more matches
MediaStream Recording API - Web APIs
the mediastream record
ing api, sometimes simply referred to as the media record
ing api or the mediarecorder api, is closely affiliated with the media capture and streams api and the webrtc api.
... the mediastream record
ing api makes it possible to capture the data generated by a mediastream or htmlmediaelement object for analysis, process
ing, or sav
ing to disk.
... it's also surpris
ingly easy to work with.
...And 24 more matches
MediaTrackSupportedConstraints - Web APIs
the mediatracksupportedconstra
ints dictionary establishes the list of constra
inable properties recognized by the user agent or browser
in its implementation of the mediastreamtrack object.
... an object conform
ing to mediatracksupportedconstra
ints is returned by mediadevices.getsupportedconstra
ints().
... because of the way
interface def
initions
in webidl work, if a constra
int is requested but not supported, no error will occur.
...And 24 more matches
SVGStringList - Web APIs
svg str
ing list
interface the svgstr
inglist def
ines a list of domstr
ing objects.
... an svgstr
inglist object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
...
interface overview also implement none methods void clear() domstr
ing
initialize(
in domstr
ing newitem) domstr
ing getitem(
in unsigned long
index) domstr
ing
insertitembefore(
in domstr
ing newitem,
in unsigned long
index) domstr
ing replaceitem(
in domstr
ing newitem,
in unsigned long
index) domstr
ing removeitem(
in unsigned long
index) domstr
ing appenditem(
in domstr
ing 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.
...And 24 more matches
User Timing API - Web APIs
the user tim
ing
interface allows the developer to create application specific timestamps that are part of the browser's performance timel
ine.
... there are two types of user def
ined tim
ing event types: the "mark" event type and the "measure" event type.
... mark events are named by the application and can be set at any location
in an application.
...And 24 more matches
Window.openDialog() - Web APIs
w
indow.opendialog() is an extension to w
indow.open().
... it behaves the same, except that it can optionally take one or more parameters past w
indowfeatures, and w
indowfeatures itself is treated a little differently.
... the optional parameters, if present, are bundled up
in a javascript array object and added to the newly created w
indow as a property named w
indow.arguments.
...And 24 more matches
Window: popstate event - Web APIs
the popstate event of the w
indow
interface is fired when the active history entry changes while the user navigates the session history.
... it changes the current history entry to that of the last page the user visited or, if history.pushstate() has been used to add a history entry to the history stack, that history entry is used
instead.
... bubbles yes cancelable no
interface popstateevent event handler property onpopstate the history stack if the history entry be
ing activated was created by a call to history.pushstate() or was affected by a call to history.replacestate(), the popstate event's state property conta
ins a copy of the history entry's state object.
...And 24 more matches
align-self - CSS: Cascading Style Sheets
in grid, it aligns the item
inside the grid area.
...
in flexbox, it aligns the item on the cross axis.
... the source for this
interactive example is stored
in a github repository.
...And 24 more matches
CredentialsContainer.get() - Web APIs
the get() method of the credentialsconta
iner
interface returns a promise to a s
ingle credential
instance that matches the provided parameters.
... this method first collects all credentials
in the credentialsconta
iner that meet the necessary criteria (def
ined
in the options argument).
... from the result
ing set of credentials, it then selects the best one.
...And 19 more matches
DisplayMediaStreamConstraints.video - Web APIs
the displaymediastreamconstra
ints dictionary's video property is used to configure the video track
in the stream returned by getdisplaymedia().
... this value may simply be a boolean, where true specifies that a default selection of
input source be made (typically the entire display area of the device
in use, spann
ing every screen
in a multiple screen configuration).
... s
ince a video track must always be
included, a value of false results
in a typeerror exception be
ing thrown.
...And 19 more matches
Using FormData Objects - Web APIs
the formdata object lets you compile a set of key/value pairs to send us
ing xmlhttprequest.
... it is primarily
intended for use
in send
ing form data, but can be used
independently from forms
in order to transmit keyed data.
... the transmitted data is
in the same format that the form's submit() method would use to send the data if the form's encod
ing type were set to multipart/form-data.
...And 19 more matches
PerformanceEventTiming - Web APIs
the performanceeventtim
ing
interface of the event tim
ing api provides tim
ing
information for the event types listed below.
... auxclick before
input click compositionend compositionstart compositionupdate contextmenu dblclick dragend dragenter dragleave dragover dragstart drop
input keydown keypress keyup mousedown mouseenter mouseleave mouseout mouseover mouseup po
interover po
interenter po
interdown po
interup po
intercancel po
interout po
interleave gotpo
intercapture lostpo
intercapture touchstart touchend touchcancel properties performanceeventtim
ing.process
ingstart returns the time at which event dispatch started.
... performanceeventtim
ing.process
ingend returns the time at which the event dispatch ended.
...And 19 more matches
PerformanceNavigationTiming - Web APIs
the performancenavigationtim
ing
interface provides methods and properties to store and retrieve metrics regard
ing the browser's document navigation events.
... for example, this
interface can be used to determ
ine how much time it takes to load or unload a document.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/performanceentry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" 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-basel
ine="middle">performanceentry</text></a><polyl
ine po
ints="161,25 171,20 171,30 161,25" stroke="#d4dde4" fill="none"/><l
ine x1="171" y1="25" x2="201" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/w...
...And 19 more matches
WebGLRenderingContext.blendFuncSeparate() - Web APIs
the webglrender
ingcontext.blendfuncseparate() method of the webgl api def
ines which function is used for blend
ing pixel arithmetic for rgb and alpha components separately.
... syntax void gl.blendfuncseparate(srcrgb, dstrgb, srcalpha, dstalpha); parameters srcrgb a glenum specify
ing a multiplier for the red, green and blue (rgb) source blend
ing factors.
... dstrgb a glenum specify
ing a multiplier for the red, green and blue (rgb) dest
ination blend
ing factors.
...And 19 more matches
WebGLRenderingContext.compressedTexImage[23]D() - Web APIs
the webglrender
ingcontext.compressedteximage2d() and webgl2render
ingcontext.compressedteximage3d() methods of the webgl api specify a two- or three-dimensional texture image
in a compressed format.
... compressed image formats must be enabled by webgl extensions before us
ing these methods.
... syntax // webgl 1: void gl.compressedteximage2d(target, level,
internalformat, width, height, border, arraybufferview?
...And 19 more matches
WebGLRenderingContext.getTexParameter() - Web APIs
the webglrender
ingcontext.gettexparameter() method of the webgl api returns
information about the given texture.
... syntax any gl.gettexparameter(target, pname); parameters target a glenum specify
ing the b
ind
ing po
int (target).
... when us
ing a webgl 2 context, the follow
ing values are available additionally: gl.texture_3d: a three-dimensional texture.
...And 19 more matches
WebGLRenderingContext.texSubImage2D() - Web APIs
the webglrender
ingcontext.texsubimage2d() method of the webgl api specifies a sub-rectangle of the current texture.
...pixels); // webgl 2: void gl.texsubimage2d(target, level, xoffset, yoffset, format, type, gl
intptr offset); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, htmlcanvaselement source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, htmlimageelement source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, htmlvideoelement source); void gl.texsubimage2d(target, level, xoffset, yoffset, ...
...width, height, format, type, imagebitmap source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, imagedata source); void gl.texsubimage2d(target, level, xoffset, yoffset, width, height, format, type, arraybufferview srcdata, srcoffset); parameters target a glenum specify
ing the b
ind
ing po
int (target) of the active texture.
...And 19 more matches
Color masking - Web APIs
« previousnext » this webgl example modifies random colors by apply
ing color mask
ing to limit the range of displayed colors to specific shades.
... mask
ing random colors this example modifies the random color animation by apply
ing color mask
ing with colormask().
... you can th
ink of the color mask
ing operation as if look
ing at the colored canvas through some t
inted glass or color filter.
...And 19 more matches
Using the alert role - Accessibility
the alert role is most useful for
information that requires the user's immediate attention, for example: an
invalid value was entered
into a form field the user's log
in 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 spar
ingly and only
in situations where the user's immediate attention is required.
... possible effects on user agents and assistive technology when the alert role is added to an element, or such an element becomes visible, the user agent should do the follow
ing: expose the element as hav
ing an alert role
in the operat
ing system's accessibility api.
... fire an accessible alert event us
ing the operat
ing system's accessibility api if it supports it.
...And 19 more matches
::first-letter (:first-letter) - CSS: Cascading Style Sheets
the ::first-letter css pseudo-element applies styles to the first letter of the first l
ine of a block-level element, but only when not preceded by other content (such as images or
inl
ine tables).
... /* selects the first letter of a <p> */ p::first-letter { font-size: 130%; } the first letter of an element is not always trivial to identify: punctuation that precedes or immediately follows the first letter is
included
in the match.
... punctuation
includes any unicode character def
ined
in the open (ps), close (pe),
initial quote (pi), f
inal quote (pf), and other punctuation (po) classes.
...And 19 more matches
range - CSS: Cascading Style Sheets
when def
ining custom counter styles, the range descriptor lets the author specify a range of counter values over which the style is applied.
... syntax /* keyword value */ range: auto; /* range values */ range: 2 5; range:
inf
inite 10; range: 6
inf
inite; range:
inf
inite
inf
inite; /* multiple range values */ range: 2 5, 8 10; range:
inf
inite 6, 10
inf
inite; values auto the range depends on the counter system: for cyclic, numeric, and fixed systems, the range is negative
inf
inity to positive
inf
inity.
... for alphabetic and symbolic systems, the range is 1 to positive
inf
inity.
...And 19 more matches
background-repeat - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
... by default, the repeated images are clipped to the size of the element, but they can be scaled to fit (us
ing round) or evenly distributed from end to end (us
ing space).
...And 19 more matches
border-image-slice - CSS: Cascading Style Sheets
the border-image-slice css property divides the image specified by border-image-source
into regions.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 19 more matches
USBAlternateInterface - Web APIs
the usbalternate
interface
interface of the webusb api provides
information about a particular configuration of an
interface provided by the usb device.
... an
interface
includes one or more alternate sett
ings which can configure a set of endpo
ints based on the operat
ing mode of the device.
... constructor usbalternate
interface.usbalternate
interface creates a new usbalternate
interface object which will be populated with
information about the alternate
interface of the provided usb
interface with the given alternate sett
ing number.
...And 17 more matches
USBEndpoint - Web APIs
the usbendpo
int
interface of the webusb api provides
information about an endpo
int provided by the usb device.
... an endpo
int represents a unidirectional data stream
into or out of a device.
... constructor usbendpo
int.usbendpo
int creates a new usbendpo
int object which will be populated with
information about the endpo
int on the provided usbaltenate
interface with the given endpo
int number and transfer direction.
...And 17 more matches
WebGL2RenderingContext.texImage3D() - Web APIs
the webglrender
ingcontext.teximage3d() method of the webgl api specifies a three-dimensional texture image.
... syntax void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, gl
intptr offset); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, htmlcanvaselement source); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, htmlimageelement source); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, htmlvideoelement source); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, imagebitmap source); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, imagedata source); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, ty...
...srcdata); void gl.teximage3d(target, level,
internalformat, width, height, depth, border, format, type, arraybufferview srcdata, srcoffset); parameters target a glenum specify
ing the b
ind
ing po
int (target) of the active texture.
...And 17 more matches
WebGLRenderingContext.compressedTexSubImage2D() - Web APIs
the webglrender
ingcontext.compressedtexsubimage2d() method of the webgl api specifies a two-dimensional sub-rectangle for a texture image
in a compressed format.
... compressed image formats must be enabled by webgl extensions before us
ing this method or a webgl2render
ingcontext must be used.
...pixels); // additionally available
in webgl 2: void gl.compressedtexsubimage2d(target, level, xoffset, yoffset, width, height, format, imagesize, offset); void gl.compressedtexsubimage2d(target, level, xoffset, yoffset, width, height, format, arraybufferview srcdata, optional srcoffset, optional srclengthoverride); parameters target a glenum specify
ing the b
ind
ing po
int (target) of the active compressed texture.
...And 17 more matches
WebGLRenderingContext.getBufferParameter() - Web APIs
the webglrender
ingcontext.getbufferparameter() method of the webgl api returns
information about the buffer.
... syntax any gl.getbufferparameter(target, pname); parameters target a glenum specify
ing the target buffer object.
... possible values: gl.array_buffer: buffer conta
ining vertex attributes, such as vertex coord
inates, texture coord
inate data, or vertex color data.
...And 17 more matches
WebGLRenderingContext.getVertexAttrib() - Web APIs
the webglrender
ingcontext.getvertexattrib() method of the webgl api returns
information about a vertex attribute at a given position.
... syntax any gl.getvertexattrib(
index, pname); parameters
index a glu
int specify
ing the
index of the vertex attribute.
... pname a glenum specify
ing the
information to query.
...And 17 more matches
WebGLRenderingContext.pixelStorei() - Web APIs
the webglrender
ingcontext.pixelstorei() method of the webgl api specifies the pixel storage modes.
... syntax void gl.pixelstorei(pname, param); parameters pname a glenum specify
ing which parameter to set.
... param a gl
int specify
ing a value to set the pname parameter to.
...And 17 more matches
WebGLRenderingContext.texParameter[fi]() - Web APIs
the webglrender
ingcontext.texparameter[fi]() methods of the webgl api set texture parameters.
... syntax void gl.texparameterf(glenum target, glenum pname, glfloat param); void gl.texparameteri(glenum target, glenum pname, gl
int param); parameters target a glenum specify
ing the b
ind
ing po
int (target).
... when us
ing a webgl 2 context, the follow
ing values are available additionally: gl.texture_3d: a three-dimensional texture.
...And 17 more matches
Window.prompt() - Web APIs
the w
indow.prompt() displays a dialog with an optional message prompt
ing the user to
input some text.
... syntax result = w
indow.prompt(message, default); parameters message optional a str
ing of text to display to the user.
... can be omitted if there is noth
ing to show
in the prompt w
indow.
...And 17 more matches
XDomainRequest - Web APIs
xdoma
inrequest is an implementation of http access control (cors) that worked
in internet explorer 8 and 9.
... it was removed
in internet explorer 10
in favor of us
ing xmlhttprequest with proper cors; if you are target
ing
internet explorer 10 or later, or wish to support any other browser, you need to use standard http access control.
... this
interface can send both get and post requests.
...And 17 more matches
XRInputSource.targetRaySpace - Web APIs
the read-only xr
inputsource property targetrayspace returns an xrspace (typically an xrreferencespace) represent
ing the position and orientation of the target ray
in the virtual space.
... its native orig
in tracks the position of the orig
in po
int of the target ray, and its orientation
indicates the orientation of the controller device itself.
... these values,
interpreted
in the context of the
input source's targetraymode, can be used both to fully
interpret the device as an
input source.
...And 17 more matches
Basic form hints - Accessibility
when implement
ing forms us
ing traditional html form-related elements, it is important to provide labels for controls, and explicitly associate a label with its control.
...without a direct association between the control and its label, the screen reader has no way of know
ing which label is the correct one.
...note that each <
input> element has an id, and each <label> element has a for attribute,
indicat
ing the id of the associated <
input>.
...And 17 more matches
symbols - CSS: Cascading Style Sheets
values <symbol> represents a symbol used with
in the counter system.
... this must be one of the follow
ing data types: <str
ing> <image> (note: this value is "at risk" and may be removed from the specification.
... it is not yet implemented.) <custom-ident> description a symbol can be a str
ing, image, or identifier.
...And 17 more matches
src - CSS: Cascading Style Sheets
the src css descriptor of the @font-face rule specifies the resource conta
ining font data.
... syntax /* <url> values */ src: url(https://somewebsite.com/path/to/font.woff); /* absolute url */ src: url(path/to/font.woff); /* relative url */ src: url(path/to/font.woff) format("woff"); /* explicit format */ src: url('path/to/font.woff'); /* quoted url */ src: url(path/to/svgfont.svg#example); /* fragment identify
ing font */ /* <font-face-name> values */ src: local(font); /* unquoted name */ src: local(some font); /* name conta
ining space */ src: local("font"); /* quoted name */ /* multiple items */ src: local(font), url(path/to/font.svg) format("svg"), url(path/to/font.woff) format("woff"), url(path/to/font.otf) format("opentype"); values <url> [ format( <str
ing># ) ]?
... specifies an external reference consist
ing of a <url>, followed by an optional h
int us
ing the format() function to describe the format of the font resource referenced by that url.
...And 17 more matches
At-rules - CSS: Cascading Style Sheets
at-rules are css statements that
instructs css how to behave.
... they beg
in with an at sign, '@' (u+0040 commercial at), followed by an identifier and
includes everyth
ing up to the next semicolon, ';' (u+003b semicolon), or the next css block, whichever comes first.
... /* general structure */ @identifier (rule); /* example: tells browser to use utf-8 character set */ @charset "utf-8"; there are several at-rules, designated by their identifiers, each with a different syntax: @charset — def
ines the character set used by the style sheet.
...And 17 more matches
InputEvent - Web APIs
the
inputevent
interface represents an event notify
ing of editable content change.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/uievent" target="_t...
...op"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">uievent</text></a><polyl
ine po
ints="191,25 201,20 201,30 191,25" stroke="#d4dde4" fill="none"/><l
ine x1="201" y1="25" x2="231" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/
inputevent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">
inputevent</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: a...
...And 13 more matches
InstallTrigger - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the
installtrigger
interface is an
interest
ing outlier
in the apps api; it's
included
in this api but are
inherited from the old mozilla xp
install technology for
install
ing add-ons.
...And 13 more matches
IntersectionObserver - Web APIs
the
intersectionobserver
interface of the
intersection observer api provides a way to asynchronously observe changes
in the
intersection of a target element with an ancestor element or with a top-level document's viewport.
... when an
intersectionobserver is created, it's configured to watch for given ratios of visibility with
in the root.
... the configuration cannot be changed once the
intersectionobserver is created, so a given observer object is only useful for watch
ing for specific changes
in degree of visibility; however, you can watch multiple target elements with the same observer.
...And 13 more matches
NetworkInformation - Web APIs
the network
information
interface provides
information about the connection a device is us
ing to communicate with the network and provides a means for scripts to be notified if the connection type changes.
... the network
information
interfaces cannot be
instantiated.
... it is
instead accessed through the connection property of the navigator
interface.
...And 13 more matches
Node.nextSibling - Web APIs
the node.nextsibl
ing read-only property returns the node immediately follow
ing the specified one
in their parent's childnodes, or returns null if the specified node is the last child
in the parent element.
... syntax nextnode = node.nextsibl
ing notes gecko-based browsers
insert text nodes
into a document to represent whitespace
in the source markup.
... therefore a node obta
ined, for example, us
ing node.firstchild or node.previoussibl
ing may refer to a whitespace text node rather than the actual element the author
intended to get.
...And 13 more matches
Using the Performance API - Web APIs
a fundamental requirement of web performance is a precise and consistent def
inition of time.
... the domhighrestimestamp type (a double) is used by all performance
interfaces to hold such time values.
... additionally, there must be a way to create a timestamp for a specific po
int
in time; this is done with the now() method.
...And 13 more matches
PointerEvent.isPrimary - Web APIs
the isprimary read-only property of the po
interevent
interface
indicates whether or not the po
inter device that created the event is the primary po
inter.
... it returns true if the po
inter that caused the event to be fired is the primary device and returns false otherwise.
...
in a multi-po
inter scenario (such as a touch screen that supports more than one touch po
int), this property is used to identify a master po
inter among the set of active po
inters for each po
inter type.
...And 13 more matches
SVGTextPositioningElement - Web APIs
the svgtextposition
ingelement
interface is implemented by elements that support attributes that position
individual text glyphs.
... it is
inherited by svgtextelement, svgtspanelement, svgtrefelement and svgaltglyphelement.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 13 more matches
WebGL2RenderingContext.compressedTexSubImage3D() - Web APIs
the webgl2render
ingcontext.compressedtexsubimage3d() method of the webgl api specifies a three-dimensional sub-rectangle for a texture image
in a compressed format.
... // read from the buffer bound to gl.pixel_unpack_buffer void gl.compressedtexsubimage3d(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, offset); void gl.compressedtexsubimage3d(target, level, xoffset, yoffset, zoffset, width, height, depth, format, arraybufferview srcdata, optional srcoffset, optional srclengthoverride); parameters target a glenum specify
ing the b
ind
ing po
int (target) of the active texture.
... level a gl
int specify
ing the level of detail.
...And 13 more matches
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
the webglrender
ingcontext.framebufferrenderbuffer() method of the webgl api attaches a webglrenderbuffer object to a webglframebuffer object.
... syntax void gl.framebufferrenderbuffer(target, attachment, renderbuffertarget, renderbuffer); parameters target a glenum specify
ing the b
ind
ing po
int (target) for the framebuffer.
... when us
ing a webgl 2 context, the follow
ing values are available additionally: gl.draw_framebuffer: equivalent to gl.framebuffer.
...And 13 more matches
WebGLRenderingContext.readPixels() - Web APIs
the webglrender
ingcontext.readpixels() method of the webgl api reads a block of pixels from a specified rectangle of the current color framebuffer
into an arraybufferview object.
... syntax // webgl1: void gl.readpixels(x, y, width, height, format, type, pixels); // webgl2: void gl.readpixels(x, y, width, height, format, type, gl
intptr offset); void gl.readpixels(x, y, width, height, format, type, arraybufferview pixels, glu
int dstoffset); parameters x a gl
int specify
ing the first horizontal pixel that is read from the lower left corner of a rectangular block of pixels.
... y a gl
int specify
ing the first vertical pixel that is read from the lower left corner of a rectangular block of pixels.
...And 13 more matches
WebGLRenderingContext.stencilOp() - Web APIs
the webglrender
ingcontext.stencilop() method of the webgl api sets both the front and back-fac
ing stencil test actions.
... fail a glenum specify
ing the function to use when the stencil test fails.
... zfail a glenum specify
ing the function to use when the stencil test passes, but the depth test fails.
...And 13 more matches
Using WebGL extensions - Web APIs
a complete list of extensions is available
in the khronos webgl extension registry.
... note:
in webgl, unlike
in other gl apis, extensions are only available if explicitly requested.
... canonical extension names, vendor prefixes and preferences extensions may be supported by browser vendors before be
ing officially ratified (but only when they are
in draft stage).
...And 13 more matches
Introduction to WebRTC protocols - Web APIs
this article
introduces the protocols on top of which the webrtc api is built.
... ice
interactive connectivity establishment (ice) is a framework to allow your web browser to connect with peers.
...it needs to bypass firewalls that would prevent open
ing connections, give you a unique address if like most situations your device doesn’t have a public ip address, and relay data through a server if your router doesn’t allow you to directly connect with peers.
...And 13 more matches
window.requestIdleCallback() - Web APIs
the w
indow.requestidlecallback() method queues a function to be called dur
ing a browser's idle periods.
... this enables developers to perform background and low priority work on the ma
in event loop, without impact
ing latency-critical events such as animation and
input response.
... functions are generally called
in first-
in-first-out order; however, callbacks which have a timeout specified may be called out-of-order if necessary
in order to run them before the timeout elapses.
...And 13 more matches
Build instructions for JSS 4.3.x
build
instructions for jss 4.3.x newsgroup: mozilla.dev.tech.crypto before build
ing jss, you need to set up your system as follows: build nspr/nss by follow
ing the nspr/nss build
instructions, to check that nss built correctly, run all.sh (
in mozilla/security/nss/tests) and exam
ine the results (
in mozilla/test_results/security/computername.#/results.html.
...
install a java compiler and runtime.
... cvs co -r jss_4_3_1_rtm mozilla/security/jss or cvs co -r jss_4_3_rtm mozilla/security/jss setup environment variables needed for compil
ing java source.
...And 12 more matches
NSS Sample Code Sample_2_Initialization of NSS
nss sample code 2:
initializ
ing nss this example program demonstrates how to
initialize the nss database.
... this program illustrates password handl
ing.
... sample code 1 /* nspr headers */ #
include <prthread.h> #
include <plgetopt.h> #
include <prprf.h> /* nss headers */ #
include <nss.h> #
include <pk11func.h> #
include "util.h" /* pr
int a usage message and exit */ static void usage(const char *progname) { fpr
intf(stderr, "\nusage: %s -d <dbdirpath> [-p <pla
inpasswc>]" " [-f <passwdffile>]\n\n", progname); fpr
intf(stderr, "%-15s specify a db directory path\n\n", "-d <dbdirpath>"); fpr
intf(stderr, "%-15s specify a pla
intext password\n\n", "-p <pla
inpasswc>"); fpr
intf(stderr, "%-15s specify a password file\n\n", "-f <pla
inpasswc>"); exit(-1); } /*
initialize the slot password */ char *
initslotpassword(pk11slot
info *slot, prbool retry, void *arg)...
...And 12 more matches
Initialize NSS database - sample 2
nss sample code 2:
initialize the nss database.
... the nss sample code below demonstrates how to
initialize the nss database.
... /* * pr
int a usage message and exit */ static void usage(const char *progname) { fpr
intf(stderr, "\nusage: %s -d [-p ]" " [-f ]\n\n", progname); fpr
intf(stderr, "%-15s specify a db directory path\n\n", "-d "); fpr
intf(stderr, "%-15s specify a pla
intext password\n\n", "-p "); fpr
intf(stderr, "%-15s specify a password file\n\n", "-f "); exit(-1); } /* *
initslotpassword */ char *
initslotpassword(pk11slot
info *slot, prbool retry, void *arg) { file *
input; file *output; char *p0 = null; char *p1 = null; secupwdata *pwdata = (secupwdata *) arg; if (pwdata->source == pw_fromfile) { return filepasswd(slot, retry, ...
...And 12 more matches
FC_InitToken
name fc_
inittoken() -
initialize or re-
initialize a token.
... syntax ck_rv fc_
inittoken( ck_slot_id slotid, ck_char_ptr pp
in, ck_ulong ulp
inlen, ck_char_ptr plabel ); parameters fc_
inittoken() has the follow
ing parameters: slotid the id of the token's slot pp
in the password of the security officer (so) ulp
inlen the length
in bytes of the so password plabel po
ints to the label of the token, which must be padded with spaces to 32 bytes and not be null-term
inated description fc_
inittoken()
initializes a brand new token or re-
initializes a token that was
initialized before.
... specifically, fc_
inittoken()
initializes or clears the key database, removes the password, and then marks all the user certs
in the certificate database as non-user certs.
...And 12 more matches
NSC_InitToken
name nsc_
inittoken() -
initialize or re-
initialize a token.
... syntax ck_rv nsc_
inittoken( ck_slot_id slotid, ck_char_ptr pp
in, ck_ulong ulp
inlen, ck_char_ptr plabel ); parameters nsc_
inittoken() has the follow
ing parameters: slotid the id of the token's slot pp
in the password of the security officer (so) ulp
inlen the length
in bytes of the so password plabel po
ints to the label of the token, which must be padded with spaces to 32 bytes and not be null-term
inated description nsc_
inittoken()
initializes a brand new token or re-
initializes a token that was
initialized before.
... specifically, nsc_
inittoken()
initializes or clears the key database, removes the password, and then marks all the user certs
in the certificate database as non-user certs.
...And 12 more matches
NSC_Login
name nsc_log
in() - log a user
into a token.
... syntax ck_rv nsc_log
in( ck_session_handle hsession, ck_user_type usertype, ck_char_ptr pp
in, ck_ulong ulp
inlen ); parameters nsc_log
in() takes four parameters: hsession [
in] a session handle usertype [
in] the user type (cku_so or cku_user) pp
in [
in] a po
inter that po
ints to the user's p
in ulp
inlen [
in] the length of the p
in description nsc_log
in() logs a user
into a token.
... the security officer (cku_so) only logs
in to
initialize the normal user's p
in.
...And 12 more matches
NSS tools : vfychain
name vfycha
in — vfycha
in [options] [revocation options] certfile [[options] certfile] ...
... synopsis vfycha
in description the verification tool, vfycha
in, verifies certificate cha
ins.
...the tasks associated with security module database management are part of a process that typically also
involves manag
ing key databases and certificate databases.
...And 12 more matches
NSS tools : vfychain
name vfycha
in — vfycha
in [options] [revocation options] certfile [[options] certfile] ...
... synopsis vfycha
in description the verification tool, vfycha
in, verifies certificate cha
ins.
... the tasks associated with security module database management are part of a process that typically also
involves manag
ing key databases and certificate databases.
...And 12 more matches
Renaming With Pork
most refactor
ing toolcha
ins are ui-based.
... typically they require load
ing the entire project
into an ide.
...these notes are based on tools pork refactor
ing toolcha
in [required].
...And 12 more matches
JS_DefineFunction
syntax jsfunction * js_def
inefunction(jscontext *cx, js::handle<jsobject*> obj, const char *name, jsnative call, unsigned nargs, unsigned attrs); jsfunction * js_def
ineucfunction(jscontext *cx, js::handle<jsobject*> obj, const char16_t *name, size_t namelen, jsnative call, unsigned nargs, unsigned attrs); jsfunction * js_def
inefunctionbyid(jscontext *cx, js::handle<jsobject*> obj, js::handle<jsid> id, jsnative call, unsigned nargs, unsigned attrs); // added
in spidermonkey 17 name type description cx jscontext * the context
in which to def
ine the fun...
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... obj js::handle<jsobject*> object for which to def
ine a function as a property (method).
...And 12 more matches
JS_DefineProperties
def
ine multiple properties for a s
ingle object.
... syntax bool js_def
ineproperties(jscontext *cx, js::handleobject obj, const jspropertyspec *ps); name type description cx jscontext * the context
in which to def
ine the properties.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 12 more matches
JS_MakeStringImmutable
obsolete s
ince javascript 1.8.5this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 12 more matches
JS_TracerInit
obsolete s
ince jsapi 31this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 12 more matches
Using the Places favicon service
the favicon service, implemented by the nsifaviconservice
interface, stores the favicons for pages
in bookmarks and history.
... creat
ing the favicon service the favicon service's contract id is @mozilla.org/browser/favicon-service;1, so to ga
in access to the favicon service, you should do someth
ing like this: var faviconservice = components.classes["@mozilla.org/browser/favicon-service;1"] .getservice(components.
interfaces.nsifaviconservice); cach
ing the favicon service stores an expiration time for each favicon.
... this time is used by nsifaviconservice.setandloadfaviconforpage() to determ
ine if the data is fresh or needs reload
ing from the server.
...And 12 more matches
nsIStructuredCloneContainer
dom/
interfaces/base/nsistructuredcloneconta
iner.idlscriptable this
interface acts as a conta
iner for an object serialized us
ing the structured clone algorithm.
... 1.0 66
introduced gecko 6.0
inherits from: nsisupports last changed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) you can copy an object
into an nsistructuredcloneconta
iner us
ing
initfromvariant() or
initfrombase64().
... it is an error to
initialize an nsistructuredcloneconta
iner more than once.
...And 12 more matches
IDBIndex.unique - Web APIs
the unique read-only property returns a boolean that states whether the
index allows duplicate keys.
... this is decided when the
index is created, us
ing the idbobjectstore.create
index method.
... this method takes an optional parameter, unique, which if set to true means that the
index will not be able to accept duplicate entries.
...And 12 more matches
IDBObjectStore.deleteIndex() - Web APIs
the delete
index() method of the idbobjectstore
interface destroys the
index with the specified name
in the connected database, used dur
ing a version upgrade.
...note that this method synchronously modifies the idbobjectstore.
indexnames property.
... note: this feature is available
in web workers.
...And 12 more matches
MediaStreamConstraints.audio - Web APIs
the mediastreamconstra
ints dictionary's audio property is used to
indicate what k
ind of audio track, if any, should be
included
in the mediastream returned by a call to getusermedia().
... to learn more about how constra
ints work, see capabilities, constra
ints, and sett
ings.
... syntax var audioconstra
ints = true | false | mediatrackconstra
ints; value the value of the audio property can be specified as either of two types: boolean if a boolean value is specified, it simply
indicates whether or not an audio track should be
included
in the returned stream; if it's true, an audio track is
included; if no audio source is available or if permission is not given to use the audio source, the call to getusermedia() will fail.
...And 12 more matches
MediaTrackConstraints.cursor - Web APIs
the mediatrackconstra
ints dictionary's cursor property is a constra
indomstr
ing describ
ing the requested or mandatory constra
ints placed upon the value of the cursor constra
inable property, which is used to specify whether or not the cursor should be
included
in the captured video.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.cursor as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 12 more matches
Navigator.onLine - Web APIs
returns the onl
ine status of the browser.
... the property returns a boolean value, with true mean
ing onl
ine and false mean
ing offl
ine.
...the update occurs when the user follows l
inks or when a script requests a remote page.
...And 12 more matches
PaintWorklet - Web APIs
the pa
intworklet
interface of the css pa
int
ing api programmatically generates an image where a css property expects a file.
... access this
interface through css.pa
intworklet.
... properties pa
intworklet.devicepixelratio returns the current device's ratio of physical pixels to logical pixels.
...And 12 more matches
PannerNode.coneInnerAngle - Web APIs
the cone
innerangle property of the pannernode
interface is a double value describ
ing the angle,
in degrees, of a cone
inside of which there will be no volume reduction.
... the cone
innerangle property's default value is 360, suitable for a non-directional source.
... syntax var audioctx = new audiocontext(); var panner = audioctx.createpanner(); panner.cone
innerangle = 360; value a double.
...And 12 more matches
SVGFESpecularLightingElement - Web APIs
the svgfespecularlight
ingelement
interface corresponds to the <fespecularlight
ing> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 12 more matches
SVGLineElement - Web APIs
the svgl
ineelement
interface provides access to the properties of <l
ine> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 12 more matches
VideoTrack.kind - Web APIs
the k
ind property conta
ins a str
ing
indicat
ing the category of video conta
ined
in the videotrack.
... the k
ind can be used to determ
ine the scenarios
in which specific tracks should be enabled or disabled.
... see video track k
ind str
ings for a list of the k
inds available for video tracks.
...And 12 more matches
WebGL2RenderingContext.getActiveUniforms() - Web APIs
the webgl2render
ingcontext.getactiveuniforms() method of the webgl 2 api retrieves
information about active uniforms with
in a webglprogram.
... syntax any gl.getactiveuniforms(program, uniform
indices, pname); parameters program a webglprogram conta
ining the active uniforms.
... uniform
indices an array of glu
int specify
ing the
indices of the active uniforms to query.
...And 12 more matches
WebGLRenderingContext.drawElements() - Web APIs
the webglrender
ingcontext.drawelements() method of the webgl api renders primitives from array data.
... syntax void gl.drawelements(mode, count, type, offset); parameters mode a glenum specify
ing the type primitive to render.
... possible values are: gl.po
ints: draws a s
ingle dot.
...And 12 more matches
Window: beforeunload event - Web APIs
the beforeunload event is fired when the w
indow, the document and its resources are about to be unloaded.
... the document is still visible and the event is still cancelable at this po
int.
... bubbles no cancelable yes
interface event event handler property onbeforeunload this event enables a web page to trigger a confirmation dialog ask
ing the user if they really want to leave the page.
...And 12 more matches
window.dump() - Web APIs
w
indow.dump() pr
ints messages to the (native) console.
... syntax w
indow.dump(message); dump(message); parameters message is the str
ing message to log.
...output can be sent to the browser console us
ing console.log().
...And 12 more matches
Window.scrollY - Web APIs
the read-only scrolly property of the w
indow
interface returns the number of pixels that the document is currently scrolled vertically.
... this value is subpixel precise
in modern browsers, mean
ing that it isn't necessarily a whole number.
... syntax var y = w
indow.scrolly value
in practice, the returned value is a double-precision float
ing-po
int value
indicat
ing the number of pixels the document is currently scrolled vertically from the orig
in, where a positive value means the content is scrolled to upward.
...And 12 more matches
WindowOrWorkerGlobalScope.queueMicrotask() - Web APIs
the queuemicrotask() method, which is exposed on the w
indow or worker
interface, queues a microtask to be executed at a safe time prior to control return
ing to the browser's event loop.
... the microtask is a short function which will run after the current task has completed its work and when there is no other code wait
ing to be run before control of the execution context is returned to the browser's event loop.
... this lets your code run without
interfer
ing with any other, potentially higher priority, code that is pend
ing, but before the browser rega
ins control over the execution context, potentially depend
ing on work you need to complete.
...And 12 more matches
XRInputSource.handedness - Web APIs
the read-only xr
inputsource property handedness
indicates which of the user's hands the webxr
input source is associated with, or if it's not associated with a hand at all.
... syntax let hand = xr
inputsource.handedness; value a domstr
ing
indicat
ing whether the
input controller is held
in one of the user's hands, and if it is, which hand.
... the value, which comes from the xrhandedness enumerated type, is one of the follow
ing: none the
input controller is not associated with one of the user's hands.
...And 12 more matches
XRInputSourceArray - Web APIs
the
interface xr
inputsourcearray represents a live list of webxr
input sources, and is used as the return value of the xrsession property
inputsources.
... each entry is an xr
inputsource represent
ing one
input device connected to the webxr system.
...
in addition to be
ing able to access the
input sources
in the list us
ing 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 12 more matches
:focus - CSS: Cascading Style Sheets
the :focus css pseudo-class represents an element (such as a form
input) that has received focus.
... /* selects any <
input> when focused */
input:focus { color: red; } note: this pseudo-class applies only to the focused element itself.
... use :focus-with
in if you want to select an element that conta
ins a focused element.
...And 12 more matches
@charset - CSS: Cascading Style Sheets
the @charset css at-rule specifies the character encod
ing used
in the style sheet.
... it must be the first element
in the style sheet and not be preceded by any character; as it is not a nested statement, it cannot be used
inside conditional group at-rules.
... if several @charset at-rules are def
ined, only 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.
...And 12 more matches
negative - CSS: Cascading Style Sheets
when def
ining custom counter styles, the negative descriptor lets you alter the representations of negative counter values, by provid
ing a way to specify symbols to be appended or prepended to the counter representation when the value is negative.
... formal def
inition related at-rule@counter-style
initial value"-" hyphen-m
inuscomputed valueas specified formal syntax <symbol> <symbol>?where <symbol> = <str
ing> | <image> | <custom-ident>where <image> = <url> | <image()> | <image-set()> | <element()> | <pa
int()> | <cross-fade()> | <gradient>where <image()> = image( <image-tags>?
...)<image-set()> = image-set( <image-set-option># )<element()> = element( <id-selector> )<pa
int()> = pa
int( <ident>, <declaration-value>?
...And 12 more matches
CSS Flexible Box Layout - CSS: Cascading Style Sheets
css flexible box layout is a module of css that def
ines a css box model optimized for user
interface design, and the layout of items
in one dimension.
...
in the flex layout model, the children of a flex conta
iner can be laid out
in any direction, and can “flex” their sizes, either grow
ing to fill unused space or shr
ink
ing to avoid overflow
ing the parent.
... basic example
in the follow
ing example a conta
iner has been set to display: flex, which means that the three child items become flex items.
...And 12 more matches
background-attachment - CSS: Cascading Style Sheets
the background-attachment css property sets whether a background image's position is fixed with
in the viewport, or scrolls with its conta
ining block.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 12 more matches
background-clip - CSS: Cascading Style Sheets
the background-clip css property sets whether an element's background extends underneath its border box, padd
ing box, or content box.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 12 more matches
background-color - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax /* keyword values */ background-color: red; background-color:
indigo; /* hexadecimal value */ background-color: #bbff00; /* fully opaque */ background-color: #bf0; /* fully opaque shorthand */ background-color: #11ffee00; /* fully transparent */ background-color: #1fe0; /* fully transparent shorthand */ background-color: #11ffeeff; /* fully opaque */ background-color: #1fef; /* fully opaque shorthand */ /* rgb value */ background-color: rgb(255, 255, 128); /* fully opaque */ background-color: rgba(117, 190, 218, 0.5); /* 50% transparent */ /* hsl value */ background-color: hsl(50, 33%, 25%); /* fully opaque */ background-color: hsla(50, 33%, 25%, 0.75); /* 75% transparent */ /* special keyword values */ background-color: currentcolor; bac...
...And 12 more matches
caret-color - CSS: Cascading Style Sheets
the caret-color css property sets the color of the
insertion caret, the visible marker where the next character typed will be
inserted.
... this is sometimes referred to as the text
input cursor.
... the caret appears
in elements such as <
input> or those with the contenteditable attribute.
...And 12 more matches
env() - CSS: Cascading Style Sheets
the env() css function can be used to
insert the value of a user agent-def
ined environment variable
into your css,
in a similar fashion to the var() function and custom properties.
... the difference is that, as well as be
ing user-agent def
ined rather than user-def
ined, environment variables are globally scoped to a document, whereas custom properties are scoped to the element(s) on which they are declared.
... to tell the browser to use the whole available space on the screen, and so enabl
ing us to use the env() variables, we need to add a new viewport meta value: <meta name="viewport" content="viewport-fit=cover" /> body { padd
ing: env(safe-area-
inset-top, 20px) env(safe-area-
inset-right, 20px) env(safe-area-
inset-bottom, 20px) env(safe-area-
inset-left, 20px); }
in addition, unlike custom properties, which cannot be used outside of declarations, the env() function can be used
in place of any part of a property value, or any part of a descriptor (e.g.
...And 12 more matches
font-variant-alternates - CSS: Cascading Style Sheets
these alternate glyphs may be referenced by alternative names def
ined
in @font-feature-values.
... /* keyword values */ font-variant-alternates: normal; font-variant-alternates: historical-forms; /* functional notation values */ font-variant-alternates: stylistic(user-def
ined-ident); font-variant-alternates: styleset(user-def
ined-ident); font-variant-alternates: character-variant(user-def
ined-ident); font-variant-alternates: swash(user-def
ined-ident); font-variant-alternates: ornaments(user-def
ined-ident); font-variant-alternates: annotation(user-def
ined-ident); font-variant-alternates: swash(ident1) annotation(ident2); /* global values */ font-variant-alternates:
initial; font-variant-alternates:
inherit; font-variant-alternates: unset; the @font-feature-values at-rule can def
ine names for alternative glyph functions (stylistic, styleset, character-variant, swash, ornament or annot...
...ation), associat
ing the name with opentype parameters.
...And 12 more matches
list-style-position - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
...by default this
includes <li> elements.
...And 12 more matches
mask-image - CSS: Cascading Style Sheets
/* keyword value */ mask-image: none; /* <mask-source> value */ mask-image: url(masks.svg#mask1); /* <image> values */ mask-image: l
inear-gradient(rgba(0, 0, 0, 1.0), transparent); mask-image: image(url(mask.png), skyblue); /* multiple values */ mask-image: image(url(mask.png), skyblue), l
inear-gradient(rgba(0, 0, 0, 1.0), transparent); /* global values */ mask-image:
inherit; mask-image:
initial; mask-image: unset; syntax values none this keyword is
interpreted as a transparent black image layer.
... formal def
inition
initial valuenoneapplies toall elements;
in svg, it applies to conta
iner elements exclud
ing the defs element and all graphics elements
inheritednocomputed valueas specified, but with <url> values made absoluteanimation typediscrete formal syntax <mask-reference>#where <mask-reference> = none | <image> | <mask-source>where <image> = <url> | <image()> | <image-set()> | <element()> | <pa
int()> | <cross-fade()> | <gradient><mask-source> = <url>where <image()> = image( <image-tags>?
...)<image-set()> = image-set( <image-set-option># )<element()> = element( <id-selector> )<pa
int()> = pa
int( <ident>, <declaration-value>?
...And 12 more matches
IntersectionObserverEntry - Web APIs
the
intersectionobserverentry
interface of the
intersection observer api describes the
intersection between the target element and its root conta
iner at a specific moment of transition.
...
instances of
intersectionobserverentry are delivered to an
intersectionobserver callback
in its entries parameter; otherwise, these objects can only be obta
ined by call
ing
intersectionobserver.takerecords().
... properties
intersectionobserverentry.bound
ingclientrect read only returns the bounds rectangle of the target element as a domrectreadonly.
...And 11 more matches
MSCandidateWindowShow - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... mscandidatew
indowshow fires immediately after the
input method editor (ime) candidate w
indow is set to appear, but before it renders.
...And 11 more matches
MediaDeviceInfo.groupId - Web APIs
the groupid readonly property of the mediadevice
info
interface returns a domstr
ing that is a group identifier.
... two devices have the same group identifier if they belong to the same physical device; for example, a monitor with both a built-
in camera and microphone.
... syntax var groupid = mediadevice
info.groupid; value a domstr
ing which uniquely identifies the group of related devices to which this device belongs.
...And 11 more matches
MediaStreamConstraints.video - Web APIs
the mediastreamconstra
ints dictionary's video property is used to
indicate what k
ind of video track, if any, should be
included
in the mediastream returned by a call to getusermedia().
... to learn more about how constra
ints work, see capabilities, constra
ints, and sett
ings.
... syntax var videoconstra
ints = true | false | mediatrackconstra
ints; value the value of the video property can be specified as either of two types: boolean if a boolean value is specified, it simply
indicates whether or not a video track should be
included
in the returned stream; if it's true, a video track is
included; if no video source is available or if permission is not given to use the video source, the call to getusermedia() will fail.
...And 11 more matches
MediaStreamTrack.getConstraints() - Web APIs
the getconstra
ints() method of the mediastreamtrack
interface returns a mediatrackconstra
ints object conta
ining the set of constra
ints most recently established for the track us
ing a prior call to applyconstra
ints().
... these constra
ints
indicate values and ranges of values that the web site or application has specified are required or acceptable for the
included constra
inable properties.
... constra
ints can be used to ensure that the media meets certa
in guidel
ines you prefer.
...And 11 more matches
MediaTrackConstraints.displaySurface - Web APIs
the mediatrackconstra
ints dictionary's displaysurface property is a constra
indomstr
ing describ
ing the requested or mandatory constra
ints placed upon the value of the displaysurface constra
inable property.
... this is used to specify the type or types of display surfaces which getdisplaymedia() will let the user select among for shar
ing purposes.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.displaysurface as returned by a call to mediadevices.getsupportedconstra
ints().
...And 11 more matches
MediaTrackSettings.deviceId - Web APIs
the mediatracksett
ings dictionary's deviceid property is a domstr
ing which uniquely identifies the source for the correspond
ing mediastreamtrack for the orig
in correspond
ing to the brows
ing session.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.deviceid property you provided when call
ing either getusermedia().
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.deviceid as returned by a call to mediadevices.getsupportedconstra
ints().
...And 11 more matches
MediaTrackSettings.groupId - Web APIs
the mediatracksett
ings dictionary's groupid property is a brows
ing-session unique domstr
ing which identifies the group of devices which
includes the source for the mediastreamtrack.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.groupid property you provided when call
ing either getusermedia().
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.groupid as returned by a call to mediadevices.getsupportedconstra
ints().
...And 11 more matches
PaymentResponse.shippingAddress - Web APIs
the shipp
ingaddress read-only property of the paymentrequest
interface returns a paymentaddress object conta
ining the shipp
ing address provided by the user.
... syntax var shipp
ingaddress = paymentrequest.shipp
ingaddress; value a paymentaddress object provid
ing details compris
ing the shipp
ing address provided by the user.
... example generally, the user agent will fill the shipp
ingaddress property for you.
...And 11 more matches
ProgressEvent.initProgressEvent() - Web APIs
the progressevent.
initprogressevent() method
initializes an animation event created us
ing the deprecated document.createevent("progressevent") method.
... note: this method has been dropped dur
ing the standard process.
...do not use it anymore, use the standard constructor, progressevent(), to create a synthetic progressevent syntax progress.
initprogressevent(typearg, canbubblearg, cancelablearg, lengthcomputable, loaded, total); parameters typearg is a domstr
ing identify
ing the specific type of animation event that occurred.
...And 11 more matches
RTCIceCandidateInit.candidate - Web APIs
the optional property candidate
in the rtcicecandidate
init dictionary specifies the value of the rtcicecandidate object's candidate property.
... value a domstr
ing describ
ing the properties of the candidate, taken directly from the sdp attribute "candidate".
... the candidate str
ing specifies the network connectivity
information for the candidate.
...And 11 more matches
SVGFEDiffuseLightingElement - Web APIs
the svgfediffuselight
ingelement
interface corresponds to the <fediffuselight
ing> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 11 more matches
WakeLockSentinel - Web APIs
the wakelocksent
inel
interface of the screen wake lock api provides a handle to the underly
ing platform wake lock and can be manually released and reacquired.
... an object represent
ing the wake lock is returned via the navigator.wakelock.request() method.
... an acquired wakelocksent
inel can be released manually via the release() method, or automatically via the platform wake lock.
...And 11 more matches
WebGL2RenderingContext.getActiveUniformBlockParameter() - Web APIs
the webgl2render
ingcontext.getactiveuniformblockparameter() method of the webgl 2 api retrieves
information about an active uniform block with
in a webglprogram.
... syntax any gl.getactiveuniformblockparameter(program, uniformblock
index, pname); parameters program a webglprogram conta
ining the active uniform block.
... uniformblock
index a glu
int specify
ing the
index of the active uniform block with
in the program.
...And 11 more matches
WebGL2RenderingContext.getBufferSubData() - Web APIs
the webgl2render
ingcontext.getbuffersubdata() method of the webgl 2 api reads data from a buffer b
ind
ing po
int and writes them to an arraybuffer or sharedarraybuffer.
... syntax void gl.getbuffersubdata(target, srcbyteoffset, arraybufferview dstdata, optional dstoffset, optional length); parameters target a glenum specify
ing the b
ind
ing po
int (target).
... possible values: gl.array_buffer: buffer conta
ining vertex attributes, such as vertex coord
inates, texture coord
inate data, or vertex color data.
...And 11 more matches
IDBIndex.objectStore - Web APIs
the objectstore property of the idb
index
interface returns the name of the object store referenced by the current
index.
... note: this feature is available
in web workers.
... syntax var myidbobjectstore = my
index.objectstore; value an idbobjectstore.
...And 9 more matches
ImageCapture.getPhotoSettings() - Web APIs
the getphotosett
ings() method of the imagecapture
interface returns a promise that resolves with a photosett
ings object conta
ining the current photo configuration sett
ings.
... syntax const sett
ingspromise = imagecapture.getphotosett
ings() return value a promise that resolves with a photosett
ings object conta
ining the follow
ing properties: filllightmode: the flash sett
ing of the capture device, one of "auto", "off", or "on".
... imageheight: the desired image height as an
integer.
...And 9 more matches
install - Web APIs
summary
installs one or more xpi files on the local mach
ine.
... method of
installtrigger object syntax
int
install(array xpilist [, function callbackfunc ] ) parameters the
install method has the follow
ing parameters: xpilist an array of files to be
installed (see example below).
... callbackfunc an optional callback function
invoked when the
installation is complete (see example below).
...And 9 more matches
LinearAccelerationSensor - Web APIs
the l
inearaccelerationsensor
interface of the sensor apis provides on each read
ing the acceleration applied to the device along all three axes, but without the contribution of gravity.
... if a feature policy blocks use of a feature it is because your code is
inconsistent with the policies set on your server.
... this is not someth
ing that would ever be shown to a user.
...And 9 more matches
MediaTrackConstraints.deviceId - Web APIs
the mediatrackconstra
ints dictionary's deviceid property is a constra
indomstr
ing describ
ing the requested or mandatory constra
ints placed upon the value of the deviceid constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.deviceid as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 9 more matches
MediaTrackConstraints.groupId - Web APIs
the mediatrackconstra
ints dictionary's groupid property is a constra
indomstr
ing describ
ing the requested or mandatory constra
ints placed upon the value of the groupid constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.groupid as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 9 more matches
MutationObserverInit.attributes - Web APIs
the mutationobserver
init dictionary's optional attributes property is used to specify whether or not to watch for attribute value changes on the node or nodes be
ing observed.
... syntax var options = { attributes: true | false } value a boolean value
indicat
ing whether or not to report through the callback any changes to the values of attributes on the node or nodes be
ing monitored.
... if true, the callback specified when observe() was used to start observ
ing the node or subtree will be called any time one or more attributes have changed on observed nodes.
...And 9 more matches
PaymentResponse.shippingOption - Web APIs
the shipp
ingoption read-only property of the paymentrequest
interface returns the id attribute of the shipp
ing option selected by the user.
... this option is only present when the requestshipp
ing option is set to true
in the paymentoptions object passed to the paymentrequest constructor.
... syntax var shipp
ingoption = paymentrequest.shipp
ingoption; example
in the example below, the paymentrequest.onshipp
ingaoptionchange event is called.
...And 9 more matches
RTCIceCandidatePairStats.availableOutgoingBitrate - Web APIs
the rtcicecandidatepairstats property availableoutgo
ingbitrate returns a value
indicative of the available outbound capacity of the network connection represented by the candidate pair.
... the higher the value, the more bandwidth you can assume is available for outgo
ing data.
... you can get the
incom
ing available bitrate from available
incom
ingbitrate.
...And 9 more matches
RTCPeerConnection.iceGatheringState - Web APIs
the read-only property rtcpeerconnection.icegather
ingstate returns an enum of type rtcicegather
ingstate that describes connection's ice gather
ing state.
... this lets you detect, for example, when collection of ice candidates has f
inished.
... you can detect when the value of this property changes by watch
ing for an event of type icegather
ingstatechange.
...And 9 more matches
Range.compareBoundaryPoints() - Web APIs
the range.compareboundarypo
ints() method compares the boundary po
ints of the range with those of another range.
... syntax compare = range.compareboundarypo
ints(how, sourcerange); return value compare a number, -1, 0, or 1,
indicat
ing whether the correspond
ing boundary-po
int of the range is respectively before, equal to, or after the correspond
ing boundary-po
int of sourcerange.
... parameters how a constant describ
ing the comparison method: range.end_to_end compares the end boundary-po
int of sourcerange to the end boundary-po
int of range.
...And 9 more matches
ReportingObserver - Web APIs
the report
ingobserver
interface of the report
ing api allows you to collect and access reports.
... constructor report
ingobserver() creates a new report
ingobserver object
instance, which can be used to collect and access reports.
... properties this
interface has no properties def
ined on it.
...And 9 more matches
SVGAnimatedString - Web APIs
the svganimatedstr
ing
interface represents str
ing attributes which can be animated from each svg declaration.
... you need to create svg attribute before do
ing anyth
ing else, everyth
ing should be declared
inside this.
... properties svganimatedstr
ing.animval read only this is a domstr
ing represent
ing the animation value.
...And 9 more matches
SVGFEPointLightElement - Web APIs
the svgfepo
intlightelement
interface corresponds to the <fepo
intlight> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 9 more matches
TextDecoder.prototype.encoding - Web APIs
the textdecoder.prototype.encod
ing read-only property returns a domstr
ing conta
ining the name of the decod
ing algorithm used by the specific decoder.
... it can be one of the follow
ing values: the recommended encod
ing for the web: 'utf-8'.
... the legacy s
ingle-byte encod
ings: 'ibm866', 'iso-8859-2', 'iso-8859-3', 'iso-8859-4', 'iso-8859-5', 'iso-8859-6', 'iso-8859-7', 'iso-8859-8'', 'iso-8859-8i', 'iso-8859-10', 'iso-8859-13', 'iso-8859-14', 'iso-8859-15', 'iso-8859-16', 'koi8-r', 'koi8-u', 'mac
intosh', 'w
indows-874', 'w
indows-1250', 'w
indows-1251', 'w
indows-1252', 'w
indows-1253', 'w
indows-1254', 'w
indows-1255', 'w
indows-1256', 'w
indows-1257', 'w
indows-1258', or 'x-mac-cyrillic'.
...And 9 more matches
CSS Flow Layout - CSS: Cascading Style Sheets
normal flow, or flow layout, is the way that block and
inl
ine elements are displayed on a page before any changes are made to their layout.
... the flow is essentially a set of th
ings that are all work
ing together and know about each other
in your layout.
... once someth
ing is taken out of flow it works
independently.
...And 8 more matches
Sticky footers - CSS: Cascading Style Sheets
a sticky footer pattern is one where the footer of your page "sticks" to the bottom of the viewport
in cases where the content is shorter than the viewport height.
... we'll look at a couple of techniques for creat
ing one
in this recipe.
... requirements the sticky footer pattern needs to meet the follow
ing requirements: footer sticks to the bottom of the viewport when content is short.
...And 8 more matches
Cubic Bezier Generator - CSS: Cascading Style Sheets
<html> <canvas id="bezier" width="336" height="336"> </canvas> <form> <label for="x1">x1 = </label><
input onchange="updatecanvas();" type="text" maxlength=6 id="x1" value="0.79" class='field'> <label for="y1">y1 = </label><
input onchange="updatecanvas();return true;" type="text" maxlength=6 id="y1" value="0.33" class='field'> <label for="x2">x2 = </label><
input onchange="updatecanvas();return true;" type="text" maxlength=6 id="x2" value="0.14" class='field'> <label for="y2">y2 = </label><
input onchange="updatecanvas();return true;" type="text" maxlength=6 id="y2" value="0.53" class='field'> <br> <output id="output">log</output> </form> </html> .field { width: 40px; } function updatecanvas() { var x1...
... = document.getelementbyid('x1').value; var y1 = document.getelementbyid('y1').value; var x2 = document.getelementbyid('x2').value; var y2 = document.getelementbyid('y2').value; drawbeziercurve(x1, y1, x2, y2); } const radius = 4; // place needed to draw the rulers const rulers = 30.5; const marg
in = 10.5; const basic_scale_size = 5; // size of 0.1 tick on the rulers var scal
ing; //limitation: scal
ing is computed once: if canvas.height/canvas.width change it won't be recalculated var dragsm = 0; // drag state mach
ine: 0 = nodrag, others = object be
ing dragged function
initcanvas() { // get the canvas element us
ing the dom var canvas = document.getelementbyid('bezier'); // make sure we don't execute when canvas isn't supported if (canvas.getcontext) { ...
... // use getcontext to use the canvas for draw
ing var ctx = canvas.getcontext('2d'); scal
ing = math.m
in(canvas.height - rulers - marg
in, canvas.width - rulers - marg
in); canvas.onmousedown = mousedown; canvas.onmouseup = mouseup; } else { alert('you need safari or firefox 1.5+ to see this demo.'); } } function cx(x) { return x * scal
ing + rulers; } function reversex(x) { return (x - rulers) / scal
ing; } function lx(x) { //used when draw
ing vertical l
ines to prevent subpixel blur var result = cx(x); return math.round(result) == result ?
...And 8 more matches
animation-duration - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax /* s
ingle animation */ animation-duration: 6s; animation-duration: 120ms; /* multiple animations */ animation-duration: 1.64s, 15.22s; animation-duration: 10s, 35s, 230ms; values <time> the time that an animation takes to complete one cycle.
...And 8 more matches
backface-visibility - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
...though
invisible
in 2d, the back face can become visible when a transformation causes the element to be rotated
in 3d space.
...And 8 more matches
border-bottom - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
...s
ince the default value of border-bottom-style is none, not specify
ing the border-style part results
in no border.
...And 8 more matches
border-end-end-radius - CSS: Cascading Style Sheets
the border-end-end-radius css property def
ines a logical border radius on an element, which maps to a physical border radius that depends on on the element's writ
ing-mode, direction, and text-orientation.
... this is useful when build
ing styles to work regardless of the text orientation and writ
ing mode.
... /* <length> values */ /* with one value the corner will be a circle */ border-end-end-radius: 10px; border-end-end-radius: 1em; /* with two values the corner will be an ellipse */ border-end-end-radius: 1em 2em; /* global values */ border-end-end-radius:
inherit; border-end-end-radius:
initial; border-end-end-radius: unset; for
instance,
in a horizontal-tb writ
ing mode this property corresponds to the border-bottom-right-radius property.
...And 8 more matches
border-end-start-radius - CSS: Cascading Style Sheets
the border-end-start-radius css property def
ines a logical border radius on an element, which maps to a physical border radius depend
ing on the element's writ
ing-mode, direction, and text-orientation.
... this is useful when build
ing styles to work regardless of the text orientation and writ
ing mode.
... /* <length> values */ /* with one value the corner will be a circle */ border-end-start-radius: 10px; border-end-start-radius: 1em; /* with two values the corner will be an ellipse */ border-end-start-radius: 1em 2em; /* global values */ border-end-start-radius:
inherit; border-end-start-radius:
initial; border-end-start-radius: unset; for
instance,
in a horizontal-tb writ
ing mode this property corresponds to the border-top-right-radius property.
...And 8 more matches
border-start-end-radius - CSS: Cascading Style Sheets
the border-start-end-radius css property def
ines a logical border radius on an element, which maps to a physical border radius depend
ing on the element's writ
ing-mode, direction, and text-orientation.
... this is useful when build
ing styles to work regardless of the text orientation and writ
ing mode.
... /* <length> values */ /* with one value the corner will be a circle */ border-start-end-radius: 10px; border-start-end-radius: 1em; /* with two values the corner will be an ellipse */ border-start-end-radius: 1em 2em; /* global values */ border-start-end-radius:
inherit; border-start-end-radius:
initial; border-start-end-radius: unset; for
instance,
in a horizontal-tb writ
ing mode this property corresponds to the border-bottom-left-radius property.
...And 8 more matches
border-start-start-radius - CSS: Cascading Style Sheets
the border-start-start-radius css property def
ines a logical border radius on an element, which maps to a physical border radius that depends on the element's writ
ing-mode, direction, and text-orientation.
... this is useful when build
ing styles to work regardless of the text orientation and writ
ing mode.
... /* <length> values */ /* with one value the corner will be a circle */ border-start-start-radius: 10px; border-start-start-radius: 1em; /* with two values the corner will be an ellipse */ border-start-start-radius: 1em 2em; /* global values */ border-start-start-radius:
inherit; border-start-start-radius:
initial; border-start-start-radius: unset; for
instance,
in a horizontal-tb writ
ing mode this property corresponds to the border-top-left-radius property.
...And 8 more matches
column-rule - CSS: Cascading Style Sheets
the column-rule shorthand css property sets the width, style, and color of the l
ine drawn between columns
in a multi-column layout.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 8 more matches
column-span - CSS: Cascading Style Sheets
/* keyword values */ column-span: none; column-span: all; /* global values */ column-span:
inherit; column-span:
initial; column-span: unset; an element that spans more than one column is called a spann
ing element.
...content
in the normal flow that appears before the element is automatically balanced across all columns before the element appears.
... the element establishes a new block formatt
ing context.
...And 8 more matches
counter-reset - CSS: Cascading Style Sheets
the source for this
interactive example is stored
in a github repository.
... 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.
... note: the counter's value can be
increased or decreased us
ing the counter-
increment css property.
...And 8 more matches
drop-shadow() - CSS: Cascading Style Sheets
the drop-shadow() css function applies a drop shadow effect to the
input image.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 8 more matches
font-language-override - CSS: Cascading Style Sheets
the font-language-override css property controls the use of language-specific glyphs
in a typeface.
... /* keyword value */ font-language-override: normal; /* <str
ing> values */ font-language-override: "eng"; /* use english glyphs */ font-language-override: "trk"; /* use turkish glyphs */ /* global values */ font-language-override:
initial; font-language-override:
inherit; font-language-override: unset; by default, html's lang attribute tells browsers to display glyphs designed specifically for that language.
... for example, a lot of fonts have a special character for the digraph fi that merge the dot on the "i" with the "f." however, if the language is set to turkish the typeface will likely know not to use the merged glyph; turkish has two versions of the "i," one with a dot (i) and one without (ı), and us
ing the ligature would
incorrectly transform a dotted "i"
into a dotless "i." the font-language-override property lets you override the typeface behavior for a specific language.
...And 8 more matches
InterventionReportBody - Web APIs
the
interventionreportbody
interface of the report
ing api represents the body of an
intervention report (the return value of its report.body property).
... an
intervention report is generated when usage of a feature
in a web document has been blocked by the browser for reasons such as security, performance, or user annoyance.
... so for example, a script was been stopped because it was significantly slow
ing down the browser, or the browser's autoplay policy blocked audio from play
ing without a user gesture to trigger it.
...And 7 more matches
MSCandidateWindowHide - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... mscandidatew
indowhide fires after the
input method editor (ime) candidate w
indow closes and is fully hidden.
...And 7 more matches
MediaStreamConstraints - Web APIs
the mediastreamconstra
ints dictionary is used when call
ing getusermedia() to specify what k
inds of tracks should be
included
in the returned mediastream, and, optionally, to establish constra
ints for those tracks' sett
ings.
... to learn more about how constra
ints work, see capabilities, constra
ints, and sett
ings.
... properties some comb
ination—but not necessarily all—of the follow
ing properties will exist on the object.
...And 7 more matches
MediaTrackConstraints.aspectRatio - Web APIs
the mediatrackconstra
ints dictionary's aspectratio property is a constra
indouble describ
ing the requested or mandatory constra
ints placed upon the value of the aspectratio constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.aspectratio as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 7 more matches
MediaTrackConstraints.logicalSurface - Web APIs
the mediatrackconstra
ints dictionary's logicalsurface property is a constra
indomstr
ing describ
ing the requested or mandatory constra
ints placed upon the value of the logicalsurface constra
inable property.
... this is used to specify whether or not getdisplaymedia() should allow the user to choose display surfaces which are not necessarily fully visible on the screen, such as occluded w
indows or the complete content of w
indows which are large enough to require scroll
ing to see their entire contents.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.logicalsurface as returned by a call to mediadevices.getsupportedconstra
ints().
...And 7 more matches
MediaTrackSettings.aspectRatio - Web APIs
the mediatracksett
ings dictionary's aspectratio property is a double-precision float
ing-po
int number
indicat
ing the aspect ratio of the mediastreamtrack as currently configured.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.aspectratio property you provided when call
ing either getusermedia() or mediastreamtrack.applyconstra
ints().
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.aspectratio as returned by a call to mediadevices.getsupportedconstra
ints().
...And 7 more matches
MediaTrackSettings.latency - Web APIs
the mediatracksett
ings dictionary's latency property is a double-precision float
ing-po
int number
indicat
ing the estimated latency (specified
in seconds) of the mediastreamtrack as currently configured.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.latency property you provided when call
ing either getusermedia() or mediastreamtrack.applyconstra
ints().
... this is, of course, an approximation, s
ince latency can vary for many reasons
includ
ing cpu, transmission, and storage overhead.
...And 7 more matches
MediaTrackSettings.noiseSuppression - Web APIs
the mediatracksett
ings dictionary's noisesuppression property is a boolean value whose value
indicates whether or not noise suppression technology is enabled on an audio track.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.noisesuppression property you provided when call
ing either getusermedia() or mediastreamtrack.applyconstra
ints().
... noise suppression automatically filters the audio to remove background noise, hum caused by equipment, and the like from the sound before deliver
ing it to your code.
...And 7 more matches
PerformanceLongTaskTiming - Web APIs
the performancelongtasktim
ing
interface of the the long tasks api reports
instances of long tasks.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/performanceentry" target="_top"><rect x="1" y="1" width="160" height="50" fill="#fff" 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-basel
ine="middle">performanceentry</text></a><polyl
ine po
ints="161,25 171,20 171,30 161,25" stroke="#d4dde4" fill="none"/><l
ine x1="171" y1="25" x2="201" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/w...
...eb/api/performancelongtasktim
ing" target="_top"><rect x="201" y="1" width="250" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">performancelongtasktim
ing</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties performancelongtasktim
ing.attribution read only returns a sequence of taskattributiontim
ing
instances.
...And 7 more matches
Plugin - Web APIs
the plug
in interface provides
information about a browser plug
in.
... note: own properties of plug
in objects are no longer enumerable
in the latest browser versions.
... properties plug
in.description read only a human readable description of the plug
in.
...And 7 more matches
PointerEvent.getCoalescedEvents() - Web APIs
the getcoalescedevents() method of the po
interevent
interface returns a sequence of all po
interevent
instances that were coalesced
into the dispatched po
intermove event.
... syntax var po
interevents[] = po
interevent.getcoalescedevents() parameters none.
... returns a sequence of po
interevent
instances.
...And 7 more matches
RTCPeerConnection: icegatheringstatechange event - Web APIs
the icegather
ingstatechange event is sent to the onicegather
ingstatechange event handler on an rtcpeerconnection when the state of the ice candidate gather
ing process changes.
... this signifies that the value of the connection's icegather
ingstate property has changed.
... when ice firststarts to gather connection candidates, the value changes from new to gather
ing to
indicate that the process of collect
ing candidate configurations for the connection has begun.
...And 7 more matches
RTCRtpContributingSource.audioLevel - Web APIs
the read-only audiolevel property of the rtcrtpcontribut
ingsource
interface
indicates the audio level conta
ined
in the last rtp packet played from the described source.
... audiolevel will be the level value def
ined
in [rfc6465] if the rfc 6465 header extension is present, and otherwise null.
... syntax var audiolevel = rtcrtpcontribut
ingsource.audiolevel value a double-precision float
ing-po
int number which
indicates the volume level of the audio
in the most recently received rtp packet from the source described by the rtcrtpcontribut
ingsource.
...And 7 more matches
RTCRtpContributingSource.source - Web APIs
the read-only source property of the rtcrtpcontribut
ingsource
interface returns the source identifier of a particular stream of rtp packets.
... the value is the contribut
ing source (csrc) or synchronization source (ssrc) identifier, depend
ing on whether the object is an rtcrtpcontribut
ingsource or rtcrtpsynchronizationsource, which is based on the former.
... syntax var sourceid = rtcrtpcontribut
ingsource.source value an unsigned, 32-bit
integer value which uniquely identifies the source of rtp packets described by this rtcrtpcontribut
ingsource (
in which case the value is a csrc identifier) or rtcrtpsynchronizationsource (the value is an ssrc identifier).
...And 7 more matches
ReportingObserver() - Web APIs
the report
ingobserver() constructor of the report
ing api creates a new report
ingobserver object
instance, which can be used to collect and access reports.
... syntax new report
ingobserver(callback[, options]); parameters callback a callback function that runs when the observer starts to collect reports (i.e.
... via report
ingobserver.observe()).
...And 7 more matches
MediaSettingsRange - Web APIs
the mediasett
ingsrange
interface of the the mediastream image capture api provides the possible range and value size of photocapabilities.imageheight and photocapabilities.imagewidth.
... a photocapabilities object can be retrieved by call
ing imagecapture.photocapabilities().
... properties mediasett
ingsrange.max returns the maximum value of this sett
ings.
...And 6 more matches
MediaStreamAudioDestinationNode - Web APIs
the mediastreamaudiodest
inationnode
interface represents an audio dest
ination consist
ing of a webrtc mediastream with a s
ingle audiomediastreamtrack, which can be used
in a similar way to a mediastream obta
ined from navigator.getusermedia.
... it is an audionode that acts as an audio dest
ination, created us
ing the audiocontext.createmediastreamdest
ination method.
... number of
inputs 1 number of outputs 0 channel count 2 channel count mode "explicit" channel count
interpretation "speakers" constructor mediastreamaudiodest
inationnode.mediastreamaudiodest
inationnode() creates a new mediastreamaudiodest
inationnode object
instance.
...And 6 more matches
MediaTrackConstraints.echoCancellation - Web APIs
the mediatrackconstra
ints dictionary's echocancellation property is a constra
inboolean describ
ing the requested or mandatory constra
ints placed upon the value of the echocancellation constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.echocancellation as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 6 more matches
MediaTrackConstraints.frameRate - Web APIs
the mediatrackconstra
ints dictionary's framerate property is a constra
indouble describ
ing the requested or mandatory constra
ints placed upon the value of the framerate constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.framerate as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 6 more matches
MediaTrackConstraints.noiseSuppression - Web APIs
the mediatrackconstra
ints dictionary's noisesuppression property is a constra
inboolean describ
ing the requested or mandatory constra
ints placed upon the value of the noisesuppression constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.noisesuppression as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 6 more matches
MediaTrackConstraints.sampleSize - Web APIs
the mediatrackconstra
ints dictionary's samplesize property is a constra
inlong describ
ing the requested or mandatory constra
ints placed upon the value of the samplesize constra
inable property.
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.samplesize as returned by a call to mediadevices.getsupportedconstra
ints().
... however, typically this is unnecessary s
ince browsers will simply ignore any constra
ints they're unfamiliar with.
...And 6 more matches
MediaTrackSettings.channelCount - Web APIs
the mediatracksett
ings dictionary's channelcount property is an
integer
indicat
ing how many audio channel the mediastreamtrack is currently configured to have.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.channelcount property you provided when call
ing either getusermedia() or mediastreamtrack.applyconstra
ints().
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.channelcount as returned by a call to mediadevices.getsupportedconstra
ints().
...And 6 more matches
MediaTrackSettings.displaySurface - Web APIs
the mediatracksett
ings dictionary's displaysurface property
indicates the type of display surface be
ing captured.
... syntax displaysurface = mediatracksett
ings.displaysurface; value the value of displaysurface is a str
ing that comes from the displaycapturesurfacetype enumerated type, and is one of the follow
ing: application the stream's video track conta
ins all of the w
indows belong
ing to the application chosen by the user.
... the w
indows are aggragated
into a s
ingle video track, with any empty space filled with a backdrop; that backdrop is selected by the user agent.
...And 6 more matches
MediaTrackSettings.sampleRate - Web APIs
the mediatracksett
ings dictionary's samplerate property is an
integer
indicat
ing how many audio samples per second the mediastreamtrack is currently configured for.
... this lets you determ
ine what value was selected to comply with your specified constra
ints for this property's value as described
in the mediatrackconstra
ints.samplerate property you provided when call
ing either getusermedia() or mediastreamtrack.applyconstra
ints().
... if needed, you can determ
ine whether or not this constra
int is supported by check
ing the value of mediatracksupportedconstra
ints.samplerate as returned by a call to mediadevices.getsupportedconstra
ints().
...And 6 more matches
MediaTrackSupportedConstraints.noiseSuppression - Web APIs
the mediatracksupportedconstra
ints dictionary's noisesuppression property is a read-only boolean value which is present (and set to true)
in the object returned by mediadevices.getsupportedconstra
ints() if and only if the user agent supports the noisesuppression constra
int.
... if the constra
int isn't supported, it's not
included
in the list, so this value will never be false.
... you can access the supported constra
ints dictionary by call
ing navigator.mediadevices.getsupportedconstra
ints().
...And 6 more matches
msFirstPaint - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... msfirstpa
int is a read-only property which gets the time when the document loaded by the w
indow object began to be displayed to the user.
...And 6 more matches
Node.nodePrincipal - Web APIs
obsolete s
ince gecko 46 (firefox 46 / thunderbird 46 / seamonkey 2.43)this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 6 more matches
NonDocumentTypeChildNode.previousElementSibling - Web APIs
the nondocumenttypechildnode.previouselementsibl
ing read-only property 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.
... syntax prevnode = elementnodereference.previouselementsibl
ing; example <div id="div-01">here is div-01</div> <div id="div-02">here is div-02</div> <li>this is a list item</li> <li>this is another list item</li> <div id="div-03">here is div-03</div> <script> let el = document.getelementbyid('div-03').previouselementsibl
ing; document.write('<p>sibl
ings of div-03</p><ol>'); while (el) { document.write('<li>' + el.nodename + '</li>'); el = el.previouselementsibl
ing; } document.write('</ol>'); </script> this example outputs the follow
ing
into the page when it loads: sibl
ings of div-03 1.
...div polyfills polyfill for
internet explorer 8 this property is unsupported prior to ie9, so the follow
ing snippet can be used to add support to ie8: // source: https://github.com/alhadis/snippets/blob/master/js/polyfills/ie8-child-elements.js if(!("previouselementsibl
ing"
in document.documentelement)){ object.def
ineproperty(element.prototype, "previouselementsibl
ing", { get: function(){ var e = this.previoussibl
ing; while(e && 1 !== e.nodetype) e = e.previoussibl
ing; return e; } }); } polyfill for
internet explorer 9+ and safari // source: https://github.com/jserz/js_piece/blob/master/dom/nondocumenttypechildnode/previouselementsibl
ing/previouselementsibl
ing.md (function (arr) { arr.foreach(function (item) { if ...
...And 6 more matches
OfflineAudioCompletionEvent - Web APIs
the web audio api offl
ineaudiocompletionevent
interface represents events that occur when the process
ing of an offl
ineaudiocontext is term
inated.
... the complete event implements this
interface.
... note: this
interface is marked as deprecated; it is still supported for legacy reasons, but it will soon be superseded when the promise version of offl
ineaudiocontext.startrender
ing is supported
in browsers, which will no longer need it.
...And 6 more matches
OfflineAudioContext.resume() - Web APIs
the resume() method of the offl
ineaudiocontext
interface resumes the progression of time
in an audio context that has been suspended.
... the promise resolves immediately because the offl
ineaudiocontext does not require the audio hardware.
... if the context is not currently suspended or the render
ing has not started, the promise is rejected with
invalidstateerror.
...And 6 more matches
hanging - SVG: Scalable Vector Graphics
the hang
ing attribute
indicates the alignment coord
inate for glyphs to achieve hang
ing basel
ine alignment for horizontally oriented glyph layouts.
... the value is an offset
in the font coord
inate system.
... only one element is us
ing this attribute: <font-face> usage notes value <number> default value none animatable no <number> this value
indicates the alignment coord
inate for the glyphs.
...And 2 more matches
horiz-origin-x - SVG: Scalable Vector Graphics
the horiz-orig
in-x attribute
indicates the x-coord
inate
in the font coord
inate system of the orig
in of a glyph to be used when draw
ing horizontally oriented text.
... note: the orig
in applies to all glyphs
in the font.
... only one element is us
ing this attribute: <font> usage notes value <number> default value 0 animatable no <number> this value
indicates the x-coord
inate of the orig
in of a glyph for horizontally oriented text.
...And 2 more matches
horiz-origin-y - SVG: Scalable Vector Graphics
the horiz-orig
in-y attribute
indicates the y-coord
inate
in the font coord
inate system of the orig
in of a glyph to be used when draw
ing horizontally oriented text.
... note: the orig
in applies to all glyphs
in the font.
... only one element is us
ing this attribute: <font> usage notes value <number> default value 0 animatable no <number> this value
indicates the x-coord
inate of the orig
in of a glyph for horizontally oriented text.
...And 2 more matches
intercept - SVG: Scalable Vector Graphics
the
intercept attribute def
ines the
intercept of the l
inear function of color component transfers when the type attribute is set to l
inear.
... four elements are us
ing this attribute: <fefunca>, <fefuncb>, <fefuncg>, and <fefuncr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <l
ineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </l
ineargradient> </defs> <filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="l
inear"
intercept="0"/> <fefuncg type="l
inear"
intercept="0"/> <fefuncb type="l
inear"
intercept="0"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="0" y="0" ...
...width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="l
inear"
intercept="0.3"/> <fefuncg type="l
inear"
intercept="0.1"/> <fefuncb type="l
inear"
intercept="0.8"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the def
inition of '
intercept'
in that specification.
...And 2 more matches
min - SVG: Scalable Vector Graphics
the m
in attribute specifies the m
inimum value of the active animation duration.
... five elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="10" r="10"> <animate attributename="cx" dur="4s" m
in="2s" repeatcount="
indef
inite" values="60 ; 110 ; 60 ; 10 ; 60" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> <animate attributename="cy" dur="4s" m
in="2s" repeatcount="
indef
inite" values="10 ; 60 ; 110 ; 60 ; 10" keytimes="0 ; 0.25 ; 0.5 ; 0.75 ; 1"/> </circle> </svg> usage notes value <clock-value> default value 0 animatable no <clock-value> specifies the length of the m
inimum value of the active duration, measured
in local time.
... specifications specification status comment svg animations level 2the def
inition of 'm
in'
in that specification.
...And 2 more matches
origin - SVG: Scalable Vector Graphics
the orig
in attribute specifies the orig
in of motion for an animation.
... it has no effect
in svg.
... only one element is us
ing this attribute: <animatemotion> context notes value default default value default animatable no specifications specification status comment svg animations level 2the def
inition of 'orig
in'
in that specification.
...And 2 more matches
pointsAtX - SVG: Scalable Vector Graphics
the po
intsatx attribute represents the x location
in the coord
inate system established by attribute primitiveunits on the <filter> element of the po
int at which the light source is po
int
ing.
... only one element is us
ing this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="light
ing1" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fespotlight x="60" y="60" z="50" po
intsatx="0" /> </fediffuselight
ing> </filter> <filter id="light
ing2" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fespotlight x="60" y="60" z="50" po
intsatx="400" /> </fediffuselight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#light
ing1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#light
ing2); transform: translatex(220px);" /> </svg> usage notes default...
... value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the def
inition of 'po
intsatx'
in that specification.
...And 2 more matches
pointsAtY - SVG: Scalable Vector Graphics
the po
intsaty attribute represents the y location
in the coord
inate system established by attribute primitiveunits on the <filter> element of the po
int at which the light source is po
int
ing.
... only one element is us
ing this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="light
ing1" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fespotlight x="60" y="60" z="50" po
intsaty="0" /> </fediffuselight
ing> </filter> <filter id="light
ing2" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fespotlight x="60" y="60" z="50" po
intsaty="400" /> </fediffuselight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#light
ing1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#light
ing2); transform: translatex(220px);" /> </svg> usage notes default...
... value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the def
inition of 'po
intsaty'
in that specification.
...And 2 more matches
pointsAtZ - SVG: Scalable Vector Graphics
the po
intsatz attribute represents the y location
in the coord
inate system established by attribute primitiveunits on the <filter> element of the po
int at which the light source is po
int
ing, assum
ing that,
in the
initial local coord
inate system, the positive z-axis comes out towards the person view
ing the content and assum
ing that one unit along the z-axis equals one unit
in x and y.
... only one element is us
ing this attribute: <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="light
ing1" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fespotlight x="100" y="100" z="50" po
intsatz="0" /> </fediffuselight
ing> </filter> <filter id="light
ing2" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fespotlight x="100" y="100" z="50" po
intsatz="80" /> </fediffuselight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#light
ing1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#light
ing2); transform: translatex(220px);" /> </svg> usage notes defa...
...ult value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the def
inition of 'po
intsatz'
in that specification.
...And 2 more matches
string - SVG: Scalable Vector Graphics
the str
ing attribute is a h
int to the user agent, and specifies a list of formats that the font referenced by the parent <font-face-uri> element supports.
... only one element is us
ing this attribute: <font-face-format> usage notes value <anyth
ing> default value none animatable no <anyth
ing> this value specifies a list of formats that are supported by the font referenced by the parent <font-face-uri> element.
...see the src descriptor of the @font-face at-rule for more
information.
...And 2 more matches
tabindex - SVG: Scalable Vector Graphics
the tab
index attribute allows you to control whether an element is focusable and to def
ine the relative order of the element for the purposes of sequential focus navigation.
... all elements are us
ing this attribute.
... html, body, svg { height: 100%; } <?xml version="1.0"?> <svg viewbox="0 0 260 260" xmlns="http://www.w3.org/2000/svg"> <circle cx="60" cy="60" r="15" tab
index="1" /> <circle cx="60" cy="160" r="30" tab
index="3" /> <circle cx="160" cy="60" r="30" tab
index="2" /> <circle cx="160" cy="160" r="60" tab
index="4" /> </svg> usage notes value valid
integer default value none animatable no valid
integer relative order of the element for the purposes of sequential focus navigation.
...And 2 more matches
v-hanging - SVG: Scalable Vector Graphics
the v-hang
ing attribute
indicates the alignment coord
inate for glyphs to achieve hang
ing basel
ine alignment.
... the value is an offset
in the font coord
inate system relative to the glyph-specific vert-orig
in-x attribute.
... only one element is us
ing this attribute: <font-face> usage notes value <number> default value none animatable no <number> this value
indicates the alignment coord
inate for the glyphs to achieve hang
ing basel
ine alignment.
...And 2 more matches
xlink:arcrole - SVG: Scalable Vector Graphics
the xl
ink:arcrole attribute specifies a contextual role for the element and corresponds to the rdf primer notion of a property.
... this contextual role can differ from the mean
ing of the resource when taken outside the context of this particular arc.
... for example, a resource might generically represent a "person," but
in the context of a particular arc it might have the role of "mother" and
in the context of a different arc it might have the role of "daughter." twentytwo elements are us
ing this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <l
ineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, <use> usage notes value <iri> default value none animatable no <iri> this value specifies an iri reference that identifies some resource that describes the
intended property.
...And 2 more matches
xlink:type - SVG: Scalable Vector Graphics
the xl
ink:type attribute identifies the type of xl
ink be
ing used.
...
in svg, only simple l
inks are available.
... twentytwo elements are us
ing this attribute: <a>, <altglyph>, <animate>, <animatecolor>, <animatemotion>, <animatetransform>, <color-profile>, <cursor>, <feimage>, <filter>, <font-face-uri>, <glyphref>, <image>, <l
ineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, <tref>, and <use> usage notes value simple default value simple animatable no simple this value specifies that the referred resource is a simple l
ink.
...And 2 more matches
string-length - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the str
ing-length function returns a number equal to the number of characters
in a given str
ing.
... syntax str
ing-length( [str
ing] ) arguments str
ing(optional) the str
ing to evaluate.
... if omitted, str
ing used will be the same as the context node converted to a str
ing.
...And 2 more matches
<xsl:include> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:
include> element merges the contents of one stylesheet with another.
... unlike the case of <xsl:import>, the contents of an
included stylesheet have exactly the same precedence as the contents of the
includ
ing stylesheet.
... syntax <xsl:
include href=uri /> required attributes href specifies the uri of the stylesheet to
include.
...And 2 more matches
Setting Parameters - XSLT: Extensible Stylesheet Language Transformations
sett
ing parameters while runn
ing transformations us
ing precoded .xsl and .xml files is quite useful, configur
ing the .xsl file from javascript may be even more useful.
...the sort
ing would have to alternate between ascend
ing and descend
ing sort
ing.
...xsltprocessor provides three javascript methods to
interact with these parameters: xsltprocessor.setparameter(), xsltprocessor.getparameter() and xsltprocessor.removeparameter().
...And 2 more matches
Window: deviceproximity event - Archive of obsolete content
note: this event has been disabled by default
in firefox 62, beh
ind the device.sensors.proximity.enabled preference (bug 1462308).
... bubbles no cancelable no
interface deviceproximityevent target defaultview (w
indow) default action none event handler property w
indow.ondeviceproximity specification proximity sensor other properties property type description value read only double (float) the measured proximity of the distant device (distance
in centimetres).
... m
in read only double (float) the m
inimum value
in the range the sensor detects (if available, 0 otherwise).
... max read only double (float) the maximum value
in the range the sensor detects (if available, 0 otherwise).
Window: userproximity event - Archive of obsolete content
the userproximity event is fired when fresh data is available from a proximity sensor (
indicates whether the nearby object is near the device or not).
... bubbles no cancelable no
interface userproximityevent target defaultview (w
indow) default action none event handler property w
indow.onuserroximity specification proximity sensor note: this event has been disabled by default
in firefox 62, beh
ind the device.sensors.proximity.enabled preference (bug 1462308).
... specifications specification status proximity sensorthe def
inition of 'proximity events'
in that specification.
... work
ing draft ...
Using XPCOM without chrome - Archive of obsolete content
us
ing sdk xpcom with the low-level module sdk/platform/xpcom , it's possible to exclude chrome and xpcomutils
in some cases.
... examples bookmarks observer normally, a bookmark observer would require chrome components and xpcomutils as described
in the follow
ing l
inks: (observ
ing changes to bookmarks and tags) , (creat
ing event targets).
... below is an example, where we extend the xpcom module's unknown class with an ns
inavbookmarkobserver
interface and one of its optional
interface methods (onitemchanged).
... // this removes the need to import ci and the xpcomutils const { class } = require("sdk/core/heritage"); const { unknown } = require('sdk/platform/xpcom'); const { placesutils } = require("resource://gre/modules/placesutils.jsm"); let bmlistener = class({ extends: unknown,
interfaces: [ "ns
inavbookmarkobserver" ], //this event most often handles all events onitemchanged: function(bid, prop, an, nv, lm, type, parentid, aguid, aparentguid) { console.log("onitemchanged", "bid: "+bid, "property: "+prop, "isanno: "+an, "new value: "+nv, "lastmod: "+lm, "type: "+type, "parentid:"+parentid, "aguid:"+aguid);0 // code to handle the event here } }); //we just have a class, but need an obje...
URI parsing - Archive of obsolete content
when deal
ing with the facilities of nsiuri, the task of pars
ing a uri can still require additional work.
... grabb
ing the ma
in doma
in us
ing the effectivetldservice even us
ing the etldservice, you're unable to get just the base doma
in sans tld.
... so, here's some sample code to determ
ine the base doma
in without any suffixes: var etldservice = components.classes["@mozilla.org/network/effective-tld-service;1"].
... getservice(components.
interfaces.nsieffectivetldservice); var suffix = etldservice.getpublicsuffix(auri); var basedoma
in = etldservice.getbasedoma
in(auri); // this
includes the tld basedoma
in = basedoma
in.substr(0, (basedoma
in.length - suffix.length - 1)); // - 1 to remove the period before the tld ...
Hiding browser chrome - Archive of obsolete content
there are times
in which an extension may f
ind it useful to hide browser chrome (that is, toolbars, the location bar, and so forth),
in order to reduce clutter when present
ing a particular user
interface.
...this can be accomplished by augment
ing the behavior of the xulbrowserw
indow object's hidechromeforlocation() method.
...var prevfunc = xulbrowserw
indow.hidechromeforlocation; xulbrowserw
indow.hidechromeforlocation = function(alocation) { return (/* your test goes here */) || prevfunc.apply(xulbrowserw
indow, [alocation]); } this works by sav
ing a reference to the current implementation of the hidechromeforlocation() method, then replac
ing it with a new method that calls through to the previous implementation.
... by cha
ining multiple implementations of the method together
in this way, everyone that wants to hide chrome can do so when appropriate.
Beginner tutorials - Archive of obsolete content
this page
includes archived beg
inners tutorials, from various places around mdn.
... creat
ing reusable content with css and xblthis page illustrates how you can use css
in mozilla to improve the structure of complex applications, mak
ing code and resources more easily reusable.underscores
in class and id namessummary: the use of the underscore character
in css can lead to major display problems
in multiple browsers.
... learn why this is so, and how to keep your sites from be
ing bitten by this problem.
... this technical note exam
ines the use of underscores
in css, and why they should be generally avoided
in most circumstances.xml datathis page conta
ins an example of how you can use css with xml data.xul user
interfacesthis page illustrates mozilla's specialized language for creat
ing user
interfaces.
checking - Archive of obsolete content
the check
ing event is fired when the user agent is check
ing for an update, or attempt
ing to download the cache manifest for the first time.
... general
info specification offl
ine
interface event bubbles no cancelable no target applicationcache default action none properties property type description target eventtarget (dom element) the event target (the topmost target
in the dom tree).
... type str
ing the type of event.
... related events check
ing noupdate download
ing progress cached updateready obsolete error ...
downloading - Archive of obsolete content
the download
ing event is fired after check
ing for an application cache update, if the user agent has found an update and is fetch
ing it, or is download
ing the resources listed by the cache manifest for the first time.
... general
info specification offl
ine
interface event bubbles no cancelable no target applicationcache default action none properties property type description target eventtarget (dom element) the event target (the topmost target
in the dom tree).
... type str
ing the type of event.
... related events check
ing noupdate progress cached updateready obsolete error ...
Syncing custom preferences - Archive of obsolete content
that means preferences between firefox and fennec, for
instance, are never synced.
...the whitelist is determ
ined as follows: for each services.sync.prefs.sync.<pref> preference that is set to true, firefox sync will sync the <pref> preference.
...the most convenient place for this would be your add-on's default preferences, though if you want to give the user a choice to opt-
in, you can also do it programmatically.
... see add
ing_preferences_to_an_extension.
Cmdline tests - Archive of obsolete content
the cmdl
ine testsuite is located
in test/cmdl
ine.
... the testsuite allows more flexibility by cod
ing scripts
in python allow
ing any executable to run, send
ing commands to std
in, and assert
ing output us
ing regular expressions.
... see test/cmdl
ine/readme document for more
information.
... two use cases for the cmdl
ine testsuite: use case 1: test the
interactive cmdl
ine debugger test contents: start avmshell -d test.abc, set breakpo
int on a l
ine, show local variable value, quit from cmdutils import * def run(): r=runtestlib() r.run_test( 'debugger locals', '%s -d testdata/debug.abc'%r.avmrd,
input='break 53\ncont
inue\nnext\n
info locals\nnext\n
info locals\nquit\n', expectedout=['local1 = undef
ined','local2 = 10','local2 = 15'] ) use case 2: test -memstats returns memory logs to stdout test contents: start avmshell -memstats test.abc, assert stdout conta
ins 'gross stats', 'sweep m reclaimed n pages.' from cmdutils import * def run(): r=runtestlib() r.run_test(name='memstats', command="%s -memstats testdata/memstats.
Tamarin Roadmap - Archive of obsolete content
the tamar
in roadmap is
intended to provide visibility
into planned features and release dates.
... the roadmap is a liv
ing document represent
ing current best th
ink
ing and is subject to change.
... comments or questions are welcome and encouraged via the tamar
in-devel mail
ing list.
... tc jan '09 feature l
inks status
integrate the tt str
ing class tamar
in:str
ing implementation tamar
in:str
ings bug 465506 complete enhanced c++ profiler enhance memory profiler to work
in release builds and be more performant
in progress enable lir for arm targets bug 460764 complete amd64 nanojit bug 464476
in progress port nanojit to powerpc bug 458077 complete add mac-x64 and l
inux-x64 buildbots complete fail build on assertion
in acceptance tests complete merge track
ing bug bug 469836
in progress tc feb '09 spr
ing backlog tbd.
windowsGetShortName - Archive of obsolete content
summary returns a path that conforms to the w
indows 8.3 file nam
ing convention.
... method of file object syntax str
ing w
indowsgetshortname( object localdirspec ) parameters the w
indowsregisterserver method has the follow
ing parameter: localdirspec a filespecobject represent
ing a directory obta
ined by getcomponentfolder or getfolder.
... returns a str
ing with the w
indows shortname.
... example flongfilepath = getfolder(fprogram, "longfilename.file"); sshortfilepath = file.w
indowsgetshortname(flongfilepath); if(sshortfilepath) { // do someth
ing } ...
windowsRegisterServer - Archive of obsolete content
summary w
indowsregisterserver registers
installed dlls with the w
indows registry.
... method of file object syntax
int w
indowsregisterserver( object localdirspec ) parameters the w
indowsregisterserver method has the follow
ing parameters: localdirspec a filespecobject represent
ing a directory obta
ined by getcomponentfolder or getfolder.
... returns an
integer error code.
... example filecdtool = getfolder("file:///", faod + "cdtool.dll"); err = file.w
indowsregisterserver(filecdtool); ...
iscontainer - Archive of obsolete content
« xul reference home isconta
iner type: boolean
indicates whether rules match based on conta
inment.
... if not specified, the rule may match regardless of whether a node is a conta
iner or not.
... true: the rule will only match nodes that are marked as conta
iners.
... false: the rule will only match nodes that are not marked as conta
iners.
linkedpanel - Archive of obsolete content
« xul reference home l
inkedpanel type: id the id of the l
inked tabpanel element that will be displayed when the tab is selected.
... if this attribute is not used, the tab will be connected to the panel at the correspond
ing
index
in the tabpanels element that the tab is
in its tabs conta
iner.
... however, if this attribute is used, this behavior is overridden, and the tab will always be l
inked to a specific panel.
... this might be used to avoid duplication by l
ink
ing several tabs to one panel with slight differences to the content adjusted
in the select event.
windowtype - Archive of obsolete content
« xul reference home w
indowtype type: str
ing set to a str
ing which can be used to identify the type of w
indow.
... this might be used, for example, to dist
inguish between a browser w
indow and an editor w
indow.
... some of mozilla's w
indow handl
ing functions use this attribute to group w
indows of the same type together.
... values for w
indow type as found on mxr: http://mxr.mozilla.org/mozilla-release/search?str
ing=w
indowtype navigator:browser - looks like if w
indow has gbrowser it has this w
indow type devtools:scratchpad - scratchpad w
indows navigator:view-source - the view source w
indows ...
getFormattedString - Archive of obsolete content
« xul reference home getformattedstr
ing( key, strarray ) return type: str
ing looks up the format str
ing for the given key name
in the str
ing bundle and returns a formatted copy where each occurrence of %s (uppercase) is replaced by each successive element
in the supplied array.
... alternatively, numbered
indices of the format %n$s (e.g.
... %1$s, %2$s, etc.) can be used to specify the position of the correspond
ing parameter explicitly.
... if you need to handle substitutions
involv
ing plurals, take a look at localization and plurals.
openWindow - Archive of obsolete content
« xul reference home openw
indow( w
indowtype, url, features, params ) return type: w
indow open a child w
indow.
... the w
indowtype is a str
ing specify
ing a w
indow type.
... if a w
indow with that type is already open, this method will just switch that w
indow to the front and focus it
instead of open
ing another w
indow.
... if a w
indow of the type is not open, a new one is opened display
ing the supplied url.
rewind - Archive of obsolete content
« xul reference home rew
ind() return type: no return value call this method to go back a page.
... it is equivalent to press
ing the back button.
... the canrew
ind property must be set to true for the page to be changed.
... the code
in the onwizardback attribute is called before the page is changed.
canRewind - Archive of obsolete content
« xul reference canrew
ind type: boolean this property is set to true if the user can press the back button to go to the previous page.
...set this property to true to
indicate that the user can go back a page.
... set to false to disallow mov
ing to the previous page.
... this has the effect of enabl
ing or disabl
ing the back button.
Window icons - Archive of obsolete content
start
ing with firefox 1.5, thunderbird 1.5, and xulrunner 1.8, you can specify an icon for a xul w
indow by putt
ing files named myw
indow.ico (for w
indows) and myw
indow.xpm or myw
indow16.xpm (l
inux), where myw
indow is the id of the <w
indow> you want to attach the icon to,
in the chrome/icons/default subfolder of your bundle.
... these icons will override the global icon files, which are located
in app_dir/browser/chrome/icons/default.
... start
ing with firefox 3.0, xulrunner 3.0, thunderbird 3.0 and seamonkey 2.0 you can now specify png format icons
instead of xpm format on l
inux.
... you can specify up to 4 different sizes of png icons us
ing the suffixes .png, 16.png, 32.png and 48.png.
XUL Parser in Python/source - Archive of obsolete content
source code for the xul parser
in python.
... import sys, glob, xmllib import os, re el_list = {} w = open('res.html', 'w') # unfortunately, i had to put this hack
in here to suppress the pr
int
ing out of the resolved namespace: # "xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul w
indow", etc.
... def strip(snip): t = re.sub('http://.*?\s', '', snip) return t class xulparser(xmllib.xmlparser): def unknown_starttag(self, t, a): name = strip(t) if name not
in el_list: el_list[name] = {} for attr,val
in a.items(): el_list[name][strip(attr)] = strip(val) def syntax_error(self, message): pass p = xulparser() cmd = 'dir /s /b *.xul' chrome_dir = 'c:\program files\netscape\netscape 6\chrome' os.chdir(chrome_dir) files = os.popen(cmd).readl
ines() for file
in files: file = file.strip() pr
int '** ' + file + ' **' data = open(file).read() p.feed(data) w.write('<html><h3>periodic table of xul elements</h3>') w.write('<table><style>.head {font-weight: bold; background-color: lightgrey;}</style>') elements = el_list.keys() elements.sort() for item
in elements: w.wri...
...te('<tr><td class="head">' + item + '</td></tr>\n') for a
in el_list[item]: w.write('<tr><td class="at">' + a + '</td>') w.write('</table></html>\n') w.close() ...
toolbarspring - Archive of obsolete content
properties accessibletype examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width ...
...properties accessibletype type:
integer a value
indicat
ing the type of accessibility object for the element.
...
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeat...
...ure, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarspacer, toolbox
interfaces nsiaccessibleprovider ...
NPN_GetIntIdentifier - Archive of obsolete content
« gecko plug
in api reference « script
ing plug
ins summary returns an opaque identifier for the
integer that is passed
in.
... syntax #
include <npruntime.h> npidentifier npn_get
intidentifier(
int32_t
intid); parameters the function has the follow
ing parameter: <tt>
intid</tt> the
integer for which an opaque identifier should be returned.
... returns an npidentifier identify
ing the
integer.
... description all calls for the same
integer are guaranteed to return the same exact identifier.
NPN_GetStringIdentifier - Archive of obsolete content
« gecko plug
in api reference « script
ing plug
ins summary returns an opaque identifier for the str
ing that is passed
in.
... syntax #
include <npruntime.h> npidentifier npn_getstr
ingidentifier(const nputf8 *name); parameters the function has the follow
ing parameters: <tt>name</tt> the str
ing for which an opaque identifier should be returned.
... returns an npidentifier identify
ing the str
ing.
... description all calls for the same str
ing are guaranteed to return the same exact identifier.
NPN_IntFromIdentifier - Archive of obsolete content
« gecko plug
in api reference « script
ing plug
ins summary returns the
integer value correspond
ing to the given
integer identifier.
... syntax #
include <npruntime.h>
int32_t npn_
intfromidentifier(npidentifier identifier); parameters the function has the follow
ing parameter: <tt>identifier</tt> the
integer identifier whose correspond
ing
integer value should be returned.
... returns an
integer correspond
ing to the specified <tt>identifier</tt>.
... note: the behavior of this function is undef
ined if <tt>identifier</tt> isn't an
integer identifier.
NPString - Archive of obsolete content
« gecko plug
in api reference « script
ing plug
ins summary npstr
ing is a struct that holds a po
inter to a sequence of 8-bit units (nputf8) mak
ing up a utf-8 str
ing, and the number of 8-bit units
in the utf-8 str
ing.
... note: whenever an npstr
ing owns its str
ing data and the data may be released through a call to npn_releasevariantvalue(), the str
ing data must be allocated us
ing npn_memalloc().
... syntax typedef struct _npstr
ing { const nputf8 *utf8characters; u
int32_t utf8length; } npstr
ing; fields the data structure has the follow
ing fields: utf8characters an array of the utf-8 characters compris
ing the str
ing.
... utf8length the number of bytes
in the utf-8 str
ing (not the number of characters).
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.
... the names of all of these methods beg
in with npp_ to
indicate that they are implemented by the plug-
in and called by the browser.
... for an overview of how these two sides of the plug-
in api
interact, see the how plug-
ins work and overview of plug-
in structure sections
in the
introduction.
... npp_destroy npp_destroystream npp_getvalue np_getvalue npp_handleevent np_
initialize npp_new npp_newstream npp_pr
int npp_setvalue npp_setw
indow np_shutdown npp_streamasfile npp_urlnotify npp_write npp_writeready ...
-ms-flow-into - Archive of obsolete content
the -ms-flow-
into css property is a microsoft extension that gets or sets a value identify
ing an iframe conta
iner
in the document that serves as the region's data source.
...
initial valuenoneapplies toiframe elements
inheritednocomputed valueas specifiedanimation typediscrete syntax values none default.
... no conta
iner has been specified.
... <custom-ident> the name of the region conta
iner.
-ms-scroll-limit-x-min - Archive of obsolete content
the -ms-scroll-limit-x-m
in css property is a microsoft extension that specifies the m
inimum value for the element.scrollleft property.
...
initial value0applies tonon-replaced block-level elements and non-replaced
inl
ine-block elements
inheritednocomputed valueas specifiedanimation typediscrete syntax values <length> the m
inimum value for the scrollleft property.
... the specified behavior of the -ms-scroll-limit-x-m
in property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undef
ined at other zoom factors.
... this property requires w
indows 8 or later.
-ms-scroll-limit-y-min - Archive of obsolete content
the -ms-scroll-limit-y-m
in css property is a microsoft extension that specifies the m
inimum value for the element.scrolltop property.
...
initial value0applies tonon-replaced block-level elements and non-replaced
inl
ine-block elements
inheritednocomputed valueas specifiedanimation typediscrete syntax values <length> the m
inimum value for the scrolltop property.
... the specified behavior of the -ms-scroll-limit-y-m
in property is only applicable at a mscontentzoomfactor of 1; the behavior of this property is undef
ined at other zoom factors.
... this property requires w
indows 8 or later.
-moz-windows-glass - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... syntax <
integer> if the user is us
ing w
indows glass theme, this is 1; otherwise it's 0.
... note that this only exists for w
indows 7 and earlier.
... media: media/visual accepts m
in/max prefixes: no ...
-moz-windows-theme - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... the -moz-w
indows-theme gecko-only css media feature is useful for customiz
ing application sk
ins and other chrome code to work well with the user's w
indows theme.
... syntax the -moz-w
indows-theme feature is specified as a keyword value that
indicates which w
indows theme is currently be
ing used.
... values aero luna-blue luna-olive luna-silver royale generic zune media: media/visual accepts m
in/max prefixes: no ...
ScriptEngine() - Archive of obsolete content
the scripteng
ine function gets the name of the script
ing language
in use.
... syntax scripteng
ine() remarks the scripteng
ine function returns "jscript", which
indicates that javascript is the current script
ing eng
ine.
... example the follow
ing example illustrates the use of the scripteng
ine function: if (w
indow.scripteng
ine) { console.log(w
indow.scripteng
ine()); } // output: jscript requirements supported
in the follow
ing document modes: quirks,
internet explorer 6 standards,
internet explorer 7 standards,
internet explorer 8 standards,
internet explorer 9 standards,
internet explorer 10 standards,
internet explorer 11 standards.
... also supported
in store apps (w
indows 8 and w
indows phone 8.1).
RFE to the Custom Controls Interfaces - Archive of obsolete content
introduction this page conta
ins requests for enhancement to the custom control
interfaces.
...
in short, we have the follow
ing
interfaces: nsixformsaccessors - serves to get/set the value of the
instance data node that the xforms element is bound to as well as gett
ing the various states of that node nsixformsdelegate - used to obta
in the nsixformsaccessors
interface nsixformsuiwidget - used by the xforms processor to update the value/state of an xforms element when its bound node's value/state is changed our current mechanism that allows authors to build custom controls assumes that the controls will be bound to
instance nodes of simple content type.
... this means that the bound node is not allowed to conta
in element nodes.
... if you need to have a custom control that works with complext content or you f
ind our
interfaces too limit
ing to create the type of control that you have
in m
ind, then this is the right place to pass along your requirements and any usecase that you are try
ing to solve.
Ajax - MDN Web Docs Glossary: Definitions of Web-related terms
ajax, which
initially stood for asynchronous javascript and xml, is a programm
ing practice of build
ing complex, dynamic webpages us
ing a technology known as xmlhttprequest.
... ajax allows you to update parts of the dom of an html page
instead without the need for a full page refresh.
... ajax also lets you work asynchronously, mean
ing your code cont
inues to run while the targeted part of your web page is try
ing to reload (compared to synchronously, which blocks your code from runn
ing until that part of your page is done reload
ing).
... with
interactive websites and modern web standards, ajax is gradually be
ing replaced by functions with
in javascript frameworks and the official fetch api standard.
Alpha (alpha channel) - MDN Web Docs Glossary: Definitions of Web-related terms
colors are represented
in digital form as a collection of numbers, each represent
ing the strength or
intensity level of a given component of the color.
...
in a typical image file, the color channels describe how much red, green, and blue are used to make up the f
inal color.
...below you see a small box of that color
in the top-left corner and a box of the same color but with an alpha channel set at 0.5 (50% opacity).
... learn more general knowledge alpha composit
ing on wikipedia rgba color model on wikipedia channel (digital image) on wikipedia technical reference css color ...
Block cipher mode of operation - MDN Web Docs Glossary: Definitions of Web-related terms
a block cipher mode of operation, usually just called a "mode"
in context, specifies how a block cipher should be used to encrypt or decrypt messages that are longer than the block size.
... most symmetric-key algorithms currently
in use are block ciphers: this means that they encrypt data a block at a time.
... the size of each block is fixed and determ
ined by the algorithm: for example aes uses 16-byte blocks.
...us
ing an
inappropriate mode, or us
ing a mode
incorrectly, can completely underm
ine the security provided by the underly
ing cipher.
Boolean - MDN Web Docs Glossary: Definitions of Web-related terms
in computer science, a boolean is a logical data type that can have only the values true or false.
... for example,
in javascript, boolean conditionals are often used to decide which sections of code to execute (such as
in if statements) or repeat (such as
in for loops).
... below is some javascript pseudocode (it's not truly executable code) demonstrat
ing this concept.
...nal) { // code to execute if the conditional is true } if (boolean conditional) { console.log("boolean conditional resolved to true"); } else { console.log("boolean conditional resolved to false"); } /* javascript for loop */ for (control variable; boolean conditional; counter) { // code to execute repeatedly if the conditional is true } for (var i=0; i < 4; i++) { console.log("i pr
int only when the boolean conditional is true"); } the boolean value is named after english mathematician george boole, who pioneered the field of mathematical logic.
Bootstrap - MDN Web Docs Glossary: Definitions of Web-related terms
bootstrap is a free, open source html, css, and javascript framework for quickly build
ing responsive websites.
...
initially, bootstrap was called twitter bluepr
int and was developed by a team work
ing at twitter.
... it supports responsive design and features predef
ined design templates that you can use out of the box, or customize for your needs with your code.
... you don't need to worry about compatibility with other browsers either, as bootstrap is compatible with all modern browsers and newer versions of
internet explorer.
CDN - MDN Web Docs Glossary: Definitions of Web-related terms
cdns are used widely for deliver
ing stylesheets and javascript files (static assets) of libraries like bootstrap, jquery etc.
... us
ing cdn for those library files is preferable for a number of reasons: serv
ing libraries' static assets over cdn lowers the request burden on an organization's own servers.
... cdns are already configured with proper cache sett
ings.
... us
ing a cdn saves further configuration for static assets on your own servers.
Canonical order - MDN Web Docs Glossary: Definitions of Web-related terms
in css, canonical order is used to refer to the order
in which separate values need to be specified (or parsed) or are to be serialized as part of a css property value.
... it is def
ined by the formal syntax of the property and normally refers to the order
in which longhand values should be specified as part of a s
ingle shorthand value.
...the canonical order of those longhand values is def
ined as background-image background-position background-size background-repeat background-attachment background-orig
in background-clip background-color furthermore, its syntax def
ines, that if a value for the background-size is given, it must be specified after the value for the background-position, separated by a slash.
... other values may appear
in any order.
Element - MDN Web Docs Glossary: Definitions of Web-related terms
in xml and html, an element may conta
in a data item or a chunk of text or an image, or perhaps noth
ing.
... a typical element
includes an open
ing tag with some attributes, enclosed text content, and a clos
ing tag.
... elements and tags are not the same th
ings.
... tags beg
in or end an element
in source code, whereas elements are part of the dom, the document model for display
ing the page
in the browser.
Entity header - MDN Web Docs Glossary: Definitions of Web-related terms
an entity header is an http header that can be used
in an http request or response, and describes the content of the body of themessage.
... headers like content-length, content-language, content-encod
ing are entities headers.
... even if they are neither request, nor response headers, entity headers are often
included
in such terms.
... a few request headers after a get request:
in the follow
ing example, content-length is an entity header, while host and user-agent are requests headers: post /myform.html http/1.1 host: developer.mozilla.org user-agent: mozilla/5.0 (mac
intosh;
intel mac os x 10.9; rv:50.0) gecko/20100101 firefox/50.0 content-length: 128 learn more technical knowledge list of all http headers ...
frame rate (FPS) - MDN Web Docs Glossary: Definitions of Web-related terms
a frame rate is the the speed at which the browser is able to recalculate, layout and pa
int content to the display.
... the frames per second, or fps, is how many frames can be repa
inted
in one second.
... the goal frame rate for
in web site computer graphics is 60fps.
...when mov
ing on a computer screen there are no motion blurs (unless you are animat
ing an image sprite with motion blurs).
FTP - MDN Web Docs Glossary: Definitions of Web-related terms
ftp (file transfer protocol) was the standard protocol for many years for transferr
ing files from one host to another over the
internet.
...
increas
ingly, though, teams and host
ing accounts don't allow ftp and
instead rely on a version control system like git.
... you will still f
ind it used on older host
ing accounts, but it is safe to say that ftp is no longer considered best practice.
... learn more general knowledge beg
inner's guide to upload
ing files via ftp ftp on wikipedia ...
Favicon - MDN Web Docs Glossary: Definitions of Web-related terms
a favicon (favorite icon) is a t
iny icon
included along with a website, which is displayed
in places like the browser's address bar, page tabs and bookmarks menu.
... note, however, that most modern browsers replaced the favicon from the address bar by an image
indicat
ing whether or not the website is us
ing https.
... usually, a favicon is 16 x 16 pixels
in size and stored
in the gif, png, or ico file format.
...when a familiar icon is seen
in the browser's address bar, for example, it helps users know they are
in the right place.
Forbidden header name - MDN Web Docs Glossary: Definitions of Web-related terms
a forbidden header name is the name of any http header that cannot be modified programmatically; specifically, an http request header name (
in contrast with a forbidden response header name).
... modify
ing such headers is forbidden because the user agent reta
ins full control over them.
... names start
ing with `sec-` are reserved for creat
ing new headers safe from apis us
ing fetch that grant developers control over headers, such as xmlhttprequest.
... forbidden header names start with proxy- or sec-, or are one of the follow
ing names: accept-charset accept-encod
ing access-control-request-headers access-control-request-method connection content-length cookie cookie2 date dnt expect feature-policy host keep-alive orig
in proxy- sec- referer te trailer transfer-encod
ing upgrade via note: the user-agent header is no longer forbidden, as per spec — see forbidden header name list (this was implemented
in firefox 43) — it can now be set
in a fetch headers object, or via xhr setrequestheader().
Garbage collection - MDN Web Docs Glossary: Definitions of Web-related terms
garbage collection is a term used
in computer programm
ing to describe the process of f
ind
ing and delet
ing objects which are no longer be
ing referenced by other objects.
...
in other words, garbage collection is the process of remov
ing any objects which are not be
ing used by any other objects.
... learn more general knowledge memory management on wikipedia garbage collection on wikipedia technical reference garbage collection
in the mdn javascript guide.
... memory management
in javascript ...
Google Chrome - MDN Web Docs Glossary: Definitions of Web-related terms
chrome supports its own layout called bl
ink.
... note that the ios version of chrome uses that platform's webview, not bl
ink.
... learn more general knowledge google chrome on wikipedia for chrome users use one of these l
inks if you're an everyday user.
... android ios desktop for web developers if you want to try the latest chrome features,
install one of the pre-stable builds.
HMAC - MDN Web Docs Glossary: Definitions of Web-related terms
hmac is a protocol used for cryptographically authenticat
ing messages.
... it can use any k
ind of cryptographic functions, and its strengh depends on the underly
ing function (sha1 or md5 for
instance), and the chosen secret key.
... with such a comb
ination, the hmac verification algorithm is then known with a compound name such as hmac-sha1.
... hmac is used to ensure both
integrity and authentication.
ITU - MDN Web Docs Glossary: Definitions of Web-related terms
the
international telecommunication union (itu) is the organization authorized by the united nations to establish standards and rules for telecommunication,
includ
ing telegraph, radio, telephony and the
internet.
... from def
ining rules for ensur
ing transmissions get to where they need to go to and creat
ing the "sos" alert signal used
in morse code, the itu has long played a key role
in how we use technology to exchange
information and ideas.
...
in the
internet age, the itu's role of establish
ing standards for video and audio data formats used for stream
ing, teleconferenc
ing, and other purposes.
... for example, the itu and the mov
ing picture experts group (mpeg) worked together to develop and publish, as well as to ma
inta
in, the various mpeg specifications, such as mpeg-2 (itu h.262), avc (itu h.264), and hevc (itu h.265).
Identifier - MDN Web Docs Glossary: Definitions of Web-related terms
an identifier is a sequence of characters
in the code that identifies a variable, function, or property.
...
in javascript, identifiers are case-sensitive and can conta
in unicode letters, $, _, and digits (0-9), but may not start with a digit.
... an identifier differs from a str
ing
in that a str
ing is data, while an identifier is part of the code.
...
in javascript, there is no way to convert identifiers to str
ings, but sometimes it is possible to parse str
ings
into identifiers.
Java - MDN Web Docs Glossary: Definitions of Web-related terms
java is a compiled, object-oriented, highly portable programm
ing language.
... programs are compiled only once ahead of time
into a proprietary byte code and package format that runs
inside the java virtual mach
ine (jvm).
... the jvm is available across many platforms, which allows java programs to run almost everywhere without the need to be compiled or packaged aga
in.
... this makes it a preferred language
in many large enterprises with heterogenous landscapes, but may be perceived "heavy".
Keyword - MDN Web Docs Glossary: Definitions of Web-related terms
onl
ine keywords are used as queries for search eng
ines or as words identify
ing content on websites.
... when you use a search eng
ine, you use keywords to specify what you are look
ing for, and the search eng
ine returns relevant webpages.
... for more accurate results, try more specific keywords, such as "blue mustang gto"
instead of simply "mustang".
... webpages also use keywords
in a meta tag (
in the <head> section) to describe page content, so search eng
ines can better identify and organize webpages.
Media (Audio-visual presentation) - MDN Web Docs Glossary: Definitions of Web-related terms
the term media (more accurately, multimedia) refers to audio, video, or comb
ined audio-visual material such as music, recorded speech, movies, tv shows, or any other form of content that is presented over a period of time.
... more broadly, media may
include still images such as photographs or other still images.
... media content can be recorded, played back, presented, and at times
interacted with
in various ways.
... learn more general knowledge multimedia on wikipedia technical reference web media technologies: a guide to all the ways media can be used
in web content multimedia and embedd
ing
in the mdn learn
ing area <audio> and <video> elements, used to present media
in html documents ...
Navigation directive - MDN Web Docs Glossary: Definitions of Web-related terms
csp navigation directives are used
in a content-security-policy header and govern to which location a user can navigate to or submit a form to, for example.
... frame-ancestors specifies valid parents that may embed a page us
ing <frame>, <iframe>, <object>, <embed>, or <applet>.
... navigate-to restricts the urls to which a document can
initiate navigation by any means,
includ
ing <form> (if form-action is not specified), <a>, w
indow.location, w
indow.open, etc.
... learn more https://www.w3.org/tr/csp/#directives-navigation other k
inds of directives: fetch directive document directive report
ing directive block-all-mixed-content upgrade-
insecure-requests require-sri-for trusted-types content-security-policy ...
Netscape Navigator - MDN Web Docs Glossary: Definitions of Web-related terms
netscape navigator or netscape was a lead
ing browser
in the 1990s.
... many brows
ing features became standard after netscape
introduced them.
... netscape could display a webpage while load
ing, used javascript for forms and
interactive content, and stored session
information
in cookies.
... despite netscape's technical advantages and
initial dom
inance, by the late 1990s
internet explorer swiftly overtook netscape
in market share.
Syntax error - MDN Web Docs Glossary: Definitions of Web-related terms
an exception caused by the
incorrect use of a pre-def
ined syntax.
... syntax errors are detected while compil
ing or pars
ing source code.
... for example, if you leave off a clos
ing brace (}) when def
ining a javascript function, you trigger a syntax error.
... browser development tools display javascript and css syntax errors
in the console.
TOFU - MDN Web Docs Glossary: Definitions of Web-related terms
trust on first use (tofu) is a security model
in which a client needs to create a trust relationship with an unknown server.
...if no identifier is found, the client can prompt the user to determ
ine if the client should trust the identifier.
... tofu is used
in the ssh protocol,
in http public key p
inn
ing (hpkp) where the browsers will accept the first public key returned by the server, and
in strict-transport-security (hsts) where a browser will obey the redirection rule.
... learn more http public key p
inn
ing (hpkp) public-key-p
ins wikipedia: tofu ...
Truthy - MDN Web Docs Glossary: Definitions of Web-related terms
in javascript, a truthy value is a value that is considered true when encountered
in a boolean context.
... all values are truthy unless they are def
ined as falsy (i.e., except for false, 0, -0, 0n, "", null, undef
ined, and nan).
... javascript uses type coercion
in boolean contexts.
... examples of truthy values
in javascript (which will be coerced to true
in boolean contexts, and thus execute the if block): if (true) if ({}) if ([]) if (42) if ("0") if ("false") if (new date()) if (-42) if (12n) if (3.14) if (-3.14) if (
inf
inity) if (-
inf
inity) specifications specification ecmascript (ecma-262)the def
inition of 'toboolean abstract operation'
in that specification.
Type - MDN Web Docs Glossary: Definitions of Web-related terms
type is a characteristic of a value affect
ing what k
ind of data it can store, and the structure that the data will adhere to.
... for example, a boolean data type can hold only a true or false value at any given time, whereas a str
ing has the ability to hold a str
ing or a sequence of characters, a number can hold numerical values of any k
ind, and so on.
...for example, a value of type number can be multiplied by another number, but not by a str
ing - even if that str
ing conta
ins only a number, such as the str
ing "2".
...comparison between structured types is not always an easy assumption, as even if the previous data structure is the same, there could be
inherited structures
inside of the prototype cha
in.
UI - MDN Web Docs Glossary: Definitions of Web-related terms
user
interface (ui) is anyth
ing that facilitates the
interaction between a user and a mach
ine.
...
in the world of computers, it can be anyth
ing from a keyboard, a joystick, a screen or a program.
...
in case of computer software, it can be a command-l
ine prompt, a webpage, a user
input form, or the front-end of any application.
... learn more general knowledge user
interface on wikipedia front end development on wikipedia ...
URL - MDN Web Docs Glossary: Definitions of Web-related terms
uniform resource locator (url) is a text str
ing that specifies where a resource (such as a web page, image, or video) can be found on the
internet.
...
in the context of http, urls are called "web address" or "l
ink".
... your browser displays urls
in its address bar, for example: https://developer.mozilla.org some browsers display only the part of a url after the "//", that is, the doma
in name.
... learn more general knowledge url on wikipedia learn about it understand
ing urls and their structure specification the syntax of urls is def
ined
in the url liv
ing standard.
UTF-8 - MDN Web Docs Glossary: Definitions of Web-related terms
utf-8 (ucs transformation format 8) is the world wide web's most common character encod
ing.
... the first 128 utf-8 characters precisely match the first 128 ascii characters (numbered 0-127), mean
ing that exist
ing ascii text is already valid utf-8.
...each byte has some bits reserved for encod
ing purposes.
... s
ince non-ascii characters require more than one byte for storage, they run the risk of be
ing corrupted if the bytes are separated and not recomb
ined.
W3C - MDN Web Docs Glossary: Definitions of Web-related terms
the world wide web consortium (w3c) is an
international body that ma
inta
ins web-related rules and frameworks.
... it consists of over 350 member-organizations that jo
intly develop web standards, run outreach programs, and ma
inta
in an open forum for talk
ing about the web.
... the w3c coord
inates companies
in the
industry to make sure they implement the same w3c standards.
... each standard passes through four stages of maturity: work
ing draft (wd), candidate recommendation (cr), proposed recommendation (pr), and w3c recommendation (rec).
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 programm
ing
interface (api).
... it uses a somewhat stylized syntax which is
independent of any specific programm
ing language, so that the underly
ing code which is used to build each api can be written
in whatever language is most appropriate, while still be
ing possible to map the api's components to javascript-compatible constructs.
... webidl is used
in nearly every api specification for the web, and due to its standard format and syntax, the programmers who create web browsers can more easily ensure that their browsers are compatible with one another, regardless of how they choose to write the code to implement the api.
... learn more technical reference specification webidl b
ind
ings webidl ...
Whitespace - MDN Web Docs Glossary: Definitions of Web-related terms
they are often used to separate tokens
in html, css, javascript, and other computer languages.
...
in html html liv
ing standard specifies 5 characters as the ascii whitespace: u+0009 tab, u+000a lf, u+000c ff, u+000d cr, and u+0020 space.
...
in the form of text, they are treated as normal space characters and sequential whitespaces are collapsed as a s
ingle space
in many cases (this behavior can be changed by the white-space css property.
...
in javascript ecmascript® 2015 language specification specifies several unicode codepo
ints as white space: u+0009 character tabulation <tab>, u+000b l
ine tabulation <vt>, u+000c form feed <ff>, u+0020 space <sp>, u+00a0 no-break space <nbsp>, u+feff zero width no-break space <zwnbsp> and other category “zs” any other unicode “separator, space” code po
int <usp>.
XML - MDN Web Docs Glossary: Definitions of Web-related terms
the
information technology (it)
industry uses many languages based on xml as data-description languages.
... xml tags resemble html tags, but xml is much more flexible because it lets users def
ine their own tags.
...
in this way xml acts like a meta-language—that is, it can be used to def
ine other languages, such as rss.
... learn more xml
introduction ...
Character set - MDN Web Docs Glossary: Definitions of Web-related terms
a character set is an encod
ing system to let computers know how to recognize character,
includ
ing letters, numbers, punctuation marks, and whitespace.
...
in earlier times, countries developed their own character sets due to their different languages used, such as kanji jis codes (e.g.
... shift-jis, euc-jp, etc.) for japanese, big5 for traditional ch
inese, and koi8-r for russian.
... if a character set is used
incorrectly (for example, unicode for an acticle encoded
in big5), you may see noth
ing but broken characters, which are called mojibake.
firewall - MDN Web Docs Glossary: Definitions of Web-related terms
it can either let it pass or block it, accord
ing to some specified rules.
... for example, it can block
incom
ing connections aimed at a certa
in port or outgo
ing connections to a certa
in ip address.
... firewalls can be as simple as a s
ingle piece of software, or more complex, like a dedicated mach
ine whose only function is to act as a firewall.
... learn more general knowledge firewall (comput
ing) on wikipedia ...
JPEG - MDN Web Docs Glossary: Definitions of Web-related terms
jpeg (jo
int photographic experts group) is a commonly used method of lossy compression for digital images.
... jpeg compression is composed of three compression techniques applied
in successive layers,
includ
ing chrom
inance subsampl
ing, discrete cos
ine transformation and quantization, and run-length delta & huffman encod
ing.
... chroma subsampl
ing
involves implement
ing less resolution for chroma
information than for luma
information, tak
ing advantage of the human visual system's lower acuity for color differences than for lum
inance.
... a discrete cos
ine transform expresses a f
inite sequence of data po
ints
in terms of a sum of cos
ine functions oscillat
ing at different frequencies.
Protocol - MDN Web Docs Glossary: Definitions of Web-related terms
a protocol is a system of rules that def
ine how data is exchanged with
in or between computers.
... communications between devices require that the devices agree on the format of the data that is be
ing exchanged.
... the set of rules that def
ines a format is called a protocol.
... learn more general knowledge communications protocol on wikipedia rfc official
internet protocol standards ...
JS::StringValue
this article covers features
introduced
in spidermonkey 24 convert a jsstr
ing to a js::value.
... syntax js::value js::str
ingvalue(jsstr
ing* str) name type description str jsstr
ing* a po
inter to a jsstr
ing to convert.
... description js::str
ingvalue converts a given jsstr
ing to js::value.
... see also mxr id search for js::str
ingvalue js::value ...
JS_ASSERT_STRING_IS_FLAT
this article covers features
introduced
in spidermonkey 1.8.5 assert a str
ing is flattened.
... syntax static moz_always_
inl
ine jsflatstr
ing * js_assert_str
ing_is_flat(jsstr
ing *str) { moz_assert(js_str
ingisflat(str)); return (jsflatstr
ing *)str; } name type description str jsstr
ing * str
ing to exam
ine.
... description js_assert_str
ing_is_flat asserts the str
ing is flattened, and returns a po
inter to jsflatstr
ing.
... see also mxr id search for js_assert_str
ing_is_flat js_str
ingisflat bug 609440 ...
JS_CompileUCFunctionForPrincipalsVersion
this article covers features
introduced
in spidermonkey 1.8.5 please provide a description for this function.
... syntax jsfunction * js_compileucfunctionforpr
incipalsversion(jscontext *cx, jsobject *obj, jspr
incipals *pr
incipals, const char *name, unsigned
int nargs, const char **argnames, const jschar *chars, size_t length, const char *filename, unsigned
int l
ineno, jsversion version); name type description cx jscontext * the context.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... obj jsobject * pr
incipals jspr
incipals * name const char * nargs unsigned
int argnames const char ** chars const jschar * length size_t filename const char * l
ineno unsigned
int version jsversion description please provide a description.
JS_GetEmptyString
this article covers features
introduced
in spidermonkey 1.8.5 returns the empty str
ing as a jsstr
ing object.
... syntax jsstr
ing * js_getemptystr
ing(jsruntime *rt); name type description rt jsruntime * the runtime for which to return the empty str
ing.
... description the returned empty str
ing has the length 0.
... see also mxr id search for js_getemptystr
ing js_getstr
inglength js_getemptystr
ingvalue bug 612150 ...
JS_InitCTypesClass
this article covers features
introduced
in spidermonkey 1.8.5
initialize the ctypes object on a global object.
...syntax jsbool js_
initctypesclass(jscontext *cx, jsobject *global); name type description cx jscontext * the context.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... description ctypes capability is disabled
in a build by default.
JS_IsBuiltinEvalFunction
this article covers features
introduced
in spidermonkey 17 return whether the given function is the global eval function.
... syntax bool js_isbuilt
inevalfunction(jsfunction *fun); name type description obj jsfunction * po
inter to the function to test.
... description js_isbuilt
inevalfunction returns whether the given function is the global eval function.
... see also mxr id search for js_isbuilt
inevalfunction js_isbuilt
infunctionconstructor bug 638312 ...
JS_IsExternalString
this article covers features
introduced
in spidermonkey 17 determ
ines whether or not the specified jsstr
ing is an external str
ing (that is, a str
ing created by call
ing js_newexternalstr
ing rather than js_newexternalstr
ingwithclosure).
... syntax bool js_isexternalstr
ing(jsstr
ing *str); name type description str jsstr
ing * the str
ing to check.
... description js_isexternalstr
ing returns true if the str
ing is an external str
ing; otherwise it's false.
... see also mxr id search for js_isexternalstr
ing bug 651041 ...
JS_StringIsFlat
this article covers features
introduced
in spidermonkey 38 determ
ine if a str
ing is flattened.
... syntax bool js_str
ingisflat(jsstr
ing *str); name type description str jsstr
ing * str
ing to exam
ine.
... description js_str
ingisflat returns true if the str
ing is flattened.
... see also mxr id search for js_str
ingisflat bug 1037869 ...
JS_StringToVersion
returns a jsversion value represent
ing the version str
ing.
... syntax jsversion js_str
ingtoversion(const char *str
ing); name type description str
ing const char * version str
ing to convert.
... description js_str
ingtoversion attempts to convert the version str
ing to a jsversion value.
... js_str
ingtoversion may return any of the follow
ing values: str
ing enumeration "1.0" jsversion_1_0 obsolete s
ince jsapi 24 "1.1" jsversion_1_1 obsolete s
ince jsapi 24 "1.2" jsversion_1_2 obsolete s
ince jsapi 24 "1.3" jsversion_1_3 obsolete s
ince jsapi 24 "1.4" jsversion_1_4 obsolete s
ince jsapi 24 "ecmav3" jsversion_ecma_3 "1.5" jsversion_1_5 obsolete s
ince jsapi 24 "1.6" jsversion_1_6 "1.7" jsversion_1_7 "1.8" jsversion_1_8 other jsversion_unknown see also mxr id search for js_str
ingtoversion jsversion js_getversion js_setversionforcompartment js_versiontostr
ing bug 824312 ...
JS_VersionToString
returns a str
ing representation of a jsversion value.
... syntax const char * js_versiontostr
ing(jsversion version); name type description version jsversion version value to convert.
... description js_versiontostr
ing attempts to convert the version to a const char * str
ing representation.
... js_versiontostr
ing may return any of the follow
ing values: enumeration str
ing jsversion_1_0 "1.0" obsolete s
ince jsapi 24 jsversion_1_1 "1.1" obsolete s
ince jsapi 24 jsversion_1_2 "1.2" obsolete s
ince jsapi 24 jsversion_1_3 "1.3" obsolete s
ince jsapi 24 jsversion_1_4 "1.4" obsolete s
ince jsapi 24 jsversion_ecma_3 "ecmav3" jsversion_1_5 "1.5" obsolete s
ince jsapi 24 jsversion_1_6 "1.6" jsversion_1_7 "1.7" jsversion_1_8 "1.8" jsversion_ecma_5 "ecmav5" jsversion_default "default" other null see also mxr id search for js_str
ingtoversion jsversion js_getversion js_setversionforcompartment js_str
ingtoversion bug 824312 ...
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 with
in an xpcom object from a xul w
indow's code, you can do so if you pass the xpcom object as one of the arguments to the w
indow creation method.
... for example: var ww = components.classes["@mozilla.org/embedcomp/w
indow-watcher;1"].
... getservice(components.
interfaces.nsiw
indowwatcher); var w
in = ww.openw
indow(null, "chrome://myextension/content/debug.xul", "debug history", "chrome,centerscreen,resizable", myobject); note
in this example that myobject is passed to the openw
indow() method; you can pass any xpcom object (or any other value, for that matter)
in this way.
... to access the xpcom object from the w
indow's code, you can access the w
indow.arguments[] array, as shown
in the example below: components.utils.reporterror(str
ing(w
indow.arguments[0])); this will produce output similar to "[xpconnect wrapped nsimyxpcomobject]".
amIInstallCallback
toolkit/mozapps/extensions/ami
installtrigger.idlscriptable a callback function that web pages can implement to be notified when triggered
installs complete.
... 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 void on
installended(
in astr
ing aurl,
in pr
int32 astatus); methods on
installended() called when an
install completes or fails.
... void on
installended(
in astr
ing aurl,
in pr
int32 astatus ); parameters aurl the url of the add-on be
ing
installed.
... astatus 0 if the
install was successful or negative if not.
mozIVisitInfo
toolkit/components/places/moziasynchistory.idlscriptable this
interface provides additional
info for a visit.
... 1.0 66
introduced gecko 2.0
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) attributes attribute type description referreruri nsiuri read only: the referr
ing uri of this visit.
...one of the ns
inavbookmarksservice.constants on ns
inavhistory.
... visitid long read only: the mach
ine-local (
internal) id of the visit.
nsIContainerBoxObject
layout/xul/base/public/nsiconta
inerboxobject.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) the boxobject belong
ing to a xul browser, editor or iframe element implements this
interface.
...the nsidocshell object that manages the conta
ined document.
... the browser.xml, editor.xml and general.xml b
ind
ings use this property to ga
in access to other properties such as webnavigation, contentdocument and contentw
indow.
nsIDOMJSWindow
one of the
interfaces implemented by the w
indow dom object.
... this is only a magic
interface to provide the js implementation of a dom w
indow and it should never be used by embedders, the ord
inary dom documentation should cover the rest.
... the
interface is def
ined
in dom/
interfaces/base/nsidomjsw
indow.idl.
... page composed by sebastian gur
in <sgur
in@(nospam)montevideo.com.uy ...
nsIFTPEventSink
the nsiftpevents
ink is an extension of nsisupports.
... last changed
in gecko 1.9 (firefox 3)
inherits from: nsisupports method overview void onftpcontrollog(
in boolean server,
in str
ing msg) methods onftpcontrollog allows a consumer to receive a log of the ftp control connection conversation.
... void onftpcontrollog (
in boolean server,
in str
ing msg); parameters server a boolean value specify
ing whether you are a server or a client.
... msg a str
ing hold
ing response of the last command which had been sent.
nsIInProcessContentFrameMessageManager
add brief description of
interface here!
... 1.0 66
introduced gecko 2.0
inherits from: nsicontentframemessagemanager last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview nsicontent getownercontent(); violates the xpcom
interface guidel
ines methods violates the xpcom
interface guidel
ines getownercontent() nsicontent getownercontent(); parameters none.
... return value the nsicontent object represent
ing the owner's content.
... see also content process event handl
ing nsicontentframemessagemanager ...
nsIInputStreamCallback
xpcom/io/nsiasync
inputstream.idlscriptable this is a companion
interface for nsiasync
inputstream.asyncwait().
...
inherits from: nsisupports last changed
in gecko 1.7 method overview void on
inputstreamready(
in nsiasync
inputstream astream); methods on
inputstreamready() called to
indicate that the stream is either readable or closed.
... void on
inputstreamready(
in nsiasync
inputstream astream ); parameters astream the stream whose nsiasync
inputstream.asyncwait() method was called.
... see also nsiasync
inputstream.asyncwait() ...
nsILoginManagerIEMigrationHelper
toolkit/components/passwordmgr/public/nsilog
inmanageriemigrationhelper.idlscriptable imports a log
in from the nsiieprofilemigrator
into the log
in manager.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) method overview void migrateandaddlog
in(
in nsilog
ininfo alog
in); methods migrateandaddlog
in() takes a log
in provided from nsieprofilemigrator, migrates it to the current log
in manager format, and adds it to the list of stored log
ins.
... note:
in some cases, multiple log
ins may be created from a s
ingle
input when the format is ambiguous.
... void migrateandaddlog
in(
in nsilog
ininfo alog
in ); parameters alog
in the log
in to be migrated.
nsITransportEventSink
inherits from: nsisupports last changed
in gecko 1.7 method overview void ontransportstatus(
in nsitransport atransport,
in nsresult astatus,
in unsigned long long aprogress,
in unsigned long long aprogressmax); methods ontransportstatus() transport status notification.
... void ontransportstatus(
in nsitransport atransport,
in nsresult astatus,
in unsigned long long aprogress,
in unsigned long long aprogressmax ); parameters atransport the transport send
ing this status notification.
... astatus the transport status (resolvable to a str
ing us
ing nsierrorservice).
...aprogress the amount of data either read or written depend
ing on the value of the status code.
Access StringBundle from Overlay
str
ingbundles are handy for localiz
ing your project by remov
ing all of your str
ings
into a separate, easy to access text file.
... unfortunately add
ing the bundles
into thunderbird isn't as easy as add
ing them to your xul overlay.
... the most efficient way to append these str
ings is by attach
ing them to an exist
ing str
ingbundleset as such: <str
ingbundleset id="str
ingbundleset"> <str
ingbundle src="chrome://your_extension/locale/overlay.properties" id="your-extension-str
ings" /> </str
ingbundleset> now that your str
ingbundle is attached you can access it from javascript as follows: var str = document.getelementbyid("your-extension-str
ings"); //get the str
ingbundle object itself str.getstr
ing("propertyname"); //get a str
ing (and do someth
ing with it) alternative way let str
ingbundleservice = cc["@mozilla.org/
intl/str
ingbundle;1"].getservice(ci.nsistr
ingbundleservice); let bundle = str
ingbundleservice.createbundle("chrome://your_extension/locale/overlay.properties"); let str = bundl...
...e.getstr
ingfromname("propertyname"); see nsistr
ingbundleservice ...
Throttling - Firefox Developer Tools
throttl
ing the toolbar
includes a throttl
ing dropdown, which allows you to throttle your network speed to emulate various different network speed conditions.
... the characteristics emulated are: download speed upload speed m
inimum latency the table below lists the numbers associated with each network type, but please do not rely on this feature for exact performance measurements; it's
intended to give an approximate idea of the user experience
in different conditions.
... the speeds are expressed
in multiples of bits per second.
... selection download speed upload speed m
inimum latency (ms) gprs 50 kbps 20 kbps 500 regular 2g 250 kbps 50 kbps 300 good 2g 450 kbps 150 kbps 150 regular 3g 750 kbps 250 kbps 100 good 3g 1.5 mbps 750 kbps 40 regular 4g/lte 4 mbps 3 mbps 20 dsl 2 mbps 1 mbps 5 wi-fi 30 mbps 15 mbps 2 network monitor features the follow
ing articles cover different aspects of us
ing the network monitor: toolbar network request list network request details network traffic record
ing performance analysis ...
Inspect and select colors - Firefox Developer Tools
in the css pane's rules view, if a rule conta
ins a color value, you'll see a sample of the color next to the value: a color sample is also shown for css custom properties (variables) that represent colors.
... if you click on the color sample, you'll see a color picker popup, enabl
ing you to change the color: if the color is a foreground color, the color picker tells you whether its contrast with the background color meets accessibility guidel
ines.
... hover
ing the mouse over the contrast message gives a more detailed explanation.
... the color picker
includes an eyedropper icon: click
ing this icon enables you to use the eyedropper to select a new color for the element from the page: click
ing the color sample while hold
ing down the shift key changes the color format: ...
Reposition elements in the page - Firefox Developer Tools
new
in firefox 48 start
ing
in firefox 48 you can move absolutely positioned elements by dragg
ing them around the page.
... if the element is absolutely positioned, dashed l
ines are shown represent
ing the offset parent.
... for relatively positioned elements the dashed l
ines
indicate the orig
inal position of the node.
... the offsets are
indicated by a l
ine and a tooltip for each side.
Animation.pending - Web APIs
the read-only animation.pend
ing property of the web animations api
indicates whether the animation is currently wait
ing for an asynchronous operation such as
initiat
ing playback or paus
ing a runn
ing animation.
... syntax var pend
ing = animation.pend
ing; value true if the animation is pend
ing, false otherwise.
... specifications specification status comment web animationsthe def
inition of 'pend
ing'
in that specification.
... work
ing draft ...
AnimationEffect.getTiming() - Web APIs
the animationeffect.gettim
ing() method of the animationeffect
interface returns an effecttim
ing object conta
ining the tim
ing properties for the animation effect.
... syntax animationtim
ing = animation.gettim
ing(); returns an effecttim
ing object.
... specifications specification status comment web animationsthe def
inition of 'animationeffect.gettim
ing()'
in that specification.
... work
ing draft editor's draft.
AnimationEffect.updateTiming() - Web APIs
the updatetim
ing() method of the animationeffect
interface updates the specified tim
ing properties for an animation effect.
... syntax animation.updatetim
ing(tim
ing); parameters tim
ing an optionaleffecttim
ing object conta
ining the tim
ing properties to update.
... specifications specification status comment web animationsthe def
inition of 'animationeffect.updatetim
ing()'
in that specification.
... work
ing draft editor's draft.
BatteryManager.onchargingchange - Web APIs
specifies an event listener to receive charg
ingchange events.
... these events occur when the battery charg
ing state is updated.
... syntax battery.oncharg
ingchange = funcref where battery is a batterymanager object, and funcref is a function to be called when the charg
ingchange event occurs.
... example html content <div id="level">(battery level unknown)</div> <div id="charg
ingtime">(charg
ing time unknown)</div> javascript content navigator.getbattery().then(function(battery) { battery.oncharg
ingchange = charg
ingchange(); function charg
ingchange() { document.queryselector('#level').textcontent = battery.level; document.queryselector('#charg
ingtime').textcontent = battery.charg
ingtime; } }); specifications specification status comment battery status api candidate recommendation
initial def
inition ...
BatteryManager.onchargingtimechange - Web APIs
specifies an event listener to receive charg
ingtimechange events.
... these events occur when the battery charg
ingtime is updated.
... syntax battery.oncharg
ingtimechange = funcref where battery is a batterymanager object, and funcref is a function to be called when the charg
ingtimechange event occurs.
... example html content <div id="level">(battery level unknown)</div> <div id="charg
ingtime">(charg
ing time unknown)</div> javascript content navigator.getbattery().then(function(battery) { battery.oncharg
ingtimechange = charg
ingtimechange(); function charg
ingtimechange(){ document.queryselector('#level').textcontent = battery.level; document.queryselector('#charg
ingtime').textcontent = battery.charg
ingtime; } }); specifications specification status comment battery status api candidate recommendation
initial def
inition ...
BatteryManager.ondischargingtimechange - Web APIs
specifies an event listener to receive discharg
ingtimechange events.
... these events occur when the battery discharg
ingtime is updated.
... syntax battery.ondischarg
ingtimechange = funcref where battery is a batterymanager object, and funcref is a function to be called when the discharg
ingtimechange event occurs.
... example html content <div id="level">(battery level unknown)</div> <div id="charg
ingtime">(charg
ing time unknown)</div> javascript content navigator.getbattery().then(function(battery) { battery.ondischarg
ingtimechange = discharg
ingtimechange; function discharg
ingtimechange(){ document.queryselector('#level').textcontent = battery.level; document.queryselector('#charg
ingtime').textcontent = battery.charg
ingtime; } }); specifications specification status comment battery status api candidate recommendation
initial def
inition ...
GeolocationCoordinates.speed - Web APIs
the geolocationcoord
inates.speed read-only property is a double represent
ing the velocity of the device
in meters per second.
... syntax let speed = geolocationcoord
inates
instance.speed value a double represent
ing the velocity of the device
in meters per second.
... specifications specification status comment geolocation apithe def
inition of 'geolocationcoord
inates.speed'
in that specification.
... recommendation
initial specification.
GlobalEventHandlers.ongotpointercapture - Web APIs
the ongotpo
intercapture property of the globaleventhandlers mix
in is an eventhandler that processes gotpo
intercapture events.
... syntax target.ongotpo
intercapture = functionref; value functionref is a function name or a function expression.
... the function receives a po
interevent object as its sole argument.
... example function overhandler(event) { // determ
ine the target event's gotpo
intercapture handler let gotcapturehandler = event.target.ongotpo
intercapture; } function
init() { let el = document.getelementbyid('target'); el.ongotpo
intercapture = overhandler; } specifications specification status comment po
inter events – level 2the def
inition of 'ongotpo
intercapture'
in that specification.
GlobalEventHandlers.onlostpointercapture - Web APIs
the onlostpo
intercapture property of the globaleventhandlers mix
in is an eventhandler that processes lostpo
intercapture events.
... syntax target.onlostpo
intercapture = functionref; value functionref is a function name or a function expression.
... the function receives a po
interevent object as its sole argument.
... example function overhandler(event) { // determ
ine the target event's lostpo
intercapture handler let lostcapturehandler = event.target.onlostpo
intercapture; } function
init() { let el = document.getelementbyid('target'); el.onlostpo
intercapture = overhandler; } specifications specification status comment po
inter events – level 2the def
inition of 'onlostpo
intercapture'
in that specification.
HTMLElement: gotpointercapture event - Web APIs
the gotpo
intercapture event is fired when an element captures a po
inter us
ing setpo
intercapture().
... bubbles yes cancelable no
interface po
interevent event handler property ongotpo
intercapture examples this example gets a <p> element and listens for the gotpo
intercapture event.
... it then calls setpo
intercapture() on the element on a po
interdown event, which will trigger gotpo
intercapture.
... const para = document.queryselector('p'); para.addeventlistener('gotpo
intercapture', () => { console.log('i\'ve been captured!') }); para.addeventlistener('po
interdown', (event) => { para.setpo
intercapture(event.po
interid); }); the same example, us
ing the ongotpo
intercapture event handler property: const para = document.queryselector('p'); para.ongotpo
intercapture = () => { console.log('i\'ve been captured!') }; para.addeventlistener('po
interdown', (event) => { para.setpo
intercapture(event.po
interid); }); specifications specification status po
inter events obsolete ...
HTMLElement: lostpointercapture event - Web APIs
the lostpo
intercapture event is fired when a captured po
inter is released.
... bubbles yes cancelable no
interface po
interevent event handler property onlostpo
intercapture examples this example listens for the lostpo
intercapture event for an element, and captures the po
inter for the element on po
interdown.
... when the user subsequently releases the po
inter, the lostpo
intercapture event will be fired.
... const para = document.queryselector('p'); para.addeventlistener('lostpo
intercapture', () => { console.log('i\'ve been released!') }); para.addeventlistener('po
interdown', (event) => { para.setpo
intercapture(event.po
interid); }); the same example, but us
ing the onlostpo
intercapture event handler property: const para = document.queryselector('p'); para.onlostpo
intercapture = () => { console.log('i\'ve been released!') }; para.addeventlistener('po
interdown', (event) => { para.setpo
intercapture(event.po
interid); }); specifications specification status po
inter events obsolete ...
HTMLHyperlinkElementUtils.hash - Web APIs
the htmlhyperl
inkelementutils.hash property returns a usvstr
ing conta
ining a '#' followed by the fragment identifier of the url.
...if the url does not have a fragment identifier, this property conta
ins an empty str
ing, "".
... syntax str
ing = object.hash; object.hash = str
ing; examples <a id="myanchor" href="/docs/htmlhyperl
inkelementutils.href#examples">examples</a> <script> var anchor = document.getelementbyid("myanchor"); console.log(anchor.hash); // returns '#examples' </script> specifications specification status comment html liv
ing standardthe def
inition of 'htmlhyperl
inkelementutils.hash'
in that specification.
... liv
ing standard
initial def
inition ...
HTMLHyperlinkElementUtils.password - Web APIs
the htmlhyperl
inkelementutils.password property is a usvstr
ing conta
ining the password specified before the doma
in name.
... if it is set without first sett
ing the username property, it silently fails.
... syntax str
ing = object.password; object.password = str
ing; examples // let's <a id="myanchor" href="https://anonymous:flabada@developer.mozilla.org/docs/htmlhyperl
inkelementutils.username"> be
in the document var anchor = document.getelementbyid("myanchor"); var result = anchor.password; // returns:'flabada' specifications specification status comment html liv
ing standardthe def
inition of 'htmlhyperl
inkelementutils.password'
in that specification.
... liv
ing standard
initial def
inition.
HTMLHyperlinkElementUtils.port - Web APIs
the htmlhyperl
inkelementutils.port property is a usvstr
ing conta
ining the port number of the url.
... if the url does not conta
in an explicit port number, it will be set to ''.
... syntax str
ing = object.port; object.port = str
ing; examples // let's an <a id="myanchor" href="https://developer.mozilla.org:443/docs/htmlhyperl
inkelementutils.port"> element be
in the document var anchor = document.getelementbyid("myanchor"); var result = anchor.port; // returns:'443' specifications specification status comment html liv
ing standardthe def
inition of 'htmlhyperl
inkelementutils.port'
in that specification.
... liv
ing standard
initial def
inition.
HTMLHyperlinkElementUtils.search - Web APIs
the htmlhyperl
inkelementutils.search property is a search str
ing, also called a query str
ing, that is usvstr
ing conta
ining a '?' followed by the parameters of the url.
... modern browsers provide urlsearchparams and url.searchparams to make it easy to parse out the parameters from the querystr
ing.
... syntax str
ing = object.search; object.search = str
ing; examples // let an <a id="myanchor" href="https://developer.mozilla.org/docs/htmlhyperl
inkelementutils.search?q=123"> element be
in the document var anchor = document.getelementbyid("myanchor"); var querystr
ing = anchor.search; // returns:'?q=123' // further pars
ing: let params = new urlsearchparams(querystr
ing); let q = parse
int(params.get("q")); // is the number 123 specifications specification status comment html liv
ing standardthe def
inition of 'htmlhyperl
inkelementutils.search'
in that specification.
... liv
ing standard
initial def
inition.
HTMLMediaElement: playing event - Web APIs
the play
ing event is fired when playback is ready to start after hav
ing been paused or delayed due to lack of data.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onplay
ing specification html5 media examples these examples add an event listener for the htmlmediaelement's play
ing event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('play
ing', (event) => { console.log('video is no longer paused'); }); us
ing the onplay
ing event handler property: const video = document.queryselector('video'); video.onplay
ing = (event) => { console.log('video is no longer paused.'); }; specifications specification status html liv
ing standardthe def
inition of 'play
ing media event'
in that specification.
... liv
ing standard html5the def
inition of 'play
ing media event'
in that specification.
HTMLMediaElement: seeking event - Web APIs
the seek
ing event is fired when a seek operation starts, mean
ing the boolean seek
ing attribute has changed to true and the media is seek
ing a new position.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onseek
ing specification html5 media examples these examples add an event listener for the htmlmediaelement's seek
ing event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('seek
ing', (event) => { console.log('video is seek
ing a new position.'); }); us
ing the onseek
ing event handler property: const video = document.queryselector('video'); video.onseek
ing = (event) => { console.log('video is seek
ing a new position.'); }; specifications specification status html liv
ing standardthe def
inition of 'seek
ing media event'
in that specification.
... liv
ing standard html5the def
inition of 'seek
ing media event'
in that specification.
HTMLMediaElement: waiting event - Web APIs
the wait
ing event is fired when playback has stopped because of a temporary lack of data.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onwait
ing specification html5 media examples these examples add an event listener for the htmlmediaelement's wait
ing event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('wait
ing', (event) => { console.log('video is wait
ing for more data.'); }); us
ing the onwait
ing event handler property: const video = document.queryselector('video'); video.onwait
ing = (event) => { console.log('video is wait
ing for more data.'); }; specifications specification status html liv
ing standardthe def
inition of 'wait
ing media event'
in that specification.
... liv
ing standard html5the def
inition of 'wait
ing media event'
in that specification.
HTMLObjectElement.contentWindow - Web APIs
the contentw
indow read-only property of the htmlobjectelement
interface returns a w
indowproxy represent
ing the w
indow proxy of the object element's nested brows
ing context, if any; otherwise null.
... syntax var w
indowproxy = htmlobjectelement.contentw
indow; value a w
indowproxy.
... specifications specification status comment html liv
ing standardthe def
inition of 'contentw
indow'
in that specification.
... liv
ing standard
initial def
inition.
KeyboardEvent.isComposing - Web APIs
the keyboardevent.iscompos
ing read-only property returns a boolean value
indicat
ing if the event is fired with
in a composition session, i.e.
... syntax var bool = event.iscompos
ing; example var kbdevent = new keyboardevent("synthetickey", false); console.log(kbdevent.iscompos
ing); // return false specifications specification status comment ui eventsthe def
inition of 'keyboardevent.prototype.iscompos
ing'
in that specification.
... work
ing draft document object model (dom) level 3 events specificationthe def
inition of 'keyboardevent.prototype.iscompos
ing'
in that specification.
... obsolete
initial def
inition.
Location: origin - Web APIs
the orig
in read-only property of the location
interface is a usvstr
ing conta
ining the unicode serialization of the orig
in of the represented url; that is: for url us
ing the http or https, the scheme followed by '://', followed by the doma
in, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url us
ing file: scheme, the value is browser dependant; for url us
ing the blob: scheme, the orig
in of the url follow
ing blob:.
... note: this feature is available
in web workers.
... syntax str
ing = object.orig
in; examples // on this page, returns the orig
in var result = w
indow.location.orig
in; // returns:'https://developer.mozilla.org' specifications specification status comment html liv
ing standardthe def
inition of 'orig
in'
in that specification.
... liv
ing standard
initial def
inition.
WindowEventHandlers.onrejectionhandled - Web APIs
the onrejectionhandled property of the w
indoweventhandlers mix
in is the eventhandler for process
ing rejectionhandled events.
... syntax w
indow.addeventlistener("rejectionhandled", function(event) { ...
... }); w
indow.onrejectionhandled = function(event) { ...}; example w
indow.onrejectionhandled = function(e) { console.log(e.reason); } specifications specification status comment html liv
ing standardthe def
inition of 'onrejectionhandled'
in that specification.
... liv
ing standard
initial def
inition.
WorkerGlobalScope.onoffline - Web APIs
the onoffl
ine property of the workerglobalscope
interface represents an eventhandler to be called when the offl
ine event occurs and bubbles through the worker.
... syntax self.onoffl
ine = function() { ...
... }; example the follow
ing code snippet shows an onoffl
ine handler set
inside a worker: self.onoffl
ine = function() { console.log('your worker is now offl
ine'); } specifications specification status comment html liv
ing standardthe def
inition of 'workerglobalscope.onoffl
ine'
in that specification.
... liv
ing standard ...
WorkerGlobalScope.ononline - Web APIs
the ononl
ine property of the workerglobalscope
interface represents an eventhandler to be called when the onl
ine event occurs and bubbles through the worker.
... syntax self.ononl
ine = function() { ...
... }; example the follow
ing code snippet shows an ononl
ine handler set
inside a worker: self.ononl
ine = function() { console.log('your worker is now onl
ine'); } specifications specification status comment html liv
ing standardthe def
inition of 'workerglobalscope.ononl
ine'
in that specification.
... liv
ing standard ...
XDomainRequest.onprogress - Web APIs
this method is called periodically as an event handler for progress events on xdoma
inrequests, so that code can monitor progress while load
ing content.
... note: while handl
ing this event, you can look at xdoma
inrequest.responsetext to get the response so far.
... once load
ing is complete, the xdoma
inrequest.onload event handler gets called.
... example var xdr = new xdoma
inrequest(); xdr.open("post", "http://example.com/api/method"); xdr.onprogress = function(){ //handle partial response with xdr.responsetext } xdr.onload = function(){ //handle response with xdr.responsetext } xdr.send("param1=value1¶m2=value2"); specification not part of any specification.
XRInputSourcesChangeEvent.session - Web APIs
the xr
inputsourceschangeevent property session specifies the xrsession to which the
input source list change event applies.
... syntax let
inputssession = xr
inputsourceschangeevent.session; value an xrsession
indicat
ing the webxr session to which the
input source list change applies.
... specifications specification status comment webxr device apithe def
inition of 'xr
inputsourceschangeevent.session'
in that specification.
... work
ing draft
initial def
inition.
XRReferenceSpaceEventInit.referenceSpace - Web APIs
the xrreferencespaceevent
init property referencespace is used to establish the value of a newly-constructed xrreferencespaceevent object when call
ing the xrreferencespaceevent() constructor.
... syntax let event
initdict = { referencespace: xrreferencespace, transform: xrrigidtransform }); value an xrreferencespace
indicat
ing the source of the event.
... let refspaceevent = new xrreferencespaceevent("reset", { referencespace: myrefspace, transform: mytransform }); specifications specification status comment webxr device apithe def
inition of 'xrreferencespaceevent
init.referencespace'
in that specification.
... work
ing draft
initial def
inition.
XRSessionEventInit.session - Web APIs
the xrsessionevent
init dictionary's session property specifies the xrsession for which the event describes a state change.
... syntax let sessionevent
init = { session: xrsession }; mysessionevent = new xrsessionevent(type, sessionevent
init); mysessionevent = new xrsessionevent(type, { session: xrsession }); value an xrsession object
indicat
ing which webxr session the event is referr
ing to.
... specifications specification status comment webxr device apithe def
inition of 'xrsessionevent
init.session'
in that specification.
... work
ing draft
initial def
inition.
Using the aria-orientation attribute - Accessibility
the aria-orientation attribute is used to
indicate whether an element is oriented horizontally or vertically.
... possible effects on user agents and assistive technology note: op
inions may differ on how assistive technology should handle this technique.
... the
information provided above is one of those op
inions and therefore not normative.
... <a href="#" id="handle_zoomslider" role="slider" aria-orientation="vertical" aria-valuem
in="0" aria-valuemax="17" aria-valuenow="14" > <span>11</span> </a> work
ing examples: slider example notes used with aria roles scrollbar listbox combobox menu tree separator slider tablist toolbar related aria techniques compatibility tbd: add support
information for common ua and at product comb
inations additional resources wai-aria specification for the aria-orientation attribute ...
Using the radio role - Accessibility
possible effects on user agents and assistive technology note: op
inons may differ on how assistive technology should handle this technique.
... the
information provided above is one of those op
inions and therefore not normative.
... examples example 1: example from the basic form h
ints mdn page.
... <h3 id="rg1_label">lunch options</h3> <ul class="radiogroup" id="rg1" role="radiogroup" aria-labelledby="rg1_label"> <li id="r1" tab
index="-1" role="radio" aria-checked="false"> <img role="presentation" src="radio-unchecked.gif" /> thai </li> <li id="r2" tab
index="-1" role="radio" aria-checked="false"> <img role="presentation" src="radio-unchecked.gif" /> subway </li> <li id="r3" tab
index="0" role="radio" aria-checked="true"> <img role="presentation" src="radio-checked.gif" /> radio maria </li> </ul> work
ing examples: notes aria attributes used related aria techniques compatibility tbd: add support
information for common ua and at product comb
inations additional resources ...
-moz-force-broken-image-icon - CSS: Cascading Style Sheets
syntax values <
integer> a value of 1 means that the broken image icon is shown even if the image has an alt attribute.
... formal def
inition
initial value0applies toimages
inheritednocomputed valueas specifiedanimation typediscrete formal syntax <
integer> examples html <img src='/broken/image/l
ink.png' alt='broken image l
ink'> css img { -moz-force-broken-image-icon: 1; height: 100px; width: 100px; } result screenshotlive sample note: unless the image has a specified height and width the broken image icon will not be displayed but the alt attribute will also be hidden if -moz-force-broken-image-icon is set to 1.
... notes this property will only work
in gecko-based browsers.
...a proper alt attribute should be used
instead.
-moz-orient - CSS: Cascading Style Sheets
values
inl
ine the element is rendered
in the same direction as the axis of the text: horizontally for horizontal writ
ing modes, vertically for vertical writ
ing modes.
... block the element is rendered orthogonally to the axis of the text: vertically for horizontal writ
ing modes, horizontal for vertical writ
ing modes.
... formal def
inition
initial value
inl
ineapplies toany element; it has an effect on progress and meter, but not on <
input type="range"> or other elements
inheritednocomputed valueas specifiedanimation typediscrete formal syntax
inl
ine | block | horizontal | vertical examples html <p> the follow
ing progress meter is horizontal (the default): </p> <progress max="100" value="75"></progress> <p> the follow
ing progress meter is vertical: </p> <progress class="vert" max="100" value="75"></progress> css .vert { -moz-orient: vertical; width: 16px; height: 150px; } result specifications not part of any standard.
... though submitted to the w3c, with positive
initial feedback, this property is not yet part of any specification; currently, this is a mozilla-specific extension (that is, -moz-orient).
-webkit-mask-attachment - CSS: Cascading Style Sheets
if a -webkit-mask-image is specified, -webkit-mask-attachment determ
ines whether the mask image's position is fixed with
in the viewport, or scrolls along with its conta
ining block.
... /* keyword values */ -webkit-mask-attachment: scroll; -webkit-mask-attachment: fixed; -webkit-mask-attachment: local; /* multiple values */ -webkit-mask-attachment: scroll, local; -webkit-mask-attachment: fixed, local, scroll; /* global values */ -webkit-mask-attachment:
inherit; -webkit-mask-attachment:
initial; -webkit-mask-attachment: unset; syntax values scroll if scroll is specified, the mask image scrolls with
in the viewport along with the block that conta
ins the mask image.
... fixed if fixed is specified, the mask image does not scroll with its conta
ining element,
instead rema
ining stationary with
in the viewport.
... formal def
inition
initial valuescrollapplies toall elements
inheritednocomputed valueas specifiedanimation typediscrete formal syntax <attachment>#where <attachment> = scroll | fixed | local examples fix
ing a mask image to the viewport body { -webkit-mask-image: url('images/mask.png'); -webkit-mask-attachment: fixed; } specifications not part of any standard.
-webkit-text-stroke-width - CSS: Cascading Style Sheets
syntax /* keyword values */ -webkit-text-stroke-width: th
in; -webkit-text-stroke-width: medium; -webkit-text-stroke-width: thick; /* <length> values */ -webkit-text-stroke-width: 2px; -webkit-text-stroke-width: 0.1em; -webkit-text-stroke-width: 1mm; -webkit-text-stroke-width: 5pt; /* global values */ -webkit-text-stroke-width:
inherit; -webkit-text-stroke-width:
initial; -webkit-text-stroke-width: unset; values <l
ine-width> the width of the stroke.
... formal def
inition
initial value0applies toall elements
inheritedyescomputed valueabsolute <length>animation typediscrete formal syntax <length> examples vary
ing stroke widths css p { marg
in: 0; font-size: 4em; -webkit-text-stroke-color: red; } #th
in { -webkit-text-stroke-width: th
in; } #medium { -webkit-text-stroke-width: 3px; } #thick { -webkit-text-stroke-width: 1.5mm; } html <p id="th
in">th
in stroke</p> <p id="medium">medium stroke</p> <p id="thick">thick stroke</p> results specifications specification status comment compatibility standardthe def
inition of '-webkit-text-stroke-width'
in that specification.
... liv
ing standard
initial standardization safari css reference '-webkit-text-stroke-width'
in that document.
... non-standard unofficial documentation
initial documentation ...
:-moz-only-whitespace - CSS: Cascading Style Sheets
note:
in selectors level 4 the :empty selector was changed to act like :-moz-only-whitespace, but no browser currently supports this yet.
... the :-moz-only-whitespace css pseudo-class matches elements that only conta
ins text nodes that only conta
in whitespace.
... (this
includes elements with empty text nodes and elements with no child nodes.) syntax syntax not found
in db!
... examples html <div> </div> css :root { overflow: hidden; max-width: 100vw; max-height: 100vh; } div { background-color: #ccc; box-siz
ing: border-box; height: 100vh; m
in-height: 16px; m
in-height: 1rem; } div { border: 4px solid red; } :-moz-only-whitespace { border-color: lime; } result specifications briefly def
ined as :blank
in selectors level 4, but then the functionality was merged
into :empty and :blank redef
ined to mean empty <
input>.
::-moz-color-swatch - CSS: Cascading Style Sheets
the ::-moz-color-swatch css pseudo-element is a mozilla extension that represents the color selected
in an <
input> of type="color".
... note: us
ing ::-moz-color-swatch with anyth
ing but an <
input type="color"> doesn't match anyth
ing and has no effect.
... syntax syntax not found
in db!
... examples html <
input type="color" value="#de2020" /> css
input[type=color]::-moz-color-swatch { border-radius: 10px; border-style: none; } result specifications not part of any standard.
::-moz-range-thumb - CSS: Cascading Style Sheets
the ::-moz-range-thumb css pseudo-element is a mozilla extension that represents the thumb (i.e., virtual knob) of an <
input> of type="range".
... the user can move the thumb along the
input's track to alter its numerical value.
... note: us
ing ::-moz-range-thumb with anyth
ing but an <
input type="range"> doesn't match anyth
ing and has no effect.
... syntax ::-moz-range-thumb examples html <
input type="range" m
in="0" max="100" step="5" value="50"/> css
input[type=range]::-moz-range-thumb { background-color: green; } result a progress bar us
ing this style might look someth
ing like this: specifications not part of any standard.
::-webkit-progress-value - CSS: Cascading Style Sheets
the ::-webkit-progress-value css pseudo-element represents the filled-
in portion of the bar of a <progress> element.
... note:
in order to let ::-webkit-progress-value take effect, -webkit-appearance needs to be set to none on the <progress> element.
... syntax ::-webkit-progress-value examples this example will only work
in browsers based on bl
ink or webkit.
... html <progress value="10" max="50"> css progress { -webkit-appearance: none; } ::-webkit-progress-value { background-color: orange; } result result screenshot a progress bar us
ing the style above would look like this: specifications not part of any standard.
::grammar-error - CSS: Cascading Style Sheets
the ::grammar-error css pseudo-element represents a text segment which the user agent has flagged as grammatically
incorrect.
... allowable properties only a small subset of css properties can be used
in a rule with ::grammar-error
in its selector: color background-color cursor caret-color outl
ine and its longhands text-decoration and its associated properties text-emphasis-color text-shadow syntax ::grammar-error examples simple document grammar check
in this example, eventual support
ing browsers should highlight any flagged grammatical errors with the styles shown.
... html <p>my friends is com
ing to the party tonight.</p> css ::grammar-error { text-decoration: underl
ine red; color: red; } result specifications specification status comment css pseudo-elements level 4the def
inition of '::grammar-error'
in that specification.
... work
ing draft
initial def
inition.
::part() - CSS: Cascading Style Sheets
the ::part css pseudo-element represents any element with
in a shadow tree that has a match
ing part attribute.
... custom-element::part(foo) { /* styles to apply to the `foo` part */ } syntax ::part( <ident>+ ) examples html <template id="tabbed-custom-element"> <style type="text/css"> *, ::before, ::after { box-siz
ing: border-box; padd
ing: 1rem; } :host { display: flex; } </style> <div part="tab active">tab 1</div> <div part="tab">tab 2</div> <div part="tab">tab 3</div> </template> <tabbed-custom-element></tabbed-custom-element> css tabbed-custom-element::part(tab) { color: #0c0c0dcc; border-bottom: transparent solid 2px; } tabbed-custom-element::part(tab):hover { background-color: #0c0c0d19; border-color: #0c0c0d33; } tabbed-custom-element::part(tab):hover:active { background-color: #0c0c0d33; } tabbed-custom-element::part(tab):focus { box-shadow: 0 0 0 1px #0a84ff...
...
inset, 0 0 0 1px #0a84ff, 0 0 0 4px rgba(10, 132, 255, 0.3); } tabbed-custom-element::part(active) { color: #0060df; border-color: #0a84ff !important; } javascript let template = document.queryselector("#tabbed-custom-element"); globalthis.customelements.def
ine(template.id, class extends htmlelement { constructor() { super(); this.attachshadow({ mode: "open" }); this.shadowroot.appendchild(template.content); } }); result specifications specification status comment shadow partsthe def
inition of '::part'
in that specification.
... work
ing draft
initial def
inition.
font-family - CSS: Cascading Style Sheets
the font-family css descriptor allows authors to specify the font family for the font specified
in an @font-face rule.
... syntax /* <str
ing> values */ font-family: "font family"; font-family: 'another font family'; /* <custom-ident> value */ font-family: examplefont; values <family-name> specifies the name of the font family.
... formal def
inition related at-rule@font-face
initial valuen/a (required)computed valueas specified formal syntax <family-name>where <family-name> = <str
ing> | <custom-ident>+ examples sett
ing the font family name @font-face { font-family: examplefont; src: url('examplefont.ttf'); } specifications specification status comment css fonts module level 3the def
inition of 'font-family'
in that specification.
... candidate recommendation
initial def
inition ...
resolution - CSS: Cascading Style Sheets
syntax the resolution feature is specified as a <resolution> value represent
ing the pixel density of the output device.
... it is a range feature, mean
ing that you can also use the prefixed m
in-resolution and max-resolution variants to query m
inimum and maximum values, respectively.
... examples html <p>this is a test of your device's pixel density.</p> css /* exact resolution */ @media (resolution: 150dpi) { p { color: red; } } /* m
inimum resolution */ @media (m
in-resolution: 72dpi) { p { text-decoration: underl
ine; } } /* maximum resolution */ @media (max-resolution: 300dpi) { p { background: yellow; } } result specifications specification status comment media queriesthe def
inition of 'resolution'
in that specification.
... recommendation
initial def
inition.
bleed - CSS: Cascading Style Sheets
this property only has effect if crop marks are enabled us
ing the marks property.
... <length> specifies by how far outward,
in each direction, the bleed area extends past the page box.
... formal def
inition related at-rule@page
initial valueautocomputed valueas specified formal syntax auto | <length> examples sett
ing a page bleed of 1cm @page { bleed: 1cm; } specifications specification status comment css paged media module level 3the def
inition of 'bleed'
in that specification.
... work
ing draft
initial def
inition ...
CSS Generated Content - CSS: Cascading Style Sheets
css generated content is a module of css that def
ines how to add content to an element.
... generated content can be used to add content to anonymous replaced elements or replace the content of a dom node
in very limited circumstances with a generated value.
... see the how to guide for generated content to learn more, and the content and quotes properties for implementation
information.
... reference properties content quotes specifications specification status comment css generated content module level 3 work
ing draft css level 2 (revision 1) recommendation
initial def
inition ...
CSS Lists - CSS: Cascading Style Sheets
css lists is a module of css that def
ines how lists can be laid out and styled.
... reference properties list-style-image list-style-type list-style-position list-style guides consistent list
indentation expla
ins how to achieve consistent list
indentation across different browsers.
... us
ing css counters expla
ins how to use the css counter properties to control list counters.
... specifications specification status comment css lists module level 3 work
ing draft css level 2 (revision 1) recommendation
initial def
inition ...
CSS Motion Path - CSS: Cascading Style Sheets
the idea is that when you want to animate an element mov
ing along a path, you previously only had animat
ing translation, position, etc.
...with offset-path you can def
ine a specific path of any shape you want.
... you then animate it along that path by animat
ing offset-distance, and can choose to rotate it at any po
int us
ing offset-rotate.
... basic example <div id="motion-demo"></div> #motion-demo { offset-path: path('m20,20 c20,100 200,0 200,100'); animation: move 3000ms
inf
inite alternate ease-
in-out; width: 40px; height: 40px; background: cyan; } @keyframes move { 0% { offset-distance: 0%; } 100% { offset-distance: 100%; } } reference properties offset offset-anchor offset-distance offset-path offset-position offset-rotate specifications specification status comment motion path module level 1 work
ing draft
initial def
inition.
CSS Ruby Layout - CSS: Cascading Style Sheets
css ruby layout is a module of css that provides the render
ing model and formatt
ing controls related to the display of ruby annotation.
... ruby annotation is a form of
interl
inear annotation, consist
ing of short runs of text alongside the base text.
... they are typically used
in east asian documents to
indicate pronunciation or to provide a short annotation.
... reference properties ruby-align ruby-position specifications specification status comment css ruby layout module level 1 work
ing draft
initial def
inition ...
CSS Scroll Snap - CSS: Cascading Style Sheets
css scroll snap is a module of css that
introduces scroll snap positions, which enforce the scroll positions that a scroll conta
iner’s scrollport may end at after a scroll
ing operation has completed.
... note: the previous version of this module was called scroll snap po
ints and has been deprecated.
... reference css properties on conta
iners scroll-snap-type scroll-snap-stop scroll-padd
ing scroll-padd
ing-top scroll-padd
ing-right scroll-padd
ing-bottom scroll-padd
ing-left scroll-padd
ing-
inl
ine scroll-padd
ing-
inl
ine-start scroll-padd
ing-
inl
ine-end scroll-padd
ing-block scroll-padd
ing-block-start scroll-padd
ing-block-end css properties on children scroll-snap-align scroll-marg
in scroll-marg
in-top scroll-marg
in-right scroll-marg
in-bottom scroll-marg
in-left scroll-marg
in-
inl
ine scroll-marg
in-
inl
ine-start scroll-marg
in-
inl
ine-end scroll-marg
in-block scroll-marg
in-block-start scroll-marg
in-block-end guides basic concepts of css scroll snap browser compatibility and scroll snap specification specificat...
...ion status comment css scroll snap module level 1 candidate recommendation
initial def
inition ...
CSS Text Decoration - CSS: Cascading Style Sheets
css text decoration is a module of css that def
ines features relat
ing to text decoration, such as underl
ines, text shadows, and emphasis marks.
... reference properties letter-spac
ing text-align text-decoration text-decoration-color text-decoration-l
ine text-decoration-offset text-decoration-skip-
ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-
indent text-render
ing text-shadow text-transform white-space word-spac
ing guides none.
... examples .under { text-decoration: underl
ine red; } .over { text-decoration: wavy overl
ine lime; } .l
ine { text-decoration: l
ine-through; } .pla
in { text-decoration: none; } .underover { text-decoration: dashed underl
ine overl
ine; } .thick { text-decoration: solid underl
ine purple 4px; } .bl
ink { text-decoration: bl
ink; } <p class="under">this text has a l
ine underneath it.</p> <p class="over">this text has a l
ine over it.</p> <p class="l
ine">this text has a l
ine go
ing through it.</p> <p>this <a class="pla
in" href="#">l
ink will not be underl
ined</a>, as l
inks generally are by default.
... be careful when remov
ing the text decoration on anchors s
ince users often depend on the underl
ine to denote hyperl
inks.</p> <p class="underover">this text has l
ines above <em>and</em> below it.</p> <p class="thick">this text has a really thick purple underl
ine
in support
ing browsers.</p> <p class="bl
ink">this text might bl
ink for you, depend
ing on the browser you use.</p> specifications specification status comment css text decoration module level 4 work
ing draft css text decoration module level 3 candidate recommendation css level 2 (revision 1) recommendation css level 1 recommendation
initial def
inition ...
CSS Transforms - CSS: Cascading Style Sheets
css transforms is a module of css that def
ines how elements styled with css can be transformed
in two-dimensional or three-dimensional space.
... reference properties backface-visibility perspective perspective-orig
in rotate scale transform transform-box transform-orig
in transform-style translate data types <transform-function> guides us
ing css transforms step-by-step tutorial about how to transform elements styled with css.
... specifications specification status comment css transforms level 1 work
ing draft
initial def
inition.
... css transforms level 2 editor's draft adds
individual transforms.
CSS Transitions - CSS: Cascading Style Sheets
the behavior of these transitions can be controlled by specify
ing their tim
ing function, duration, and other attributes.
... reference properties transition transition-delay transition-duration transition-property transition-tim
ing-function guides us
ing css transitions step-by-step tutorial about how to create transitions us
ing css.
... this article describes each relevant css property and expla
ins how they
interact with each other.
... specifications specification status comment css transitions work
ing draft
initial def
inition.
Microsoft CSS extensions - CSS: Cascading Style Sheets
microsoft applications such as edge and
internet explorer support a number of special microsoft extensions to css.
... microsoft-only properties (avoid us
ing on websites) note: these properties will only work
in microsoft applications, and are not on a standards track.
... -ms-accelerator -ms-block-progression -ms-content-zoom-cha
ining -ms-content-zoom
ing -ms-content-zoom-limit -ms-content-zoom-limit-max -ms-content-zoom-limit-m
in -ms-content-zoom-snap -ms-content-zoom-snap-po
ints -ms-content-zoom-snap-type -ms-filter -ms-flow-from -ms-flow-
into -ms-high-contrast-adjust -ms-hyphenate-limit-chars -ms-hyphenate-limit-l
ines -ms-hyphenate-limit-zone -ms-ime-align -ms-overflow-style -ms-scrollbar-3dlight-color -ms-scrollbar-arrow-color -ms-scrollbar-base-color -ms-scrollbar-darkshadow-color -ms-scrollbar-face-color -ms-scrollbar-highlight-color -ms-scrollbar-shadow-color -ms-scrollbar-track-color -ms-scroll-cha
ining -ms-scroll-limit -ms-scroll-limit-x-max -ms-scroll-limit-x-m
in -ms-scroll-limit-y-max -ms-scrol...
...l-limit-y-m
in -ms-scroll-rails -ms-scroll-snap-po
ints-x -ms-scroll-snap-po
ints-y -ms-scroll-snap-x -ms-scroll-snap-y -ms-scroll-translation -ms-text-autospace -ms-touch-select -ms-wrap-flow -ms-wrap-marg
in -ms-wrap-through zoom pseudo-elements ::-ms-browse ::-ms-check ::-ms-clear ::-ms-expand ::-ms-fill ::-ms-fill-lower ::-ms-fill-upper ::-ms-reveal ::-ms-thumb ::-ms-ticks-after ::-ms-ticks-before ::-ms-tooltip ::-ms-track ::-ms-value media features -ms-high-contrast css-related dom apis mscontentzoomfactor msgetpropertyenabled msgetregioncontent msrangecollection msregionoverflow ...
Resolved value - CSS: Cascading Style Sheets
for most properties, it is the computed value, but for a few legacy properties (
includ
ing width and height), it is
instead the used value.
... see the specification l
ink below for more per-property details.
... specifications specification status comment css object model (cssom)the def
inition of 'resolved value'
in that specification.
... work
ing draft
initial def
inition.
set:distinct() - EXSLT
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes set:dist
inct() returns a subset of the nodes
in the specified node-set, return
ing only nodes with unique str
ing values.
... syntax set:dist
inct(nodeset) parameters nodeset the node-set
in which to f
ind unique nodes.
... returns a node-set conta
ining the nodes that have unique str
ing values.
... specifications exslt - set:dist
inct ...
Index - Event reference
found 2 pages: # page tags and summary 1 event reference event, overview, reference dom events are sent to notify code of
interest
ing th
ings that have taken place.
... each event is represented by an object which is based on the event
interface, and may have additional custom fields and/or functions used to get additional
information about what happened.
... events can represent everyth
ing from basic user
interactions to automated notifications of th
ings happen
ing
in the render
ing model.
... 2
index
index, events found 2 pages: ...
<input type="datetime"> - HTML: Hypertext Markup Language
the html <
input type="datetime"> was a control for enter
ing a date and time (hour, m
inute, second, and fraction of a second) as well as a timezone.
... this feature has been removed from whatwg html, and is no longer supported
in browsers.
...
instead, browsers are implement
ing (and developers are encouraged to use) <
input type="datetime-local">.
... the format of the date and time value used by this
input type is described
in format of a valid global date and time str
ing
in date and time formats used
in html.
Link types: dns-prefetch - HTML: Hypertext Markup Language
the dns-prefetch keyword for the rel attribute of the <l
ink> element is a h
int to browsers that the user is likely to need resources from the target resource's orig
in, and therefore the browser can likely improve the user experience by preemptively perform
ing dns resolution for that orig
in.
... see us
ing dns-prefetch for more details.
... specifications specification status comment html liv
ing standardthe def
inition of 'dns-prefetch'
in that specification.
... liv
ing standard ...
Link types: preload - HTML: Hypertext Markup Language
the preload keyword for the rel attribute of the <l
ink> element
indicates the user is highly likely to require the target resource for the current navigation, and therefore the browser must preemptively fetch and cache the resource.
... see preload
ing content with rel="preload" for more details.
... specifications specification status comment html liv
ing standardthe def
inition of 'preload'
in that specification.
... liv
ing standard ...
Reason: Multiple CORS header 'Access-Control-Allow-Origin' not allowed - HTTP
reason reason: multiple cors header ‘access-control-allow-orig
in’ not allowed what went wrong?
... more than one access-control-allow-orig
in header was sent by the server.
... if you have access to the server you can change your implementation to echo back an orig
in in the access-control-allow-orig
in header.
... you cannot send back a list of orig
ins, because browsers only accept a value that is either a s
ingle orig
in or null ...
Reason: CORS header ‘Origin’ cannot be added - HTTP
reason reason: cors header ‘orig
in’ cannot be added what went wrong?
... the user agent was unable to add the required orig
in header to the http request.
... all cors requests must have an orig
in header.
... this can happen if the javascript code is runn
ing with enhanced privileges allow
ing it access to multiple doma
ins' content, for example.
Upgrade-Insecure-Requests - HTTP
the http upgrade-
insecure-requests request header sends a signal to the server express
ing the client’s preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-
insecure-requests csp directive.
... header type request header forbidden header name no syntax upgrade-
insecure-requests: 1 examples a client's request signals to the server that it supports the upgrade mechanisms of upgrade-
insecure-requests: get / http/1.1 host: example.com upgrade-
insecure-requests: 1 the server can now redirect to a secure version of the site.
... location: https://example.com/ vary: upgrade-
insecure-requests specifications specification status comment upgrade
insecure requeststhe def
inition of 'upgrade-
insecure-requests'
in that specification.
... candidate recommendation
initial def
inition.
500 Internal Server Error - HTTP
the hypertext transfer protocol (http) 500
internal server error server error response code
indicates that the server encountered an unexpected condition that prevented it from fulfill
ing the request.
...usually, this
indicates the server cannot f
ind a better 5xx error code to response.
... sometimes, server adm
inistrators log error responses like the 500 status code with more details about the request to prevent the error from happen
ing aga
in in the future.
... status 500
internal server error specifications specification title rfc 7231, section 6.6.1: 500
internal server error hypertext transfer protocol (http/1.1): semantics and content ...
TypeError: invalid Array.prototype.sort argument - JavaScript
the javascript exception "
invalid array.prototype.sort argument" occurs when the argument of array.prototype.sort() isn't either undef
ined or a function which compares its operands.
... message typeerror: argument is not a function object (edge) typeerror:
invalid array.prototype.sort argument (firefox) error type typeerror what went wrong?
... the argument of array.prototype.sort() is expected to be either undef
ined or a function which compares its operands.
... examples
invalid cases [1, 3, 2].sort(5); // typeerror var cmp = { asc: (x, y) => x >= y, dsc: (x, y) => x <= y }; [1, 3, 2].sort(cmp[this.key] || 'asc'); // typeerror valid cases [1, 3, 2].sort(); // [1, 2, 3] var cmp = { asc: (x, y) => x >= y, dsc: (x, y) => x <= y }; [1, 3, 2].sort(cmp[this.key || 'asc']); // [1, 2, 3] ...
ReferenceError: reference to undefined property "x" - JavaScript
the javascript warn
ing "reference to undef
ined property" occurs when a script attempted to access an object property which doesn't exist.
... message referenceerror: reference to undef
ined property "x" (firefox) error type (firefox only) referenceerror warn
ing which is reported only if javascript.options.strict preference is set to true.
... examples
invalid cases
in this case, the property bar is an undef
ined property, so a referenceerror will occur.
... var foo = {}; foo.bar; // referenceerror: reference to undef
ined property "bar" valid cases to avoid the error, you need to either add a def
inition for bar to the object or check for the existence of the bar property before try
ing to access it; one way to do that is to use the object.prototype.hasownproperty() method), like this: var foo = {}; // def
ine the bar property foo.bar = 'moon'; console.log(foo.bar); // "moon" // test to be sure bar exists before access
ing it if (foo.hasownproperty('bar')) { console.log(foo.bar); } ...
Date.prototype.getMinutes() - JavaScript
the getm
inutes() method returns the m
inutes
in the specified date accord
ing to local time.
... syntax dateobj.getm
inutes() return value an
integer number, between 0 and 59, represent
ing the m
inutes
in the given date accord
ing to local time.
... examples us
ing getm
inutes() the second statement below assigns the value 15 to the variable m
inutes, based on the value of the date object xmas95.
... var xmas95 = new date('december 25, 1995 23:15:30'); var m
inutes = xmas95.getm
inutes(); console.log(m
inutes); // 15 specifications specification ecmascript (ecma-262)the def
inition of 'date.prototype.getm
inutes'
in that specification.
Date.prototype.getUTCMinutes() - JavaScript
the getutcm
inutes() method returns the m
inutes
in the specified date accord
ing to universal time.
... syntax dateobj.getutcm
inutes() return value an
integer number, between 0 and 59, represent
ing the m
inutes
in the given date accord
ing to universal time.
... examples us
ing getutcm
inutes() the follow
ing example assigns the m
inutes portion of the current time to the variable m
inutes.
... var today = new date(); var m
inutes = today.getutcm
inutes(); specifications specification ecmascript (ecma-262)the def
inition of 'date.prototype.getutcm
inutes'
in that specification.
FinalizationRegistry() constructor - JavaScript
the f
inalizationregistry constructor creates a f
inalizationregistry object that uses the given callback.
... syntax new f
inalizationregistry([callback]); parameters callback optional the callback function this registry should use.
... examples creat
ing a new registry you create the registry pass
ing
in the callback: const registry = new f
inalizationregistry(heldvalue => { // ....
... }); specifications specification weakrefsthe def
inition of 'f
inalizationregistry constructor'
in that specification.
Intl.ListFormat.prototype.format() - JavaScript
the format() method returns a str
ing with a language-specific representation of the list.
... syntax listformat.format([list]); parameters list an iterable object, such as an array return value a language-specific formatted str
ing represent
ing the elements of the list description the format() method returns a str
ing that has been formatted based on parameters provided
in the
intl.listformat object.
... examples us
ing format the follow
ing example shows how to create a list formatter us
ing the english language.
... const list = ['motorcycle', 'bus', 'car']; console.log(new
intl.listformat('en-gb', { style: 'long', type: 'conjunction' }).format(list)); // > motorcycle, bus and car console.log(new
intl.listformat('en-gb', { style: 'short', type: 'disjunction' }).format(list)); // > motorcycle, bus or car console.log(new
intl.listformat('en-gb', { style: 'narrow', type: 'unit' }).format(list)); // > motorcycle bus car specifications specification
intl.listformatthe def
inition of 'format()'
in that specification.
Intl.PluralRules.select() - JavaScript
the
intl.pluralrules.prototype.select method returns a str
ing
indicat
ing which plural rule to use for locale-aware formatt
ing.
... return value a str
ing represent
ing the pluralization category of the number, can be one of zero, one, two, few, many or other.
... description this function selects a pluralization category accord
ing to the locale and formatt
ing options of a pluralrules object.
... examples us
ing select() new
intl.pluralrules('ar-eg').select(0); // → 'zero' new
intl.pluralrules('ar-eg').select(1); // → 'one' new
intl.pluralrules('ar-eg').select(2); // → 'two' new
intl.pluralrules('ar-eg').select(6); // → 'few' new
intl.pluralrules('ar-eg').select(18); // → 'many' specifications specification ecmascript
internationalization api (ecma-402)the def
inition of '
intl.pluralrules.select()'
in that specification.
Map.prototype[@@toStringTag] - JavaScript
the map[@@tostr
ingtag] property has an
initial value of "map".
... the source for this
interactive example is stored
in a github repository.
... 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.
... property attributes of map.prototype[@@tostr
ingtag] writable no enumerable no configurable yes syntax map[symbol.tostr
ingtag] examples us
ing tostr
ingtag object.prototype.tostr
ing.call(new map()) // "[object map]" specifications specification ecmascript (ecma-262)the def
inition of 'map.prototype[@@tostr
ingtag]'
in that specification.
String.prototype[@@iterator]() - JavaScript
the [@@iterator]() method returns a new iterator object that iterates over the code po
ints of a str
ing value, return
ing each code po
int as a str
ing value.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing [@@iterator]() var str = 'a\ud835\udc68'; var striter = str[symbol.iterator](); console.log(striter.next().value); // "a" console.log(striter.next().value); // "\ud835\udc68" us
ing [@@iterator]() with for..of var str = 'a\ud835\udc68b\ud835\udc69c\ud835\udc6a'; for (var v of str) { console.log(v); } // "a" // "\ud835\udc68" // "b" // "\ud835\udc69" // "c" // "\ud835\udc6a" specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype[@@iterator]()'
in that specification.
String.prototype.bold() - JavaScript
the bold() method creates a <b> html element that causes a str
ing to be displayed as bold.
... syntax str.bold() return value a str
ing conta
ining a <b> html element.
... description the bold() method embeds a str
ing
in a <b> tag: "<b>str</b>".
... examples us
ing bold() the follow
ing example uses str
ing methods to change the formatt
ing of a str
ing: var worldstr
ing = 'hello, world'; console.log(worldstr
ing.bl
ink()); // <bl
ink>hello, world</bl
ink> console.log(worldstr
ing.bold()); // <b>hello, world</b> console.log(worldstr
ing.italics()); // <i>hello, world</i> console.log(worldstr
ing.strike()); // <strike>hello, world</strike> specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype.bold'
in that specification.
String.prototype.fixed() - JavaScript
the fixed() method creates a <tt> html element that causes a str
ing to be displayed
in fixed-pitch font.
... syntax str.fixed() return value a str
ing represent
ing a <tt> html element.
... description the fixed() method embeds a str
ing
in a <tt> tag: "<tt>str</tt>".
... examples us
ing fixed() the follow
ing example uses the fixed method to change the formatt
ing of a str
ing: var worldstr
ing = 'hello, world'; console.log(worldstr
ing.fixed()); // "<tt>hello, world</tt>" specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype.fixed'
in that specification.
String.prototype.italics() - JavaScript
the italics() method creates an <i> html element that causes a str
ing to be italic.
... syntax str.italics() return value a str
ing conta
ining a <i> html element.
... description the italics() method embeds a str
ing
in an <i> tag: "<i>str</i>".
... examples us
ing italics() the follow
ing example uses str
ing methods to change the formatt
ing of a str
ing: var worldstr
ing = 'hello, world'; console.log(worldstr
ing.bl
ink()); // <bl
ink>hello, world</bl
ink> console.log(worldstr
ing.bold()); // <b>hello, world</b> console.log(worldstr
ing.italics()); // <i>hello, world</i> console.log(worldstr
ing.strike()); // <strike>hello, world</strike> specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype.italics'
in that specification.
String.prototype.small() - JavaScript
the small() method creates a <small> html element that causes a str
ing to be displayed
in a small font.
... syntax str.small() return value a str
ing conta
ining a <small> html element.
... description the small() method embeds a str
ing
in a <small> tag: "<small>str</small>".
... examples us
ing small() the follow
ing example uses str
ing methods to change the size of a str
ing: var worldstr
ing = 'hello, world'; console.log(worldstr
ing.small()); // <small>hello, world</small> console.log(worldstr
ing.big()); // <big>hello, world</big> console.log(worldstr
ing.fontsize(7)); // <font size="7">hello, world</fontsize> with the element.style object you can get the element's style attribute and manipulate it more generically, for example: document.getelementbyid('yourelemid').style.fontsize = '0.7em'; specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype.small'
in that specification.
String.prototype.strike() - JavaScript
the strike() method creates a <strike> html element that causes a str
ing to be displayed as struck-out text.
... syntax str.strike() return value a str
ing conta
ining a <strike> html element.
... description the strike() method embeds a str
ing
in a <strike> tag: "<strike>str</strike>".
... examples us
ing strike() the follow
ing example uses str
ing methods to change the formatt
ing of a str
ing: var worldstr
ing = 'hello, world'; console.log(worldstr
ing.bl
ink()); // <bl
ink>hello, world</bl
ink> console.log(worldstr
ing.bold()); // <b>hello, world</b> console.log(worldstr
ing.italics()); // <i>hello, world</i> console.log(worldstr
ing.strike()); // <strike>hello, world</strike> specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype.strike'
in that specification.
String.prototype.sup() - JavaScript
the sup() method creates a <sup> html element that causes a str
ing to be displayed as superscript.
... syntax str.sup() return value a str
ing conta
ining a <sup> html element.
... description the sup() method embeds a str
ing
in a <sup> tag: "<sup>str</sup>".
... examples us
ing sub() and sup() methods the follow
ing example uses the sub() and sup() methods to format a str
ing: var supertext = 'superscript'; var subtext = 'subscript'; console.log('this is what a ' + supertext.sup() + ' looks like.'); // "this is what a <sup>superscript</sup> looks like." console.log('this is what a ' + subtext.sub() + ' looks like.'); // "this is what a <sub>subscript</sub> looks like." specifications specification ecmascript (ecma-262)the def
inition of 'str
ing.prototype.sup'
in that specification.
String.prototype.toSource() - JavaScript
the tosource() method returns a str
ing represent
ing the source code of the object.
... syntax str
ing.tosource() str.tosource() return value a str
ing represent
ing the source code of the call
ing object.
... examples native function for the built-
in str
ing object, tosource() returns the follow
ing str
ing
indicat
ing that the source code is not available: function str
ing() { [native code] } for
instances of str
ing or str
ing literals, tosource() returns a str
ing represent
ing the source code.
... this method is usually called
internally by javascript and not explicitly
in web code.
Remainder (%) - JavaScript
the rema
inder operator (%) returns the rema
inder left over when one operand is divided by a second operand.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: var1 % var2 examples rema
inder with positive dividend 12 % 5 // 2 1 % -2 // 1 1 % 2 // 1 2 % 3 // 2 5.5 % 2 // 1.5 rema
inder with negative dividend -12 % 5 // -2 -1 % 2 // -1 -4 % 2 // -0 rema
inder with nan nan % 2 // nan specifications specification ecmascript (ecma-262)the def
inition of 'rema
inder operator'
in that specification.
Remainder assignment (%=) - JavaScript
the rema
inder assignment operator (%=) divides a variable by the value of the right operand and assigns the rema
inder to the variable.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x %= y mean
ing: x = x % y examples us
ing rema
inder assignment // assum
ing the follow
ing variable // bar = 5 bar %= 2 // 1 bar %= 'foo' // nan bar %= 0 // nan specifications specification ecmascript (ecma-262)the def
inition of 'assignment operators'
in that specification.
SVG Conditional Processing Attributes - SVG: Scalable Vector Graphics
the svg conditional process
ing attributes are all the attributes that can be specified on some svg elements to control whether or not the element on which it appears should be rendered.
... externalresourcesrequired requiredextensions requiredfeatures systemlanguage attributes externalresourcesrequired deprecated s
ince svg 2 if set to true, it
indicates that the browser must wait for all the external resources necessary to render that element to be loaded before process
ing the associated element.
... value: a list of space-separated uri; animatable: no requiredfeatures deprecated s
ince svg 2 list all the features, as def
ined is the svg 1.1 specification, that must be supported by the borwser to be allowed to render the associated element..
... value: a list of space-separated uri; animatable: no systemlanguage
indicates which language the user must have chosen to render the associated element.
stringbundleset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a conta
iner for str
ingbundle elements.
... examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hi...
...dden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceur...
NPN_IdentifierIsString - Archive of obsolete content
« gecko plug
in api reference « script
ing plug
ins summary determ
ines whether or not an identifier is a str
ing.
... syntax #
include <npruntime.h> bool npn_identifierisstr
ing(npidentifier identifier); parameters the function has the follow
ing parameter: <tt>identifier</tt> the identifier whose type is to be exam
ined.
... returns true if the identifier is a str
ing identifier, or false otherwise.
NPN_RetainObject - Archive of obsolete content
« gecko plug
in api reference « script
ing plug
ins summary
increments the reference count of the given npobject.
... syntax #
include <npruntime.h> npobject *npn_reta
inobject(npobject *npobj); parameters the function has the follow
ing parameter: npobj the npobject to reta
in.
... returns a po
inter back to the same object.
-ms-wrap-margin - Archive of obsolete content
the -ms-wrap-marg
in css property is a microsoft extension that specifies a marg
in that offsets the
inner wrap shape from other shapes.
...
initial value0applies toexclusion elements
inheritednocomputed valueas specifiedanimation typediscrete syntax values <length> the marg
in size, a non-negative value.
... remarks offsets created by the -ms-wrap-marg
in property are offset from the outside of the exclusion.
-moz-windows-compositor - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... syntax <
integer> if the user is us
ing w
indows with the dwm compositor, this is 1.
... media: media/visual accepts m
in/max prefixes: no ...
:-moz-system-metric(images-in-menus) - Archive of obsolete content
the :-moz-system-metric(images-
in-menus) css pseudo-class matches an element if the computer's user
interface supports images
in menus.
... this selector is
intended for use ma
inly by theme developers.
... note: s
ince firefox 58, this pseudo-class is no longer available to web content — it is only available
internally (e.g.
-moz-windows-classic - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... syntax <
integer> if the user is us
ing w
indows unthemed (
in classic mode
instead of us
ing uxtheme), this is 1.
... media: media/visual accepts m
in/max prefixes: no ...
-moz-windows-default-theme - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... syntax <
integer> if the user is us
ing one of the default w
indows themes—luna, royale, zune, or aero (
includ
ing vista basic, vista advanced, and aero glass)—this is 1.
... media: media/visual accepts m
in/max prefixes: no ...
Displaying a graphic with audio samples - Archive of obsolete content
the follow
ing example shows how to take samples from an audio stream and display them beh
ind an image (
in this case, the mozilla logo), giv
ing the impression that the image is built from the samples.
...amebufferlength; fft = new fft(framebufferlength / channels, rate); } function audioavailable(event) { var fb = event.framebuffer, t = event.time, /* unused, but it's there */ signal = new float32array(fb.length / channels), magnitude; for (var i = 0, fbl = framebufferlength / 2; i < fbl; i++ ) { // assum
ing
interlaced stereo channels, // need to split and merge
into a stero-mix mono signal signal[i] = (fb[2*i] + fb[2*i+1]) / 2; } // clear the canvas before draw
ing spectrum ctx.fillstyle = "rgb(0,0,0)"; ctx.fillrect (0,0, canvas.width, canvas.height); ctx.fillstyle = "rgb(255,255,255)"; for (var i = 0; i < signal.length; i++ ) {...
... // multiply spectrum by a zoom value magnitude = signal[i] * 1000; // draw rectangle bars for each frequency b
in ctx.fillrect(i * 4, canvas.height, 3, -magnitude); } ctx.drawimage(document.getelementbyid('mozlogo'),0,0, canvas.width, canvas.height); } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('mozaudioavailable', audioavailable, false); audio.addeventlistener('loadedmetadata', loadedmetadata, false); </script> </body> </html> ...
502 - MDN Web Docs Glossary: Definitions of Web-related terms
an http error code mean
ing "bad gateway".
..."502" means that the upstream server has returned an
invalid response.
...
internet protocols are quite explicit, and so a 502 usually means that one or both mach
ines were
incorrectly or
incompletely programmed.
Accessibility - MDN Web Docs Glossary: Definitions of Web-related terms
web accessibility (a11y) refers to best practices for keep
ing a website usable despite physical and technical restrictions.
... web accessibility is formally def
ined and discussed at the w3c through the web accessibility
initiative (wai).
... learn more general knowledge accessibility resources at mdn web accessibility on wikipedia learn web accessibility learn accessibility on mdn web accessibility
in m
ind technical reference the aria documentation on mdn the web accessibility
initiative homepage the wai-aria recommendation ...
Arpanet - MDN Web Docs Glossary: Definitions of Web-related terms
the arpanet (advanced research projects agency network) was an early computer network, constructed
in 1969 as a robust medium to transmit sensitive military data and to connect lead
ing research groups throughout the united states.
... arpanet first ran ncp (network control protocol) and subsequently the first version of the
internet protocol or tcp/ip suite, mak
ing arpanet a prom
inent part of the nascent
internet.
... arpanet was closed
in early 1990.
Attribute - MDN Web Docs Glossary: Definitions of Web-related terms
an attribute extends an element, chang
ing its behavior or provid
ing metadata.
...that is a shorthand for provid
ing the empty str
ing
in html, or the attribute’s name
in xml.
... <
input required> <!-- is the same as… --> <
input required=""> <!-- or --> <
input required="required"> learn more technical reference html attribute reference
information about html's global attributes ...
Breadcrumb - MDN Web Docs Glossary: Definitions of Web-related terms
a breadcrumb, or breadcrumb trail, is a navigational aid that is typically placed between a site's header and the ma
in content, display
ing either a hierarchy of the current page
in relation to the the site's structure, from top level to current page, or a list of the l
inks the user followed to get to the current page,
in the order visited.
... a location breadcrumb for this document might look someth
ing like this: mdn > glossary > breadcrumb breadcrumb trails enable users to be aware of their location with
in a website.
... this type of navigation, if done correctly, helps users know where they are
in a site and how they got there.
CSS preprocessor - MDN Web Docs Glossary: Definitions of Web-related terms
there are many css preprocessors to choose from, however most css preprocessors will add some features that don't exist
in pure css, such as mix
in, nest
ing selector,
inheritance selector, and so on.
... these features make the css structure more readable and easier to ma
inta
in.
... to use a css preprocessor, you must
install a css compiler on your web server; or use the css preprocessor to compile on the development environment, and then upload compiled css file to the web server.
Document: pointerenter event - Web APIs
the po
interenter event fires when a po
int
ing device is moved
into the hit test boundaries of an element or one of its descendants,
includ
ing as a result of a po
interdown event from a device that does not support hover (see po
interdown).
... bubbles no cancelable no
interface po
interevent event handler property onpo
interenter examples us
ing addeventlistener(): document.addeventlistener('po
interenter', (event) => { console.log('po
inter entered element'); }); us
ing the onpo
interenter event handler property: document.onpo
interenter = (event) => { console.log('po
inter entered element'); }; specifications specification status po
inter events obsolete ...
Document: pointerleave event - Web APIs
the po
interleave event is fired when a po
int
ing device is moved out of the hit test boundaries of an element.
... bubbles no cancelable no
interface po
interevent event handler property onpo
interleave examples us
ing addeventlistener(): document.addeventlistener('po
interleave', (event) => { console.log('po
inter left element'); }); us
ing the onpo
interleave event handler property: document.onpo
interleave = (event) => { console.log('po
inter left element'); }; specifications specification status po
inter events obsolete ...
Document: pointerlockchange event - Web APIs
the po
interlockchange event is fired when the po
inter is locked/unlocked.
... bubbles yes cancelable no
interface event event handler property onpo
interlockchange examples us
ing addeventlistener(): document.addeventlistener('po
interlockchange', (event) => { console.log('po
inter lock changed'); }); us
ing the onpo
interlockchange event handler property: document.onpo
interlockchange = (event) => { console.log('po
inter lock changed'); }; specifications specification status po
inter lock candidate recommendation ...
Document: pointerlockerror event - Web APIs
the po
interlockerror event is fired when lock
ing the po
inter failed (for technical reasons or because the permission was denied).
... bubbles yes cancelable no
interface event event handler property onpo
interlockerror examples us
ing addeventlistener(): const para = document.queryselector('p'); document.addeventlistener('po
interlockerror', (event) => { console.log('error lock
ing po
inter'); }); us
ing the onpo
interlockerror event handler property: document.onpo
interlockerror = (event) => { console.log('error lock
ing po
inter'); }; specifications specification status po
inter lock candidate recommendation ...
Document: pointermove event - Web APIs
the po
intermove event is fired when a po
inter changes coord
inates, and the po
inter has not been canceled by a browser touch-action.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
intermove examples us
ing addeventlistener(): document.addeventlistener('po
intermove', (event) => { console.log('po
inter moved'); }); us
ing the onpo
intermove event handler property: document.onpo
intermove = (event) => { console.log('po
inter moved'); }; specifications specification status po
inter events obsolete ...
Document: pointerout event - Web APIs
the po
interout event is fired for several reasons
includ
ing: po
int
ing device is moved out of the hit test boundaries of an element; fir
ing the po
interup event for a device that does not support hover (see po
interup); after fir
ing the po
intercancel event (see po
intercancel); when a pen stylus leaves the hover range detectable by the digitizer.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
interout examples us
ing addeventlistener(): document.addeventlistener('po
interout', (event) => { console.log('po
inter moved out'); }); us
ing the onpo
interout event handler property: document.onpo
interout = (event) => { console.log('po
inter moved out'); }; specifications specification status po
inter events obsolete ...
Document: pointerover event - Web APIs
the po
interover event is fired when a po
int
ing device is moved
into an element's hit test boundaries.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
interover examples us
ing addeventlistener(): document.addeventlistener('po
interover', (event) => { console.log('po
inter moved
in'); }); us
ing the onpo
interover event handler property: document.onpo
interover = (event) => { console.log('po
inter moved
in'); }; specifications specification status po
inter events obsolete ...
Document: pointerup event - Web APIs
the po
interup event is fired when a po
inter is no longer active.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
interup examples us
ing addeventlistener(): document.addeventlistener('po
interup', (event) => { console.log('po
inter up'); }); us
ing the onpo
interup event handler property: document.onpo
interup = (event) => { console.log('po
inter up'); }; specifications specification status po
inter events obsolete ...
HTMLElement: pointerenter event - Web APIs
the po
interenter event fires when a po
int
ing device is moved
into the hit test boundaries of an element or one of its descendants,
includ
ing as a result of a po
interdown event from a device that does not support hover (see po
interdown).
... bubbles no cancelable no
interface po
interevent event handler property onpo
interenter examples us
ing addeventlistener(): const para = document.queryselector('p'); para.addeventlistener('po
interenter', (event) => { console.log('po
inter entered element'); }); us
ing the onpo
interenter event handler property: const para = document.queryselector('p'); para.onpo
interenter = (event) => { console.log('po
inter entered element'); }; specifications specification status po
inter events obsolete ...
HTMLElement: pointerleave event - Web APIs
the po
interleave event is fired when a po
int
ing device is moved out of the hit test boundaries of an element.
... bubbles no cancelable no
interface po
interevent event handler property onpo
interleave examples us
ing addeventlistener(): const para = document.queryselector('p'); para.addeventlistener('po
interleave', (event) => { console.log('po
inter left element'); }); us
ing the onpo
interleave event handler property: const para = document.queryselector('p'); para.onpo
interleave = (event) => { console.log('po
inter left element'); }; specifications specification status po
inter events obsolete ...
HTMLElement: pointerout event - Web APIs
the po
interout event is fired for several reasons
includ
ing: po
int
ing device is moved out of the hit test boundaries of an element; fir
ing the po
interup event for a device that does not support hover (see po
interup); after fir
ing the po
intercancel event (see po
intercancel); when a pen stylus leaves the hover range detectable by the digitizer.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
interout examples us
ing addeventlistener(): const para = document.queryselector('p'); para.addeventlistener('po
interout', (event) => { console.log('po
inter moved out'); }); us
ing the onpo
interout event handler property: const para = document.queryselector('p'); para.onpo
interout = (event) => { console.log('po
inter moved out'); }; specifications specification status po
inter events obsolete ...
HTMLElement: pointerover event - Web APIs
the po
interover event is fired when a po
int
ing device is moved
into an element's hit test boundaries.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
interover examples us
ing addeventlistener(): const para = document.queryselector('p'); para.addeventlistener('po
interover', (event) => { console.log('po
inter moved
in'); }); us
ing the onpo
interover event handler property: const para = document.queryselector('p'); para.onpo
interover = (event) => { console.log('po
inter moved
in'); }; specifications specification status po
inter events obsolete ...
HTMLElement: pointerup event - Web APIs
the po
interup event is fired when a po
inter is no longer active.
... bubbles yes cancelable yes
interface po
interevent event handler property onpo
interup examples us
ing addeventlistener(): const para = document.queryselector('p'); para.addeventlistener('po
interup', (event) => { console.log('po
inter up'); }); us
ing the onpo
interup event handler property: const para = document.queryselector('p'); para.onpo
interup = (event) => { console.log('po
inter up'); }; specifications specification status po
inter events obsolete ...
HTMLLinkElement.referrerPolicy - Web APIs
the htmll
inkelement.referrerpolicy property reflect the html referrerpolicy attribute of the <l
ink> element def
ining which referrer is sent when fetch
ing the resource.
... syntax domstr
ing htmll
inkelement.referrerpolicy example var l
inks = document.getelementsbytagname("l
ink"); l
inks[0].referrerpolicy; // "no-referrer" specifications specification status comment referrer policythe def
inition of 'referrerpolicy attribute'
in that specification.
Location: toString() - Web APIs
the tostr
ing() str
ingifier method of the location
interface returns a usvstr
ing conta
ining the whole url.
... syntax str
ing = object.tostr
ing(); examples // let's imag
ine an <a id="myanchor" href="https://developer.mozilla.org/docs/location/tostr
ing"> element is
in the document var anchor = document.getelementbyid("myanchor"); var result = anchor.tostr
ing(); // returns: 'https://developer.mozilla.org/docs/location/tostr
ing' specifications specification status comment html liv
ing standard liv
ing standard ...
d - SVG: Scalable Vector Graphics
the d attribute def
ines a path to be drawn.
... a path def
inition is a list of path commands where each command is composed of a command letter and numbers that represent the command parameters.
... three elements have this attribute: <path>, <glyph>, and <miss
ing-glyph> html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="red" d="m 10,30 a 20,20 0,0,1 50,30 a 20,20 0,0,1 90,30 q 90,60 50,90 q 10,60 10,30 z" /> </svg> path for <path>, d is a str
ing conta
ining a series of path commands that def
ine the path to be drawn.
...And 82 more matches
listbox - Archive of obsolete content
a listbox may conta
in multiple columns.
... there are numerous methods which allow the items
in the listbox to be retrieved and modified.
... you may specify the number of rows to display
in the list us
ing the rows attribute.
...And 81 more matches
nsIContentPolicy - Archive of obsolete content
dom/base/nsicontentpolicy.idlscriptable
interface used to implement a content policy mechanism.
... implementations of this
interface can be used to control the load
ing of various types of out-of-l
ine content, or the process
ing of certa
in types of
inl
ine content.
... 63
introduced gecko 1.0
inherits from: nsicontentpolicybase last changed
in gecko 42 (firefox 42 / thunderbird 42 / seamonkey 2.39) you can observe content that is be
ing loaded
into your browser by implement
ing nsicontentpolicy.
...And 81 more matches
Arrays - Learn web development
previous overview: first steps next
in the f
inal article of this module, we'll look at arrays — a neat way of stor
ing a list of data items under a s
ingle variable name.
... here we look at why this is useful, then explore how to create an array, retrieve, add, and remove items stored
in an array, and more besides.
... prerequisites: basic computer literacy, a basic understand
ing of html and css, an understand
ing of what javascript is.
...And 81 more matches
WebRTC API - Web APIs
webrtc (web real-time communication) is a technology which enables web applications and sites to capture and optionally stream audio and/or video media, as well as to exchange arbitrary data between browsers without requir
ing an
intermediary.
... the set of standards that comprise webrtc makes it possible to share data and perform teleconferenc
ing peer-to-peer, without requir
ing that the user
installs plug-
ins or any other third-party software.
... webrtc consists of several
interrelated apis and protocols which work together to achieve this.
...And 81 more matches
Numbers and dates - JavaScript
« previousnext » this chapter
introduces the concepts, objects and functions used to work with and perform calculations us
ing numbers and dates
in javascript.
... this
includes us
ing numbers written
in various bases
includ
ing decimal, b
inary, and hexadecimal, as well as the use of the global math object to perform a wide variety of mathematical operations on numbers.
... numbers
in javascript, numbers are implemented
in double-precision 64-bit b
inary format ieee 754 (i.e., a number between ±2−1022 and ±2+1023, or about ±10−308 to ±10+308, with a numeric precision of 53 bits).
...And 81 more matches
Tabbed browser - Archive of obsolete content
here you should f
ind a set of useful code snippets to help you work with firefox's tabbed browser.
... the comments normally mark where you should be
insert
ing your own code.
... each snippet normally
includes some code to run at
initialization, these are best run us
ing a load listener.
...And 80 more matches
Accessible multimedia - Learn web development
prerequisites: basic computer literacy, a basic understand
ing of html, css, and javascript, an understand
ing of what accessibility is.
... objective: to understand the accessibility issues beh
ind multimedia, and how to overcome them.
... multimedia and accessibility so far
in this module we have looked at a variety of content and what needs to be done to ensure its accessibility, rang
ing from simple text content to data tables, images, native controls such as form elements and buttons, and even more complex markup structures (with wai-aria attributes).
...And 80 more matches
PKCS #11 Module Specs
pkcs #11 module specs the follow
ing is a proposal to the pkcs #11 work
ing group made
in august 2001 for configur
ing pkcs #11 modules.
... nss currently implements this proposal
internally.
...a s
ingle l
ine, term
inated by a '\n', '\r\n', or '\r' represents a s
ingle pkcs #11 library.
...And 80 more matches
NSS functions
this page lists all exported functions
in nss 3.11.7 it was ported from here.
...section head
ings are l
inks to the
individual pages where you can edit them.
...
in addition to the functions listed here, applications that support ssl use some of the certificate functions, crypto functions, and utility functions described below on this page.
...And 80 more matches
JSAPI reference
the jsapi is the c++ api for the spidermonkey javascript eng
ine.
... note: the foss wiki page conta
ins a few l
inks to other libraries and programs that can make life easier when us
ing spidermonkey and the jsapi.
... a note on version
ing: up until the release of firefox 4, spidermonkey, and thus the jsapi, was versioned
in an ad-hoc way, with releases happen
ing at times that roughly, but not really, corresponded to firefox releases.
...And 80 more matches
nsIMessenger
the nsimessenger
interface provides functions for manag
ing the history, undo and redo operations, and for load
ing, sav
ing, or delet
ing messages and attachments
in mailnews.
...
inherits from: nsisupports implemented by: @mozilla.org/messenger;1.
... to create an
instance, use: messenger = components.classes["@mozilla.org/messenger;1"] .create
instance(components.
interfaces.nsimessenger);
in thunderbird, a global nsimessenger object is def
ined as messenger via the createmessenger function
in mailw
indow.js.
...And 80 more matches
HTMLElement - Web APIs
the htmlelement
interface represents any html element.
... some elements directly implement this
interface, while others implement it via an
interface that
inherits it.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/nod...
...And 80 more matches
MediaDevices.getUserMedia() - Web APIs
the mediadevices.getusermedia() method prompts the user for permission to use a media
input which produces a mediastream with tracks conta
ining the requested types of media.
... that stream can
include, for example, a video track (produced by either a hardware or virtual video source such as a camera, video record
ing device, screen shar
ing service, and so forth), an audio track (similarly, produced by a physical or virtual audio source like a microphone, a/d converter, or the like), and possibly other track types.
...if the user denies permission, or match
ing media is not available, then the promise is rejected with notallowederror or notfounderror respectively.
...And 80 more matches
Operable - Accessibility
this article provides practical advice on how to write your web content so that it conforms to the success criteria outl
ined
in the operable pr
inciple of the web content accessibility guidel
ines (wcag) 2.0 and 2.1.
... operable states that user
interface components and navigation must be operable.
... note: to read the w3c def
initions for operable and its guidel
ines and success criteria, see pr
inciple 2: operable — user
interface components and navigation must be operable.
...And 80 more matches
Web Performance
web performance is how long a site takes to load, become
interactive and responsive, and how smooth the content is dur
ing user
interactions - is the scroll
ing smooth?
...web performance
includes both objective measurements like time to load, frames per second, and time to become
interactive, and subjective experiences of how long it felt like it took the content to load.
...it is important to m
inimize the load
ing and response times and add additional features to conceal latency by mak
ing the experience as available and
interactive as possible, as soon as possible, while asynchronously load
ing
in the longer tail parts of the experience.
...And 80 more matches
HTTP Cache
the code resides
in /network/cache2.
... api here is a detailed description of the http cache v2 api, examples
included.
... this document only conta
ins what cannot be found or may not be clear directly from the idl files comments.
...And 79 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.
... this makes it possible to present desired content—such as an onl
ine game—us
ing the user's entire screen, remov
ing all browser user
interface elements and other applications from the screen until full-screen mode is shut off.
... note: support for this api varies somewhat across browsers, with many requir
ing vendor prefixes and/or not implement
ing the latest specification.
...And 79 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.
... the htmlvideoelement and htmlaudioelement elements both
inherit this
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 30%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 180" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 79 more matches
Example and tutorial: Simple synth keyboard - Web APIs
this article presents the code and work
ing demo of a video keyboard you can play us
ing the mouse.
... the keyboard allows you to switch among the standard waveforms as well as one custom waveform, and you can control the master ga
in us
ing a volume slider beneath the keyboard.
... this example makes use of the follow
ing web api
interfaces: audiocontext, oscillatornode, periodicwave, and ga
innode.
...And 79 more matches
Closures - JavaScript
a closure is the comb
ination of a function bundled together (enclosed) with references to its surround
ing state (the lexical environment).
...
in other words, a closure gives you access to an outer function’s scope from an
inner function.
...
in javascript, closures are created every time a function is created, at function creation time.
...And 79 more matches
Functions - JavaScript
generally speak
ing, a function is a "subprogram" that can be called by code external (or
internal
in the case of recursion) to the function.
...
in javascript, functions are first-class objects, because they can have properties and methods just like any other object.
... what dist
inguishes them from other objects is that functions can be called.
...And 79 more matches
Content Scripts - Archive of obsolete content
but the ma
in add-on code doesn't get direct access to web content.
...
instead, sdk add-ons need to factor the code that gets access to web content
into separate scripts that are called content scripts.
... content scripts can be one of the more confus
ing aspects of work
ing with the sdk, but you're very likely to have to use them.
...And 78 more matches
tabs - Archive of obsolete content
usage open a tab you can open a new tab, specify
ing various properties
includ
ing location: var tabs = require("sdk/tabs"); tabs.open("http://www.example.com"); track tabs you can register event listeners to be notified when tabs open, close, f
inish load
ing dom content, or are made active or
inactive: var tabs = require("sdk/tabs"); // listen for tab open
ings.
...tabs.on('ready', function(tab) { console.log('tab is loaded', tab.title, tab.url); }); access tabs the module itself can be used as a list of all opened tabs across all w
indows.
...
in particular, you can enumerate it: var tabs = require('sdk/tabs'); for (let tab of tabs) console.log(tab.title); you can also access
individual tabs by
index: var tabs = require('sdk/tabs'); tabs.on('ready', function () { console.log('first: ' + tabs[0].title); console.log('last: ' + tabs[tabs.length-1].title); }); you can access the currently active tab: var tabs = require('sdk/tabs'); tabs.on('activate', function () { console.log('active: ' + tabs.activetab.url); }); track a s
ingle tab given a tab, you can register event listeners to be notified when the tab is closed, activated or deactivated, or when the page hosted by the tab is loaded or retrieved from the "back-forward cache": var tabs = require("sdk/tabs"); function onopen(tab) { console.log(tab.url + " is ope...
...And 78 more matches
jspage - Archive of obsolete content
var mootools={version:"1.2.4",build:"0d9113241a90b9cd5643b926795852a2026710d4"};var native=function(k){k=k||{};var a=k.name;var i=k.legacy;var b=k.protect; var c=k.implement;var h=k.generics;var f=k.
initialize;var g=k.afterimplement||function(){};var d=f||i;h=h!==false;d.constructor=native;d.$family={name:"native"}; if(i&&f){d.prototype=i.prototype;}d.prototype.constructor=d;if(a){var e=a.tolowercase();d.prototype.$family={name:e};native.typize(d,e);}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o; }if(h){native.genericize(n,l,b);}g.call(n,l,o);return n;};d.alias=function(n,l,p){if(typeof n=="str
ing"){var o=this.prototype[n];if((n=o)){return j(this,l,n,p); }}for(var m
in n){this.alias(m,n[m],l);}return this;};d.implement=function(m,l,o){if(typeof m=="str
ing"){retu...
...rn j(this,m,l,o);}for(var n
in m){j(this,n,m[n],l); }return this;};if(c){d.implement(c);}return d;};native.genericize=function(b,c,a){if((!a||!b[c])&&typeof b.prototype[c]=="function"){b[c]=function(){var d=array.prototype.slice.call(arguments); return b.prototype[c].apply(d.shift(),d);};}};native.implement=function(d,c){for(var b=0,a=d.length;b<a;b++){d[b].implement(c);}};native.typize=function(a,b){if(!a.type){a.type=function(c){return($type(c)===b); };}};(function(){var a={array:array,date:date,function:function,number:number,regexp:regexp,str
ing:str
ing};for(var h
in a){new native({name:h,
initialize:a[h],protect:true}); }var d={"boolean":boolean,"native":native,object:object};for(var c
in d){native.typize(d[c],c);}var f={array:["concat","
indexof","jo
in","last
indexof","pop","push","reverse...
...","shift","slice","sort","splice","tostr
ing","unshift","valueof"],str
ing:["charat","charcodeat","concat","
indexof","last
indexof","match","replace","search","slice","split","substr","substr
ing","tolowercase","touppercase","valueof"]}; for(var e
in f){for(var b=f[e].length;b--;){native.genericize(a[e],f[e][b],true);}}})();var hash=new native({name:"hash",
initialize:function(a){if($type(a)=="hash"){a=$unl
ink(a.getclean()); }for(var b
in a){this[b]=a[b];}return this;}});hash.implement({foreach:function(b,c){for(var a
in this){if(this.hasownproperty(a)){b.call(c,this[a],a,this); }}},getclean:function(){var b={};for(var a
in this){if(this.hasownproperty(a)){b[a]=this[a];}}return b;},getlength:function(){var b=0;for(var a
in this){if(this.hasownproperty(a)){b++; }}return b;}});hash.alias("foreach",...
...And 78 more matches
Web fonts - Learn web development
previous overview: styl
ing text next
in the first article of the module, we explored the basic css features available for styl
ing fonts and text.
...
in this article we will go further, explor
ing web fonts
in detail — these allow you to download custom fonts along with your web page, to allow for more varied, custom text styl
ing.
... prerequisites: basic computer literacy, html basics (study
introduction to html), css basics (study
introduction to css), css text and font fundamentals.
...And 78 more matches
Build your own function - Learn web development
previous overview: build
ing blocks next with most of the essential theory dealt with
in the previous article, this article provides practical experience.
... here you will get some practice build
ing your own, custom function.
... along the way, we'll also expla
in some useful details of deal
ing with functions.
...And 78 more matches
Focus management with Vue refs - Learn web development
we'll look at us
ing vue refs to handle this — an advanced feature that allows you to have direct access to the underly
ing dom nodes below the virtual dom, or direct access from one component to the
internal dom structure of a child component.
... prerequisites: familiarity with the core html, css, and javascript languages, knowledge of the term
inal/command l
ine.
... vue components are written as a comb
ination of javascript objects that manage the app's data and an html-based template syntax that maps to the underly
ing dom structure.
...And 78 more matches
Property cache
spidermonkey's property cache is an
internal data structure used to speed up property accesses
in the
interpreter and to communicate between the
interpreter and jit.
... warn
ing: the details below are obsolete.
... shape
integers do not exist anymore.
...And 78 more matches
Mail composition back end
warn
ing: the content of this article may be out of date.
... it was imported from mozilla.org and last updated
in 2000.
...pizzarro <rhp@netscape.com> contents overview send
ing messages nsimsgsend send
ing listener
interfaces nsimsgsendlistener nsimsgcopyservicelistener copy operations copy to sent folder drafts templates "send later" send
ing unsent messages send
ing unsent messages listener quot
ing sample programs overview i've done considerable work
in the past few weeks reorganiz
ing the mail composition back end, so i thought it would be helpful to put together a small doc on the new
interfaces and how one can use them.
...And 78 more matches
<a>: The Anchor element - HTML: Hypertext Markup Language
the html <a> element (or anchor element), with its href attribute, creates a hyperl
ink to web pages, files, email addresses, locations
in the same page, or anyth
ing else a url can address.
... content with
in each <a> should
indicate the l
ink's dest
ination.
... the source for this
interactive example is stored
in a github repository.
...And 78 more matches
Style System Overview - Archive of obsolete content
style system style sheets & rules ↓ rule tree ↓ style context
interface style sheets & rules nsistyleruleprocessor and nsistylesheet describe
in c++ what a css stylesheet can do nsistylerule describes
in c++ what a css style rule can do ma
in implementations are for css, but we have other implementations
in c++ that: do what css can't do do th
ings faster than css would css style sheets at basic level, sheet is collection of rules other special th
ings: @import, @media, @namespace, etc.
... selector matches elements
in the document.
... “cascaded” value for property + element: if 0 rules match
ing the element have the property: some properties
inherit and some properties use
initial value.
...And 77 more matches
Functions — reusable blocks of code - Learn web development
previous overview: build
ing blocks next another essential concept
in cod
ing is functions, which allow you to store a piece of code that does a s
ingle task
inside a def
ined block, and then call that code whenever you need it us
ing a s
ingle short command — rather than hav
ing to type out the same code multiple times.
...
in this article we'll explore fundamental concepts beh
ind functions such as basic syntax, how to
invoke and def
ine them, scope, and parameters.
... prerequisites: basic computer literacy, a basic understand
ing of html and css, javascript first steps.
...And 77 more matches
JIT Optimization Outcomes
spidermonkey's optimiz
ing jit, ionmonkey, uses different optimization strategies to speed up various operations.
... this page documents the mean
ing of different optimization outcomes.
... notype
info optimization failed because there was no type
information associated with an object conta
ining the property.
...And 77 more matches
RDF Modifications - Archive of obsolete content
« previousnext » one of the most useful aspects of us
ing templates with rdf datasources is that when the rdf datasource changes, for
instance a new triple is added, or a triple is removed, the template updates accord
ingly, add
ing or remov
ing result output as needed.
...this
involves a third type of observer
involved
in a template builder, an nsirdfobserver, used to listen for modifications to the rdf datasource.
...the template builder uses these notifcations to update the template as necessary based on the new or removed
information.
...And 76 more matches
Object prototypes - Learn web development
previous overview: objects next prototypes are the mechanism by which javascript objects
inherit features from one another.
...
in this article, we expla
in how prototype cha
ins work and look at how the prototype property can be used to add methods to exist
ing constructors.
...
in the next article, we talk about the modern way of do
ing th
ings, which provides easier syntax to achieve the same th
ings — see ecmascript 2015 classes.
...And 76 more matches
Error codes returned by Mozilla APIs
the follow
ing tables list errors that can occur when call
ing various mozilla apis.
... each error is listed by its name and an error code
in parentheses.
... an error will typically be displayed on the error console, but can be captured us
ing a try-catch block
in javascript.
...And 76 more matches
A basic 2D WebGL animation example - Web APIs
in this webgl example, we create a canvas and with
in it render a rotat
ing square us
ing webgl.
... the coord
inate system we use to represent our scene is the same as the canvas's coord
inate system.
...its job, as always, is to convert the coord
inates we're us
ing for our scene
into clipspace coord
inates (that is, the system by which (0, 0) is at the center of the context and each axis extends from -1.0 to 1.0 regardless of the actual size of the context).
...And 76 more matches
Cross-browser audio basics - Developer guides
this article provides: a basic guide to creat
ing a cross-browser html5 audio player with all the associated attributes, properties, and events expla
ined a guide to custom controls created us
ing the media api basic audio example the code below is an example of a basic audio implementation us
ing html5: <audio controls> <source src="audiofile.mp3" type="audio/mpeg"> <source src="audiofile.ogg" type="audio/ogg"> <!-- fallback for non support
ing browsers goes here --> <p>your browser does not support html5 audio, but you can still <a href="audiofile.mp3">download the music</a>.</p> </audio> note: you can also use an mp4 file
instead of mp3.
... mp4 files typically conta
in aac encoded audio.
... here we def
ine an <audio> element with multiple sources — we do this as not all browsers support the same audio formats.
...And 76 more matches
/loader - Archive of obsolete content
usage the code is
intentionally authored so that it can be loaded
in several ways.
... it can be loaded as a regular script tag
in documents that have system pr
incipals (note: this does not appear to work as of 02.2016 due to "use strict" be
ing added to the file): <script type='application/javascript' src='resource://gre/modules/commonjs/toolkit/loader.js'></script> this will expose a s
ingle loader object conta
ining all of the api functions described
in this document.
... it can be loaded as a javascript code module: let { loader, require, unload } = components.utils.import('resource://gre/modules/commonjs/toolkit/loader.js'); it can be required as a commonjs module from a module loaded
in the loader itself: let { loader, require, unload } = require('toolkit/loader'); what is it good for ?
...And 75 more matches
Notes on HTML Reflow - Archive of obsolete content
overview reflow is the process by which the geometry of the layout eng
ine's formatt
ing objects are computed.
... the html formatt
ing objects are called frames : a frame corresponds to the geometric
information for (roughly) a s
ingle element
in the content model; the frames are arranged
into a hierarchy that parallels the conta
inment hierarchy
in the content model.
... a frame is rectangular, with width, height, and an offset from the parent frame that conta
ins it.
...And 75 more matches
OpenClose - Archive of obsolete content
open
ing and clos
ing popups popups and menus may be opened and closed by a script.
... open
ing menus menus will display themselves automatically when needed without extra work.
... for
instance, a menu's popup will open when the menu label is clicked, and a submenu will open when the mouse is hovered over the parent menu element.
...And 75 more matches
How to structure a web form - Learn web development
previous overview: forms next with the basics out of the way, we'll now look
in more detail at the elements used to provide structure and mean
ing to the different parts of a form.
... prerequisites: basic computer literacy, and a basic understand
ing of html.
... the flexibility of forms makes them one of the most complex structures
in html; you can build any k
ind of basic form us
ing dedicated form elements and attributes.
...And 75 more matches
sample2
if a copy of the mpl was not distributed with this * file, you can obta
in one at http://mozilla.org/mpl/2.0/.
... */ /* nspr headers */ #
include <prthread.h> #
include <plgetopt.h> #
include <prerror.h> #
include <pr
init.h> #
include <prlog.h> #
include <prtypes.h> #
include <plstr.h> /* nss headers */ #
include <cryptohi.h> #
include <keyhi.h> #
include <pk11priv.h> #
include <cert.h> #
include <base64.h> #
include <secerr.h> #
include <secport.h> #
include <secoid.h> #
include <secmodt.h> #
include <secoidt.h> #
include <sechash.h> /* our samples utilities */ #
include "util.h" /* constants */ #def
ine blocksize 32 #def
ine modblocksize 128 #def
ine default_key_bits 1024 /* header file constants */ #def
ine enckey_header "-----beg
in wrapped enckey-----" #def
ine enckey_trailer "-----end wrapped enckey-----" #def
ine mackey_header "-----beg
in wrapped mackey-----" #def
ine mackey_trailer "-----end wrapped mackey-----" #def
ine ...
...iv_header "-----beg
in iv-----" #def
ine iv_trailer "-----end iv-----" #def
ine mac_header "-----beg
in mac-----" #def
ine mac_trailer "-----end mac-----" #def
ine pad_header "-----beg
in pad-----" #def
ine pad_trailer "-----end pad-----" #def
ine lab_header "-----beg
in key label-----" #def
ine lab_trailer "-----end key label-----" #def
ine pubkey_header "-----beg
in pub key -----" #def
ine pubkey_trailer "-----end pub key -----" #def
ine ns_certreq_header "-----beg
in new certificate request-----" #def
ine ns_certreq_trailer "-----end new certificate request-----" #def
ine ns_cert_enc_header "-----beg
in certificate for encryption-----" #def
ine ns_cert_enc_trailer "-----end certificate for encryption-----" #def
ine ns_cert_vfy_header "-----beg
in certificate for signature verification-----" #def
ine ns_cert_vfy...
...And 75 more matches
mozIStorageConnection
storage/public/mozistorageconnection.idlscriptable this
interface represents a database connection attached to a specific file or an
in-memory database.
... it is the primary
interface for
interact
ing with a database,
includ
ing creat
ing prepared statements, execut
ing sql, and exam
ining database errors.
... 1.0 68
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) for a general overview on how to use this
interface, see storage.
...And 75 more matches
Evolution of HTTP - HTTP
http (hypertext transfer protocol) is the underly
ing protocol of the world wide web.
... developed by tim berners-lee and his team between 1989-1991, http has seen many changes, keep
ing most of the simplicity and further shap
ing its flexibility.
... http has evolved from an early protocol to exchange files
in a semi-trusted laboratory environment, to the modern maze of the
internet, now carry
ing images, videos
in high resolution and 3d.
...And 75 more matches
File I/O - Archive of obsolete content
use of os.file is preferred over the examples
in this article.
... only use these legacy
interfaces if os.file is not available to you.
... this article describes local file
input/output
in chrome javascript.
...And 74 more matches
HTMLTextAreaElement - Web APIs
the htmltextareaelement
interface provides special properties and methods for manipulat
ing the layout and presentation of <textarea> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 74 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 conta
in simple text content.
... note:
in versions of firefox prior to firefox 3, rich list boxes support only s
ingle selection.
... firefox 3
introduced multiple selection to rich list boxes.
...And 73 more matches
Backgrounds and borders - Learn web development
previous overview: build
ing blocks next
in this lesson, we will take a look at some of the creative th
ings you can do with css backgrounds and borders.
... from add
ing gradients, background images, and rounded corners, backgrounds and borders are the answer to a lot of styl
ing questions
in css.
... prerequisites: basic computer literacy, basic software
installed, basic knowledge of work
ing with files, html basics (study
introduction to html), and an idea of how css works (study css first steps.) objective: to learn how to style the background and border of boxes.
...And 73 more matches
Address Book examples
note: thunderbird and seamonkey user
interfaces now reference 'contacts' not 'cards' however, as the backend still uses the 'cards' term
inology, that is what is used here this article provides examples on access
ing and manipulat
ing thunderbird address books.
... address book
interfaces provides an overview of the related
interfaces.
... see an overview of thunderbird components for a general description of the thunderbird user
interface and related programmatic
interfaces.
...And 73 more matches
Web accessibility for seizures and physical reactions - Accessibility
this article
introduces concepts beh
ind mak
ing web content accessibile for those with vestibular disorders, and how to measure and prevent content lead
ing to seizures and / or other physical reactions.
...content that flickers, flashes, or bl
inks can trigger photosensitive epilepsy.
... web technologies that use video, animated gifs, animated pngs, animated svgs, canvas, and css or javascript animations are all capable of content that can
induce seizures or other
incapacitat
ing physical reactions.
...And 73 more matches
places/bookmarks - Archive of obsolete content
usage this module exports: three constructors: bookmark, group, and separator, correspond
ing to the types of objects, referred to as bookmark items,
in the bookmarks database
in firefox two additional functions, save() to create, update, and remove bookmark items, and search() to retrieve the bookmark items that match a particular set of criteria.
...the module does not automatically sync up a bookmark
instance with ongo
ing changes to that item
in the database from the same add-on, other add-ons, or the user.
... examples creat
ing a new bookmark let { bookmark, save } = require("sdk/places/bookmarks"); // create a new bookmark
instance, unsaved let bookmark = bookmark({ title: "mozilla", url: "http://mozilla.org" }); // attempt to save the bookmark
instance to the bookmarks database // and store the emitter let emitter = save(bookmark); // listen for events emitter.on("data", function (saved,
inputitem) { // on a "data" event, an item has been updated, pass
ing
in the // latest snapshot from the server as `saved` (with properties // such as `updated` and `id`), as well as the
initial
input // item as `
inputitem` console.log(saved.title ===
inputitem.title); // true console.log(saved !==
inputitem); // true console.log(
inputitem === bookmark); // true }).on("end", function (savedit...
...And 72 more matches
package.json - Archive of obsolete content
the package.json file conta
ins manifest data for your add-on, provid
ing not only descriptive
information about the add-on for presentation
in the add-ons manager, but other metadata required of add-ons.
... some of its entries, such as icon, name, and description, have direct analogues
in the
install manifest format, and entries from package.json are written
into the
install manifest when the add-on is built us
ing jpm xpi.
... others, such as lib, permissions, and preferences, represent
instructions to the jpm tool itself to generate and
include particular code and data structures
in your add-on.
...And 72 more matches
Software accessibility: Where are we today?
up until this po
int, the largest driv
ing force beh
ind desktop comput
ing environments has been microsoft, first with ms dos, followed by variants of microsoft w
indows.
... these operat
ing systems were not designed with the needs of people with disabilities
in m
ind.
... many,
includ
ing those who were bl
ind or physically disabled, were unable to use applications which were written for microsoft operat
ing systems.
...And 72 more matches
Enc Dec MAC Output Public Key as CSR
generates encryption/mac keys and outputs public key as certificate sign
ing request /* this source code form is subject to the terms of the mozilla public * license, v.
...if a copy of the mpl was not distributed with this * file, you can obta
in one at http://mozilla.org/mpl/2.0/.
... */ /* nspr headers */ #
include #
include #
include #
include #
include #
include #
include /* nss headers */ #
include #
include #
include #
include #
include #
include #
include #
include #
include #
include #
include #
include /* our samples utilities */ #
include "util.h" #def
ine buffersize 80 #def
ine digestsize 16 #def
ine ptext_mac_buffer_size 96 #def
ine ciphersize 96 #def
ine blocksize 32 #def
ine default_key_bits 1024 #def
ine cipher_header "-----beg
in cipher-----" #def
ine cipher_trailer "-----end cipher-----" #def
ine enckey_header "-----beg
in wrapped enckey-----" #def
ine enckey_trailer "-----end wrapped enckey-----" #def
ine mackey_header "-----beg
in wrapped mackey-----" #def
ine mackey_trailer "-----end wra...
...And 72 more matches
nsIAppShellService
inherits from: nsisupports last changed
in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) implemented by: @mozilla.org/appshell/appshellservice;1 as a service: var appshellservice = components.classes["@mozilla.org/appshell/appshellservice;1"] .getservice(components.
interfaces.nsiappshellservice); method overview void closetoplevelw
indow(
in nsixulw
indow aw
indow); obsolete s
ince gecko 1.8 void createhiddenw
indow(
in nsiappshell aappshell); native code only!
... boolean createstartupstate(
in long aw
indowwidth,
in long aw
indowheight); obsolete s
ince gecko 1.8 nsixulw
indow createtoplevelw
indow(
in nsixulw
indow aparent,
in nsiuri aurl,
in pru
int32 achromemask,
in long a
initialwidth,
in long a
initialheight,
in nsiappshell aappshell); nsiwebnav createw
indowlessbrowser (
in bool aischrome) void destroyhiddenw
indow(); void doprofilestartup(
in nsicmdl
ineservice acmdl
ineservice,
in boolean can
interact); obsolete s
ince gecko 1.8 void ensure1w
indow(
in nsicmdl
ineservice acmdl
ineservice); obsolete s
ince gecko 1.8 void enterlastw
indowclos
ingsurvivalarea(); obsolete s
ince gecko 1.8 void exitlastw
indowclos
ingsurvivalarea(); obsolete s
ince gecko 1.8 void gethiddenw
indowandjscontext(out ...
...nsidomw
indow ahiddendomw
indow, out jscontext ajscontext); native code only!
...And 72 more matches
Debugger.Frame - Firefox Developer Tools
debugger.frame a debugger.frame
instance represents a visible stack frame.
... given a debugger.frame
instance, you can f
ind the script the frame is execut
ing, walk the stack to older frames, f
ind the lexical environment
in which the execution is tak
ing place, and so on.
... for a given debugger
instance, spidermonkey creates only one debugger.frame
instance for a given visible frame.
...And 72 more matches
The HTML autocomplete attribute - HTML: Hypertext Markup Language
the html autocomplete attribute is available on <
input> elements that take a text or numeric value as
input, <textarea> elements, <select> elements, and <form> elements.
... autocomplete lets web developers specify what if any permission the user agent has to provide automated assistance
in fill
ing out form field values, as well as guidance to the browser as to the type of
information expected
in the field.
...for
instance, a browser might let the user save their name, address, phone number, and email addresses for autocomplete purposes.
...And 72 more matches
An overview of HTTP - HTTP
http is a protocol which allows the fetch
ing of resources, such as html documents.
... it is the foundation of any data exchange on the web and it is a client-server protocol, which means requests are
initiated by the recipient, usually the web browser.
... a complete document is reconstructed from the different sub-documents fetched, for
instance text, layout description, images, videos, scripts, and more.
...And 72 more matches
JSAPI Cookbook
this article shows the jsapi equivalent for a t
iny handful of common javascript idioms.
... note: the foss wiki page conta
ins a few l
inks to other libraries and programs that can make life easier when us
ing spidermonkey and jsapi.
... basics work
ing with values the basic, undifferentiated value type
in the jsapi is js::value.
...And 54 more matches
nsIEditorSpellCheck
editor/idl/nsieditorspellcheck.idlnot scriptable provides spell check
ing commands for nsieditor
instances.
...
inherits from: nsisupports last changed
in gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6) implemented by: @mozilla.org/editor/editorspellchecker;1.
... to create an
instance, use: var editorspellcheck = components.classes["@mozilla.org/editor/editorspellchecker;1"] .create
instance(components.
interfaces.nsieditorspellcheck); method overview void addwordtodictionary(
in wstr
ing word); boolean canspellcheck(); void checkcurrentdictionary(); boolean checkcurrentword(
in wstr
ing suggestedword); boolean checkcurrentwordnosuggest(
in wstr
ing suggestedword); astr
ing getcurrentdictionary(); void getdictionarylist([array, size_is(count)] out wstr
ing dictionarylist, out pru
int32 count); wstr
ing getnextmisspelledword(); void getpersonaldictionary(); wstr
ing getpersonaldictionaryword(); wstr
ing getsuggestedword(); void ign...
...And 54 more matches
Network request details - Firefox Developer Tools
the request details pane appears when you click on a network request
in the request list.
... this pane provides more detailed
information about the request.
... network request details click
ing on a row displays a new pane
in the right-hand side of the network monitor, which provides more detailed
information about the request.
...And 54 more matches
<script>: The Script element - HTML: Hypertext Markup Language
the <script> element can also be used with other languages, such as webgl's glsl shader programm
ing language and json.
... content categories metadata content, flow content, phras
ing content.
... tag omission none, both the start
ing and end
ing tag are mandatory.
...And 54 more matches
Loops and iteration - JavaScript
« previousnext » loops offer a quick and easy way to do someth
ing repeatedly.
... this chapter of the javascript guide
introduces the different iteration statements available to javascript.
... you can th
ink of a loop as a computerized version of the game where you tell someone to take x steps
in one direction, then y steps
in another.
...And 54 more matches
href - SVG: Scalable Vector Graphics
the href attribute def
ines a l
ink to a resource as a reference url.
... the exact mean
ing of that l
ink depends on the context of each element us
ing it.
... note: specifications before svg 2 def
ined an xl
ink:href attribute, which is now rendered obsolete by the href attribute.
...And 54 more matches
Web Components
web components is a suite of different technologies allow
ing you to create reusable custom elements — with their functionality encapsulated away from the rest of your code — and utilize them
in your web apps.
... concepts and usage as developers, we all know that reus
ing code as much as possible is a good idea.
... this has traditionally not been so easy for custom markup structures — th
ink of the complex html (and associated style and script) you've sometimes had to write to render custom ui controls, and how us
ing them multiple times can turn your page
into a mess if you are not careful.
...And 54 more matches
platform/xpcom - Archive of obsolete content
usage the xpcom module makes it simpler to perform three ma
in tasks: implement xpcom object
interfaces implement and register xpcom factories implement and register xpcom services if all you need to do is use xpcom objects that someone else has implemented, then you don't need to use this module.
... implement
ing xpcom
interfaces this module exports a class called unknown which implements the fundamental xpcom
interface nsisupports.
... by subclass
ing unknown, either us
ing standard javascript
inheritance or us
ing the sdk's heritage module, you can provide your own implementations of xpcom
interfaces.
...And 53 more matches
Miscellaneous - Archive of obsolete content
this page conta
ins small, self-explanatory code snippets.
... system
info operat
ing system detection // returns "w
innt" on w
indows vista, xp, 2000, and nt systems; // "l
inux" on gnu/l
inux; and "darw
in" on mac os x.
... var osstr
ing = services.app
info.os; detect
ing the host application and version // get the name of the application runn
ing us services.app
info.name; // returns "firefox" for firefox services.app
info.version; // returns "2.0.0.1" for firefox version 2.0.0.1 retriev
ing the version of an extension as specified
in the extension's
install.rdf components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("extension-guid@example.org", function(addon) { // this is an asynchronous callback function that might not be called immediately alert("my extension's version is " + addon.version); }); restart
ing firefox/thunderbird/seamonkey_2.0 for firefox 3 see onwizardf
inish around here: http://mxr.mozilla.org/seamonkey/sou...pdates.js#1639 for firefox 2 see aro...
...And 53 more matches
XML - Archive of obsolete content
xul syntax & rules xul is a standards-based
interface def
inition language.
... it attempts to balance precise control of layout with flexibility and ease of use, and
in this respect it does a great job.
... us
ing a comb
ination of xul's ready-made widgets (e.g., menubar, scrollbar, progressmeter, and so on) and xul's
incorporation of such standards as html4, dom1/2, and cascad
ing stylesheets, you can design any
interface that you can imag
ine, us
ing any number of different features, tools, and methodologies.
...And 53 more matches
treecol - Archive of obsolete content
it displays the column header and holds the size and other
information about the column.
... you can also place splitter elements between the columns to allow column resiz
ing.
... you should always place an id attribute on a treecol element to ensure that the column position
ing is handled properly.
...And 53 more matches
CSUN Firefox Materials
it's a quick download, occupies very little disk space, and has a clean, no-nonsense
interface." - pc magaz
ine firefox 1.5 is a fast, free, standards compliant web browser which is rapidly ga
ining recognition for its fresh, streaml
ined approach to brows
ing the web.
...
in addition to w
inn
ing major awards such as pc world product of the year, firefox has attracted a huge follow
ing among savvy users who simply care enough about their web brows
ing experience to download a new piece of software.
... websites such as onl
ine magaz
ines with sophisticated audiences are now report
ing upwards of 25% firefox usage.
...And 53 more matches
Obsolete Build Caveats and Tips
this has resulted
in many caveats and tips be
ing added to the mdn documentation for build
ing older versions of the code base or deal
ing with older build tools.
... these tips, while helpful, are jarr
ing and superfluous to the majority of new mozilla builders who are ma
inly
interested
in build
ing the latest version of firefox.
... therefore,
instead of delet
ing all these nuggets of
information, it's best to collect them all here and remove them from the majority happy path documentation.
...And 53 more matches
Detailed XPCOM hashtable guide
the
information you're look
ing for is probably there.
...items are found, added, and removed from the hashtable by us
ing the key.
... hashtables may seem like arrays, but there are important differences: array hashtable keys:
integer: arrays are always keyed on
integers, and must be contiguous.
...And 53 more matches
nsIAccessibleText
inherits from: nsisupports last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void addselection(
in long startoffset,
in long endoffset); nsiaccessible getattributerange(
in long offset, out long rangestartoffset, out long rangeendoffset); obsolete s
ince gecko 1.9.1 wchar getcharacteratoffset(
in long offset); void getcharacterextents(
in long offset, out long x, out long y, out long width, out long height,
in unsigned long coordtype); long getoffsetatpo
int(
in long x,
in long y,
in unsigned long coordtype); void getrangeextents(
in long startoffset,
in long endoffset, out long x, out long y, out long width, out long height,
in unsigned long c...
...oordtype); void getselectionbounds(
in long selectionnum, out long startoffset, out long endoffset); astr
ing gettext(
in long startoffset,
in long endoffset); astr
ing gettextafteroffset(
in long offset,
in nsaccessibletextboundary boundarytype, out long startoffset, out long endoffset); astr
ing gettextatoffset(
in long offset,
in nsaccessibletextboundary boundarytype, out long startoffset, out long endoffset); nsipersistentproperties gettextattributes(
in boolean
includedefattrs,
in long offset, out long rangestartoffset, out long rangeendoffset); astr
ing gettextbeforeoffset(
in long offset,
in nsaccessibletextboundary boundarytype, out long startoffset, out long endoffset); void removeselection(
in long selectionnum); void scrollsubstr
ingto(
in long start
index,
in long end
index, i...
...n unsigned long scrolltype); void scrollsubstr
ingtopo
int(
in long start
index,
in long end
index,
in unsigned long coord
inatetype,
in long x,
in long y); void setselectionbounds(
in long selectionnum,
in long startoffset,
in long endoffset); attributes attribute type description caretoffset long the current current caret offset.
...And 53 more matches
nsIBrowserHistory
toolkit/components/places/public/nsibrowserhistory.idlscriptable a browser-specific
interface to global history.
... it adds functions used by the basic browser like, mark
ing pages as typed
in the url bar, and remov
ing pages as from the history
interface.
...
inherits from: nsiglobalhistory2 last changed
in gecko 22.0 (firefox 22.0 / thunderbird 22.0 / seamonkey 2.19) implemented by: @mozilla.org/browser/nav-history-service;1.
...And 53 more matches
Transformations - Web APIs
« previousnext » earlier
in this tutorial we've learned about the canvas grid and the coord
inate space.
...with transformations there are more powerful ways to translate the orig
in to a different position, rotate the grid and even scale it.
... sav
ing and restor
ing state before we look at the transformation methods, let's look at two other methods which are
indispensable once you start generat
ing ever more complex draw
ings.
...And 53 more matches
Service Worker API - Web APIs
they are
intended, among other th
ings, to enable the creation of effective offl
ine experiences,
intercept network requests and take appropriate action based on whether the network is available, and update assets resid
ing on the server.
... service worker concepts and usage a service worker is an event-driven worker registered aga
inst an orig
in and a path.
... it takes the form of a javascript file that can control the web-page/site that it is associated with,
intercept
ing and modify
ing navigation and resource requests, and cach
ing resources
in a very granular fashion to give you complete control over how your app behaves
in certa
in situations (the most obvious one be
ing when the network is not available).
...And 53 more matches
Touch events - Web APIs
to provide quality support for touch-based user
interfaces, touch events offer the ability to
interpret f
inger (or stylus) activity on touch screens or trackpads.
... the touch events
interfaces are relatively low-level apis that can be used to support application-specific multi-touch
interactions such as a two-f
inger gesture.
... a multi-touch
interaction starts when a f
inger (or stylus) first touches the contact surface.
...And 53 more matches
HTTP conditional requests - HTTP
http has a concept of conditional requests, where the result, and even the success of a request, can be changed by compar
ing the affected resources with the value of a validator.
... such requests can be useful to validate the content of a cache, and spar
ing a useless control, to verify the
integrity of a document, like when resum
ing a download, or when prevent
ing to lose updates when upload
ing or modify
ing a document on the server.
... pr
inciples http conditional requests are requests that are executed differently, depend
ing on the value of specific headers.
...And 53 more matches
SVG Presentation Attributes - SVG: Scalable Vector Graphics
alignment-basel
ine basel
ine-shift clip clip-path clip-rule color color-
interpolation color-
interpolation-filters color-profile color-render
ing cursor direction display dom
inant-basel
ine enable-background fill fill-opacity fill-rule filter flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-render
ing kern
ing letter-spac
ing light
ing-color marker-end marker-mid marker-start mask opacity overflow po
inter-events shape-render
ing solid-color solid-opacity stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-l...
...
inecap stroke-l
inejo
in stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-render
ing transform unicode-bidi vector-effect visibility word-spac
ing writ
ing-mode attributes alignment-basel
ine it specifies how an object is aligned along the font basel
ine with respect to its parent.
... value: auto|basel
ine|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hang
ing|mathematical|
inherit; animatable: yes basel
ine-shift it allows reposition
ing of the dom
inant-basel
ine relative to the dom
inant-basel
ine of the parent text content element.
...And 53 more matches
Namespaces crash course - SVG: Scalable Vector Graphics
versions of svg viewers prior to the release of firefox 1.5 unfortunately paid scant attention to namespaces, but they are essential to multi-xml dialect support
ing user agents such as gecko-based browsers which must be very strict.
... take some time to understand namespaces now and it will save you all sorts of headaches
in the future.
... background it has been a long stand
ing goal of the w3c to make it possible for different types of xml based content to be mixed together
in the same xml file.
...And 53 more matches
Tutorials
the l
inks on this page lead to a variety of tutorials and tra
ining materials.
... whether you are just start
ing out, learn
ing the basics, or are an old hand at web development, you can f
ind helpful resources here for best practices.
... these resources are created by forward-th
ink
ing companies and web developers who have embraced open standards and best practices for web development and that provide or allow translations, through an open content license such as creative commons.
...And 53 more matches
Advanced Rules - Archive of obsolete content
the full rule syntax the rule syntax described so far is useful for some datasources but sometimes you will need to display data
in more complicated ways.
...like the simple rules, full rules are placed with
in the rule tag.
... full rules conta
in three child tags, a conditions tag, a b
ind
ings tag and an action tag, although the b
ind
ings tag is not always needed.
...And 52 more matches
Old Proxy API - Archive of obsolete content
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... warn
ing: the spidermonkey proxy implementation is a prototype and the proxy api and semantics specifications are unstable.
...And 52 more matches
Addon
an addon represents an add-on that is either
installed or can be
installed.
...
instances can be created us
ing the many getaddon methods on the addonmanager object.
... the
interface can represent many different k
inds of add-ons and as such, some of the methods and properties are considered "required" and others "optional," which means that the optional methods or property may not exist on addon
instances for some types of add-ons.
...And 52 more matches
Localization technical reviews
this guide provides details on what a localization technical review is, what criteria are used for the technical reviews, and the process for request
ing one and follow
ing its progress.
... the technical review process we use for new localizations can be confus
ing for any try
ing to start a new localization.
... we use this review process to perform quality assurance (qa) test
ing on your l10n efforts.
...And 52 more matches
pkfnc.html
this page is part of the ssl reference that we are migrat
ing
into the format described
in the mdn style guide.
... if you are
incl
ined to help with this migration, your help would be very much appreciated.
... upgraded documentation may be found
in the current nss reference pkcs #11 functions chapter 7 pkcs #11 functions this chapter describes the core pkcs #11 functions that an application needs for communicat
ing with cryptographic modules.
...And 52 more matches
NSS Tools ssltap
us
ing the ssl debugg
ing tool (ssltap) newsgroup: mozilla.dev.tech.crypto the ssl debugg
ing tool is an ssl-aware command-l
ine proxy.
... it watches tcp connections and displays the data go
ing by.
... if a connection is ssl, the data display
includes
interpreted ssl records and handshak
ing.
...And 52 more matches
IAccessible2
1.0 66
introduced gecko 1.9
inherits from: iaccessible last changed
in gecko 1.9 (firefox 3) method overview [propget] hresult attributes([out] bstr attributes ); [propget] hresult extendedrole([out] bstr extendedrole ); [propget] hresult extendedstates([
in] long maxextendedstates, [out, size_is(,maxextendedstates), length_is(, nextendedstates)] bstr extendedstates, [out] long nextendedstates ); [propget] hresult groupposition([out] long grouplevel, [out] long similaritems
ingroup, [out] long position
ingroup ); [propget] hresult
index
inparent([out] long
index
inparent ); [propget] hresult locale([out] ia2locale locale ); [propget] hresult localizedextendedrole...
...([out] bstr localizedextendedrole ); [propget] hresult localizedextendedstates([
in] long maxlocalizedextendedstates, [out, size_is(,maxlocalizedextendedstates), length_is(, nlocalizedextendedstates)] bstr localizedextendedstates, [out] long nlocalizedextendedstates ); [propget] hresult nextendedstates([out] long nextendedstates ); [propget] hresult nrelations([out] long nrelations ); [propget] hresult relation([
in] long relation
index, [out] iaccessiblerelation relation ); [propget] hresult relations([
in] long maxrelations, [out, size_is(maxrelations), length_is( nrelations)] iaccessiblerelation relations, [out] long nrelations ); hresult role([out] long role ); hresult scrollto([
in] enum ia2scrolltype scrolltype ); hresult scrolltopo
int([
in] enum ia2coord
inatetype coord
inatet...
...ype, [
in] long x, [
in] long y ); [propget] hresult states([out] accessiblestates states ); [propget] hresult uniqueid([out] long uniqueid ); [propget] hresult w
indowhandle([out] hwnd w
indowhandle ); methods attributes() returns the attributes specific to this iaccessible2 object, such as a cell's formula.
...And 52 more matches
Mork
mork is a database file format
invented by david mccusker for the mozilla code s
ince the orig
inal netscape database
information was proprietary and could not be released open source.
... start
ing with mozilla 1.9, it was phased out
in favor of sqlite, a more widely-supported file format.
... the
information on this page was constructed by read
ing the source code of the mork database
in mozilla and attempt
ing to codify what it parses as faithfully as possible.
...And 47 more matches
nsIContentPrefService
use the asynchronous
interface nsicontentprefservice2
instead.
... dom/
interfaces/base/nsicontentprefservice.idlscriptable please add a summary to this article.
... last changed
in gecko 2 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)
inherits from: nsisupports implemented by: @mozilla.org/content-pref/service;1.
...And 47 more matches
nsIDBChangeListener
the nsidbchangelistener
interface is used by components want
ing to receive notification when the current database changes somehow.
... example here is an example implementation of the listener (that does noth
ing): var mylistener = { onhdrflagschanged: function(ahdrchanged, aoldflags, anewflags, a
instigator) {}, onhdrdeleted: function(ahdrchanged, aparentkey, aflags, a
instigator) {}, onhdradded: function(ahdrchanged, aparentkey, aflags, a
instigator) {}, onparentchanged: function(akeychanged, oldparent, newparent, a
instigator) {}, onannouncergo
ingaway: function(a
instigator) {}, onreadchanged: function(a
instigator) {}, onjunkscorechanged: function(a
instigator) {}, onhdrpropertychanged: function(ahdrtochange, aprechange, astatus, a
instigator) {}, onevent: function(adb, aevent) {}, query
interface: function(aiid) { if (!aiid.equals(components.
interfaces.nsidbchangelistener) && !aiid.equals(com...
...ponents.
interfaces.nsisupports)) throw components.results.ns_error_no_
interface; return this; } }; and to attach it
in thunderbird, we must call addlistener on a nsidbchangeannouncer, typically through a nsimsgdatabase.
...And 47 more matches
nsIDOMEvent
dom/
interfaces/events/nsidomevent.idlscriptable this
interface is the primary data type for all events
in the document object model.
...
inherits from: nsisupports last changed
in gecko 16.0 (firefox 16.0 / thunderbird 16.0 / seamonkey 2.13) note: as of gecko 16.0, the nsiprivatedomevent
interface was merged
into this
interface.
... everyth
ing marked as gecko 16.0 was previously available
in that
interface.
...And 47 more matches
Cache - Web APIs
the cache
interface provides a storage mechanism for request / response object pairs that are cached, for example as part of the serviceworker life cycle.
... note that the cache
interface is exposed to w
indowed scopes as well as workers.
... you don't have to use it
in conjunction with service workers, even though it is def
ined
in the service worker spec.
...And 47 more matches
Basic animations - Web APIs
« previousnext » s
ince we're us
ing javascript to control <canvas> elements, it's also very easy to make (
interactive) animations.
...
in this chapter we will take a look at how to do some basic animations.
...if we need to move it we have to redraw it and everyth
ing that was drawn before it.
...And 47 more matches
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.
... activat
ing full-screen mode given an element that you'd like to present
in full-screen mode (such as a <video>, for example), you can present it
in full-screen mode by simply call
ing its requestfullscreen() method.
... let's consider this <video> element: <video controls id="myvideo"> <source src="somevideo.webm"></source> <source src="somevideo.mp4"></source> </video> we can put that video
into full-screen mode as follows: var elem = document.getelementbyid("myvideo"); if (elem.requestfullscreen) { elem.requestfullscreen(); } this code checks for the existence of the requestfullscreen() method before call
ing it.
...And 47 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 manipulat
ing the layout and presentation of tables
in an html document.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 47 more matches
Navigator - Web APIs
the navigator
interface represents the state and the identity of the user agent.
... a navigator object can be retrieved us
ing the read-only w
indow.navigator property.
... properties doesn't
inherit any properties, but implements those def
ined
in navigatorid, navigatorlanguage, navigatoronl
ine, navigatorcontentutils, navigatorstorage, navigatorstorageutils, navigatorconcurrenthardware, navigatorplug
ins, and navigatorusermedia.
...And 47 more matches
Progressive web app structure - Progressive web apps (PWAs)
previous overview: progressive web apps next now that we know the theory beh
ind pwas, let's look at the recommended structure of an actual app.
... we will start with analyz
ing the js13kpwa application, why it is built that way, and what benefits it br
ings.
... architecture of an app there are two ma
in, different approaches to render
ing a website — on the server or on the client.
...And 47 more matches
requiredFeatures - SVG: Scalable Vector Graphics
the requiredfeatures attribute takes a list of feature str
ings, with the
individual str
ings separated by white space.
... it determ
ines whether or not all of the named features are supported by the browser; if all of them are supported, the attribute evaluates to true end the element is rendered; otherwise, the attribute evaluates to false and the current element and its children are skipped and thus will not be rendered.
...if a null str
ing or empty str
ing value is given to attribute requiredfeatures, the attribute is evaluate to false.
...And 47 more matches
io/file - Archive of obsolete content
usage paths path specifications
in this api are platform-specific.
... this means that on w
indows paths are specified us
ing the backslash path separator (\), and on unix-like systems like l
inux and os x paths are specified us
ing the forward slash path separator (/).
... if your add-on uses literal w
indows-style path specifications with this api, your add-on likely won't work when users run it on unix-like systems.
...And 46 more matches
Additional Navigation - Archive of obsolete content
« previousnext » retriev
ing literals the triples used so far have all had variables
in both the subject and object.
... however, a str
ing value may be used
instead.
... s
ince the subject of an rdf arc is always a resource, the subject may be a resource uri.
...And 46 more matches
listitem - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a s
ingle row
in a listbox.
... the text of the listitem is specified either us
ing listcell elements, or by plac
ing a label attribute directly on the listitem element.
... by default it conta
ins a s
ingle listcell element of type and class appropriate to that of the listitem.
...And 46 more matches
NetUtil.jsm
the netutil.jsm javascript code module provides easy-to-use apis for perform
ing common network related tasks.
... to use these utilities, you first need to import the code module
into your javascript scope: components.utils.import("resource://gre/modules/netutil.jsm"); once you've imported the module, you can then use its methods.
... method overview nsiasyncstreamcopier asynccopy(nsi
inputstream asource, nsioutputstream as
ink, [optional] acallback) void asyncfetch(asource, acallback) nsichannel newchannel(awhattoload, [optional] aorig
incharset, [optional] nsiuri abaseuri) nsiuri newuri(atarget, [optional] aorig
incharset, [optional] nsiuri abaseuri) str
ing read
inputstreamtostr
ing(a
inputstream, acount, aoptions) attributes attribute type description ioservice nsiioservice returns a reference to nsiioservice.
...And 45 more matches
64-bit Compatibility
this article focuses on hack
ing tracemonkey code generation (jstracer.cpp, jsregex.cpp)
in ways that will work on both 32-bit and 64-bit jit backends.
...the follow
ing types or typedefs are always 64-bit on 64-bit platforms, and 32-bit on 32-bit platforms: po
inters u
intptr_t,
intptr_t, ptrdiff_t, (probably) size_t jsval jsuword, jsword length of a str
ing, though the actual length cannot exceed 30 bits jsu
intptr, js
intptr, jsptrdiff, jsuptrdiff, jssize, jsuword, jsword (let's not use these, kthx) the follow
ing types are 32-bit on 32-bit platforms.
... for all
intents and purposes they are also 32-bit on 64-bit platforms:
intn, u
intn js
intn, jsu
intn, jsbool general problems with po
inters when perform
ing bitwise operations on po
inter values, make sure that both operands are 64-bit.
...And 45 more matches
nsITimer
the nsitimer
interface offers a functionality to
invoke a function after a specified delay.
... nsitimer
instances must be
initialized by call
ing one of the
initialization methods.
... you may also re-
initialize (us
ing one of the
initialization methods) an exist
ing
instance to avoid the overhead of destroy
ing and creat
ing a timer.
...And 45 more matches
nsIMsgCloudFileProvider
nsimsgcloudfileprovider is the
interface that must be implemented by new filel
ink providers.
...
inherits from: nsisupports method overview void
init(
in str
ing aaccountkey); void uploadfile(
in nsilocalfile afile,
in nsirequestobserver acallback); acstr
ing urlforfile(
in nsilocalfile afile); void cancelfileupload(
in nsilocalfile afile); void refreshuser
info(
in boolean awithui,
in nsirequestobserver acallback); void deletefile(
in nsilocalfile afile,
in nsirequestobserver acallback); void createnewaccount(
in acstr
ing aemailaddress,
in acstr
ing apassword,
in acstr
ing afirstname,
in acstr
ing alastname,
in nsirequestobserver acallback); void createexist
ingaccount(
in nsirequestobserver acallback); acstr
ing providerurlforerror(
in unsigned long aerror); a...
...ttributes attribute type description type acstr
ing readonly: the type is a unique str
ing identifier which can be used by
interface elements for styl
ing.
...And 45 more matches
Event - Web APIs
the event
interface represents an event which takes place
in the dom.
...click
ing the mouse button or tapp
ing keyboard, or generated by apis to represent the progress of an asynchronous task.
... it can also be triggered programmatically, such as by call
ing the htmlelement.click() method of an element, or by def
ining the event, then send
ing it to a specified target us
ing eventtarget.dispatchevent().
...And 45 more matches
<th> - HTML: Hypertext Markup Language
the html <th> element def
ines a cell as header of a group of table cells.
... the exact nature of this group is def
ined by the scope and headers attributes.
... the source for this
interactive example is stored
in a github repository.
...And 45 more matches
Content Security Policy (CSP) - HTTP
content security policy (csp) is an added layer of security that helps to detect and mitigate certa
in types of attacks,
includ
ing cross site script
ing (xss) and data
injection attacks.
... these attacks are used for everyth
ing from data theft to site defacement to distribution of malware.
... csp is designed to be fully backward compatible (except csp version 2 where there are some explicitly-mentioned
inconsistencies
in backward compatibility; more details here section 1.1).
...And 45 more matches
height - SVG: Scalable Vector Graphics
the height attribute def
ines the vertical length of an element
in the user coord
inate system.
... twenty five elements are us
ing this attribute: <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselight
ing>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlight
ing>, <fetile>, <feturbulence>, <filter>, <foreignobject>, <image>, <mask>, <pattern>, <rect>, <svg>, and <use> html,body,svg { height:100% } <svg viewbox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <!-- with a height of 0 or less, noth
ing will be rendered --> <rect y="0" x="0" width="90" height="0"/> <rect y="0" x="100" width="90" height="60"/> <rect y="0" x="200" width="90" height="100%"/> </svg> feblend for <feblend>, height def
ines the vertical length for the render
ing area of the ...
... value <length> | <percentage> default value 100% animatable yes fecolormatrix for <fecolormatrix>, height def
ines the vertical length for the render
ing area of the primitive.
...And 45 more matches
width - SVG: Scalable Vector Graphics
the width attribute def
ines the horizontal length of an element
in the user coord
inate system.
... twenty five elements are us
ing this attribute: <feblend>, <fecolormatrix>, <fecomponenttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselight
ing>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlight
ing>, <fetile>, <feturbulence>, <filter>, <foreignobject>, <image>, <mask>, <pattern>, <rect>, <svg>, and <use> html,body,svg { height:100% } <svg viewbox="0 0 100 300" xmlns="http://www.w3.org/2000/svg"> <!-- with a width of 0 or less, noth
ing will be rendered --> <rect x="0" y="0" width="0" height="90"/> <rect x="0" y="100" width="60" height="90"/> <rect x="0" y="200" width="100%" height="90"/> </svg> feblend for <feblend>, width def
ines the horizontal length for the render
ing area of the ...
... value <length> | <percentage> default value 100% animatable yes fecolormatrix for <fecolormatrix>, width def
ines the horizontal length for the render
ing area of the primitive.
...And 45 more matches
WebAssembly
webassembly is a new type of code that can be run
in modern web browsers — it is a low-level assembly-like language with a compact b
inary format that runs with near-native performance and provides languages such as c/c++, c# and rust with a compilation target so that they can run on the web.
... it is also designed to run alongside javascript, allow
ing both to work together.
...
in a nutshell webassembly has huge implications for the web platform — it provides a way to run code written
in multiple languages on the web at near native speed, with client apps runn
ing on the web that previously couldn’t have done so.
...And 45 more matches
Promises - Archive of obsolete content
the follow
ing page conta
ins examples of many promise-based replacement apis for common operations.
... these apis allow asynchronous operation to be achieved with a cod
ing style similar to synchronous variants.
... the follow
ing examples make use of the task api, which harnesses generator functions to remove some of the syntactic clutter of raw promises, such that asynchronous promise code more closely resembles synchronous, procedural code.
...And 44 more matches
Space Manager High Level Design - Archive of obsolete content
overview the space manager and associated classes and structures are used by block and l
ine layout to manage rectangular regions that are occupied and available, for correct handl
ing of floated elements and the elements that flow around them.
... when elements are floated to the left or right
in a layout, they take up space and
influence where other elements can be placed.
... the space manager is responsible for keep
ing track of where space is taken up and where it is available.
...And 44 more matches
File object - Archive of obsolete content
warn
ing: this section describes the file component of the spidermonkey javascript
interpreter.
... file is non-standard, not generally compiled
into distributions, is a potential source of huge security holes, and not well tested.
... gett
ing started
in order to use the file object from your javascript programs, you must enable it by sett
ing the make variable js_has_file_object dur
ing the compilation of your spidermonkey eng
ine.
...And 44 more matches
Special Condition Tests - Archive of obsolete content
for example, the bookmarks toolbar
in a web browser might display buttons at the first level, but menus and submenus for content below that.
... templates have a means of allow
ing a rule to match only if the generated content would be
inserted
inside an element with a particular tag name.
... for
instance, if the conta
iner was a <vbox>, a rule could be created that would only match a <vbox> element.
...And 44 more matches
Trees and Templates - Archive of obsolete content
« previousnext » the follow
ing describes how to use a template with a tree.
... add
ing datasources to trees when us
ing a tree, you will often use a template to build its content, to handle a large amount of hierarchial data.
... us
ing a template with a tree uses very much the same syntax as with other elements.
...And 44 more matches
dialog - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] this element should be used
in place of the w
indow element for dialog boxes.
... the buttons attribute may be used to set which buttons should appear
in the dialog box.
... these buttons will be placed
in the correct locations for the user's platform.
...And 44 more matches
Efficient animation for web games - Game development
this article covers techniques and advice for creat
ing efficient animation for web games, with a slant towards support
ing lower end devices such as mobile phones.
... we touch on css transitions and css animations, and javascript loops
involv
ing w
indow.requestanimationframe.
... there are several techniques worth know
ing that will improve the performance of your game or application whilst also us
ing less battery life, especially on low-end devices.
...And 44 more matches
How CSS works - Learn web development
in this lesson we will take a look at how a browser takes css and html and turns that
into a webpage.
... prerequisites: basic computer literacy, basic software
installed, basic knowledge of work
ing with files, and html basics (study
introduction to html.) objective: to understand the basics of how css and html are parsed by the browser, and what happens when a browser encounters css it does not understand.
... when a browser displays a document, it must comb
ine the document's content with its style
information.
...And 44 more matches
What is a URL? - Learn web development
this article discusses uniform resource locators (urls), expla
ining what they are and how they're structured.
... prerequisites: you need to first know how the
internet works, what a web server is and the concepts beh
ind l
inks on the web.
...a url is noth
ing more than the address of a given unique resource on the web.
...And 44 more matches
The "why" of web performance - Learn web development
overview: performance next web performance is all about mak
ing websites fast,
includ
ing mak
ing slow processes seem fast.
... this article provides an
introduction
into why web performance is important to site visitors and for your bus
iness goals.
... prerequisites: basic computer literacy, basic software
installed, and basic knowledge of client-side web technologies.
...And 44 more matches
Gecko Keypress Event
gecko 1.9 key handl
ing changed significantly after beta 5 (bug 359638, bug 429510 and the bugs on which they depend).
... the changes were risky so late
in the release schedule, but they were necessary for fix
ing the many key handl
ing bugs.
... charcode of dom keypress event if a keypress event is fired without any modifier keys (ctrl/alt(option)/meta(w
in/command)), then the properties of the event are the same as they were
in gecko1.8.1.
...And 44 more matches
nsIProtocolProxyService
netwerk/base/public/nsiprotocolproxyservice.idlscriptable this
interface provides methods to access
information about various network proxies.
...
inherits from: nsisupports last changed
in gecko 1.7 implemented by: @mozilla.org/network/protocol-proxy-service;1.
... to access the service use: var pps = components.classes["@mozilla.org/network/protocol-proxy-service;1"] .getservice(components.
interfaces.nsiprotocolproxyservice); method overview deprecated s
ince gecko 18 nsiproxy
info resolve(
in nsiuri auri,
in unsigned long aflags); nsicancelable asyncresolve(
in nsiuri auri,
in unsigned long aflags,
in nsiprotocolproxycallback acallback); nsiproxy
info newproxy
info(
in acstr
ing atype,
in autf8str
ing ahost,
in long aport,
in unsigned long aflags,
in unsigned long afailovertimeout,
in nsiproxy
info afailoverproxy); nsiproxy
info getfailoverforproxy(
in nsiproxy
info aproxy
info,
in nsiuri auri,
in nsresult areason); void registerfilter(
in nsiprotocolproxyfilter afilter,
in unsigned long aposition); ...
...And 44 more matches
nsISupports proxies
obsolete s
ince gecko 12 (firefox 12 / thunderbird 12 / seamonkey 2.9)this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 44 more matches
nsIUpdate
toolkit/mozapps/update/nsiupdateservice.idlscriptable an
interface that describes an object represent
ing an available update to the current application - this update may have several available patches from which one must be selected to download and
install, for example we might select a b
inary difference patch first and attempt to apply that, then if the application process fails fall back to download
ing a complete file-replace patch.
... this object also conta
ins
information about the update that the front end and other application services can use to learn more about what is go
ing on.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview nsiupdatepatch getpatchat(
in unsigned long
index); nsidomelement serialize(
in nsidomdocument updates); attributes attribute type description appversion astr
ing the application version of this update.
...And 44 more matches
BasicCardResponse - Web APIs
the basiccardresponse dictionary (related to the payment request api, although def
ined
in the basic card payment spec) def
ines an object structure for payment response details such as the number/expiry date of the card used to make the payment, and the bill
ing address.
... properties basiccardresponse.cardnumber read only secure context conta
ins the number of the card used to make the payment.
... basiccardresponse.cardholdername read only secure context optional conta
ins the cardholder name of the card used to make the payment.
...And 44 more matches
HTMLAnchorElement - Web APIs
the htmlanchorelement
interface represents hyperl
ink elements and provides special properties and methods (beyond those of the regular htmlelement object
interface that they
inherit from) for manipulat
ing the layout and presentation of such elements.
... this
interface corresponds to <a> element; not to be confused with <l
ink>, which is represented by htmll
inkelement) <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fi...
...ll="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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" alignme...
...And 44 more matches
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 manipulat
ing the layout and presentation of table cells, either header or data cells,
in an html document.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 44 more matches
RTCPeerConnection.createOffer() - Web APIs
the createoffer() method of the rtcpeerconnection
interface
initiates the creation of an sdp offer for the purpose of start
ing a new webrtc connection to a remote peer.
... the sdp offer
includes
information about any mediastreamtracks already attached to the webrtc session, codec, and options supported by the browser, and any candidates already gathered by the ice agent, for the purpose of be
ing sent over the signal
ing channel to a potential peer to request a connection or to update the configuration of an exist
ing connection.
... the return value is a promise which, when the offer has been created, is resolved with a rtcsessiondescription object conta
ining the newly-created offer.
...And 44 more matches
ARIA: grid role - Accessibility
the grid role is for a widget that conta
ins one or more rows of cells.
... the position of each cell is significant and can be focused us
ing keyboard
input.
... <table role="grid" aria-labelledby="id-select-your-seat"> <caption id="id-select-your-seat">select your seat</caption> <tbody role="presentation"> <tr role="presentation"> <td></td> <th>row a</th> <th>row b</th> </tr> <tr> <th scope="row">aisle 1</th> <td tab
index="0"> <button id="1a" tab
index="-1">1a</button> </td> <td tab
index="-1"> <button id="1b" tab
index="-1">1b</button> </td> <!-- more columns --> </tr> <tr> <th scope="row">aisle 2</th> <td tab
index="-1"> <button id="2a" tab
index="-1">2a</button> </td> <td tab
index="-1"> <button id="2b" tab
index="-1">2b</button> </td> <!-- more columns --> </tr> </tbody> </table> description a grid...
...And 44 more matches
Keyboard-navigable JavaScript widgets - Accessibility
us
ing tab
index by default, when people use the tab key to browse a webpage, only
interactive elements (like l
inks, form controls) get focused.
... with the tab
index global attribute, authors can make other elements focusable, too.
... the order
in which elements ga
in focus when us
ing a keyboard, is the source order by default.
...And 44 more matches
ARIA: cell role - Accessibility
the cell value of the aria role attribute identifies an element as be
ing a cell
in a tabular conta
iner that does not conta
in column or row header
information.
... to be supported, the cell must be nested
in an element with the role of row.
... <div role="row"> <span role="cell">france</span> <span role="cell">67 million</span> </div> a better, more semantic way of writ
ing the cells above would be to use the semantic <td> element.
...And 41 more matches
ARIA: textbox role - Accessibility
the textbox role is used to identify an element that allows the
input of free-form text.
... whenever possible, rather than us
ing this role, use an <
input> element with type="text", for s
ingle-l
ine
input, or a <textarea> element for multi-l
ine
input.
... the default is a s
ingle l
ine
input,
in which return or enter submits the form;
in this case, it is preferable to use an html <
input> with type="text".
...And 41 more matches
Overview of events and handlers - Developer guides
this overview of events and event handl
ing expla
ins the code design pattern used to react to
incidents occurr
ing when a browser accesses a web page, and it summarizes the types of such
incidents modern web browsers can handle.
... events and event handl
ing provide a core technique
in javascript for react
ing to
incidents occurr
ing when a browser accesses a web page,
includ
ing events from prepar
ing a web page for display, from
interact
ing with the content of the web page, relat
ing to the device on which the browser is runn
ing, and from many other causes such as media stream playback or animation tim
ing.
... events and event handl
ing become central to web programm
ing with the addition of the language to browsers, accompany
ing a switch
in the render
ing architecture of browsers from fetch and load page render
ing to event driven, reflow based, page render
ing.
...And 41 more matches
<nextid>: The NeXT ID element (Obsolete) - HTML: Hypertext Markup Language
<nextid> is an obsolete html element that served to enable the next web design
ing tool to generate automatic name labels for its anchors.
... it was generated by that web edit
ing tool automatically and was not to be adjusted or entered by hand.
... this element has the dist
inction of be
ing the first element to become one of the "lost tags" by be
ing elim
inated from the official public dtd's of the html versions.
...And 41 more matches
CSP: script-src - HTTP
this
includes not only urls loaded directly
into <script> elements, but also th
ings like
inl
ine script event handlers (onclick) and xslt stylesheets which can trigger script execution.
... syntax one or more sources can be allowed for the script-src policy: content-security-policy: script-src <source>; content-security-policy: script-src <source> <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 41 more matches
Arrow function expressions - JavaScript
an arrow function expression is a syntactically compact alternative to a regular function expression, although without its own b
ind
ings to the this, arguments, super, or new.target keywords.
... syntax basic syntax (param1, param2, …, paramn) => { statements } (param1, param2, …, paramn) => expression // equivalent to: => { return expression; } // parentheses are optional when there's only one parameter name: (s
ingleparam) => { statements } s
ingleparam => { statements } // the parameter list for a function with no parameters should be written with a pair of parentheses.
... () => { statements } advanced syntax // parenthesize the body of a function to return an object literal expression: params => ({foo: bar}) // rest parameters and default parameters are supported (param1, param2, ...rest) => { statements } (param1 = defaultvalue1, param2, …, paramn = defaultvaluen) => { statements } // destructur
ing with
in the parameter list is also supported var f = ([a, b] = [1, 2], {x: c} = {x: a + b}) => a + b + c; f(); // 6 description see also "es6
in depth: arrow functions" on hacks.mozilla.org.
...And 41 more matches
User Notifications and Alerts - Archive of obsolete content
« previousnext » it is often the case that extensions need to notify users about important events, often requir
ing some response.
... us
ing modal dialogs and alerts is usually a bad idea.
... they
interrupt the user's workflow, demand
ing immediate action before anyth
ing else can be done.
...And 40 more matches
Panels - Archive of obsolete content
it is used when support
ing temporary popup displays for select
ing or enter
ing data.
...for example, the follow
ing panel displays a textbox for enter
ing a name.
... note that the panel is not placed
in a separate file and is
instead placed
inside another w
indow.
...And 40 more matches
menu - Archive of obsolete content
more
information is available
in the xul tutorial.
... attributes acceltext, accesskey, allowevents, command, crop, disabled, image, label, menuactive, open, sizetopopup, tab
index, value properties accessibletype, accesskey, command, control, crop, disabled, image, itemcount, label, labelelement, menupopup, open, parentconta
iner, selected, tab
index, value methods appenditem, get
indexofitem, getitemat
index,
insertitemat, removeitemat style classes menu-iconic example <menubar id="sample-menubar"> <menu id="file-menu" label="file"> <menupopup id="file-popup"> <menuitem label="new"/> <menuitem label="open"/> <menuitem label="save"/> <menuseparator/> <menuitem label="exit"/> </menupopup> </menu> <menu id="edit-menu" label="edit"> <menupopup id="edit-popup"> <menuitem label="un...
...do"/> <menuitem label="redo"/> </menupopup> </menu> </menubar> attributes acceltext type: str
ing text that appears beside the menu label to
indicate the shortcut key (accelerator key) to use to
invoke the command.
...And 40 more matches
preference - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] declares a preference that may be adjusted
in a prefpane.
... this element must be placed
inside a preferences element.
... each preference element corresponds to a preference which is stored
in the user's preferences file.
...And 40 more matches
XULRunner Hall of Fame - Archive of obsolete content
azardi free w
in/mac/l
inux epub 2/epub 3 desktop reader us
ing html5 and latest css features of gecko for
interactive e-books.
...
includes smil audio overlays and idpf fixed layout.
... celtx all-
in-one media pre-production software.
...And 40 more matches
Function return values - Learn web development
previous overview: build
ing blocks next there's one last essential concept about functions for us to discuss — return values.
...it's important to understand what their values are, how to use them
in your code, and how to make functions return useful values.
... prerequisites: basic computer literacy, a basic understand
ing of html and css, javascript first steps, functions — reusable blocks of code.
...And 40 more matches
Theme concepts
themes developed us
ing the webextensions api
in firefox enable you to change the look of the browser by add
ing images to the header area of the firefox browser; this is the area beh
ind the menu bar, toolbars, address bar, search bar, and tab strip.
... these theme options can be implemented as static themes (although the theme images themselves may be animated) or as dynamic themes created
in a browser extension.
... static themes static themes are specified us
ing the same resources as a browser extension: a manifest.json file to def
ine the theme components with those components stored
in the same folder as the manifest.json file or a sub folder.
...And 40 more matches
PopupNotifications.jsm
to use this, you first need to import the code module
into 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 creat
ing and display
ing popup notification panels.
... note: this code module is imported by firefox chrome w
indows, so you don't have to do it yourself
in most extensions.
... method overview void locationchange(); notification getnotification(id, browser); void remove(notification); notification show(browser, id, message, anchorid, ma
inaction, secondaryactions, options); properties attribute type description ispanelopen boolean returns true if the notification panel is currently visible, false if it is not.
...And 40 more matches
About NSPR
netscape portable runtime (nspr) provides platform
independence for non-gui operat
ing system facilities.
... these facilities
include threads, thread synchronization, normal file and network i/o,
interval tim
ing and calendar time, basic memory management (malloc and free) and shared library l
ink
ing.
... history a good portion of the library's purpose, and perhaps the primary purpose
in the gromit environment, was to provide the underp
inn
ings of the java vm, more or less mapp
ing the sys layer that sun def
ined for the port
ing of the java vm to various platforms.
...And 40 more matches
XBL Example - Archive of obsolete content
you could put anyth
ing with
in the pages, however, this widget might be useful for a set of images.
... content of the slideshow first, let's determ
ine what elements need to go
in the xbl content.
... because we want page flipp
ing, a deck element would be the most suitable to hold the page content.
...And 38 more matches
XULRunner tips - Archive of obsolete content
work
in progress.
... conta
ins tons of non-work
ing code (bit rot).
... extension manager to be able to
install any extensions, you first need to enable the extension manager
in application.
ini.
...And 38 more matches
What is a web server? - Learn web development
in this article, we expla
in what web servers are, how web servers work, and why they are important.
... prerequisites: you should already know how the
internet works, and understand the difference between a web page, a web site, a web server, and a search eng
ine.
... objective: you will learn what a web server is and ga
in a general understand
ing of how it works.
...And 38 more matches
What is web performance? - Learn web development
previous overview: performance next web performance is all about mak
ing web sites fast,
includ
ing mak
ing slow processes seem fast.
... does the site load quickly, allow the user to start
interact
ing with it quickly, and offer reassur
ing feedback if someth
ing is tak
ing time to load (e.g.
... a load
ing sp
inner)?
...And 38 more matches
Ember app structure and componentization - Learn web development
previous overview: client-side javascript frameworks next
in this article we'll get right on with plann
ing out the structure of our todomvc ember app, add
ing
in the html for it, and then break
ing that html structure
into components.
... prerequisites: at m
inimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the term
inal/command l
ine.
... a deeper understand
ing of modern javascript features (such as classes, modules, etc), will be extremely beneficial, as ember makes heavy use of them.
...And 38 more matches
Learn web development
welcome to the mdn learn
ing area.
... this set of articles aims to provide complete beg
inners to web development with all that they need to start cod
ing websites.
... the aim of this area of mdn is not to take you from "beg
inner" to "expert" but to take you from "beg
inner" to "comfortable." from there, you should be able to start mak
ing your way, learn
ing from the rest of mdn, and other
intermediate to advanced resources that assume a lot of previous knowledge.
...And 38 more matches
Android-specific test suites
android-checkstyle ensures that the java cod
ing style is consistent throughout.
... android-f
indbugs ensures that the code avoids common java cod
ing errors.
... android-l
int ensures that the code avoids common android cod
ing errors.
...And 38 more matches
NSS FAQ
it provides a complete open-source implementation of the crypto libraries used by mozilla and other companies
in the firefox browser, aol
instant messenger (aim), server products from red hat, and other products.
...for detailed
information on the open-source nss project, see nss project page.
... if you want add support for ssl, s/mime, or other
internet security standards to your application, you can use network security services (nss) to do so.
...And 38 more matches
Preface
next » this is a book about gecko, and about creat
ing xpcom components for gecko-based applications.
... though the emphasis is on the practical steps you take to make your c++ code
into a component that can be used
in gecko, we hope that these steps will also give us an occasion to discuss all of the tools, techniques, and technologies that make up xpcom.
... accord
ingly, the book is arranged so that you can follow along and create your own components or learn about different xpcom topics
individually, as
in a reference work.
...And 38 more matches
NS ConvertASCIItoUTF16 external
class declaration method overview constructors get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind ...
... rf
ind f
indchar rf
indchar append
int to
integer base classes nsstr
ing_external data members no public members.
... methods constructors void ns_convertasciitoutf16_external(const nsacstr
ing&) - source parameters nsacstr
ing& astr void ns_convertasciitoutf16_external(const char*, pru
int32) - source parameters char* adata pru
int32 alength get prunichar* get() const - source operator= nsstr
ing_external& operator=(const nsstr
ing_external&) - source parameters nsstr
ing_external& astr
ing nsastr
ing& operator=(const nsastr
ing&) - source parameters nsastr
ing& astr
ing nsastr
ing& operator=(const prunichar*) - source parameters prunichar* aptr nsastr
ing& operator=(prunichar) - sourc...
...And 38 more matches
NS_ConvertUTF16toUTF8
class declaration a helper class that converts a utf-16 str
ing to utf-8 method overview constructors operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset compare equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat operator[] first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequalsascii lowerca...
...seequalsliteral(const char lowercaseequalsliteral(char 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 nscautostr
ing data members no public members.
... methods constructors void ns_convertutf16toutf8(const prunichar*) - source a helper class that converts a utf-16 str
ing to utf-8 parameters prunichar* astr
ing void ns_convertutf16toutf8(const prunichar*, pru
int32) - source parameters prunichar* astr
ing pru
int32 alength void ns_convertutf16toutf8(const nsastr
ing_
internal&) - source parameters nsastr
ing_
internal& astr
ing operator= nscautostr
ing& operator=(const nscautostr
ing&) - source parameters nscautostr
ing& str nscstr
ing& operator=(const nscstr
ing&) - source parameters nscstr
ing& str nsacstr
ing_
internal& operator=(char) - source parameters char c nsacstr
ing_
internal& operator=(const char*) - source parameters char* data nsacstr
ing_
internal& operator=(const nsacstr
ing_
internal&) - source ...
...And 38 more matches
NS ConvertUTF8toUTF16 external
class declaration method overview constructors get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind ...
... rf
ind f
indchar rf
indchar append
int to
integer base classes nsstr
ing_external data members no public members.
... methods constructors void ns_convertutf8toutf16_external(const nsacstr
ing&) - source parameters nsacstr
ing& astr void ns_convertutf8toutf16_external(const char*, pru
int32) - source parameters char* adata pru
int32 alength get prunichar* get() const - source operator= nsstr
ing_external& operator=(const nsstr
ing_external&) - source parameters nsstr
ing_external& astr
ing nsastr
ing& operator=(const nsastr
ing&) - source parameters nsastr
ing& astr
ing nsastr
ing& operator=(const prunichar*) - source parameters prunichar* aptr nsastr
ing& operator=(prunichar) - source ...
...And 38 more matches
NS_LossyConvertUTF16toASCII
class declaration a helper class that converts a utf-16 str
ing to ascii
in a lossy manner method overview constructors operator= get f
ind rf
ind rf
indchar f
indchar
inset rf
indchar
inset compare equalsignorecase tofloat to
integer mid left right setcharat stripchars stripwhitespace replacechar replacesubstr
ing trim compresswhitespace assignwithconversion appendwithconversion append
int appendfloat beg
inread
ing endread
ing beg
inwrit
ing endwrit
ing data length isempty isvoid isterm
inated charat operator[] first last countchar f
indchar equals equalsascii equalsliteral(const char equalsliteral(char lowercaseequal...
...sascii lowercaseequalsliteral(const char lowercaseequalsliteral(char 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 nscautostr
ing data members no public members.
... methods constructors void ns_lossyconvertutf16toascii(const prunichar*) - source a helper class that converts a utf-16 str
ing to ascii
in a lossy manner parameters prunichar* astr
ing void ns_lossyconvertutf16toascii(const prunichar*, pru
int32) - source parameters prunichar* astr
ing pru
int32 alength void ns_lossyconvertutf16toascii(const nsastr
ing_
internal&) - source parameters nsastr
ing_
internal& astr
ing operator= nscautostr
ing& operator=(const nscautostr
ing&) - source parameters nscautostr
ing& str nscstr
ing& operator=(const nscstr
ing&) - source parameters nscstr
ing& str nsacstr
ing_
internal& operator=(char) - source parameters char c nsacstr
ing_
internal& operator=(const char*) - source parameters char* data nsacstr
ing_
internal& operator=(co...
...And 38 more matches
nsIDOMXULElement
dom/
interfaces/xul/nsidomxulelement.idlscriptable represents a xul element with
in the dom.
... 66
introduced gecko 1.0
inherits from: nsidomelement last changed
in gecko 1.9 (firefox 3) method overview void blur(); void click(); void docommand(); void focus(); nsidomnodelist getelementsbyattribute(
in domstr
ing name,
in domstr
ing value); nsidomnodelist getelementsbyattributens(
in domstr
ing namespaceuri,
in domstr
ing name,
in domstr
ing value); attributes attribute type description align domstr
ing gets/sets the value of the element's align attribute.
... allowevents boolean true if the element's allowevents attribute is the str
ing "true", otherwise false.
...And 38 more matches
nsIMsgDatabase
the nsimsgdatabase
interface is an abstract
interface used to access the mail database backend.
... last changed
in gecko 1.9 (firefox 3)
inherits from: nsidbchangeannouncer method overview void open(
in nsilocalfile afoldername,
in boolean acreate,
in boolean aleave
invaliddb); void forcefolderdbclosed(
in nsimsgfolder afolder); void close(
in boolean aforcecommit); void commit(
in nsmsgdbcommit committype); void forceclosed(); void clearcachedhdrs; void resethdrcachesize(
in unsigned long size); nsimsgdbhdr getmsghdrforkey(
in nsmsgkey key); nsimsgdbhdr getmsghdrformessageid(
in str
ing messageid); boolean conta
inskey(
in nsmsgkey key); nsimsgdbhdr createnewhdr(
in nsmsgkey key); void addnewhdrtodb(
in nsimsgdbhdr newhdr,
in boolean notify); nsimsgdbhdr copyhdrfromexist
ing...
...hdr(
in nsmsgkey key,
in nsimsgdbhdr exist
inghdr,
in boolean addhdrtodb); void listallkeys(
in nsmsgkeyarrayref outputkeys); native code only!
...And 38 more matches
2006-10-20 - Archive of obsolete content
summary: mozilla.dev.builds - october 14th to october 20th 2006 l
inux reference platform 1.8.1 october 18th: marcus is wonder
ing about the l
inux platform that is currently used to compile both public releases of firefox and xulrunner.
... on october 18th marcus responded to his orig
inal post and expanded on the orig
inal content of his question.
... marcus claims that when he builds firefox us
ing centos he encounters crashes (segmentation faults) under l
inux distributions such as gentoo, suse and fedora.
...And 37 more matches
NPEvent - Archive of obsolete content
« gecko plug
in api reference « plug-
in side plug-
in api summary represents an event passed by npp_handleevent() to a w
indowless plug-
in.
... syntax microsoft w
indows typedef struct _npevent { u
int16 event; u
int32 wparam; u
int32 lparam; } npevent; mac os typedef eventrecord npevent; type eventrecord = record { what:
integer; message: long
int; when: long
int; where: po
int; modifiers:
integer; end; xw
indows typedef xevent npevent; fields npevent on microsoft w
indows the data structure has the follow
ing fields: event one of the follow
ing event types: wm_pa
int wm_lbuttondown wm_lbuttonup wm_lbuttondblclk wm_rbuttondown wm_rbuttonup wm_rbuttondblclk wm_mbuttondown wm_mbuttonup wm_mbuttondblclk wm_mousemove wm_keyup wm_keydown wm_setcursor wm_setfocus wm_killfocus for
information about these events, see the microsoft w
indows developer document...
...wparam 32 bit field for the w
indows event parameter; parameter value depends upon event type.
...And 37 more matches
Scratchpad - Archive of obsolete content
as an alternative, start
ing
in firefox 71, you can use the multi-l
ine mode of the javascript console
input.
... scratchpad provides an environment for experiment
ing with javascript code.
... you can write, run, and exam
ine the results of code that
interacts with the web page.
...And 37 more matches
create fancy boxes - Learn web development
css boxes are the build
ing blocks of any web page styled with css.
... mak
ing them nice look
ing is both fun and challeng
ing.
... it's fun because it's all about turn
ing a design idea
into work
ing code; it's challeng
ing because of annoy
ing constra
ints and crazy freedom
in the use of css.
...And 37 more matches
Reviewer Checklist
submitt
ing patches to mozilla source code needn't be complex.
...follow
ing these best practices will lead to a smoother, more rapid process of review and acceptance.
...
in c++, wrapper-cache as needed.
...And 37 more matches
Cross Process Object Wrappers
this document describes cross process object wrappers (cpows), which enable chrome code to synchronously access content
in multiprocess firefox.
... note that from firefox 47 onwards, unsafe cpow usage is no longer permitted
in browser code.
... if browser code tries an unsafe cpow operation, the browser will throw an exception and you'll see an "unsafe cpow usage forbidden” error
in the browser console.
...And 37 more matches
gettext
warn
ing: this document perta
ins to the development of mozilla web sites and not to the development of gecko-based extensions or applications.
... plurals gettext lets you def
ine and use s
ingular and plural forms of a str
ing.
...different gettext function name) for str
ing which are supposed to support plurals.
...And 37 more matches
NSS tools : pk12util
] [ -l p12file [-h tokenname] [-r] [common-options] ] [ -o p12file -n certname [-c keycipher] [-c certcipher] [-m|--key_len keylen] [-n|--cert_key_len certkeylen] [common-options] ] [ common-options are: [-d [sql:]directory] [-p dbprefix] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] ] description the pkcs #12 utility, pk12util, enables shar
ing certificates among any server that supports pkcs#12.
... the tool can import certificates and keys from pkcs#12 files
into security databases, export certificates, and list certificates and keys.
... options and arguments options -i p12file import keys and certificates from a pkcs#12 file
into a security database.
...And 37 more matches
SpiderMonkey 17
these release notes are an
incomplete draft and were
initially seeded from the (now-defunct) 1.8.8 release notes, which were themselves seeded from the 1.8.5 release notes, so lots of the
information here isn't actually new to spidermonkey 17.
... spidermonkey 17 is the javascript eng
ine that shipped
in firefox 17.
... it cont
inues to improve performance over previous spidermonkey releases, with ongo
ing jit compilation work and with the
introduction of type
inference to enable faster jitted code.
...And 37 more matches
IAccessibleEditableText
other-licenses/ia2/accessibleeditabletext.idlnot scriptable this
interface provides clipboard capability to text objects.
... 1.0 66
introduced gecko 1.9
inherits from: iunknown last changed
in gecko 1.9 (firefox 3) this
interface is typically used
in conjunction with the iaccessibletext
interface and complements that
interface with the additional capability of clipboard operations.
... note that even a read only text object can support the copy capability so this
interface is not limited to editable objects.
...And 37 more matches
mozIAsyncFavicons
toolkit/components/places/moziasyncfavicons.idlscriptable
interface for access
ing the favicon service asynchronously.
... 1.0 66
introduced gecko 6.0
inherits from: nsisupports last changed
in gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) nsifaviconservice handles this
interface, so you do not need to directly create a new service.
... simply query
interface() the nsifaviconservice to this
interface.
...And 37 more matches
nsIMsgMessageService
objects that implements nsimsgmessageservice give the user top level rout
ines related to messages like copy
ing, display
ing, attachment's manipulation, pr
int
ing, stream
ing the message content to eml format str
ing, etc.
...
inherits from: nsisupports method overview void copymessage(
in str
ing asrcuri,
in nsistreamlistener acopylistener,
in boolean amovemessage,
in nsiurllistener aurllistener,
in nsimsgw
indow amsgw
indow, out nsiuri aurl); [noscript] void copymessages(
in nsmsgkeyarrayptr keys,
in nsimsgfolder srcfolder,
in nsistreamlistener acopylistener,
in boolean amovemessage,
in nsiurllistener aurllistener,
in nsimsgw
indow amsgw
indow, out nsiuri aurl); void displaymessage(
in str
ing amessageuri,
in nsisupports adisplayconsumer,
in nsimsgw
indow amsgw
indow,
in nsiurllistener aurllistener,
in str
ing acharsetoverride, out nsiuri aurl); void openattachment(
in str
ing acontenttype,
in str
ing afilename,
in str
ing aurl,
in str
ing amessageuri,
in nsisupports adisplayconsumer,
in n...
...simsgw
indow amsgw
indow,
in nsiurllistener aurllistener); void savemessagetodisk(
in str
ing amessageuri,
in nsifilespec afile,
in boolean ageneratedummyenvelope,
in nsiurllistener aurllistener, out nsiuri aurl,
in boolean canonicall
ineend
ing,
in nsimsgw
indow amsgw
indow); void geturlforuri(
in str
ing amessageuri, out nsiuri aurl,
in nsimsgw
indow amsgw
indow); void displaymessageforpr
int
ing(
in str
ing amessageuri,
in nsisupports adisplayconsumer,
in nsimsgw
indow amsgw
indow,
in nsiurllistener aurllistener, out nsiuri aurl); void search(
in nsimsgsearchsession asearchsession,
in nsimsgw
indow amsgw
indow,
in nsimsgfolder amsgfolder,
in str
ing asearchuri); nsiuri streammessage(
in str
ing amessageuri,
in nsisupports aconsumer,
in nsimsgw
indow amsgw
indow,
in nsiu...
...And 37 more matches
Basic usage of canvas - Web APIs
« previousnext » let's start this tutorial by look
ing at the <canvas> html element itself.
... at the end of this page, you will know how to set up a canvas 2d context and have drawn a first example
in your browser.
... the <canvas> element <canvas id="tutorial" width="150" height="150"></canvas> at first sight a <canvas> looks like the <img> element, with the only clear difference be
ing that it doesn't have the src and alt attributes.
...And 37 more matches
Document.evaluate() - Web APIs
syntax var xpathresult = document.evaluate( xpathexpression, contextnode, namespaceresolver, resulttype, result ); xpathexpression is a str
ing represent
ing the xpath to be evaluated.
... namespaceresolver is a function that will be passed any namespace prefixes and should return a str
ing represent
ing the namespace uri associated with that prefix.
... it will be used to resolve prefixes with
in the xpath itself, so that they can be matched with the document.
...And 37 more matches
HTMLBodyElement - Web APIs
the htmlbodyelement
interface provides special properties (beyond those
inherited from the regular htmlelement
interface) for manipulat
ing <body> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 37 more matches
Downloads.jsm
the downloads.jsm javascript code module provides a s
ingle entry po
int to
interact with the download
ing capabilities of the platform,
includ
ing start
ing new downloads, controll
ing ongo
ing downloads, and retriev
ing download-related configuration.
... to use it, you first need to import the code module
into your javascript scope: components.utils.import("resource://gre/modules/downloads.jsm"); method overview promise<download> createdownload(object aproperties); promise<void> fetch(asource, atarget, [optional] object aoptions); promise<downloadlist> getlist(atype); promise<downloadsummary> getsummary(atype); constants constant description public work on downloads that were not started from a private brows
ing w
indow.
... private work on downloads that were started from a private brows
ing w
indow.
...And 35 more matches
Localization sign-off reviews
this article presents an overview of why we do sign-off reviews of localizations, the details on the criteria used for the sign-off reviews, and the process for request
ing a review and for follow
ing its progress.
... the sign-off review process has been notoriously shrouded
in mystery.
... we use this review process to perform quality assurance (qa) test
ing on your l10n efforts.
...And 35 more matches
NSPR Contributor Guide
abstract: nspr accepts contributions
in the form of bugfixes, new features, libraries, platform ports, documentation, test cases and other items from many sources.
... we (the nspr module owners) sometimes disappo
int our contributors when we must reject their contributions.
...nspr wishes to document some guidel
ines for those who would contribute to nspr.
...And 35 more matches
NSS tools : pk12util
nss tools : pk12util name pk12util — export and import keys and certificate to or from a pkcs #12 file and the nss database synopsis pk12util [-i p12file|-l p12file|-o p12file] [-d [sql:]directory] [-h tokenname] [-p dbprefix] [-r] [-v] [-k slotpasswordfile|-k slotpassword] [-w p12filepasswordfile|-w p12filepassword] description the pkcs #12 utility, pk12util, enables shar
ing certificates among any server that supports pkcs#12.
... the tool can import certificates and keys from pkcs#12 files
into security databases, export certificates, and list certificates and keys.
... options and arguments options -i p12file import keys and certificates from a pkcs#12 file
into a security database.
...And 35 more matches
NS ConvertUTF16toUTF8 external
class declaration method overview constructors get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar ...
... rf
indchar append
int to
integer base classes nscstr
ing_external data members no public members.
... methods constructors void ns_convertutf16toutf8_external(const nsastr
ing&) - source parameters nsastr
ing& astr void ns_convertutf16toutf8_external(const prunichar*, pru
int32) - source parameters prunichar* adata pru
int32 alength get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing nsacstr
ing& operator=(const char*) - source parameters char* aptr nsacstr
ing& operator=(char) - source ...
...And 35 more matches
NS LossyConvertUTF16toASCII external
class declaration method overview constructors get operator= adopt beg
inread
ing endread
ing charat operator[] first beg
inwrit
ing endwrit
ing 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 f
ind rf
ind f
indchar ...
... rf
indchar append
int to
integer base classes nscstr
ing_external data members no public members.
... methods constructors void ns_lossyconvertutf16toascii_external(const nsastr
ing&) - source parameters nsastr
ing& astr void ns_lossyconvertutf16toascii_external(const prunichar*, pru
int32) - source parameters prunichar* adata pru
int32 alength get char* get() const - source operator= nscstr
ing_external& operator=(const nscstr
ing_external&) - source parameters nscstr
ing_external& astr
ing nsacstr
ing& operator=(const nsacstr
ing&) - source parameters nsacstr
ing& astr
ing nsacstr
ing& operator=(const char*) - source parameters char* aptr nsacstr
ing& operator=(char) -...
...And 35 more matches
imgIDecoderObserver
image/public/imgidecoderobserver.idlscriptable this
interface is used both for observ
ing imgidecoder objects and for observ
ing imgirequest objects.
... it lets you monitor the progress of load
ing an image.
... 1.0 66
introduced gecko 12.0
inherits from: imgiconta
inerobserver last changed
in gecko 1.7 we make the dist
inction here between "load" and "decode" notifications.
...And 35 more matches
nsICacheEntryDescriptor
netwerk/cache/nsicacheentrydescriptor.idlscriptable this
interface provides a cache entry descriptor.
...
inherits from: nsicacheentry
info last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void close(); void doom(); void doomandfailpend
ingrequests(
in nsresult status); str
ing getmetadataelement(
in str
ing key); void markvalid(); nsi
inputstream open
inputstream(
in unsigned long offset); nsioutputstream openoutputstream(
in unsigned long offset); void setdatasize(
in unsigned long size); void setexpirationtime(
in pru
int32 expirationtime); void setmetadataelement(
in str
ing key,
in str
ing value); void visitmetadata(
in nsicachemetadatavisitor visitor); attributes attribute type description accessgranted nscacheaccessmode get the access granted to this descriptor.
... see nsicache for the def
initions of the access modes and a thorough description of their correspond
ing mean
ings.
...And 35 more matches
nsIHttpServer
an example : https://github.com/laurentj/slimerjs/blob/master/src/modules/webserver.jsm var exported_symbols = ["create"]; components.utils.import("resource://gre/modules/services.jsm"); function create() { var server = components.classes["@mozilla.org/server/jshttp;1"] .create
instance(components.
interfaces.nsihttpserver); return { get objectname () { return "webserver"; }, /** * @param
integer|str
ing port port or "host:port" * @param object opt optional options.
... * @param function callback optional callback */ listen: function(port, opt, callback) { if (arguments.length == 2 && "function" == typeof opt) { callback = opt; } if (callback) { this.registerprefixhandler("/", callback); } let host = "localhost"; if (typeof port === "str
ing" && port.
indexof(':') != -1){ [host, port] = port.split(':'); port = parse
int(port); server.identity.add('http', host, port); } server.wrappedjsobject._start(port, host); return true; }, registerfile: function(path, filepath) { var file = components.classes['@mozilla.org/file/local;1'...
...] .create
instance(components.
interfaces.nsilocalfile); file.
initwithpath(filepath); return server.registerfile(path, file); }, registerdirectory : function(path, directorypath) { var file = components.classes['@mozilla.org/file/local;1'] .create
instance(components.
interfaces.nsilocalfile); file.
initwithpath(directorypath); return server.registerdirectory(path, file); }, registerpathhandler: function(path, handlercallback) { server.registerpathhandler(path, function (request, response) { var req = createhttprequest(request); var resp = new httpresponse(response); handlercall...
...And 35 more matches
nsISelection
add brief description of
interface ???
...
inherits from: nsisupports last changed
in gecko 13.0 (firefox 13.0 / thunderbird 13.0 / seamonkey 2.10)
interface for manipulat
ing and query
ing the current selected range of nodes with
in the document.
...to create an
instance, use: implemented by: ?????????????????????????????????????
...And 35 more matches
Tips - Firefox Developer Tools
viewport: click the screenshot button ()
in responsive design mode.
... node: right-click a node with
in the
inspector and click "screenshot node".
... sett
ings: choose between a light and a dark theme for the developer tools.
...And 35 more matches
AudioNode - Web APIs
the audionode
interface is a generic
interface for represent
ing an audio process
ing module.
... examples
include: an audio source (e.g.
... an html <audio> or <video> element, an oscillatornode, etc.), the audio dest
ination,
intermediate process
ing module (e.g.
...And 35 more matches
FileSystemEntry - Web APIs
the filesystementry
interface of the file and directory entries api represents a s
ingle
in a file system.
... the entry can be a file or a directory (directories are represented by the directoryentry
interface).
... it
includes methods for work
ing with files—
includ
ing copy
ing, mov
ing, remov
ing, and read
ing files—as well as
information about a file it po
ints to—
includ
ing the file name and its path from the root to the entry.
...And 35 more matches
RTCPeerConnection.addTrack() - Web APIs
note: add
ing a track to a connection triggers renegotiation by fir
ing a negotiationneeded event.
... see start
ing negotiation
in signal
ing and video call
ing for details.
... syntax rtpsender = rtcpeerconnection.addtrack(track, stream...); parameters track a mediastreamtrack object represent
ing the media track to add to the peer connection.
...And 35 more matches
Storage Access API - Web APIs
the storage access api provides a way for embedded, cross-orig
in content to ga
in unrestricted access to storage that it would normally only have access to
in a first-party context (we refer to this as an orig
in’s first-party storage).
... concepts and usage most browsers implement a number of storage access policies that restrict access to cookies and site data for embedded, cross-orig
in resources.
... these restrictions range from giv
ing embedded resources under each top-level orig
in a unique storage space to outright block
ing of storage access when resources are loaded
in a third-party context.
...And 35 more matches
JSErrorReport
describes the format of a js error that is used either by the
internal error report
ing mechanism or by a user-def
ined error-report
ing mechanism.
... syntax jserrorreport(); properties name type description filename const char *
indicates the source file or url that produced the error condition.
... if null, the error is local to the script
in the current html page.
...And 33 more matches
SpiderMonkey 38
spidermonkey 38 is outdated and conta
ins known security vulnerabilities.
... these release notes are
incomplete.
... spidermonkey 38 is the javascript eng
ine that shipped
in firefox 38.
...And 33 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.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) see mozistorageconnection method overview nsifile backupdatabasefile(
in nsifile adbfile,
in astr
ing abackupfilename, [optional]
in nsifile abackupparentdirectory); mozistorageconnection opendatabase(
in nsifile adatabasefile); mozistorageconnection openspecialdatabase(
in str
ing astoragekey); mozistorageconnection openunshareddatabase(
in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
... the database should not be open, or you should ensure that no database activity is happen
ing when you call this method.
...And 33 more matches
nsIAccessNode
accessible/public/nsiaccessnode.idlscriptable an
interface used by
in-process accessibility clients to get style, w
indow, markup and other
information about a dom node.
... when accessibility is active
in gecko, every dom node can have one nsiaccessnode.
...
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) the nsiaccessnode implementations are
instantiated lazily.
...And 33 more matches
nsITelemetry
toolkit/components/telemetry/nsitelemetry.idlscriptable a service to gather performance data that can be tracked over time to allow generat
ing histograms.
... 1.0 66
introduced gecko 6.0
inherits from: nsisupports last changed
in gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4) implemented by: @mozilla.org/base/telemetry;1 as a service: let telemetry = components.classes["@mozilla.org/base/telemetry;1"] .getservice(components.
interfaces.nsitelemetry); method overview jsval gethistogrambyid(
in acstr
ing id); jsval snapshothistograms(
in u
int32_t adataset,
in boolean asubsession,
in boolean aclear); jsval getkeyedhistogrambyid(
in acstr
ing id); void capturestack(
in acstr
ing name); jsval snapshotcapturedstacks([optional]
in boolean clear); nsisupports getloadedmodules(); jsval snapshotkeyedhistograms(
in u
int32_t adataset,
in boole...
...an asubsession,
in boolean aclear); void sethistogramrecord
ingenabled(
in acstr
ing id,
in boolean enabled); void asyncfetchtelemetrydata(
in nsifetchtelemetrydatacallback acallback); double mss
inceprocessstart(); void scalaradd(
in acstr
ing aname,
in jsval avalue); void scalarset(
in acstr
ing aname,
in jsval avalue); void scalarsetmaximum(
in acstr
ing aname,
in jsval avalue); jsval snapshotscalars(
in u
int32_t adataset, [optional]
in boolean aclear); void keyedscalaradd(
in acstr
ing aname,
in astr
ing akey,
in jsval avalue); void keyedscalarset(
in acstr
ing aname,
in astr
ing akey,
in jsval avalue); void keyedscalarsetmaximum(
in acstr
ing aname,
in astr
ing akey,
in jsval avalue); jsval snapshotkeyedscal...
...And 33 more matches
nsITreeSelection
layout/xul/base/src/tree/public/nsitreeselection.idlscriptable this
interface is used by the tree widget to get
information about what is selected.
...
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) method overview void adjustselection(
in long
index,
in long count); void clearrange(
in long start
index,
in long end
index); void clearselection(); void getrangeat(
in long i, out long m
in, out long max); long getrangecount(); void
invalidateselection(); void
invertselection(); boolean isselected(
in long
index); void rangedselect(
in long start
index,
in long end
index,
in boolean augment); void select(
in long
index); void selectall(); void timedselect(
in long
index,
in long delay); void toggleselect(
in long
index); attributes attribute type description count long the number of ...
...rows currently selected
in this tree.
...And 33 more matches
Debugger.Environment - Firefox Developer Tools
a debugger.environment
instance represents a lexical environment, associat
ing names with variables.
... each debugger.frame
instance represent
ing a debuggee frame has an associated environment object describ
ing the variables
in scope
in that frame; and each debugger.object
instance represent
ing a debuggee function has an environment object represent
ing the environment the function has closed over.
... ecmascript environments form a tree,
in which each local environment is parented by its enclos
ing environment (
in ecmascript terms, its ‘outer’ environment).
...And 33 more matches
Firefox Developer Tools
firefox developer tools is a set of web developer tools built
into firefox.
... you can use them to exam
ine, edit, and debug html, css, and javascript.
... this section conta
ins detailed guides to all of the tools as well as
information on how to debug firefox for android, how to extend devtools, and how to debug the browser as a whole.
...And 33 more matches
MediaStreamTrack - Web APIs
the mediastreamtrack
interface represents a s
ingle media track with
in a stream; typically, these are audio or video tracks, but other track types may exist as well.
... properties
in addition to the properties listed below, mediastreamtrack has constra
inable properties which can be set us
ing applyconstra
ints() and accessed us
ing getconstra
ints() and getsett
ings().
... see capabilities, constra
ints, and sett
ings to learn how to correctly work with constra
inable properties.
...And 33 more matches
PaymentRequest.PaymentRequest() - Web APIs
the paymentrequest() constructor creates a new paymentrequest object which will be used to handle the process of generat
ing, validat
ing, and submitt
ing a payment request.
... syntax var paymentrequest = new paymentrequest(methoddata, details, [options]); parameters methoddata conta
ins an array of identifiers for the payment methods the merchant web site accepts and any associated payment method specific data.
... each item
in the array conta
ins the follow
ing fields: supportedmethods for early implementations of the spec, this was a sequence of identifiers for payment methods that the merchant website accepts.
...And 33 more matches
Performance - Web APIs
the performance
interface provides access to performance-related
information for the current page.
... it's part of the high resolution time api, but is enhanced by the performance timel
ine api, the navigation tim
ing api, the user tim
ing api, and the resource tim
ing api.
... an object of this type can be obta
ined by call
ing the w
indow.performance read-only attribute.
...And 33 more matches
XRSession - Web APIs
the webxr device api's xrsession
interface represents an ongo
ing xr session, provid
ing methods and properties used to
interact with and control the session.
... to open a webxr session, use the xrsystem
interface's requestsession() method.
... with xrsession methods, you can poll the viewer's position and orientation (the xrviewerpose), gather
information about the user's environment, and present imagery to the user.
...And 33 more matches
ARIA: application role - Accessibility
the application role
indicates to assistive technologies that an element and all of its children should be treated similar to a desktop application, and no traditional html
interpretation techniques should be used.
... this role should only be used to def
ine very dynamic and desktop-like web applications.
... <div role="application">...</div> this def
ines this div element and all of its descendants to be treated like they are part of a desktop application.
...And 33 more matches
ARIA: tab role - Accessibility
the aria tab role
indicates an
interactive element
inside a tablist that, when activated, displays its associated tabpanel.
...the common user experience pattern is a group of visual tabs above, or to the side of, a content area, and select
ing a different tab changes the content and makes the selected tab more prom
inent than the other tabs.
...this comb
ination identifies to assistive technology that the element is part of a group of related elements.
...And 33 more matches
HTML attribute: multiple - HTML: Hypertext Markup Language
valid for the email and file
input types and the <select>, the manner by which the user opts for multiple values depends on the form control.
... depend
ing on the type, the form control may have a different appearance if the multiple attribute is set.
... for the file
input type, the native messag
ing the browser provides differs.
...And 33 more matches
Front-end web developer - Learn web development
welcome to our front-end web developer learn
ing pathway!
...simply work through each section, learn
ing new skills (or improv
ing exist
ing ones) as you go along.
... each section
includes exercises and assessments to test your understand
ing before you move forward.
...And 32 more matches
Test your skills: Math - Learn web development
this aim of this skill test is to assess whether you've understood our basic math
in javascript — numbers and operators article.
... note: you can try out solutions
in the
interactive editors below, however it may be helpful to download the code and use an onl
ine tool such as codepen, jsfiddle, or glitch to work on the tasks.
... note:
in the examples below, if there is an error
in your code it will be outputted
into the results panel on the page, to help you try to figure out the answer (or
into the browser's javascript console,
in the case of the downloadable version).
...And 32 more matches
PBackground
pbackground is a mechanism available s
ince gecko 30 (see bug 956218) that builds on top of ipdl to provide a solution to common problems that arise when handl
ing multiple threads
in the chrome process, for example communication between workers and multiple child processes and other parent-process worker threads.
... this article outl
ines what pbackground is, and how it works.
... ipdl recap ipdl is a language used to def
ine "protocols" — essentially formalized versions of how two th
ings can communicate.
...And 32 more matches
JS::Value
js::value is the type of javascript values
in the jsapi.
... a c++ variable of type js::value represents a value
in javascript: a str
ing, number, object (
includ
ing arrays and functions), boolean, symbol, null, or undef
ined.
... js::value is a class whose
internal structure is an implementation detail.
...And 32 more matches
nsIAccessible
« gecko at
interfaces page summary the nsiaccessible
interface is a cross-platform
interface that supports platform-specific accessibility apis like msaa and atk.
... conta
ins the sum of what's needed to support iaccessible as well as atk's generic accessibility objects.
... can also be used by
in-process accessibility clients to get
information about objects
in the accessible tree.
...And 32 more matches
nsIAccessibleStates
1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) prior to gecko 1.9, these constants were implemented
in nsiaccessible.
... state_selected 0x00000002 the object is selected, that is it
indicates this object is the child of an object that allows its children to be selected and that this child is one of those children that has been selected.
... state_mixed 0x00000020
indicates that the state of a three-state check box or toolbar button is not determ
ined.
...And 32 more matches
nsIAppShell
widget/public/nsiappshell.idlnot scriptable
interface for the native event system layer.
... this
interface is designed to be used on the ma
in application thread only.
...
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void create(
inout
int argc,
inout str
ing argv); obsolete s
ince gecko 1.9 void dispatchnativeevent(
in prbool arealevent,
in voidptr aevent); obsolete s
ince gecko 1.9 void exit(); void favorperformanceh
int(
in boolean favorperfoverstarvation,
in unsigned long starvationdelay); void getnativeevent(
in prboolref arealevent,
in voidptrref aevent); obsolete s
ince gecko 1.9 void listentoeventqueue(
in nsieventqueue aqueue,
in prbool alisten); obsolete s
ince gecko 1.9 void resumenative(); void run(); void run
instablestate(
in nsirunnable arunnable); void sp
indown(); obsolete s
ince gecko 1.9 void sp
inup(); obsolete s
ince gecko 1.9 void suspendnative(); at...
...And 32 more matches
nsIDOMNSHTMLDocument
dom/
interfaces/html/nsidomnshtmldocument.idlscriptable this
interface def
ines methods and properties supported by gecko on the document object that are not part of dom level 2.
...
inherits from: nsisupports last changed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void captureevents(
in long eventflags); void clear(); boolean execcommand(
in domstr
ing commandid,
in boolean doshowui,
in domstr
ing value); boolean execcommandshowhelp(
in domstr
ing commandid); obsolete s
ince gecko 14.0 domstr
ing getselection(); nsidomdocument open(
in acstr
ing acontenttype,
in boolean areplace); boolean querycommandenabled(
in domstr
ing commandid); boolean querycommand
indeterm(
in domstr
ing commandid); boolean querycommandstate(
in domstr
ing commandid); boolean querycommandsupported(
in domstr
ing commandid); domstr
ing querycommandtext(
in domstr
ing commandid); obs...
...olete s
ince gecko 14.0 domstr
ing querycommandvalue(
in domstr
ing commandid); void releaseevents(
in long eventflags); void routeevent(
in nsidomevent evt); void write(); obsolete s
ince gecko 2.0 void writeln(); obsolete s
ince gecko 2.0 attributes attribute type description al
inkcolor domstr
ing same as body.al
ink bgcolor domstr
ing same as body.bgcolor compatmode domstr
ing returns "backcompat" if the document is
in quirks mode or "css1compat" if the document is
in full standards or almost standards mode.
...And 32 more matches
nsIJumpListBuilder
1.0 66
introduced gecko 2.0
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) jump lists are built and then applied.
... modify
ing an applied jump list is not permitted.
... callers should beg
in the creation of a new jump list us
ing
initlistbuild(), add sub lists us
ing addlisttobuild(), then commit the jump list us
ing commitlistbuild().
...And 32 more matches
nsIWebBrowserChrome
embedd
ing/browser/webbrowser/nsiwebbrowserchrome.idlscriptable corresponds to the top-level, outermost w
indow conta
ining an embedded gecko web browser.
...
inherits from: nsisupports last changed
in gecko 0.9.6 method overview void destroybrowserw
indow(); void exitmodaleventloop(
in nsresult astatus); boolean isw
indowmodal(); void setstatus(
in unsigned long statustype,
in wstr
ing status); void showasmodal(); void sizebrowserto(
in long acx,
in long acy); attributes attribute type description chromeflags unsigned long the chrome flags for this browser chrome.
... the implementation should reflect the value of this attribute by hid
ing or show
ing its chrome appropriately.
...And 32 more matches
XPCOM tasks
warn
ing: the content of this article may be out of date.
... it was last edited
in 2003 and is probably of historical
interest only.
...it overlaps them significantly, but goes beyond them
in capabilities.
...And 32 more matches
Style Editor - Firefox Developer Tools
the style editor enables you to: view and edit all the stylesheets associated with a page create new stylesheets from scratch and apply them to the page import exist
ing stylesheets and apply them to the page to open the style editor choose the "style editor" option from the "web developer" menu (which is a submenu
in the "tools" menu on the mac).
... the toolbox will appear at the bottom of the browser w
indow, with the style editor activated: the style editor is divided
into three ma
in sections: the style sheet pane on the left the editor on the right the media sidebar.
... the style sheet pane the style sheet pane, on the left, lists all the style sheets be
ing used by the current document.
...And 32 more matches
Animation - Web APIs
the animation
interface of the web animations api represents a s
ingle animation player and provides playback controls and a timel
ine for an animation node or source.
... constructor animation() creates a new animation object
instance.
... properties animation.currenttime the current time value of the animation
in milliseconds, whether runn
ing or paused.
...And 32 more matches
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.
... conditions for grant
ing storage access storage access is granted based on a series of checks described here: if the document already has been granted access, resolve.
... if the document has a null orig
in, reject.
...And 32 more matches
Element.scrollHeight - Web APIs
the element.scrollheight read-only property is a measurement of the height of an element's content,
includ
ing content not visible on the screen due to overflow.
... the scrollheight value is equal to the m
inimum height the element would require
in order to fit all the content
in the viewport without us
ing a vertical scrollbar.
... the height is measured
in the same way as clientheight: it
includes the element's padd
ing, but not its border, marg
in or horizontal scrollbar (if present).
...And 32 more matches
nsIFilePicker
widget/nsifilepicker.idlscriptable the file picker component is used to display standard user
interface for select
ing files and directories, as well as for select
ing dest
inations for, and nam
ing, new files.
...
inherits from: nsisupports last changed
in gecko 17.0 (firefox 17.0 / thunderbird 17.0 / seamonkey 2.14) implemented by: @mozilla.org/filepicker;1.
... to create an
instance, use: var filepicker = components.classes["@mozilla.org/filepicker;1"] .create
instance(components.
interfaces.nsifilepicker); method overview void appendfilter(
in astr
ing title,
in astr
ing filter); void appendfilters(
in long filtermask); void
init(
in nsidomw
indow parent,
in astr
ing title,
in short mode); void open(
in nsifilepickershowncallback afilepickershowncallback); short show(); obsolete s
ince gecko 57.0 attributes attribute type description addtorecentdocs boolean if true, the file is added to the operat
ing system's "recent documents" list (if the operat
ing system has one; noth
ing happens if there is no such concept on the user's platform).
...And 30 more matches
nsIPropertyBag2
xpcom/ds/nsipropertybag2.idlscriptable this
interface extends nsipropertybag with some methods for gett
ing properties
in specific formats.
...
inherits from: nsipropertybag last changed
in gecko 1.0 method overview nsivariant get(
in astr
ing prop); acstr
ing getpropertyasacstr
ing(
in astr
ing prop); astr
ing getpropertyasastr
ing(
in astr
ing prop); autf8str
ing getpropertyasautf8str
ing(
in astr
ing prop); boolean getpropertyasbool(
in astr
ing prop); double getpropertyasdouble(
in astr
ing prop); pr
int32 getpropertyas
int32(
in astr
ing prop); pr
int64 getpropertyas
int64(
in astr
ing prop); void getpropertyas
interface(
in astr
ing prop,
in nsiidref iid, [iid_is(iid), retval] out nsqiresult result); pru
int32 getpropertyasu
int32(
in astr
ing prop); pru
int64 getpropertyasu
int64(
in astr
ing prop); prbool haskey(
in astr
ing prop); methods get...
...nsivariant get(
in astr
ing prop ); parameters prop property to return the value of.
...And 30 more matches
nsISHEntry
docshell/shistory/public/nsishentry.idlscriptable each document or subframe
in session history will have a nsishentry associated with it which will hold all
information required to recreate the document from history.
...
inherits from: nsihistoryentry last changed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) implemented by: @mozilla.org/browser/session-history-entry;1.
... to create an
instance, use: var shentry = components.classes["@mozilla.org/browser/session-history-entry;1"] .create
instance(components.
interfaces.nsishentry); method overview void addchildshell(
in nsidocshelltreeitem shell); nsidocshelltreeitem childshellat(
in long
index); void clearchildshells(); nsishentry clone(); void create(
in nsiuri uri,
in astr
ing title,
in nsi
inputstream
inputstream,
in nsilayouthistorystate layouthistorystate,
in nsisupports cachekey,
in acstr
ing contenttype,
in nsisupports owner,
in unsigned long long docshellid,
in boolean dynamiccreation); native code only!
...And 30 more matches
nsITransport
netwerk/base/public/nsitransport.idlscriptable this
interface provides a common way of access
ing i/o streams connected to some resource.
... this
interface does not
in any way specify the resource.
...
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this
interface provides methods to open block
ing or non-block
ing, buffered or unbuffered streams to the resource.
...And 30 more matches
Tutorial: Show Allocations Per Call Path - Firefox Developer Tools
visit the url about:config, and set the devtools.chrome.enabled preference to true: sett
ing the 'devtools.chrome.enabled' preference open a developer scratchpad (menu button > developer > scratchpad), and select "browser" from the "environment" menu.
... (this menu will not be present unless you have changed the preference as expla
ined above.) select
ing the 'browser' context
in the scratchpad enter the follow
ing code
in the scratchpad: // this simply def
ines the 'debugger' constructor
in this // scratchpad; it doesn't actually start debugg
ing anyth
ing.
... components.utils.import('resource://gre/modules/jsdebugger.jsm'); adddebuggertoglobal(w
indow); (function () { // the debugger we'll use to observe a tab's allocation.
...And 30 more matches
Debugger-API - Firefox Developer Tools
the debugger
interface mozilla’s javascript eng
ine, spidermonkey, provides a debugg
ing
interface named debugger which lets javascript code observe and manipulate the execution of other javascript code.
... both firefox’s built-
in developer tools and the firebug add-on use debugger to implement their javascript debuggers.
... however, debugger is quite general, and can be used to implement other k
inds of tools like tracers, coverage analysis, patch-and-cont
inue, and so on.
...And 30 more matches
CSS Typed Object Model API - Web APIs
the css typed object model api simplifies css property manipulation by expos
ing css values as typed javascript objects rather than str
ings.
... generally, css values can be read and written
in javascript as str
ings, which can be slow and cumbersome.
... css typed object model api provides
interfaces to
interact with underly
ing values, by represent
ing them with specialized js objects that can be manipulated and understood more easily and more reliably than str
ing pars
ing and concatenation.
...And 30 more matches
HTMLCanvasElement.getContext() - Web APIs
the htmlcanvaselement.getcontext() method returns a draw
ing context on the canvas, or null if the context identifier is not supported.
... later calls to this method on the same canvas element return the same draw
ing context
instance as was returned the last time the method was
invoked with the same contexttype argument.
... to get a different draw
ing context object you need to pass a different contexttype or call the method on a different canvas element.
...And 30 more matches
HTMLImageElement.srcset - Web APIs
the htmlimageelement property srcset is a str
ing which identifies one or more image candidate str
ings, separated us
ing commas (,) each specify
ing image resources to use under given circumstances.
... each image candidate str
ing conta
ins an image url and an optional width or pixel density descriptor that
indicates the conditions under which that candidate should be used
instead of the image specified by the src property.
... the srcset property, along with the sizes property, are a crucial component
in design
ing responsive web sites, as they can be used together to make pages that use appropriate images for the render
ing situation.
...And 30 more matches
HTMLOutputElement - Web APIs
the htmloutputelement
interface provides properties and methods (beyond those
inherited from htmlelement) for manipulat
ing the layout and presentation of <output> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 30 more matches
SVGLength - Web APIs
svg length
interface the svglength
interface correspond to the <length> basic data type.
... an svglength object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
...
interface overview also implement none methods void newvaluespecifiedunits(
in unsigned short unittype,
in float value
inspecifiedunits) void converttospecifiedunits(
in unsigned short unittype) properties readonly unsigned short unittype float value float value
inspecifiedunits domstr
ing valueasstr
ing constants svg_lengthtype_unknown = 0 svg_lengthtype_number = 1 svg_lengthtype_percentage = 2 svg_lengthtype_ems = 3 svg_lengthtype_exs = 4 svg_lengthtype_px = 5 svg_lengthtype_cm = 6 svg_lengthtype_mm = 7 svg_lengthtype_
in = 8 svg_lengthtype_pt = 9 svg_lengthtype_pc = 10 normative document svg 1.1 (2nd editi...
...And 30 more matches
Storage API - Web APIs
the storage standard def
ines a common, shared storage system to be used by all apis and technologies that store content-accessible data for
individual web sites.
... the storage api gives sites' code the ability to f
ind out how much space they can use, how much they are already us
ing, and even control whether or not they need to be alerted before the user agent disposes of site data
in order to make room for other th
ings.
... note: this feature is available
in web workers.
...And 30 more matches
SubtleCrypto.verify() - Web APIs
the verify() method of the subtlecrypto
interface verifies a digital signature.
... it takes as its arguments a key to verify the signature with, some algorithm-specific parameters, the signature, and the orig
inal signed data.
... it returns a promise which will be fulfilled with a boolean value
indicat
ing whether the signature is valid.
...And 30 more matches
WritableStream - Web APIs
the writablestream
interface of the the streams api provides a standard abstraction for writ
ing stream
ing data to a dest
ination, known as a s
ink.
... this object comes with built-
in backpressure and queu
ing.
... properties writablestream.locked read only a boolean
indicat
ing whether the writablestream is locked to a writer.
...And 30 more matches
WAI-ARIA Roles - Accessibility
this page lists reference pages cover
ing all the wai-aria roles discussed on mdn.
... for a full list of roles, see us
ing aria: roles, states, and properties aria: alert rolethe alert role can be used to tell the user an element has been dynamically updated.
... screen readers will
instantly start read
ing out the updated content when the role is added.
...And 30 more matches
Element.classList - Web APIs
us
ing classlist is a convenient alternative to access
ing an element's list of classes as a space-delimited str
ing via element.classname.
... syntax const elementclasses = elementnodereference.classlist; returns a domtokenlist represent
ing the contents of the element's class attribute.
... the domtokenlist itself is read-only, although you can modify it us
ing the add() and remove() methods.
...And 28 more matches
File and Directory Entries API - Web APIs
the file and directory entries api simulates a local file system that web apps can navigate with
in and access files
in.
... you can develop apps which read, write, and create files and/or directories
in a virtual, sandboxed file system.
... because this is a non-standard api, whose specification is not currently on a standards track, it's important to keep
in m
ind that not all browsers implement it, and those that do may implement only small portions of it.
...And 28 more matches
HTMLScriptElement - Web APIs
html <script> elements expose the htmlscriptelement
interface, which provides special properties and methods for manipulat
ing the behavior and execution of <script> elements (beyond the
inherited htmlelement
interface).
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="56" y="30" font-s...
...ize="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="26...
...And 28 more matches
IDBCursor - Web APIs
note: not to be confused with idbcursorwithvalue which is just an idbcursor
interface with an additional value property.
... the idbcursor
interface of the
indexeddb api represents a cursor for travers
ing or iterat
ing over multiple records
in a database.
... the cursor has a source that
indicates which
index or object store it is iterat
ing over.
...And 28 more matches
Web Push API Notifications best practices - Web APIs
this article provides a useful summary of best practices to keep
in m
ind when develop
ing web sites and applications that use push notifications for user engagement.
... “if done well, it's nice to have, but if not done well, it's really annoy
ing.” — overheard conversation between two browser developers discuss
ing the ethics of push notifications.
... overview of web push notifications web push notifications (created us
ing a comb
ination of the notifications, push, and service worker apis) are part of the ris
ing noise that product developers and marketers are us
ing to get attention for their sites.
...And 28 more matches
Screen Wake Lock API - Web APIs
the screen wake lock api provides a way to prevent devices from dimm
ing or lock
ing the screen when an application needs to keep runn
ing.
... the screen wake lock api prevents the screen from turn
ing off, dimm
ing or lock
ing.
... there are plenty of use cases for keep
ing a screen on,
includ
ing read
ing an ebook, map navigation, follow
ing a recipe, present
ing to an audience, scann
ing a qr/barcode or applications that use voice or gesture control, rather than tactile
input (the default way to keep a screen awake).
...And 28 more matches
Streams API - Web APIs
concepts and usage stream
ing
involves break
ing a resource that you want to receive over a network down
into small chunks, then process
ing it bit by bit.
... this is someth
ing browsers do anyway when receiv
ing assets to be shown on webpages — videos buffer and more is gradually available to play, and sometimes you'll see images display gradually as more is loaded.
...previously, if we wanted to process a resource of some k
ind (be it a video, or a text file, etc.), we'd have to download the entire file, wait for it to be deserialized
into a suitable format, then process the whole lot after it is fully received.
...And 28 more matches
SubtleCrypto.sign() - Web APIs
the sign() method of the subtlecrypto
interface generates a digital signature.
... you can use the correspond
ing subtlecrypto.verify() method to verify the signature.
... syntax const signature = crypto.subtle.sign(algorithm, key, data); parameters algorithm is a str
ing or object that specifies the signature algorithm to use and its parameters: to use rsassa-pkcs1-v1_5, pass the str
ing "rsassa-pkcs1-v1_5" or an object of the form { "name": "rsassa-pkcs1-v1_5" }.
...And 28 more matches
WebRTC Statistics API - Web APIs
the webrtc api has a vast array of statistics available, cover
ing the entire breadth of the webrtc connectivity system, from sender to receiver and peer to peer.
... collect
ing statistics you can collect statistics at various levels throughout the webrtc hierarchy of objects.
...
in this example, a new rtcpeerconnection is created, and then set
interval() is used to set the function getconnectionstats() to be called every second.
...And 28 more matches
Alerts - Accessibility
the problem you have a form — a contact form, for example — that you want to put some accessible error check
ing
into.
... examples of common problems
include e-mail addresses which are not valid, or a name field which does not conta
in at least a first name or a surname.
... here is a simple form: <form method="post" action="post.php"> <fieldset> <legend>please enter your contact details</legend> <label for="name">your name (required):</label> <
input name="name" id="name" aria-required="true"/> <br /> <label for="email">e-mail address (required):</label> <
input name="email" id="email" aria-required="true"/> <br /> <label for="website">website (optional):</label> <
input name="website" id="website"/> </fieldset> <label for="message">please enter your message (required):</label> <br /> <textarea name="message" id="message" rows="5" cols="80" aria-required="true"></t...
...And 28 more matches
Accessibility and Spacial Patterns - Accessibility
spatial localization nasa conducted research on the perception of color, and found that lum
inance contrast mattered greatly as to how they were perceived.
... the two images below are from nasa research, specifically, from the article, "design
ing with blue" "spatial localization.
... symbols which have the same lum
inance as their background are perceptually less securely located
in space and time than are symbols with higher lum
inance contrast.
...And 28 more matches
<fieldset>: The Field Set element - HTML: Hypertext Markup Language
the html <fieldset> element is used to group several controls as well as labels (<label>) with
in a web form.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 28 more matches
CSP: child-src - HTTP
the http content-security-policy (csp) child-src directive def
ines the valid sources for web workers and nested brows
ing contexts loaded us
ing elements such as <frame> and <iframe>.
... syntax one or more sources can be allowed for the child-src policy: content-security-policy: child-src <source>; content-security-policy: child-src <source> <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 28 more matches
CSP: font-src - HTTP
the http content-security-policy (csp) font-src directive specifies valid sources for fonts loaded us
ing @font-face.
... syntax one or more sources can be allowed for the font-src policy: content-security-policy: font-src <source>; content-security-policy: font-src <source> <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 28 more matches
CSP: media-src - HTTP
the http content-security-policy (csp) media-src directive specifies valid sources for load
ing media us
ing the <audio> and <video> elements.
... syntax one or more sources can be allowed for the media-src policy: content-security-policy: media-src <source>; content-security-policy: media-src <source> <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 28 more matches
SVGAnimationElement - Web APIs
the svganimationelement
interface is the base
interface for all of the animation element
interfaces: svganimateelement, svgsetelement, svganimatecolorelement, svganimatemotionelement and svganimatetransformelement.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 27 more matches
SVGLengthList - Web APIs
svg length list
interface the svglengthlist def
ines a list of svglength objects.
... an svglengthlist object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
... note: start
ing
in gecko 5.0,the svglengthlist dom
interface is now
indexable and can be accessed like arrays
interface overview also implement none methods void clear() svglength
initialize(
in svglength newitem) svglength getitem(
in unsigned long
index) svglength
insertitembefore(
in svglength newitem,
in unsigned long
index) svglength replaceitem(
in svglength newitem,
in unsigned long
index) svglength removeitem(
in unsigned long
index) svglength appenditem(
in svglength newitem) properties readonly unsigned long numberofitems readonly unsigned long length normative document svg 1.1 (2nd edition) properties name type description numberofitem...
...And 27 more matches
SVGNumberList - Web APIs
svg number list
interface the svgnumberlist def
ines a list of svgnumber objects.
... an svgnumberlist object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
... note: start
ing
in gecko 5.0,the svgnumberlist dom
interface is now
indexable and can be accessed like arrays.
...And 27 more matches
URL - Web APIs
the url
interface is used to parse, construct, normalize, and encode urls.
... it works by provid
ing properties which allow you to easily read and modify the components of a url.
... you normally create a new url object by specify
ing the url as a str
ing when call
ing its constructor, or by provid
ing a relative url and a base url.
...And 27 more matches
URLUtilsReadOnly - Web APIs
the obsolete urlutilsreadonly
interface previously def
ined utility methods for work
ing with urls.
... these were then
inherited by other
interfaces, such as workerlocation.
... urlutilsreadonly has been removed from the specification, and the properties it def
ined are now directly part of the affected
interfaces.
...And 27 more matches
Keyframe Formats - Web APIs
there are several options to this format, which are expla
ined below.
... syntax there are two different ways to format keyframes: an array of objects (keyframes) consist
ing of properties and values to iterate over.
... element.animate([ { // from opacity: 0, color: "#fff" }, { // to opacity: 1, color: "#000" } ], 2000); offsets for each keyframe can be specified by provid
ing an offset value.
...And 27 more matches
ARIA: rowgroup role - Accessibility
an element with role="rowgroup" is a group of rows with
in a tabular structure.
... a rowgroup conta
ins one or more rows of cells, grid cells, column headers, or row headers with
in a grid, table or treegrid.
... <div role="table" aria-label="populations" aria-describedby="country_population_desc"> <div id="country_population_desc">world populations by country</div> <div role="rowgroup"> <div role="row"> <span role="columnheader" aria-sort="descend
ing">country</span> <span role="columnheader"aria-sort="none">population</span> </div> </div> <div role="rowgroup"> <div role="row"> <span role="cell">f
inland</span> <span role="cell">5.5 million</span> </div> <div role="row"> <span role="cell">france</span> <span role="cell">67 million</span> </div> </div> </div> description rowgroup establishes a relationship between owned row elements and is a structural equivalent to the thead, tfoot and tbody elemen...
...And 27 more matches
DOM onevent handlers - Developer guides
register
ing onevent handlers the onevent handlers are properties on certa
in dom elements to manage how that element reacts to events.
... elements can be
interactive (l
inks, buttons, images, forms, and so forth) or non-
interactive (such as the base <body> element).
... events are actions like: be
ing clicked detect
ing pressed keys gett
ing focus the onevent handler is usually named with the event it reacts to, like onclick, onkeypress, onfocus, etc.
...And 27 more matches
CSP: frame-src - HTTP
the http content-security-policy (csp) frame-src directive specifies valid sources for nested brows
ing contexts load
ing us
ing elements such as <frame> and <iframe>.
... syntax one or more sources can be allowed for the frame-src policy: content-security-policy: frame-src <source>; content-security-policy: frame-src <source> <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 27 more matches
CSP: style-src-attr - HTTP
the http content-security-policy (csp) style-src-attr directive specifies valid sources for
inl
ine styles applied to
individual dom elements.
... syntax one or more sources can be allowed for the style-src-attr policy: content-security-policy: style-src-attr <source>; content-security-policy: style-src-attr <source> <source>; style-src-attr can be used
in conjunction with style-src: content-security-policy: style-src <source>; content-security-policy: style-src-attr <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 27 more matches
CSP: style-src-elem - HTTP
the http content-security-policy (csp) style-src-elem directive specifies valid sources for stylesheets <style> elements and <l
ink> elements with rel="stylesheet".
... syntax one or more sources can be allowed for the style-src-elem policy: content-security-policy: style-src-elem <source>; content-security-policy: style-src-elem <source> <source>; style-src-elem can be used
in conjunction with style-src: content-security-policy: style-src <source>; content-security-policy: style-src-elem <source>; sources <source> can be one of the follow
ing: <host-source>
internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... the site's address may
include an optional lead
ing wildcard (the asterisk character, '*'), and you may use a wildcard (aga
in, '*') as the port number,
indicat
ing that all legal ports are valid for the source.
...And 27 more matches
Public class fields - JavaScript
support
in browsers is limited, but the feature can be used through a build step with systems like babel.
... see the compat
information below.
... both static and
instance public fields are writable, enumerable, and configurable properties.
...And 27 more matches
Error - JavaScript
the error object can also be used as a base object for user-def
ined exceptions.
... see below for standard built-
in error types.
... description runtime errors result
in new error objects be
ing created and thrown.
...And 27 more matches
for...of - JavaScript
the for...of statement creates a loop iterat
ing over iterable objects,
includ
ing: built-
in str
ing, array, array-like objects (e.g., arguments or nodelist), typedarray, map, set, and user-def
ined iterables.
... it
invokes a custom iteration hook with statements to be executed for the value of each dist
inct property of the object.
... the source for this
interactive example is stored
in a github repository.
...And 27 more matches
nsIDOMSimpleGestureEvent
dom/
interfaces/events/nsidomsimplegestureevent.idlscriptable this
interface describes a mouse or trackpad gesture event.
... 1.0 66
introduced gecko 1.9.1
inherits from: nsidommouseevent last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) the nsidomsimplegestureevent
interface is the datatype for all mozilla-specific simple gesture events
in the document object model.
... the follow
ing events are generated: mozswipegesture - generated when the user completes a swipe across across the
input device.
...And 26 more matches
CType
all data types declared us
ing the js-ctypes api are represented by ctype objects.
... these objects have assorted methods and properties that let you create objects of these types, f
ind out
information about them, and so forth.
... the specific properties and methods on each object vary depend
ing on the data type represented.
...And 26 more matches
AudioNode.connect() - Web APIs
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 direct
ing 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.
... syntax var dest
inationnode = audionode.connect(dest
ination, output
index,
input
index); audionode.connect(dest
ination, output
index); parameters dest
ination the audionode or audioparam to which to connect.
... output
index optional an
index specify
ing which output of the current audionode to connect to the dest
ination.
...And 26 more matches
BaseAudioContext - Web APIs
the baseaudiocontext
interface of the web audio api acts as a base def
inition for onl
ine and offl
ine audio-process
ing graphs, as represented by audiocontext and offl
ineaudiocontext respectively.
... you wouldn't use baseaudiocontext directly — you'd use its features via one of these two
inherit
ing
interfaces.
... a baseaudiocontext can be a target of events, therefore it implements the eventtarget
interface.
...And 26 more matches
BiquadFilterNode - Web APIs
the biquadfilternode
interface represents a simple low-order filter, and is created us
ing the audiocontext.createbiquadfilter() method.
... it is an audionode that can represent different k
inds of filters, tone control devices, and graphic equalizers.
... a biquadfilternode always has exactly one
input and one output.
...And 26 more matches
CSSStyleSheet - Web APIs
the cssstylesheet
interface represents a s
ingle css stylesheet, and lets you
inspect and modify the list of rules conta
ined
in the stylesheet.
... it
inherits properties and methods from its parent, stylesheet.
... a stylesheet consists of a collection of cssrule objects represent
ing each of the rules
in the stylesheet.
...And 26 more matches
HTMLTableRowElement - Web APIs
the htmltablerowelement
interface provides special properties and methods (beyond the htmlelement
interface it also has available to it by
inheritance) for manipulat
ing the layout and presentation of rows
in an html table.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 26 more matches
HTMLVideoElement - Web APIs
the htmlvideoelement
interface provides special properties and methods for manipulat
ing video objects.
... it also
inherits properties and methods of htmlmediaelement and htmlelement.
...you should either provide your video
in a s
ingle format that all the relevant browsers supports, or provide multiple video sources
in enough different formats that all the browsers you need to support are covered.
...And 26 more matches
LocalFileSystem - Web APIs
the localfilesystem
interface of the file system api gives you access to a sandboxed file system.
... the methods are implemented by w
indow and worker objects.
... basic concepts this section
includes a few key concepts for the methods.
...And 26 more matches
MSGestureEvent - Web APIs
the msgestureevent is a proprietary
interface specific to
internet explorer and microsoft edge which represents events that occur due to touch gestures.
... events us
ing this
interface
include msgesturestart, msgestureend, msgesturetap, msgesturehold, msgesturechange, and ms
inertiastart.
... msgestureevent derives from uievent, which
in turn derives from event.
...And 26 more matches
MediaStreamAudioSourceNode - Web APIs
the mediastreamaudiosourcenode
interface is a type of audionode which operates as an audio source whose media is received from a mediastream obta
ined us
ing the webrtc or media capture and streams apis.
... this media could be from a microphone (through getusermedia()) or from a remote peer on a webrtc call (us
ing the rtcpeerconnection's audio tracks).
... a mediastreamaudiosourcenode has no
inputs and exactly one output, and is created us
ing the audiocontext.createmediastreamsource() method.
...And 26 more matches
MessageEvent - Web APIs
the messageevent
interface represents a message received by a target object.
... this is used to represent messages
in: server-sent events (see eventsource.onmessage).
... web sockets (see the onmessage property of the websocket
interface).
...And 26 more matches
Payment Request API - Web APIs
it is not a new way for pay
ing for th
ings; rather, it's a way for users to select their preferred way of pay
ing for th
ings, and make that
information available to a merchant.
... payment request concepts and usage many problems related to onl
ine shopp
ing-cart abandonment can be traced to checkout forms, which can be difficult and time consum
ing to fill out and often require multiple steps to complete.
... the payment request api is meant to reduce the number of steps needed to complete a payment onl
ine, potentially do
ing away with checkout forms.
...And 26 more matches
RTCIceCandidate - Web APIs
the rtcicecandidate
interface—part of the webrtc api—represents a candidate
internet connectivity establishment (ice) configuration which may be used to establish an rtcpeerconnection.
... an ice candidate describes the protocols and rout
ing needed for webrtc to be able to communicate with a remote device.
... when start
ing a webrtc peer connection, typically a number of candidates are proposed by each end of the connection, until they mutually agree upon one which describes the connection they decide will be best.
...And 26 more matches
SVGTextContentElement - Web APIs
the svgtextcontentelement
interface is implemented by elements that support render
ing child text content.
... it is
inherited by various text-related
interfaces, such as svgtextelement, svgtspanelement, svgtrefelement, svgaltglyphelement and svgtextpathelement.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 26 more matches
nsIMicrosummaryService
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this
interface provides methods for manag
ing
installed microsummaries, and the bookmarks they apply to.
... 1.0 66
introduced gecko 1.8 obsolete gecko 6.0
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) warn
ing: 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 getm...
...icrosummaries(
in nsiuri pageuri,
in long long bookmarkid); nsimicrosummary getmicrosummary(
in long long bookmarkid); boolean hasmicrosummary(
in long long bookmarkid); nsimicrosummarygenerator
installgenerator(
in nsidomdocument xmldef
inition); 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 25 more matches
Activity Manager examples
this content covers features
introduced
in thunderbird 3 the activity manager is a simple component that understands how to display a comb
ination of user activity and history.
...see the activity manager
interfaces page for an overview of the related
interfaces.
... if the default implementation of nsiactivityprocess, nsiactivitywarn
ing and nsiactivityevent are not sufficient for the activity
initiator, activity developers can provide their own components to extend the capabilities.
...And 25 more matches
Flame Chart - Firefox Developer Tools
the flame chart shows you the state of the javascript stack for your code at every millisecond dur
ing the performance profile.
... this gives you a way to know exactly which function was execut
ing at any po
int dur
ing the record
ing, how long it ran for, and where it was called from.
... the call tree and the flame chart are both used to analyze your site's javascript, and they both use the same data: a sample of the javascript eng
ine's stack, taken periodically dur
ing the record
ing.
...And 25 more matches
AudioParam - Web APIs
the web audio api's audioparam
interface represents an audio-related parameter, usually a parameter of an audionode (such as ga
innode.ga
in).
... an audioparam can be set to a specific value or a change
in value, and can be scheduled to happen at a specific time and follow
ing a specific pattern.
... there are two k
inds of audioparam, a-rate and k-rate parameters: an a-rate audioparam takes the current audio parameter value for each sample frame of the audio signal.
...And 25 more matches
Advanced animations - Web APIs
« previousnext »
in the last chapter we made some basic animations and got to know ways to get th
ings mov
ing.
...
in this part we will have a closer look at the motion itself and are go
ing to add some physics to make our animations more advanced.
... draw
ing a ball we are go
ing to use a ball for our animation studies, so let's first draw that ball onto the canvas.
...And 25 more matches
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 manipulat
ing the layout and presentation of <fieldset> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 25 more matches
HTMLFrameSetElement - Web APIs
the htmlframesetelement
interface provides special properties (beyond those of the regular htmlelement
interface they also
inherit) for manipulat
ing <frameset> elements.
... properties
inherits properties from its parent, htmlelement and from w
indoweventhandlers.
... htmlframesetelement.cols is a domstr
ing structured as a comma-seperated list specif
ing the width of each column
inside a frameset.
...And 25 more matches
IDBDatabase.transaction() - Web APIs
the transaction method of the idbdatabase
interface immediately returns a transaction object (idbtransaction) conta
ining the idbtransaction.objectstore method, which you can use to access your object store.
... note: this feature is available
in web workers.
... syntax idbdatabase.transaction(storenames); idbdatabase.transaction(storenames, mode); parameters "durability" -- the durability constr
ints for the transction.
...And 25 more matches
KeyboardEvent.code - Web APIs
the keyboardevent.code property represents a physical key on the keyboard (as opposed to the character generated by press
ing the key).
...
in other words, this property returns a value that isn't altered by keyboard layout or the state of the modifier keys.
... if the
input device isn't a physical keyboard, but is
instead a virtual keyboard or accessibility device, the returned value will be set by the browser to match as closely as possible to what would happen with a physical keyboard, to maximize compatibility between physical and virtual
input devices.
...And 25 more matches
RTCPeerConnection.addIceCandidate() - Web APIs
when a web site or app us
ing rtcpeerconnection receives a new ice candidate from the remote peer over its signal
ing channel, it delivers the newly-received candidate to the browser's ice agent by call
ing rtcpeerconnection.addicecandidate().
... if the candidate parameter is miss
ing or a value of null is given when call
ing addicecandidate(), the added ice candidate is an "end-of-candidates"
indicator.
... the same is the case if the value of the specified object's candidate is either miss
ing or an empty str
ing (""), it signals that all remote candidates have been delivered.
...And 25 more matches
RTCRtpStreamStats - Web APIs
while the dictionary has a base set of properties that are present
in each of these cases, there are also additional properties added depend
ing on which
interface the method is called on.
...it's based on rtcstats and adds the follow
ing additional fields.
... note: this
interface was called rtcrtpstreamstats until a specification update
in the spr
ing of 2017.
...And 25 more matches
ReadableStream.ReadableStream() - Web APIs
syntax var readablestream = new readablestream(underly
ingsource[, queu
ingstrategy]); parameters underly
ingsource an object conta
ining methods and properties that def
ine how the constructed stream
instance will behave.
... underly
ingsource can conta
in the follow
ing: start(controller) this is a method, called immediately when the object is constructed.
... the contents of this method are def
ined by the developer, and should aim to get access to the stream source, and do anyth
ing else required to set up the stream fuctionality.
...And 25 more matches
SVGPathSegList - Web APIs
svg path segment list
interface this
interface def
ines a list of svgpathseg objects.
...
interface overview also implement none methods void clear() svgpathseg
initialize(
in svgpathseg newitem) svgpathseg getitem(
in unsigned long
index) svgpathseg
insertitembefore(
in svgpathseg newitem,
in unsigned long
index) svgpathseg replaceitem(
in svgpathseg newitem,
in unsigned long
index) svgpathseg removeitem(
in unsigned long
index) svgpathseg appenditem(
in svgpathseg newitem) properties readonly unsigned long numberofitems normative document svg 1.
...1 (2nd edition) properties name type description numberofitemsread only unsigned long the number of items
in the list.
...And 25 more matches
SourceBuffer - Web APIs
the sourcebuffer
interface represents a chunk of media to be passed
into an htmlmediaelement and played, via a mediasource object.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="...
...25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/sourcebuffer" target="_top"><rect x="151" y="1" width="120" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">sourcebuffer</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties sourcebuffer.appendw
indowend controls the timestamp for the end of the append w
indow.
...And 25 more matches
TextTrack.mode - Web APIs
the texttrack
interface's mode property is a str
ing specify
ing and controll
ing the text track's mode: disabled, hidden, or show
ing.
... you can read this value to determ
ine the current mode, and you can change this value to switch modes.
... safari additionally requires the default boolean attribute to be set to true when implement
ing your own video player controls
in order for the subtitles cues to be shown.
...And 25 more matches
CSS performance optimization - Learn web development
previous overview: performance next pa
int
ing an unstyled page, and then repa
int
ing it once styles are parsed would be bad user experience.
... for this reason, css is render block
ing, unless the browser knows the css is not currently needed.
... the browser can pa
int the page once it has downloaded the css and built the css object model.
...And 23 more matches
PerfMeasurement.jsm
note: the perfmeasurement.jsm javascript code module can only be used from chrome -- that is, from with
in the application itself or an add-on.
... before you can use this module, you need to import it
into your scope: components.utils.import("resource://gre/modules/perfmeasurement.jsm") see measur
ing performance us
ing the perfmeasurement.jsm code module for details on how to use this api.
... note: at present, perfmeasurement.jsm is only functional on l
inux, but it is planned to add support for w
indows (bug 583322) and osx (bug 583323) as well, and we welcome patches for other operat
ing systems.
...And 23 more matches
Promise.jsm
the promise.jsm javascript code module implements the promises/a+ proposal as known
in april 2013.
... this module was used before dom promises were made globally available
in gecko 29.
... if you just need a promise, consider us
ing a dom promise
instead.
...And 23 more matches
Localization Use Cases
this article documents a few opportunities to improve the localization of gaia (the ui layer of firefox os) by us
ing l20n.
...
in all presented examples, we try to show the exist
ing code, expla
in the problem from the localizers' or developers' perspective, and suggest a solution.
... declensions
in gaia's browser app, there's an about-browser str
ing def
ined as follows
in apps/browser/locales/browser: about-browser=about {{browserbrandshortname}} problem def
inition
in many
inflected languages (e.g.
...And 23 more matches
JS::Evaluate
this article covers features
introduced
in spidermonkey 17 compile and execute a script.
... syntax // added
in spidermonkey 45 bool js::evaluate(jscontext *cx, const js::readonlycompileoptions &options, js::sourcebufferholder &srcbuf, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompileoptions &options, const char *bytes, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, const js::readonlycompileoptions &options, const char *filename, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::autoobjectvector &scopecha
in, const readonlycompileopt...
...ions &options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); // added
in spidermonkey 17 bool js::evaluate(jscontext *cx, js::autoobjectvector &scopecha
in, const js::readonlycompileoptions &options, js::sourcebufferholder &srcbuf, js::mutablehandlevalue rval); // obsolete s
ince jsapi 39 bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, js::sourcebufferholder &srcbuf, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlevalue rval); bool js::evaluate(jscontext *cx, js::handleobject obj, c...
...And 23 more matches
JS_Add*Root
obsolete s
ince jsapi 31this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 23 more matches
JS_EvaluateScript
obsolete s
ince jsapi 36this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 23 more matches
mozITXTToHTMLConv
the mozitxttohtmlconv
interface is used to convert text
into html format.
... its primary use is
in convert
ing user-entered text
into properly-formatted html.
... last changed
in gecko 1.8.1 (firefox 2 / thunderbird 2 / seamonkey 1.1)
inherits from nsistreamconverter implemented by @mozilla.org/txttohtmlconv;1 as a service: var ios = components.classes["@mozilla.org/txttohtmlconv;1"] .getservice(components.
interfaces.mozitxttohtmlconv); method overview unsigned long citeleveltxt(
in wstr
ing l
ine, out unsigned long logl
inestart) void f
indurl
inpla
intext(
in wstr
ing text,
in long alength,
in long apos, out long astartpos, out long aendpos) wstr
ing scanhtml(
in wstr
ing text,
in unsigned long whattodo) wstr
ing scantxt(
in wstr
ing text,
in unsigned long whattodo) constants conversion co...
...And 23 more matches
nsIApplicationUpdateService
toolkit/mozapps/update/nsiupdateservice.idlscriptable this
interface describes a global application service that handles perform
ing background update checks.
... it also provides utilities for select
ing and download
ing update patches.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void adddownloadlistener(
in nsirequestobserver listener); astr
ing downloadupdate(
in nsiupdate update,
in boolean background); void pausedownload(); void removedownloadlistener(
in nsirequestobserver listener); nsiupdate selectupdate([array, size_is(updatecount)]
in nsiupdate updates,
in unsigned long updatecount); attributes attribute type description backgroundchecker nsiupdatechecker the update checker be
ing used for background update check
ing.
...And 23 more matches
nsICache
last changed
in gecko 1.9 (firefox 3)
inherits from: nsisupports constants constant value description access_none 0 access granted - no descriptor is provided.
... access_write 2 access requested - i have someth
ing new i want to write
into the cache, make me a new entry and doom the old one, if any.
... access_read_write 3 access requested - i want to read, but i'm will
ing to update an exist
ing entry if necessary, or create a new one if none exists.
...And 23 more matches
nsIClipboardDragDropHooks
widget/public/nsiclipboarddragdrophooks.idlscriptable
interfaces for overrid
ing the built-
in drag, drop, copy, and paste implementations
in the content area and editors.
... use this to do th
ings such as prevent a drag from start
ing, add
ing or remov
ing data and flavors, or prevent
ing the drop.
...
inherits from: nsisupports last changed
in gecko 1.7 embedders who want to have these hooks made available should implement nsiclipboarddragdrophooks and use the command manager to send the appropriate commands with these parameters/sett
ings: command: cmd_clipboarddragdrophook params value type possible values "addhook" isupports nsiclipboarddragdrophooks as nsisupports "removehook" isupports nsiclipboarddragdrophooks as nsisupports note: overrides/hooks need to be added to each w
indow (as appropriate).
...And 23 more matches
nsIExternalProtocolService
uriloader/exthandler/nsiexternalprotocolservice.idlscriptable the external protocol service is used for f
ind
ing and launch
ing web handlers (a la registerprotocolhandler
in the html5 draft) or platform-specific applications for handl
ing particular protocols.
...
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) you can ask the external protocol service if it has an external handler for a given protocol scheme.
... and you can ask it to load the url us
ing the default handler.
...And 23 more matches
nsIModule
xpcom/components/nsimodule.idlscriptable this
interface must be implemented by each xpcom component.
... it is the ma
in entry po
int by which the system accesses an xpcom component.
...
inherits from: nsisupports last changed
in gecko 0.9.9 method overview boolean canunload(
in nsicomponentmanager 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 str
ing aloaderstr,
in str
ing atype); void unregisterself(
in nsicomponentmanager acompmgr,
in nsifile alocation,
in str
ing aloaderstr); methods canunload() this method may be queried to determ
ine whether or not the component module can be unloaded by xpcom.
...And 23 more matches
nsISHistory
docshell/shistory/public/nsishistory.idlscriptable an
interface to the primary properties of the session history component.
...
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)
in an embedded browser environment, the nsiwebbrowser object creates an
instance of session history for each open w
indow.
... a handle to the session history object can be obta
ined from nsiwebnavigation.
...And 23 more matches
nsITaskbarPreviewController
widget/public/nsitaskbarpreviewcontroller.idlscriptable this
interface is used on microsoft w
indows to provide the behavior of taskbar previews.
... its methods and properties are used by the nsitaskbarpreview
interface.
... 1.0 66
introduced gecko 1.9.2
inherits from: nsisupports last changed
in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) clients should provide their own implementation of this
interface.
...And 23 more matches
nsITransactionListener
editor/txmgr/idl/nsitransactionlistener.idlscriptable this
interface is implemented by an object that tracks transactions.
...
inherits from: nsisupports last changed
in gecko 1.7 method overview void didbeg
inbatch(
in nsitransactionmanager amanager,
in nsresult aresult); void diddo(
in nsitransactionmanager amanager,
in nsitransaction atransaction,
in nsresult adoresult); void didendbatch(
in nsitransactionmanager amanager,
in nsresult aresult); void didmerge(
in nsitransactionmanager amanager,
in nsitransaction atoptransaction,
in nsitransaction atransactiontomerge,
in boolean adidmerge,
in nsresult amergeresult); void didredo(
in nsitransactionmanager amanager,
in nsitransaction atransaction,
in nsresult aredoresult); void didundo(
in nsitransactionmanager amanager,
in nsitransaction atransaction,
in nsresult aundoresult); boolean willbeg
inbatch(
in nsitransactionmanager amanager); boolean willdo(...
...
in nsitransactionmanager amanager,
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 didbeg
inbatch() called after a nsitransactionmanager beg
ins a batch.
...And 23 more matches
nsIURL
netwerk/base/public/nsiurl.idlscriptable this
interface provides convenience methods that further break down the path portion of nsiuri.
...
inherits from: nsiuri last changed
in gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6) http://host/directory/filebasename.fileextension?query http://host/directory/filebasename.fileextension#ref http://host/directory/filebasename.fileextension;param \ \ / \ ----------------------- \ | / \ filename / ---------------------------- | filepath you can get a nsiurl from an nsiuri, us
ing the query
interface() method: var myuri = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.
interfaces.nsiioservice) .new...
...uri("http://developer.mozilla.org", null, null); try { var myurl = myuri.query
interface(components.
interfaces.nsiurl); } catch(e) { // the uri is not an url } or us
ing
instanceof: if (myuri
instanceof components.
interfaces.nsiurl) { // your code here } method overview autf8str
ing getcommonbasespec(
in nsiuri auritocompare); autf8str
ing getrelativespec(
in nsiuri auritocompare); attributes attribute type description directory autf8str
ing directory portion of a url.
...And 23 more matches
nsIWebContentHandlerRegistrar
xpfe/appshell/public/nsiwebcontenthandlerregistrar.idlscriptable applications wish
ing to use web content handlers need to implement this
interface.
... typically they will prompt the user to confirm add
ing an entry to the local list.
...
inherits from: nsisupports last changed
in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) implemented by @mozilla.org/embeddor.implemented/web-content-handler-registrar;1 as a service: var nsiwchr = cc["@mozilla.org/embeddor.implemented/web-content-handler-registrar;1"] .getservice(ci.nsiwebcontenthandlerregistrar); method overview void registercontenthandler(
in domstr
ing mimetype,
in domstr
ing uri,
in domstr
ing title,
in nsidomw
indow contentw
indow) void registerprotocolhandler(
in domstr
ing protocol,
in domstr
ing uri,
in domstr
ing title,
in nsidomw
indow contentw
indow) methods registercontenthandler summary of registercontenthandler void registercontent...
...And 23 more matches
nsIXULTemplateResult
content/xul/templates/public/nsixultemplateresult.idlscriptable a s
ingle result generated from a template query.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) each result is identified by an id, which must be unique with
in the set of results produced from a query.
...generally, the result and its id will be able to uniquely identify a node
in the source data, such as an rdf or xml node.
...And 23 more matches
The libmime module
warn
ing: the content of this article may be out of date.
... it was imported from mozilla.org and last updated
in 2002.
...there is a class for each mime type, and each class is responsible for pars
ing itself, and/or hand
ing the
input data off to one of its child objects.
...And 23 more matches
CacheStorage - Web APIs
the cachestorage
interface represents the storage for cache objects.
... the
interface: provides a master directory of all the named caches that can be accessed by a serviceworker or other type of worker or w
indow scope (you’re not limited to only us
ing it with service workers, even though the service workers spec def
ines it).
... note: chrome and safari only expose `cachestorage` to the w
indowed context over https.
...And 23 more matches
FileReader - Web APIs
the filereader object lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, us
ing file or blob objects to specify the file or data to read.
... file objects may be obta
ined from a filelist object returned as a result of a user select
ing files us
ing the <
input> element, from a drag and drop operation's datatransfer object, or from the mozgetasfile() api on an htmlcanvaselement.
... important note: filereader is used to read file content from the user's (remote) system
in secure ways only.
...And 23 more matches
FileSystemDirectoryEntry - Web APIs
the filesystemdirectoryentry
interface of the file and directory entries api represents a directory
in a file system.
... it provides methods which make it possible to access and manipulate the files
in a directory, as well as to access the entries with
in the directory.
... basic concepts you can create a new directory by call
ing getdirectory().
...And 23 more matches
KeyboardEvent: code values - Web APIs
the follow
ing tables show what code values are used for each native scancode or virtual keycode on major platforms.
... the reason is that some browsers choose to
interpret physical keys differently, there are some differences
in which keys map to which codes.
... code values code values on w
indows this table shows the w
indows scan codes represent
ing keys and the keyboardevent.code values which correspond to those hardware keys.
...And 23 more matches
PaymentAddress - Web APIs
the paymentaddress
interface of the payment request api is used to store shipp
ing or payment address
information.
... it may be useful to refer to the universal postal union web site's address
ing s42 standard materials, which provide
information about
international standards for postal addresses.
... properties paymentaddress.addressl
ine read only an array of domstr
ing objects provid
ing each l
ine of the address not
included among the other properties.
...And 23 more matches
Push API - Web APIs
the push api gives web applications the ability to receive messages pushed to them from a server, whether or not the web app is
in the foreground, or even currently loaded, on a user agent.
... this lets developers deliver asynchronous notifications and updates to users that opt
in, result
ing
in better engagement with timely new content.
... push concepts and usage when implement
ing pushmanager subscriptions, it is vitally important that you protect aga
inst csrf/xsrf issues
in your app.
...And 23 more matches
RTCDtlsTransport - Web APIs
the rtcdtlstransport
interface provides access to
information about the datagram transport layer security (dtls) transport over which a rtcpeerconnection's rtp and rtcp packets are sent and received by its rtcrtpsender and rtcrtpreceiver objects.
... a dtls transport is also used to provide
information about sctp packets transmitted and received by an connection's data channels.
... features of the dtls transport
include the addition of security to the underly
ing transport; the rtcdtlstransport
interface can be used to obta
in information about the underly
ing transport and the security added to it by the dtls layer.
...And 23 more matches
SVGTransform - Web APIs
svg transform
interface svgtransform is the
interface for one of the component transformations with
in an svgtransformlist; thus, an svgtransform object corresponds to a s
ingle component (e.g., scale(…) or matrix(…)) with
in a transform attribute.
... an svgtransform object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
...
interface overview also implement none methods void setmatrix(
in svgmatrix matrix) void settranslate(
in float tx,
in float ty) void setscale(
in float sx,
in float sy) void setrotate(
in float angle,
in float cx,
in float cy) void setskewx(
in float angle) void setskewy(
in float angle) properties readonly unsigned short type readonly float angle readonly svgmatrix matrix constants svg_transform_unknown = 0 svg_transform_matrix = 1 svg_transform_translate = 2 svg_transform_scale = 3 svg_transform_rotate = 4 svg_transform_skewx = 5 svg_transform_skewy = 6 normative document svg 1.1 (2nd edition) constants...
...And 23 more matches
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.
... keys can be exported
in several formats: see supported formats
in the subtlecrypto.importkey() page for details.
... keys are not exported
in an encrypted format: to encrypt keys when export
ing them use the subtlecrypto.wrapkey() api
instead.
...And 23 more matches
ValidityState - Web APIs
the validitystate
interface represents the validity states that an element can be
in, with respect to constra
int validation.
... together, they help expla
in why an element's value fails to validate, if it's not valid.
... properties for each of these boolean properties, a value of true
indicates that the specified reason validation may have failed is true, with the exception of the valid property, which is true if the element's value obeys all constra
ints.
...And 23 more matches
DocumentFragment - Web APIs
the documentfragment
interface represents a m
inimal document object that has no parent.
...changes made to the fragment don't affect the document (even on reflow) or
incur any performance impact when changes are made.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node"...
...And 21 more matches
Element.animate() - Web APIs
the element
interface's animate() method is a shortcut method which creates a new animation, applies it to the element, then plays the animation.
... it returns the created animation object
instance.
...you can get a list of the animations that affect an element by call
ing element.getanimations().
...And 21 more matches
Element: mousewheel event - Web APIs
important:
instead of this obsolete event, use the standard wheel event.
... bubbles yes cancelable yes
interface mousewheelevent event handler property onmousewheel the detail property the value of the detail property is always zero, except
in opera, which uses detail similarly to the firefox-only dommousescroll event's detail value, which
indicates the scroll distance
in terms of l
ines, with negative values
indicat
ing the scroll
ing movement is either toward the bottom or toward the right, and positive values
indicat
ing scroll
ing to the top or left.
... on l
inux, 2 or -2 is set per native wheel event.
...And 21 more matches
FetchEvent.respondWith() - Web APIs
the respondwith() method of fetchevent prevents the browser's default fetch handl
ing, and allows you to provide a promise for a response yourself.
...
in most cases you can provide any response that the receiver understands.
... for example, if an <img>
initiates the request, the response body needs to be image data.
...And 21 more matches
FileSystemDirectoryEntry.getDirectory() - Web APIs
the filesystemdirectoryentry
interface's method getdirectory() returns a filesystemdirectoryentry object correspond
ing to a directory conta
ined somewhere with
in the directory subtree rooted at the directory on which it's called.
... syntax filesystemdirectoryentry.getdirectory([path][, options][, successcallback][, errorcallback]); parameters path optional a usvstr
ing represent
ing an absolute path or a path relative to the directory on which the method is called, describ
ing which directory entry to return.
... options optional an object based on the filesystemflags dictionary, which allows you to specify whether or not to create the entry if it's miss
ing and if it's an error if the file already exists.
...And 21 more matches
FileSystemDirectoryEntry.getFile() - Web APIs
} the filesystemdirectoryentry
interface's method getfile() returns a filesystemfileentry object correspond
ing to a file conta
ined somewhere with
in the directory subtree rooted at the directory on which it's called.
... syntax filesystemdirectoryentry.getfile([path][, options][, successcallback][, errorcallback]); parameters path optional a usvstr
ing specify
ing the path, relative to the directory on which the method is called, describ
ing which file's entry to return.
... options optional an object based on the filesystemflags dictionary, which allows you to specify whether or not to create the entry if it's miss
ing and if it's an error if the file already exists.
...And 21 more matches
HTMLMarqueeElement - Web APIs
the htmlmarqueeelement
interface provides methods to manipulate <marquee> elements.
... it
inherits properties and methods from the htmlelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/htmlmarqueeelement" target="_top"><rect x="1" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">htmlmarqueeelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties
inherits properties from its parent, htmlelement.
...And 21 more matches
HTMLMediaElement.play() - Web APIs
the htmlmediaelement play() method attempts to beg
in playback of the media.
...failure to beg
in playback for any reason, such as permission issues, result
in the promise be
ing rejected.
... exceptions the promise's rejection handler is called with an exception name passed
in as its sole
input parameter (as opposed to a traditional exception be
ing thrown).
...And 21 more matches
HTMLTrackElement - Web APIs
the htmltrackelement
interface represents an html <track> element with
in the dom.
... this element can be used as a child of either <audio> or <video> to specify a text track conta
ining
information such as closed captions or subtitles.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 21 more matches
Media Capabilities API - Web APIs
the media capabilities api allows developers to determ
ine decod
ing and encod
ing abilities of the device, expos
ing
information such as whether media is supported and whether playback should be smooth and power efficient, with real time feedback about playback to better enable adaptive stream
ing, and access to display property
information.
... examples detect audio file support and expected performance this example def
ines a audio configuration then checks to see if the user agent supports decod
ing that media configuration, and whether it will perform well
in terms of smoothness and power efficiency.
... if ('mediacapabilities'
in navigator) { const audiofileconfiguration = { type : 'file', audio : { contenttype: "audio/mp3", channels: 2, bitrate: 132700, samplerate: 5200 } }; navigator.mediacapabilities.decod
ing
info(audiofileconfiguration).then(result => { console.log('this configuration is ' + (result.supported ?
...And 21 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.
... the nodes will be returned
in document order.
... syntax a nodeiterator can be created us
ing the document.createnodeiterator() method, as follows: const nodeiterator = document.createnodeiterator(root, whattoshow, filter); properties this
interface doesn't
inherit any property.
...And 21 more matches
OffscreenCanvas.getContext() - Web APIs
the offscreencanvas.getcontext() method returns a draw
ing context for an offscreen canvas, or null if the context identifier is not supported.
... syntax offscreen.getcontext(contexttype, contextattributes); parameters contexttype is a domstr
ing conta
ining the context identifier def
ining the draw
ing context associated to the canvas.
... possible values are: "2d" creates a canvasrender
ingcontext2d object represent
ing a two-dimensional render
ing context.
...And 21 more matches
performance.now() - Web APIs
the performance.now() method returns a domhighrestimestamp, measured
in milliseconds.
... note: this feature is available
in web workers.
... the returned value represents the time elapsed s
ince the time orig
in.
...And 21 more matches
RTCDataChannel - Web APIs
the rtcdatachannel
interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data.
... to create a data channel and ask a remote peer to jo
in you, call the rtcpeerconnection's createdatachannel() method.
... the peer be
ing
invited to exchange data receives a datachannel event (which has type rtcdatachannelevent) to let it know the data channel has been added to the connection.
...And 21 more matches
SVGFEConvolveMatrixElement - Web APIs
the svgfeconvolvematrixelement
interface corresponds to the <feconvolvematrix> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 21 more matches
JS::Compile
this article covers features
introduced
in spidermonkey 17 compile a script for execution.
... syntax // added
in spidermonkey 45 bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, js::sourcebufferholder &srcbuf, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, const char *bytes, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, file *file, js::mutablehandlescript script); bool js::compile(jscontext *cx, const js::readonlycompileoptions &options, const char *filename, ...
... js::mutablehandlescript script); // obsolete s
ince jsapi 39 bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, js::sourcebufferholder &srcbuf, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char *bytes, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, const char16_t *chars, size_t length, js::mutablehandlescript script); bool js::compile(jscontext *cx, js::handleobject obj, const js::readonlycompileoptions &options, file *file, js::mutablehandlescript script)...
...And 18 more matches
JS_CallFunction
syntax /* added
in spidermonkey 31 */ bool js_callfunction(jscontext *cx, js::handleobject obj, js::handlefunction fun, const js::handlevaluearray& args, js::mutablehandlevalue rval); bool js_callfunctionname(jscontext *cx, js::handleobject obj, const char *name, const js::handlevaluearray& args, js::mutablehandlevalue rval); bool js_callfunctionvalue(jscontext *cx, js::handleobject obj, js::handlevalue fval, const js::handlevaluearray& args, js::mutablehandlevalue rval); /* obsolete s
ince jsapi 30 */ bool js_callfunction(jscontext *cx, jsobject *obj, jsfunction *fun, unsigned argc, jsval *argv, jsval *rval); bool js_callfunctionname(jscontext *cx, jsobject *obj, co...
...nst char *name, unsigned argc, jsval *argv, jsval *rval); bool js_callfunctionvalue(jscontext *cx, jsobject *obj, jsval fval, unsigned argc, jsval *argv, jsval *rval); name type description cx jscontext * po
inter to a js context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 18 more matches
JS_ConstructObject
obsolete s
ince jsapi 16this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 18 more matches
JS_SetProperty
syntax bool js_setproperty(jscontext *cx, js::handleobject obj, const char *name, js::handlevalue v); bool js_setucproperty(jscontext *cx, js::handleobject obj, const char16_t *name, size_t namelen, js::handlevalue v); bool js_setpropertybyid(jscontext *cx, js::handleobject obj, js::handleid id, js::handlevalue v); // added
in spidermonkey 1.8.1 name type description cx jscontext * po
inter to a js context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... namelen size_t (only
in js_setucproperty) the length of name
in characters; or -1 to
indicate that name is null-term
inated.
...And 18 more matches
Frecency algorithm
frecency is a score given to each unique uri
in places, encompass
ing bookmarks, history and tags.
... this score is determ
ined by the amount of revisitation, the type of those visits, how recent they were, and whether the uri was bookmarked or tagged.
... the word "frecency" itself is a comb
ination of the words "frequency" and "recency." the default frecency value for all valid entries is -1.
...And 18 more matches
XPConnect wrappers
for practical advice on deal
ing with wrappers, see safely access
ing content dom from chrome.
... developers
in the know understand that wrappers play a large role
in xpconnect, and that we have a lot of them.
... less
informed developers understand that wrappers exist and are somehow important, but they don't know when they should use what wrappers, or if they should be see
ing a wrapper.
...And 18 more matches
nsIAccessibleRelation
accessible/public/nsiaccessiblerelation.idlscriptable this
interface gives access to an accessibles set of relations.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) note: be carefull, do not change constants until atk has a structure to map gecko constants
into atk constants.
... method overview nsiaccessible gettarget(
in unsigned long
index); nsiarray gettargets(); attributes attribute type description relationtype unsigned long returns the type of the relation.
...And 18 more matches
nsIAuthPrompt2
netwerk/base/public/nsiauthprompt2.idlscriptable an
interface allow
ing to prompt for a username and password.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) this
interface is usually acquired us
ing get
interface on notification callbacks or similar.
... it can be used to prompt users for authentication
information, either synchronously or asynchronously.
...And 18 more matches
nsIDNSService
netwerk/dns/nsidnsservice.idlscriptable provides doma
in name resolution service.
...
inherits from: nsisupports last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) implemented by: @mozilla.org/network/dns-service;1.
... to access the service, use: var dnsservice = components.classes["@mozilla.org/network/dns-service;1"] .create
instance(components.
interfaces.nsidnsservice); note: start
ing
in gecko 7.0, the "happy eyeballs" strategy is used to reduce lengthy timeouts when attempt
ing backup connections dur
ing attempts to connect from clients that have broken ipv6 connectivity.
...And 18 more matches
nsIEditor
« xpcom api reference editor/nsieditor.idlscriptable provides methods and attributes used when edit
ing page content.
... 66
introduced gecko 1.0
inherits from: nsisupports last changed
in gecko 18.0 (firefox 18.0 / thunderbird 18.0 / seamonkey 2.15) method overview [noscript] void
init(
in nsidomdocument doc,
in nsicontent aroot,
in nsiselectioncontroller aselcon,
in unsigned long aflags); void setattributeorequivalent(
in nsidomelement element,
in astr
ing sourceattrname,
in astr
ing sourceattrvalue,
in boolean asuppresstransaction); void removeattributeorequivalent(
in nsidomelement element,
in domstr
ing sourceattrname,
in boolean asuppresstransaction); void postcreate(); void predestroy(
in boolean adestroy
ingframes); selected content removal void deleteselection(
in short action,
in short stripwrappers); document
in...
...fo 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 boolean isenabled, out boolean canundo); void redo(
in unsigned long count); void canredo(out boolean isenabled, out boolean canredo); void beg
intransaction(); void endtransaction(); void beg
inplaceholdertransaction(
in nsiatom name); void endplaceholdertransaction(); boolean shouldtxnsetselection(); void setshould...
...And 18 more matches
nsIMutableArray
xpcom/ds/nsimutablearray.idlscriptable this
interface is a subclass of nsiarray that provides arrays that are mutable; that is, they can be altered programmatically.
...
inherits from: nsiarray last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) consumers of nsiarray should not query
interface to nsimutablearray unless they own the array.
...note also that null elements can be created as a side effect of
insertelementat().
...And 18 more matches
nsISmsRequestManager
nsismsrequestmanager dom/sms/
interfaces/nsismsrequestmanager.idlscriptable used to manage sms related requests and notifications for 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/smsrequestmanager;1.
... to create an
instance, use: var smsrequestmanager = components.classes["@mozilla.org/sms/smsrequestmanager;1"] .create
instance(components.
interfaces.nsismsrequestmanager); method overview long addrequest(
in nsidommozsmsrequest arequest); long createrequest(
in nsidommozsmsmanager amanager, out nsidommozsmsrequest arequest); void notifycreatemessagelist(
in long arequestid,
in long alistid,
in nsidommozsmsmessage amessage); void notifygetsmsfailed(
in long arequestid,
in long aerror); void notifygotnextmessage(
in long arequestid,
in nsidommozsmsmessage amessage); void notifygotsms(
in long arequestid,
in nsidommozsmsmessage amessage); void notifymarkedmessageread(
in long arequestid,
in bool aread); void notifymarkmessagereadfailed(
in long arequestid,
in ...
...long aerror); void notifynomessage
inlist(
in long arequestid); void notifyreadmessagelistfailed(
in long arequestid,
in long aerror); void notifysmsdeleted(
in long arequestid,
in bool adeleted); void notifysmsdeletefailed(
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.
...And 18 more matches
nsIToolkitProfileService
inherits from: nsisupports last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) note: start
ing
in gecko 1.9.1, this service is implemented by @mozilla.org/toolkit/profile-service;1.
... to access the service, you can use the follow
ing code: var toolkitprofileservice = components.classes["@mozilla.org/toolkit/profile-service;1"] .create
instance(components.
interfaces.nsitoolkitprofileservice); prior to gecko 1.9.1 only the built-
in profile manager was able to access the toolkit profile service.
... to access the built-
in profile manager
in versions of firefox up to 4.0 and thunderbird up to 3.3 you can launch with the -profilemanager command l
ine flag.
...And 18 more matches
nsITraceableChannel
netwerk/base/public/nsitraceablechannel.idlscriptable this
interface is used to allow
intercept
ing of http traffic.
... 1.0 66
introduced gecko 1.9.0.4
inherits from: nsisupports last changed
in gecko 1.9.0.4 the typical way to use this
interface is as follows: register for the "http-on-exam
ine-response" notification to track all http responses; skip redirects (responsestatus = 3xx on nsihttpchannel), s
ince otherwise you may end up with two listeners registered for a channel; qi the channel passed as the "subject" to your observer to nsitraceablechannel, and replace the default nsistreamlistener (that passes the data to the orig
inal requester - e.g.
... to xmlhttprequest or to the browser tab that made the request) with your own implementation (see "implement
ing nsistreamlistener" below).
...And 18 more matches
Thunderbird extensions
build
ing a thunderbird extension step-by-step explanation on how to build an extension for thunderbird.
... the follow
ing documentation provides help for creat
ing extensions for the thunderbird email client.
... there are similarities with firefox extensions, but there are also differences that may confound the start
ing thunderbird developer.
...And 18 more matches
Frame rate - Firefox Developer Tools
a low or
inconsistent frame rate can make a site appear unresponsive or janky, mak
ing for a bad user experience.
... a frame rate of 60fps is the target for smooth performance, giv
ing you a time budget of 16.7ms for all the updates needed
in response to some event.
... the frame rate graph
in the performance tool shows you the frame rate over the course of a record
ing.
...And 18 more matches
AudioParam.value - Web APIs
the web audio api's audioparam
interface property value gets or sets the value of this audioparam at the current time.
...
initially, the value is set to audioparam.defaultvalue.
... sett
ing value has the same effect as call
ing audioparam.setvalueattime with the time returned by the audiocontext's currenttime property..
...And 18 more matches
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.
... note: createbuffer() used to be able to take compressed data and give back decoded samples, but this ability was removed from the spec, because all the decod
ing was done on the ma
in thread, therefore createbuffer() was block
ing other code execution.
... the asynchronous method decodeaudiodata() does the same th
ing — takes compressed audio, say, an mp3 file, and directly gives you back an audiobuffer that you can then set to play via
in an audiobuffersourcenode.
...And 18 more matches
CacheStorage.match() - Web APIs
the match() method of the cachestorage
interface checks if a given request or url str
ing is a key for a stored response.
... this method returns a promise for a response, or a promise which resolves to undef
ined if no match is found.
... cache objects are searched
in creation order.
...And 18 more matches
CharacterData - Web APIs
the characterdata abstract
interface represents a node object that conta
ins characters.
... this is an abstract
interface, mean
ing there aren't any object of type characterdata: it is implemented by other
interfaces, like text, comment, or process
ing
instruction which aren't abstract.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/nod...
...And 18 more matches
ConstantSourceNode - Web APIs
the constantsourcenode
interface—part of the web audio api—represents an audio source (based upon audioscheduledsourcenode) whose output is s
ingle unchang
ing value.
... this makes it useful for cases
in which you need a constant value com
ing
in from an audio source.
...
in addition, it can be used like a constructible audioparam by automat
ing the value of its offset or by connect
ing another node to it; see controll
ing multiple parameters with constantsourcenode.
...And 18 more matches
DocumentType - Web APIs
the documenttype
interface represents a node conta
ining a doctype.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/nod...
...e" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/documenttype" target="_top"><rect x="266" y="1" width="120" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">documenttype</text></a></svg></div> a:hover text { fill: #0095dd; poi...
...And 18 more matches
FileSystemEntry.moveTo() - Web APIs
the filesystementry
interface's method moveto() moves the file specified by the entry to a new location on the file system, or renames the file if the dest
ination directory is the same as the source.
... there are some typical restrictions on what you can do: a directory can't be moved
into itself.
... an entry can't be moved
into its parent directory unless you specify a new name.
...And 18 more matches
GlobalEventHandlers.onanimationcancel - Web APIs
the onanimationcancel property of the globaleventhandlers mix
in is the eventhandler for process
ing animationcancel events.
... an animationcancel event is sent when a css animation unexpectedly aborts, that is, any time it stops runn
ing without send
ing an animationend event.
... this can happen, for example, when the animation-name is changed such that the animation is removed, or when the animat
ing node is hidden—either directly or because any of its conta
ining nodes are hidden—us
ing css.
...And 18 more matches
HTMLStyleElement - Web APIs
the htmlstyleelement
interface represents a <style> element.
... it
inherits properties and methods from its parent, htmlelement, and from l
inkstyle.
... this
interface doesn't allow to manipulate the css it conta
ins (
in most case).
...And 18 more matches
MediaSession.setActionHandler() - Web APIs
the setactionhandler() property of the mediasession
interface sets an event handler for a media session action.
... these actions let a web app receive notifications when the user engages a device's built-
in physical or onscreen media controls, such as play, stop, or seek buttons.
... syntax navigator.mediasession.setactionhandler(type, callback) parameters type a domstr
ing represent
ing an action type to listen for.
...And 18 more matches
MediaStream - Web APIs
the mediastream
interface represents a stream of media content.
...each track is specified as an
instance of mediastreamtrack.you can obta
in a mediastream object either by us
ing the constructor or by call
ing mediadevices.getusermedia().
... some user agents subclass this
interface to provide more precise
information or functionality, like
in canvascapturemediastream.
...And 18 more matches
Notification.Notification() - Web APIs
note: this feature is available
in web workers.
... the notification() constructor creates a new notification object
instance, which represents a user notification.
... syntax var mynotification = new notification(title, options); parameters title def
ines a title for the notification, which is shown at the top of the notification w
indow.
...And 18 more matches
PaymentRequest - Web APIs
the payment request api's paymentrequest
interface the primary access po
int
into the api, and lets web content and apps accept payments from the end user on behalf of the operator of the site or the publisher of the app.
... paymentrequest.shipp
ingaddress read only secure context if requested via payment options, returns the shipp
ing address chosen by the user for the purposes of calculat
ing shipp
ing.
... this property is only populated if the constructor is called with the requestshipp
ing flag set to true.
...And 18 more matches
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 rema
ining user
interface to be closed.
... syntax completepromise = paymentrequest.complete(result); parameters result optional a domstr
ing
indicat
ing the state of the payment operation upon completion.
... it must be one of the follow
ing: success the payment was successfully processed.
...And 18 more matches
PublicKeyCredentialCreationOptions.extensions - Web APIs
extensions, an optional property of the publickeycredentialcreationoptions dictionary, is an object provid
ing the client extensions and their
input values.
... extensions are values request
ing additional process
ing by the client and by the authenticator.
... for
instance, extensions may be used for: backward compatibility with the legacy fido js api, know
ing the user verification process, etc.
...And 18 more matches
RTCPeerConnection.createAnswer() - Web APIs
the createanswer() method on the rtcpeerconnection
interface creates an sdp answer to an offer received from a remote peer dur
ing the offer/answer negotiation of a webrtc connection.
... the answer conta
ins
information about any media already attached to the session, codecs and options supported by the browser, and any ice candidates already gathered.
... the answer is delivered to the returned promise, and should then be sent to the source of the offer to cont
inue the negotiation process.
...And 18 more matches
SVGCircleElement - Web APIs
the svgcircleelement
interface is an
interface for the <circle> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 700 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 18 more matches
SVGFETurbulenceElement - Web APIs
the svgfeturbulenceelement
interface corresponds to the <feturbulence> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 18 more matches
SVGTextPathElement - Web APIs
the svgtextpathelement
interface corresponds to the <textpath> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 18 more matches
ShadowRoot - Web APIs
the shadowroot
interface of the shadow dom api is the root node of a dom subtree that is rendered separately from a document's ma
in dom tree.
... you can retrieve a reference to an element's shadow root us
ing its element.shadowroot property, provided it was created us
ing element.attachshadow() with the mode option set to open.
... properties shadowroot.delegatesfocus read only returns a boolean that
indicates whether delegatesfocus was set when the shadow was attached (see element.attachshadow()).
...And 18 more matches
SubtleCrypto.deriveBits() - Web APIs
the derivebits() method of the subtlecrypto
interface can be used to derive an array of bits from a base key.
... it takes as its arguments the base key, the derivation algorithm to use, and the length of the bit str
ing to derive.
... it returns a promise which will be fulfilled with an arraybuffer conta
ining the derived bits.
...And 18 more matches
Text - Web APIs
the text
interface represents the textual content of element or attr.
... if an element has no markup with
in its content, it has a s
ingle child implement
ing text that conta
ins the element's text.
... however, if the element conta
ins markup, it is parsed
into
information items and text nodes that form its children.
...And 18 more matches
XRTargetRayMode - Web APIs
the webxr device api enumerated type xrtargetraymode describes the method by an
input controller's target
ing ray is be
ing produced.
... target
ing may be done by look
ing at the target us
ing a gaze-track
ing system, po
int
ing at the target with a hand controller, glove, or motion-track
ing system, or by tapp
ing or click
ing on the target us
ing a f
inger on a screen or with a mouse.
... typically a target ray is drawn from the source of the target
ing system along the target ray
in the direction
in which the user is look
ing or po
int
ing.
...And 18 more matches
<del>: The Deleted Text element - HTML: Hypertext Markup Language
this can be used when render
ing "track changes" or source code diff
information, for example.
... the <
ins> element can be used for the opposite purpose: to
indicate text that has been added to the document.
... the source for this
interactive example is stored
in a github repository.
...And 18 more matches
<ol>: The Ordered List element - HTML: Hypertext Markup Language
the source for this
interactive example is stored
in a github repository.
... 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.
... content categories flow content, and if the <ol> element's children
include at least one <li> element, palpable content.
...And 18 more matches
<picture>: The Picture element - HTML: Hypertext Markup Language
the html <picture> element conta
ins zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
...the selected image is then presented
in the space occupied by the <img> element.
... the source for this
interactive example is stored
in a github repository.
...And 18 more matches
itemtype - HTML: Hypertext Markup Language
the global attribute itemtype specifies the url of the vocabulary that will be used to def
ine itemprop's (item properties)
in the data structure.
... itemscope is used to set the scope of where
in the data structure the vocabulary set by itemtype will be active.
... google and other major search eng
ines support the schema.org vocabulary for structured data.
...And 18 more matches
X-DNS-Prefetch-Control - HTTP
the x-dns-prefetch-control http response header controls dns prefetch
ing, a feature by which browsers proactively perform doma
in name resolution on both l
inks that the user may choose to follow as well as urls for items referenced by the document,
includ
ing images, css, javascript, and so forth.
... this prefetch
ing is performed
in the background, so that the dns is likely to have been resolved by the time the referenced items are needed.
... this reduces latency when the user clicks a l
ink.
...And 18 more matches
X-Frame-Options - HTTP
the x-frame-options http response header can be used to
indicate whether or not a browser should be allowed to render a page
in a <frame>, <iframe>, <embed> or <object>.
... sites can use this to avoid click-jack
ing attacks, by ensur
ing that their content is not embedded
into other sites.
... the added security is provided only if the user access
ing the document is us
ing a browser that supports x-frame-options.
...And 18 more matches
HTMLImageElement.align - Web APIs
the obsolete align property of the htmlimageelement
interface is a str
ing which
indicates how to position the image relative to its conta
iner.
... you should
instead use the css propertiy vertical-align, which does
in fact also work on images despite its name.
... you can also use the float property to float the image to the left or right marg
in.
...And 17 more matches
File drag and drop - Web APIs
html drag and drop
interfaces enable web applications to drag and drop files on a web page.
... this document describes how an application can accept one or more files that are dragged from the underly
ing platform's file manager and dropped on a web page.
... the ma
in steps to drag and drop are to def
ine a drop zone (i.e.
...And 17 more matches
History - Web APIs
the history
interface allows manipulation of the browser session history, that is the pages visited
in the tab or frame that the current page is loaded
in.
... properties the history
interface doesn't
inherit any property.
... length read only returns an
integer represent
ing the number of elements
in the session history,
includ
ing the currently loaded page.
...And 17 more matches
IDBCursor.update() - Web APIs
the update() method of the idbcursor
interface returns an idbrequest object, and,
in a separate thread, updates the value at the current position of the cursor
in the object store.
... if the cursor po
ints to a record that has just been deleted, a new record is created.
... be aware that you can't call update() (or idbcursor.delete()) on cursors obta
ined from idb
index.openkeycursor().
...And 17 more matches
IDBDatabase.createObjectStore() - Web APIs
the createobjectstore() method of the idbdatabase
interface creates and returns a new object store or
index.
... the method takes the name of the store as well as a parameter object that lets you def
ine important optional properties.
... you can use the property to uniquely identify
individual objects
in the store.
...And 17 more matches
IDBRequest.error - Web APIs
the error read-only property of the idbrequest
interface returns the error
in the event of an unsuccessful request.
... note: this feature is available
in web workers.
... syntax var myerror = request.error; value a domerror conta
ining the relevant error.
...And 17 more matches
MediaQueryList - Web APIs
a mediaquerylist object stores
information on a media query applied to a document, with support for both immediate and event-driven match
ing aga
inst the state of the document.
... you can create a mediaquerylist by call
ing matchmedia() on the w
indow object.
... the result
ing object handles send
ing notifications to listeners when the media query state changes (i.e.
...And 17 more matches
Media Session API - Web APIs
it does this by provid
ing metadata for display by the user agent of the media your web app is play
ing, and allows you to create event handlers, to def
ine your own behaviors for a user-agent playback controls.
... the aim of this is allow
ing users to know what's play
ing, and to control it, without open
ing the specific page that launched it.
... media session concepts and usage the mediametadata
interface lets a web site provide rich metadata to the platform ui for media that is play
ing.
...And 17 more matches
Web-based protocol handlers - Web APIs
background it's fairly common to f
ind web pages l
ink to resources us
ing non-http protocols.
... an example is the mailto: protocol: <a href="mailto:webmaster@example.com">web master</a> web authors can use a mailto: l
ink when they want to provide a convenient way for users to send an email, directly from the webpage.
... when the l
ink is activated, the browser should launch the default desktop application for handl
ing email.
...And 17 more matches
NodeList - Web APIs
it can also be converted to a real array us
ing array.from().
...this can be circumvented by us
ing array.prototype.foreach() — see this document's example.
... live nodelists
in some cases, the nodelist is live, which means that changes
in the dom automatically update the collection.
...And 17 more matches
RTCPeerConnection.createDataChannel() - Web APIs
the createdatachannel() method on the rtcpeerconnection
interface creates a new channel l
inked with the remote peer, over which any k
ind of data may be transmitted.
... if the new data channel is the first one added to the connection, renegotiation is started by deliver
ing a negotiationneeded event.
...this str
ing may not be longer than 65,535 bytes.
...And 17 more matches
SVGComponentTransferFunctionElement - Web APIs
the svgcomponenttransferfunctionelement
interface def
ines a base
interface used by the component transfer function
interfaces.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 17 more matches
SVGElement - Web APIs
all of the svg dom
interfaces that correspond directly to elements
in the svg language derive from the svgelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/nod...
...e" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4d...
...And 17 more matches
Slottable - Web APIs
the slottable mix
in def
ines features that allow nodes to become the contents of a <slot> element — the follow
ing features are
included
in both element and text.
... properties slottable.assignedslot read only returns the <slot> the node is
inserted
in.
... specifications specification status comment domthe def
inition of 'slottable'
in that specification.
...And 17 more matches
SubtleCrypto.digest() - Web APIs
the digest() method of the subtlecrypto
interface generates a digest of the given data.
... a digest is a short fixed-length value derived from some variable-length
input.
... cryptographic digests should exhibit collision-resistance, mean
ing that it's hard to come up with two different
inputs that have the same digest value.
...And 17 more matches
SpiderMonkey compartments
compartments are used to create multiple javascript memory heaps, which avoids hav
ing one heap for all javascript objects.
...
in previous versions of spidermonkey, the garbage collector would walk the entire heap of all javascript objects when garbage collection was needed.
...this can result
in significant performance improvements
in some applications.
...And 16 more matches
JSObjectOps.dropProperty
obsolete s
ince javascript 1.8.5this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 16 more matches
JS_ConvertValue
obsolete s
ince jsapi 38this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 16 more matches
JS_SetBranchCallback
obsolete s
ince javascript 1.9.1this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 16 more matches
JS_malloc
syntax void * js_malloc(jscontext *cx, size_t nbytes); void * js_realloc(jscontext *cx, void *p, size_t oldbytes, size_t newbytes); char * js_strdup(jscontext *cx, const char *s); void js_free(jscontext *cx, void *p); name type description cx jscontext * po
inter to a js context.
... if allocation fails, an error is reported
in this context.
... p void * (js_realloc and js_free only) po
inter to a previously allocated region of memory to resize or deallocate.
...And 16 more matches
XPCOM hashtable guide
everyth
ing you need to know is probably on this page.
...it is a lot faster than the xpcom hashtables due to more
inl
ining and templat
ing, and the api is arguably better.
...items are found, added, and removed from the hashtable by us
ing the key.
...And 16 more matches
mozIAsyncHistory
toolkit/components/places/moziasynchistory.idlscriptable this
interface allows you to add multiple visits to a s
ingle url
in a batch.
... 1.0 66
introduced gecko 24.0
inherits from: nsisupports last changed
in gecko 24.0 (firefox 24.0 / thunderbird 24.0 / seamonkey 2.21) implemented by: @mozilla.org/browser/history;1 as a service: var asynchistory = components.classes["@mozilla.org/browser/history;1"] .getservice(components.
interfaces.moziasynchistory); method overview void getplaces
info(
in jsval aplaceidentifiers,
in mozivisit
infocallback acallback); void isurivisited(
in nsiuri auri,
in mozivisitedstatuscallback acallback); void updateplaces(
in moziplace
info, [optional]
in mozivisit
infocallback acallback); methods getplaces
info() starts an asynchronous request to determ
ine whether or not a given uri has been visited; you must implement a callback t...
...void getplaces
info(
in jsval aplaceidentifiers,
in mozivisit
infocallback acallback ); parameters aplaceidentifiers the uri for which to determ
ine the visited status.
...And 16 more matches
mozIPersonalDictionary
extensions/spellcheck/idl/mozipersonaldictionary.idlscriptable this
interface represents a personal dictionary.
... 1.0 66
introduced gecko 1.4.1
inherits from: nsisupports last changed
in gecko 1.7 implemented by: @mozilla.org/spellchecker/personaldictionary;1.
... to access this service, use var personaldictionary = components.classes["@mozilla.org/spellchecker/personaldictionary;1"] .getservice(components.
interfaces.mozipersonaldictionary); method overview void addcorrection(
in wstr
ing word,
in wstr
ing correction,
in wstr
ing lang); void addword(
in wstr
ing word,
in wstr
ing lang); boolean check(
in wstr
ing word,
in wstr
ing lang); void endsession(); void getcorrection(
in wstr
ing word, [array, size_is(count)] out wstr
ing words, out pru
int32 count); void ignoreword(
in wstr
ing word); void load(); void removecorrection(
in wstr
ing word,
in wstr
ing correction,
in wstr
ing lang); void removeword(
in wstr
ing word,
in wstr
ing lang); void save(); attributes attribute type description wordlist nsistr
ing...
...And 16 more matches
nsIChromeRegistry
chrome/public/nsichromeregistry.idlscriptable provides access to the chrome registry; you can use this to get
information about chrome documents that have been registered.
...
inherits from: nsisupports last changed
in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) implemented by: @mozilla.org/chrome/chrome-registry;1 as a service: var chromeregistry = components.classes["@mozilla.org/chrome/chrome-registry;1"] .getservice(components.
interfaces.nsichromeregistry); method overview void canonify(
in nsiuri achromeurl); obsolete s
ince gecko 1.8 void checkfornewchrome(); nsiuri convertchromeurl(
in nsiuri achromeurl); boolean wrappersenabled(
in nsiuri auri); violates the xpcom
interface guidel
ines constants constant value description none 0 partial 1 full 2 methods canonify() obsolete s
ince gecko 1.8 (fi...
...refox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: this method is obsolete; use convertchromeurl()
instead.
...And 16 more matches
nsIClipboard
widget/nsiclipboard.idlscriptable this
interface supports basic clipboard operations such as: sett
ing, retriev
ing, empty
ing, match
ing and support
ing clipboard data.
...
inherits from: nsisupports last changed
in gecko 30.0 (firefox 30.0 / thunderbird 30.0 / seamonkey 2.27) method overview void emptyclipboard(
in long awhichclipboard); void forcedatatoclipboard(
in long awhichclipboard); obsolete s
ince gecko 1.8 void getdata(
in nsitransferable atransferable,
in long awhichclipboard); boolean hasdatamatch
ingflavors([array, size_is(alength)]
in str
ing aflavorlist,
in unsigned long alength,
in long awhichclipboard); void setdata(
in nsitransferable atransferable,
in nsiclipboardowner anowner,
in long awhichclipboard); boolean supportsselectionclipboard(); boolean supportsf
indclipboard(); constants most clipboard operations
in firefox use kglobalclipboard, which is the one also used by th...
... the kselectionclipboard is peculiar to the x w
indows system, where it refers to the primary selection, which is the one that simple mouse selection and middle-click paste operations are us
ing.
...And 16 more matches
nsIDOMStorage
dom/
interfaces/storage/nsidomstorage.idlscriptable this
interface represents the storage space used for session storage
in the dom.
... items stored
in session storage may be accessed by any
interested party
in the same brows
ing context.
... 1.0 66
introduced gecko 1.8.1
inherits from: nsisupports last changed
in gecko 1.9.2 (firefox 3.6 / thunderbird 3.1 / fennec 1.0) a dom w
indow's session storage object can be retrieved from the w
indow's sessionstorage attribute.
...And 16 more matches
nsIDebug
xpcom/base/nsidebug.idlscriptable provides debugg
ing support for scripted languages, such as javascript, java, python, perl, and so forth.
...
inherits from: nsisupports last changed
in gecko 1.7 note: c/c++ consumers who are plann
ing to use the nsidebug
interface with the @mozilla.org/xpcom;1 contract should use ns_debugbreak() from xpcom glue
instead, or alternatively the ns_abort, ns_assertion, ns_break, and ns_warn
ing macros, which also call ns_debugbreak() if used
in a debugg
ing build.
... method overview void abort(
in str
ing afile,
in long al
ine); void assertion(
in str
ing astr,
in str
ing aexpr,
in str
ing afile,
in long al
ine); void break(
in str
ing afile,
in long al
ine); void warn
ing(
in str
ing astr,
in str
ing afile,
in long al
ine); methods abort() requests the process to trigger a fatal abort.
...And 16 more matches
nsIDialogParamBlock
embedd
ing/components/w
indowwatcher/public/nsidialogparamblock.idlscriptable an
interface to pass str
ings,
integers and nsisupports to a dialog.
...
inherits from: nsisupports last changed
in gecko 1.7 method overview pr
int32 get
int(
in pr
int32
inindex ); wstr
ing getstr
ing(
in pr
int32
inindex ); void set
int(
in pr
int32
inindex,
in pr
int32
inint ); void setnumberstr
ings(
in pr
int32
innumstr
ings ); void setstr
ing(
in pr
int32
inindex,
in wstr
ing
instr
ing); attributes attribute type description objects nsimutablearray a place where you can store an nsimutablearray to pass nsisupports.
... methods get
int() get a previously set
integer.
...And 16 more matches
getFile
« xpcom api reference called by the directory service to obta
in an nsifile object correspond
ing for a given standard path location.
... the
individual platform implementation of nsidirectoryserviceprovider maps the symbolic path location passed to this function and returns the appropriate nsifile.
... nsifile getfile(
in str
ing aname, out boolean apersistent ); parameters aname [
in] the symbolic name for a file or directory location.
...And 16 more matches
nsIFrameScriptLoader
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl
inherits from: nsisupports this
interface is used to load frame scripts.
... methods void loadframescript(
in astr
ing aurl,
in boolean aallowdelayedload, [optional]
in boolean arun
inglobalscope) void removedelayedframescript(
in astr
ing aurl); jsval getdelayedframescripts(); loadframescript() load a script
in the remote frame.
... if this function is called on a chromemessagebroadcaster (for example, a global frame message manager or a w
indow message manager) then: loadframescript() will load the frame script
independently
into each applicable frame: every open frame
in the given w
indow for the w
indow message manager, or every frame
in every w
indow for the global message manager if aallowdelayedload is true, then the script will also be loaded
into any applicable new frames opened after the loadframescript() call.
...And 16 more matches
nsIGlobalHistory3
docshell/base/nsiglobalhistory3.idlscriptable this
interface provides
information about global history to gecko.
... 1.0 66
introduced gecko 1.8 obsolete gecko 9.0
inherits from: nsiglobalhistory2 last changed
in gecko 1.9 (firefox 3) this
interface was orig
inally created as part of nsiglobalhistory2, but was split off dur
ing the transition to places.
... method overview void adddocumentredirect(
in nsichannel aoldchannel,
in nsichannel anewchannel,
in pr
int32 aflags,
in boolean atoplevel); unsigned long geturigeckoflags(
in nsiuri auri); void seturigeckoflags(
in nsiuri auri,
in unsigned long aflags); methods adddocumentredirect() notifies the history system that the page load
ing via aoldchannel redirected to anewchannel.
...And 16 more matches
nsIHttpActivityObserver
netwerk/protocol/http/nsihttpactivityobserver.idlscriptable this
interface provides a way for http transport activities to be reported to observers.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void observeactivity(
in nsisupports ahttpchannel,
in pru
int32 aactivitytype,
in pru
int32 aactivitysubtype,
in prtime atimestamp,
in pru
int64 aextrasizedata,
in acstr
ing aextrastr
ingdata); attributes attribute type description isactive boolean true when the
interface is active and should observe http activity, otherwise false.
... activity subtype constants constant value description activity_subtype_request_header 0x5001 the http request is about to be queued for send
ing.
...And 16 more matches
nsIIdleService
1.0 66
introduced gecko 1.9.1
inherits from: nsisupports last changed
in gecko 16 (firefox 16 / thunderbird 16 / seamonkey 2.13) you can get the idle time directly, but
in most cases you will want to register an observer for a predef
ined
interval.
... the observer will get an 'idle' notification when the user is idle for that
interval (or longer), and receive a 'back' (gecko 3 to 15) or 'active' (gecko 16+) notification when the user starts us
ing their computer aga
in.
...
in other words, even if the user is work
ing
in other applications, the idle service will still consider the user to be active.
...And 16 more matches
nsIMacDockSupport
1.0 66
introduced gecko 2.0
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.
... to create an
instance, use: var dock = components.classes["@mozilla.org/widget/macdocksupport;1"] .getservice(components.
interfaces.nsimacdocksupport); see work
ing with the mac os x dock for details and examples.
... method summary void activateapplication(
in boolean aignoreotherapplications); attributes attribute type description badgetext astr
ing text to display
in a badge on the application's dock icon.
...And 16 more matches
nsIMemoryReporterManager
xpcom/base/nsimemoryreporter.idlscriptable a service that provides methods for manag
ing nsimemoryreporter objects.
...
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) implemented by @mozilla.org/memory-reporter-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.
... each code area is identified by a unique path str
ing, which is displayed
in about:memory.
...And 16 more matches
nsIMicrosummaryGenerator
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this
interface provides access to a microsummary that has been
installed
in firefox.
... 1.0 66
introduced gecko 1.8 obsolete gecko 6.0
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) warn
ing: microsummary support was removed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview long calculateupdate
interval(
in nsidomnode apagecontent); boolean equals(
in nsimicrosummarygenerator aother); astr
ing generatemicrosummary(
in nsidomnode apagecontent); attributes attribute type description loaded boolean has the generator itself (which may be a remote resource) been loaded.
... localuri nsiuri for generators
installed by the user or bundled with the browser, the local uri po
ints to the location of the local file conta
ining the generator's xml.
...And 16 more matches
nsIMsgSearchSession
the nsimsgsearchsession
interface allows you to create and manipulate search sessions with
in thunderbird.
... to create an
instance, use: var searchsession = components.classes["@mozilla.org/messenger/searchsession;1"] .create
instance(components.
interfaces.nsimsgsearchsession); to use the
instance append search terms, set the scope, and then call search().
... searchsession.addscopeterm(components.
interfaces.nsmsgsearchscope.offl
inemail, afolder); var searchterm = searchsession.createterm(); var value = searchterm.value; value.str = avalue; searchterm.value = value; searchterm.op = searchsession.booleanor; searchterm.booleanand = false; searchsession.appendterm(searchterm); searchsession.search(null);
inherits from: nsisupports method overview void addsearchterm(
in nsmsgsearchattribvalue attrib,
in nsmsgsearchopvalue op,
in nsimsgsearchvalue value,
in boolean booleanand,
in str
ing arbitraryheader); nsimsgsearchterm createterm(); void appendterm(
in nsimsgsearchterm term); void registerlistener(
in nsimsgsearchnotify listener); void unregisterlistener(
in nsimsgsearchnotify listener); void g...
...And 16 more matches
nsIScriptError2
js/src/xpconnect/idl/nsiscripterror.idlscriptable represents javascript errors and warn
ings for use by the console service; augments nsiscripterror by add
ing a way to
initialize the error with the w
indow id of the outer w
indow with which the error is associated.
... 1.0 66
introduced gecko 2.0 obsolete gecko 12.0
inherits from: nsiscripterror last changed
in gecko 9.0 (firefox 9.0 / thunderbird 9.0 / seamonkey 2.6)
in gecko 12.0 this
interface was merged
into the nsiscripterror
interface.
... method overview void
initwithw
indowid(
in wstr
ing message,
in wstr
ing sourcename,
in wstr
ing sourcel
ine,
in pru
int32 l
inenumber,
in pru
int32 columnnumber,
in pru
int32 flags,
in str
ing category,
in unsigned long long
innerw
indowid); attributes attribute type description
innerw
indowid unsigned long long the
inner w
indow id with which the error is associated.
...And 16 more matches
nsIScriptableUnicodeConverter
this legacy api represents b
inary data us
ing the lower haft of each 16-bit code unit
in a javascript str
ing.
... if the other apis you are read
ing data from or writ
ing data to don't require you to use this legacy representation, you should use textdecoder and textencoder (available to chrome javascript via components.utils.importglobalproperties)
instead of this api.
...
intl/uconv/idl/nsiscriptableuconv.idlscriptable this
interface is a unicode encoder for use by scripts.
...And 16 more matches
nsISelection2
1.0 66
introduced gecko 1.8 obsolete gecko 8.0
inherits from: nsiselection last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0)
in gecko 8.0 this
interface was merged
into the nsiselectionprivate
interface.
... method overview void getrangesfor
interval(
in nsidomnode beg
innode,
in pr
int32 beg
inoffset,
in nsidomnode endnode,
in pr
int32 endoffset,
in prbool allowadjacent, out pru
int32 resultcount, [retval, array, size_is(resultcount)] out nsidomrange results); void getrangesfor
intervalcomarray(
in nsidomnode beg
innode,
in pr
int32 beg
inoffset,
in nsidomnode endnode,
in pr
int32 endoffset,
in prbool allowadjacent,
in rangearray results); native code only!
... void scroll
intoview(
in short aregion,
in boolean aissynchronous,
in short avpercent,
in short ahpercent); attributes attribute type description type short returns the type of the selection (see nsiselectioncontroller for available constants).
...And 16 more matches
nsISocketTransportService
netwerk/base/public/nsisockettransportservice.idlscriptable this
interface provides a mapp
ing between a socket type and its associated socket provider
instance.
...
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) implemented by: @mozilla.org/network/socket-transport-service;1.
... to create an
instance, use: var sockettransportservice = components.classes["@mozilla.org/network/socket-transport-service;1"] .getservice(components.
interfaces.nsisockettransportservice); method overview void attachsocket(
in prfiledescptr afd,
in nsasockethandlerptr ahandler); native code only!
...And 16 more matches
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.
... to create an
instance, use: var xsltprocessor = components.classes["@mozilla.org/document-transformer;1?type=xslt"] .create
instance(components.
interfaces.nsixsltprocessor); method overview void clearparameters(); nsivariant getparameter(
in domstr
ing namespaceuri,
in domstr
ing localname); void importstylesheet(
in nsidomnode style); void removeparameter(
in domstr
ing namespaceuri,
in domstr
ing localname); void reset(); void setparameter(
in domstr
ing namespaceuri,
in domstr
ing 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.
... this will make the processor use the default-value for all parameters as specified
in the stylesheet.
...And 16 more matches
XPCOM ABI
xpcom abi is the b
inary
interface of xpcom components.
... while xpcom components written
in a script
ing language (such as javascript) can be moved across platforms (such as w
indows and os x) without adaptation, those written
in a compiled language (such as c++) require recompilation when mov
ing to a different platform.
... often, compiled xpcom components are called 'b
inary' or 'native'.
...And 16 more matches
nsCOMPtr versus RefPtr
gecko code uses both nscomptr and refptr as smart po
inters.
... general rule of thumb for nscomptr versus refptr the general rule of thumb is to use nscomptr<t> when t is an
interface type, and refptr<t> when t is a concrete type.
... this basic rule derives from the fact that some of the nscomptr<t> code is factored
into the nscomptr_base base class, which stores the underly
ing mrawptr as an nsisupports*.
...And 16 more matches
AudioContext - Web APIs
the audiocontext
interface represents an audio-process
ing graph built from audio modules l
inked together, each represented by an audionode.
... an audio context controls both the creation of the nodes it conta
ins and the execution of the audio process
ing, or decod
ing.
... you need to create an audiocontext before you do anyth
ing else, as everyth
ing happens
inside a context.
...And 16 more matches
RTCRtpSender.replaceTrack() - Web APIs
the rtcrtpsender method replacetrack() replaces the track currently be
ing used as the sender's source with a new mediastreamtrack.
... the new track must be of the same media k
ind (audio, video, etc) and switch
ing the track should not require negotiation.
... among the use cases for replacetrack() is the common need to switch between the rear- and front-fac
ing cameras on a phone.
...And 16 more matches
RTCRtpStreamStats.qpSum - Web APIs
the qpsum property of the rtcrtpstreamstats dictionary is a value generated by add
ing the quantization parameter (qp) values for every frame sent or received to date on the video track correspond
ing to this rtcrtpstreamstats object.
...
in general, the higher this number is, the more heavily compressed the video data is.
... syntax var qpsum = rtcrtpstreamstats.qpsum; value an unsigned 64-bit
integer value which
indicates the sum of the quantization parameter (qp) value for every frame sent or received so far on the track described by the rtcrtpstreamstats object.
...And 16 more matches
ReadableStream.pipeThrough() - Web APIs
the pipethrough() method of the readablestream
interface provides a cha
inable way of pip
ing the current stream through a transform stream or any other writable/readable pair.
... pip
ing a stream will generally lock it for the duration of the pipe, prevent
ing other readers from lock
ing it.
... syntax var transformedstream = readablestream.pipethrough(transformstream[, options]); parameters transformstream a transformstream (or an object with the structure {writable, readable}) consist
ing of a readable stream and a writable stream work
ing together to transform some data from one form to another.
...And 16 more matches
SVGPatternElement - Web APIs
the svgpatternelement
interface corresponds to the <pattern> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 16 more matches
SVGStyleElement - Web APIs
svg style
interface the svgstyleelement
interface corresponds to the svg <style> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 16 more matches
SVGUseElement - Web APIs
svg use dom
interface the svguseelement
interface corresponds to the <use> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 16 more matches
SecurityPolicyViolationEvent - Web APIs
the securitypolicyviolationevent
interface
inherits from event, and represents the event object of an event sent on a document or worker when its content security policy is violated.
... constructor securitypolicyviolationevent() creates a new securitypolicyviolationevent object
instance.
... properties securitypolicyviolationevent.blockeduriread only a usvstr
ing represent
ing the uri of the resource that was blocked because it violates a policy.
...And 16 more matches
TextTrack - Web APIs
the texttrack
interface—part of the api for handl
ing webvtt (text tracks on media presentations)—describes and controls the text track associated with a particular <track> element.
... properties this
interface also
inherits properties from eventtarget.
... texttrack.activecues read only a texttrackcuelist object list
ing the currently active set of text track cues.
...And 16 more matches
Worker.prototype.postMessage() - Web APIs
the postmessage() method of the worker
interface sends a message to the worker's
inner scope.
... this accepts a s
ingle parameter, which is the data to send to the worker.
... the data may be any value or javascript object handled by the structured clone algorithm, which
includes cyclical references.
...And 16 more matches
Worker - Web APIs
the worker
interface of the web workers api represents a background task that can be created via script, which can send messages back to its creator.
... creat
ing a worker is done by call
ing the worker("path/to/worker/script") constructor.
... workers may themselves spawn new workers, as long as those workers are hosted at the same orig
in as the parent page.
...And 16 more matches
WritableStreamDefaultWriter - Web APIs
the writablestreamdefaultwriter
interface of the the streams api is the object returned by writablestream.getwriter() and once created locks the writer to the writablestream ensur
ing that no other streams can write to the underly
ing s
ink.
... constructor writablestreamdefaultwriter() creates a new writablestreamdefaultwriter object
instance.
... properties writablestreamdefaultwriter.closedread only allows you to write code that responds to an end to the stream
ing process.
...And 16 more matches
XRViewerPose - Web APIs
the webxr device api
interface xrviewerpose represents the pose (the position and orientation) of a viewer's po
int of view on the scene.
...this view can represent anyth
ing from the po
int-of-view of a user's xr headset to the viewpo
int represented by a player's movement of an avatar us
ing mouse and keyboard, presented on the screen, to a virtual camera captur
ing the scene for a spectator.
... properties
in addition to the properties
inherited from xrpose, xrviewerpose
includes the follow
ing: views read only an array of xrview objects, one for each viewpo
int on the scene which is needed to represent the scene to the user.
...And 16 more matches
ARIA Screen Reader Implementors Guide - Accessibility
live region markup is a complex area which is somewhat open to
interpretation.
... the follow
ing is
intended to provide implementation guidance that respects screen readers developers' need to try different th
ings.
... the
intention is to strike a balance between provid
ing useful guidance on how to use the markup's
intended mean
ing while support
ing live regions as an area for screen readers to
innovate and compete.
...And 16 more matches
ARIA: figure role - Accessibility
the aria figure role can be used to identify a figure
inside page content where appropriate semantics do not already exist.
... a figure is generally considered to be one or more images, code snippets, or other content that puts across
information
in a different way to a regular flow of text.
... <div role="figure" aria-labelledby="caption"> <img src="image.png" alt="full alternative image description"> <p id="caption">figure 1: the caption</p> </div>
in the above example, we have a figure that consists of two separate content items — an image and a caption.
...And 16 more matches
ARIA: search role - Accessibility
<form role="search"> <!-- search
input --> </form> description the search role is a landmark.
...the search role is added to the conta
iner element that encompasses the items and objects that, as a whole, comb
ine to create search functionality.
... when a <form> is a search form, use the search role
instead of form.
...And 16 more matches
ExtendableEvent - Web APIs
the extendableevent
interface extends the lifetime of the
install and activate events dispatched on the global scope as part of the service worker lifecycle.
... if waituntil() is called outside of the extendableevent handler, the browser should throw an
invalidstateerror; note also that multiple calls will stack up, and the result
ing promises will be added to the list of extend lifetime promises.
... note: the behaviour described
in the above paragraph was fixed
in firefox 43 (see bug 1180274.) this
interface
inherits from the event
interface.
...And 15 more matches
FileSystemDirectoryEntry.removeRecursively() - Web APIs
the filesystemdirectoryentry
interface's method removerecursively() removes the directory as well as all of its content, hierarchically iterat
ing over its entire subtree of descendant files and directories.
... to remove a s
ingle file, or an empty directory, you can also use filesystementry.remove().
... errorcallback optional a function to be called if an error occurs while attempt
ing to remove the directory subtree.
...And 15 more matches
FileSystemFileEntry - Web APIs
the filesystemfileentry
interface of the file system api represents a file
in a file system.
... it offers properties describ
ing the file's attributes, as well as the file() method, which creates a file object that can be used to read the file.
... properties
inherits the properties of its parent
interface, filesystementry, but has no properties unique to this
interface.
...And 15 more matches
FontFace - Web APIs
the fontface
interface represents a s
ingle usable font face.
... it allows control of the source of the font face, be
ing a url to an external resource, or a buffer; it also allows control of when the font face is loaded and its current status.
... properties this
interface doesn't
inherit any property.
...And 15 more matches
GlobalEventHandlers.onanimationiteration - Web APIs
the onanimationiteration property of the globaleventhandlers mix
in is the eventhandler for process
ing animationiteration events.
...an iteration ends when a s
ingle pass through the sequence of animation
instructions is completed by execut
ing the last animation step.
... syntax var animiterationhandler = target.onanimationiteration; target.onanimationiteration = function value a function to be called when an animationiteration event occurs
indicat
ing that a css animation has reached the end of an iteration while runn
ing on the target, where the target object is an html element (htmlelement), document (document), or w
indow (w
indow).
...And 15 more matches
HTMLEmbedElement - Web APIs
the htmlembedelement
interface provides special properties (beyond the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <embed> elements.
... this topic describes the htmlembedelement
interface as def
ined
in the standard.
... it does not address earlier, non-standardized version of the
interface.
...And 15 more matches
HTMLHRElement - Web APIs
the htmlhrelement
interface provides special properties (beyond those of the htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <hr> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 15 more matches
HTMLHtmlElement - Web APIs
the htmlhtmlelement
interface serves as the root node for a given html document.
... this object
inherits the properties and methods described
in the htmlelement
interface.
... you can retrieve the htmlhtmlelement object for a given document by read
ing the value of the document.documentelement property.
...And 15 more matches
HTMLLabelElement - Web APIs
the htmllabelelement
interface gives access to properties specific to <label> elements.
... it
inherits methods and properties from the base htmlelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 15 more matches
Ajax navigation example - Web APIs
to see how it works, please create the follow
ing files (or git clone https://github.com/giabao/mdn-ajax-nav-example.git ): note: for fully
integrat
ing the <form> elements with
in this mechanism, please take a look at the paragraph submitt
ing forms and upload
ing files.
... first_page.php: <?php $page_title = "first page"; $as_json = false; if (isset($_get["view_as"]) && $_get["view_as"] == "json") { $as_json = true; ob_start(); } else { ?> <!doctype html> <html> <head> <?php
include "
include/header.php"; echo "<title>" .
..."</title>"; ?> </head> <body> <?php
include "
include/before_content.php"; ?> <p>this paragraph is shown only when the navigation starts from <strong>first_page.php</strong>.</p> <div id="ajax-content"> <?php } ?> <p>this is the content of <strong>first_page.php</strong>.</p> <?php if ($as_json) { echo json_encode(array("page" => $page_title, "content" => ob_get_clean())); } else { ?> </div> <p>this paragraph is shown only when the navigation starts from <strong>first_page.php</strong>.</p> <?php
include "
include/after_content.php"; echo "</body>\n</html>"; } ?> second_page.php: <?php $page_title = "second page"; $as_json = false; if (isset($_get["view_as"]) && $_get["view_as"] == "json") { $as_json = tr...
...And 15 more matches
IDBDatabaseException - Web APIs
obsolete: this
interface was removed from the specification and was replaced by usage of domexception.
...
in the
indexeddb api, an idbdatabaseexception object represents exception conditions that can be encountered while perform
ing database operations.
... message domstr
ing error message describ
ing the exception raised.
...And 15 more matches
ImageCapture.takePhoto() - Web APIs
the takephoto() method of the imagecapture
interface takes a s
ingle exposure us
ing the video capture device sourc
ing a mediastreamtrack and returns a promise that resolves with a blob conta
ining the data.
... syntax const blobpromise = imagecaptureobj.takephoto([photosett
ings]) parameters photosett
ings optional an object that sets options for the photo to be taken.
... the available options are: filllightmode: the flash sett
ing of the capture device, one of "auto", "off", or "flash".
...And 15 more matches
KeyboardEvent() - Web APIs
syntax event = new keyboardevent(typearg, keyboardevent
init); values typearg is a domstr
ing represent
ing the name of the event.
... keyboardevent
initoptional is a keyboardevent
init dictionary, hav
ing the follow
ing fields: "key", optional and default
ing to "", of type domstr
ing, that sets the value of keyboardevent.key.
... "code", optional and default
ing to "", of type domstr
ing, that sets the value of keyboardevent.code.
...And 15 more matches
KeyboardEvent.getModifierState() - Web APIs
the value must be one of the keyboardevent.key values which represent modifier keys, or the str
ing "accel" .
... modifier keys on
internet explorer ie9 uses "scroll" for "scrolllock" and "w
in" for "os".
... w
indows l
inux (gtk) mac android 2.3 android 3.0 or latter "alt" either alt key or altgr key pressed alt key pressed ⌥ option key pressed alt key or option key pressed "altgraph" both alt and ctrl keys are pressed, or altgr key is pressed level 3 shift key (or level 5 shift key ) pressed ⌥ option key pressed not supported "capslock" dur
ing led for ⇪ caps lock turned on not supported while capslock is locked "control" either ctrl key or altgr key pressed ctrl key pressed control key pressed menu key pressed.
...And 15 more matches
KeyframeEffect.KeyframeEffect() - Web APIs
the keyframeeffect() constructor of the web animations api returns a new keyframeeffect object
instance, and also allows you to clone an exist
ing keyframe effect object
instance.
... syntax var keyframes = new keyframeeffect(element, keyframeset, keyframeoptions); var keyframes = new keyframeeffect(sourcekeyframes); parameters the first type of constructor (see above) creates a completely new keyframeeffect object
instance.
... keyframeoptions optional either an
integer represent
ing the animation's duration (
in milliseconds), or an object conta
ining one or more of the follow
ing: delay optional the number of milliseconds to delay the start of the animation.
...And 15 more matches
RTCSessionDescription() - Web APIs
the rtcsessiondescription() constructor creates a new rtcsessiondescription with its properties
initialized as described
in the specified object.
... this constructor has been deprecated because rtcpeerconnection.setlocaldescription() and other methods which take sdp as
input now directly accept an object conform
ing to the rtcsessiondescription
init dictionary, so you don't have to
instantiate an rtcsessiondescription yourself.
... syntax sessiondescription = new rtcsessiondescription(rtcsessiondescription
init); values rtcsessiondescription
init optional an object provid
ing the default values for the session description; the object conforms to the rtcsessiondescription
init dictionary.
...And 15 more matches
RTCSessionDescription - Web APIs
the rtcsessiondescription
interface describes one end of a connection—or potential connection—and how it's configured.
... each rtcsessiondescription consists of a description type
indicat
ing which part of the offer/answer negotiation process it describes and of the sdp descriptor of the session.
... the process of negotiat
ing a connection between two peers
involves exchang
ing rtcsessiondescription objects back and forth, with each description suggest
ing one comb
ination of connection configuration options that the sender of the description supports.
...And 15 more matches
Resize Observer API - Web APIs
the resize observer api provides a performant mechanism by which code can monitor an element for changes to its size, with notifications be
ing delivered to the observer each time the size changes.
... concepts and usage there are a whole raft of use cases for responsive design techniques (and others besides) that respond to changes
in an element's size, but previously their implementations have often been hacky and/or brittle.
... for example, media queries / w
indow.matchmedia are great for updat
ing layouts at specific po
ints when the viewport changes sizes, but what if you want to change layout
in response to a specific element's size chang
ing, which isn't the outer conta
iner?
...And 15 more matches
SVGFEDisplacementMapElement - Web APIs
the svgfedisplacementmapelement
interface corresponds to the <fedisplacementmap> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 15 more matches
SVGGeometryElement - Web APIs
the svggeometryelement
interface represents svg elements whose render
ing is def
ined by geometry with an equivalent path, and which can be filled and stroked.
... this
includes paths and the basic shapes.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...And 15 more matches
SVGImageElement - Web APIs
the svgimageelement
interface corresponds to the <image> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 15 more matches
SVGMaskElement - Web APIs
the svgmaskelement
interface provides access to the properties of <mask> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 15 more matches
SVGPreserveAspectRatio - Web APIs
svg preserveaspectratio
interface the svgpreserveaspectratio
interface corresponds to the preserveaspectratio attribute, which is available for some of svg's elements.
... an svgpreserveaspectratio object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
...
interface overview also implement none methods none properties unsigned short align unsigned short meetorslice constants svg_preserveaspectratio_unknown = 0 svg_preserveaspectratio_none = 1 svg_preserveaspectratio_xm
inym
in = 2 svg_preserveaspectratio_xmidym
in = 3 svg_preserveaspectratio_xmaxym
in = 4 svg_preserveaspectratio_xm
inymid = 5 svg_preserveaspectratio_xmidymid = 6 svg_preserveaspectratio_xmaxymid = 7 svg_preserveaspectratio_xm
inymax = 8 svg_preserveaspectratio_xmidymax = 9 svg_preserveaspectratio_xmaxymax = 10 svg_meetorslice_unknown = 0 svg_meetorslice_meet = 1 svg_meetorslice_slice = 2 normative document...
...And 15 more matches
SVGRectElement - Web APIs
the svgrectelement
interface provides access to the properties of <rect> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 15 more matches
Screen.lockOrientation() - Web APIs
the lockorientation() method of the screen
interface locks the screen
into a specified orientation.
... the screenorientation.lock() method should be used
instead.
... note: this method only works for
installed web apps or for web pages
in full-screen mode.
...And 15 more matches
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 with
in the dom tree.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/abstractrange" target="_top"><rect x="1" y="1" width="130" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="66" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">abstractrange</text></a><polyl
ine po
ints="131,25 141,20...
... 141,30 131,25" stroke="#d4dde4" fill="none"/><l
ine x1="141" y1="25" x2="171" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/staticrange" target="_top"><rect x="171" y="1" width="110" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="226" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">staticrange</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} constructor staticrange() creates a new staticrange object given the staticrange
init dictionary specify
ing the default values for its properties.
...And 15 more matches
SubtleCrypto.decrypt() - Web APIs
the decrypt() method of the subtlecrypto
interface decrypts some encrypted data.
...it returns a promise which will be fulfilled with the decrypted data (also known as "pla
intext").
... syntax const result = crypto.subtle.decrypt(algorithm, key, data); parameters algorithm is an object specify
ing the algorithm to be used, and any extra parameters as required.
...And 15 more matches
Text.wholeText - Web APIs
the text is concatenated
in document order.
... this allows to specify any text node and obta
in all adjacent text as a s
ingle str
ing.
... syntax str = textnode.wholetext; notes and example suppose you have the follow
ing simple paragraph with
in your webpage (with some whitespace added to aid formatt
ing throughout the code samples here), whose dom node is stored
in the variable para: <p>thru-hik
ing is great!
...And 15 more matches
Touch() - Web APIs
syntax touch = new touch(touch
init); arguments touch
init is a touch
init dictionary, hav
ing the follow
ing fields: "identifier", required, of type long, that is the identification number for the touch po
int.
... "target", required, of type eventtarget, the item at which the touch po
int started when it was first placed on the surface.
... "clientx", optional and default
ing to 0, of type double, that is the horizontal position of the touch on the client w
indow of user's screen, exclud
ing any scroll offset.
...And 15 more matches
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
here is a an example javascript function that pr
ints the security details of an xmlhttprequest sent over ssl.
... the function is passed the channel property of an xmlhttprequest to extract the follow
ing
information: was the connection secure?
... the channel property becomes available only after the request is sent and the connection was established, that is, on readystate loaded,
interactive or completed.
...And 15 more matches
<marker> - SVG: Scalable Vector Graphics
the <marker> element def
ines the graphic that is to be used for draw
ing arrowheads or polymarkers on a given <path>, <l
ine>, <polyl
ine> or <polygon> element.
... markers are attached to shapes us
ing the marker-start, marker-mid, and marker-end properties.
... html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <defs> <!-- arrowhead marker def
inition --> <marker id="arrow" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="6" markerheight="6" orient="auto-start-reverse"> <path d="m 0 0 l 10 5 l 0 10 z" /> </marker> <!-- simple dot marker def
inition --> <marker id="dot" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="5" markerheight="5"> <circle cx="5" cy="5" r="5" fill="red" /> </marker> </defs> <!-- coord
inate axes with a arrowhead
in both direction --> <polyl
ine po
ints="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <!-- data l
ine with polymarkers --> <polyl
ine po
in...
...And 15 more matches
<pattern> - SVG: Scalable Vector Graphics
the <pattern> element def
ines a graphics object which can be redrawn at repeated x- and y-coord
inate
intervals ("tiled") to cover an area.
... html,body,svg { height:100% } <svg viewbox="0 0 230 100" xmlns="http://www.w3.org/2000/svg"> <defs> <pattern id="star" viewbox="0,0,10,10" width="10%" height="10%"> <polygon po
ints="0,0 2,5 0,10 5,8 10,10 8,5 10,0 5,2"/> </pattern> </defs> <circle cx="50" cy="50" r="50" fill="url(#star)"/> <circle cx="180" cy="50" r="40" fill="none" stroke-width="20" stroke="url(#star)"/> </svg> attributes height this attribute determ
ines the height of the pattern tile.
... value type: <url>; default value: none; animatable: yes patterncontentunits this attribute def
ines the coord
inate system for the contents of the <pattern>.
...And 15 more matches
Guides - Archive of obsolete content
this page lists more theoretical
in-depth articles about the sdk.
... contributor's guide gett
ing started learn how to contribute to the sdk: gett
ing the code, open
ing/tak
ing a bug, fil
ing a patch, gett
ing reviews, and gett
ing help.
... modules learn about the module system used by the sdk (which is based on the commonjs specification), how sandboxes and compartments can be used to improve security, and about the built-
in sdk module loader, known as cuddlefish.
...And 14 more matches
hotkeys - Archive of obsolete content
assign hotkey comb
inations to functions
in your add-on.
... usage to def
ine a hotkey comb
ination, create a hotkey object, pass
ing it the comb
ination and a function to be called when the user presses that comb
ination.
... for example, this add-on def
ines two hotkey comb
inations, to show and hide a panel: // def
ine keyboard shortcuts for show
ing and hid
ing a custom panel.
...And 14 more matches
system - Archive of obsolete content
usage query
ing your environment us
ing the system module you can access environment variables (such as path), f
ind out which operat
ing system your add-on is runn
ing on and get
information about the host application (for example, firefox or fennec), such as its version.
... var system = require("sdk/system"); // path environment variable console.log(system.env.path); // operat
ing system console.log("platform = " + system.platform); // processor architecture console.log("architecture = " + system.architecture); // compiler used to build host application console.log("compiler = " + system.compiler); // host application build identifier console.log("build = " + system.build); // host application uuid console.log("id = " + system.id); // host application name console.log("name = " + system.name); // host application version console.log("version = " + system.version); // host application vendor console.log("vendor = " + system.vendor); // host application profile directory console.log("profile directory = " + system.pathfor("profd")); quit the host application t...
... var system = require("sdk/system"); system.exit(); parameters code :
integer to exit with failure, set this to 1.
...And 14 more matches
High-Level APIs - Archive of obsolete content
modules listed on this page implement high-level apis for build
ing add-ons: creat
ing user
interfaces,
interact
ing with the web, and
interact
ing with the browser.
... unless the documentation explicitly says otherwise, all these modules are "stable": we'll avoid mak
ing
incompatible changes to them.
... addon-page create a page that does not conta
in navigational elements.
...And 14 more matches
Add a Context Menu Item - Archive of obsolete content
the item is displayed whenever someth
ing
in the page is selected.
... when it's clicked, the selection is sent to the ma
in add-on code, which just logs it: var contextmenu = require("sdk/context-menu"); var menuitem = contextmenu.item({ label: "log selection", context: contextmenu.selectioncontext(), contentscript: 'self.on("click", function () {' + ' var text = w
indow.getselection().tostr
ing();' + ' self.postmessage(text);' + '});', onmessage: function (selectiontext) { console.log(selectiontext); } }); try it: run the add-on, load a web page, select some text and right-click.
... you should see the new item appear: click it, and the selection is logged to the console (or the shell, if you're runn
ing an
instance of firefox from the command l
ine):
info: elephant
ine lizard details all this add-on does is to construct a context menu item.
...And 14 more matches
Overview - Archive of obsolete content
deprecated
in firefox 29 and removed
in firefox 38.
... warn
ing: this tutorial relies on the s
ince-removed widget api and no longer works with firefox.
...
in particular, for a simple button, try the action button or toggle button apis, and for a more complex widget try the toolbar or sidebar apis.
...And 14 more matches
Progress Listeners - Archive of obsolete content
progress listeners progress listeners allow extensions to be notified of events associated with documents load
ing
in the browser and with tab switch
ing events.
... progress listeners implement the nsiwebprogresslistener
interface.
...
in the examples below the progress listener is attached to the tabbrowser, which means you don't get any notifications for
inactive tabs.
...And 14 more matches
Rosetta - Archive of obsolete content
by default, the only possible standardized script
ing language for html is ecmascript.
... hence, if you are go
ing to use another script
ing language you might expect that most of the browsers will not recognize it.
... also, regard
ing some languages (like c), it is even not well def
ined the mean
ing of part of their semantics
in respect to a scope that is more restricted than the full access to the resources they usually deal with – imag
ine, for example, the mean
ing of a c po
inter with
in a html page!
...And 14 more matches
Code snippets - Archive of obsolete content
all of the
in this page must be executed
in a chrome-privileged console.
...components.utils.import("resource://services-sync/ma
in.js"); // obta
in a reference to the ma
in firefox w
indow.
... let ma
inw
indow = w
indow.query
interface(components.
interfaces.nsi
interfacerequestor) .get
interface(components.
interfaces.nsiwebnavigation) .query
interface(components.
interfaces.nsidocshelltreeitem) .roottreeitem .query
interface(components.
interfaces.nsi
interfacerequestor) .get
interface(components.
interfaces.nsidomw
indow); // obta
in a reference to sync's tabs "eng
ine." let tabseng
ine = weave.service.eng
inemanager.get("tabs"); // iterate over each client hav
ing data.
...And 14 more matches
addDirectory - Archive of obsolete content
adddirectory unpacks an entire directory
into a temporary location.
... method of
install object syntax public
int adddirectory ( str
ing xpisourcepath); public
int adddirectory ( str
ing registryname, str
ing xpisourcepath, object localdirspec, str
ing relativelocalpath); public
int adddirectory ( str
ing registryname, str
ing version, str
ing xpisourcepath, object localdirspec, str
ing relativelocalpath); public
int adddirectory ( str
ing registryname, str
ing version, str
ing xpisourcepath, object localdirspec, str
ing relativelocalpath, boolean forceupdate); public
int adddirectory ( str
ing registryname,
installversion version, str
ing xpisourcepath, object localdirspec, str
ing relativelocalpath, boolean forceupdate); parameters the adddirectory method has the follow
ing parameters: registryna...
...me 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 (beg
inn
ing with a /) or a relative pathname, (not beg
inn
ing with a slash).
...And 14 more matches
getFolder - Archive of obsolete content
summary returns an object represent
ing one of the standard directories.
... method of
install object syntax filespecobject getfolder ( str
ing foldername); filespecobject getfolder ( str
ing foldername, str
ing subdirectory); filespecobject getfolder ( object localdirspec, str
ing subdirectory); parameters the getfolder method has the follow
ing parameters: foldername a str
ing represent
ing one of netscape's standard directories.
...the first set conta
ins platform-
independent locations; the second set conta
ins platform-specific locations.
...And 14 more matches
Additional Template Attributes - Archive of obsolete content
« previousnext » referenc
ing templates all the templates used so far have had the template placed
inside the root element with the datasources attribute.
... however, you may use the template attribute to refer to a template located elsewhere with
in the document.
... this allows you to share the same template among two different parts of the user
interface.
...And 14 more matches
progressmeter - Archive of obsolete content
in addition, an
indeterm
inate progressmeter may be created by sett
ing the mode attribute to undeterm
ined.
... more
information is available
in the xul tutorial.
... attributes max, mode, value properties accessibletype, max, mode, value examples <progressmeter mode="determ
ined" value="82"/> <progressmeter mode="undeterm
ined"/> <!-- switch
ing modes while the mouse is over a button --> <progressmeter mode="determ
ined" id="myprogress"/> <button label="example" onmouseover="setload
ing(true)" onmouseout="setload
ing(false)"/> function setload
ing(state){ document.getelementbyid('myprogress').mode = (state) ?
...And 14 more matches
MediaConfiguration - Web APIs
the mediaconfiguration mediacapabilities dictionary of the media capabilities api describes how media and audio files must be configured, or def
ined, to be passed as a parameter of the mediacapabilities.encod
ing
info() and mediacapabilities.encod
ing
info() methods.
... properties a valid configuration
includes a valid encod
ing configuration type or decod
ing configuration type and a valid audio configuration or video configuration.
... if you plan on query
ing encod
ing
information, set the media type to record or transmission.
...And 14 more matches
MediaElementAudioSourceNode - Web APIs
the mediaelementaudiosourcenode
interface represents an audio source consist
ing of an html5 <audio> or <video> element.
... a mediaelementsourcenode has no
inputs and exactly one output, and is created us
ing the audiocontext.createmediaelementsource() method.
... the amount of channels
in the output equals the number of channels of the audio referenced by the htmlmediaelement used
in the creation of the node, or is 1 if the htmlmediaelement has no audio.
...And 14 more matches
MediaRecorder.onerror - Web APIs
the mediarecorder
interface's onerror event handler is called by the mediastream record
ing api when an error occurs.
... you can provide an event handler to deal with errors that occur while creat
ing or us
ing a media recorder.
... the error object is of type mediarecordererrorevent, and its error property conta
ins a domexception object that describes the error that occurred.
...And 14 more matches
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.
... dom observation does not beg
in immediately; the observe() method must be called first to establish which portion of the dom to watch and what k
inds of changes to watch for.
... the callback function takes as
input two parameters: an array of mutationrecord objects, describ
ing each change that occurred; and the mutationobserver which
invoked the callback.
...And 14 more matches
Navigator.msLaunchUri() - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the mslaunchuri() method is a microsoft extension to the navigator
interface, which starts a service or app, such as an email client, that handles a given protocol.
...And 14 more matches
NavigatorID - Web APIs
the navigatorid
interface conta
ins methods and properties related to the identity of the browser.
... there is no object of type navigatorid, but other
interfaces, like navigator or workernavigator, implement it.
... properties the navigatorid
interface doesn't
inherit any properties.
...And 14 more matches
PannerNode.setOrientation() - Web APIs
the setorientation() method of the pannernode
interface def
ines the direction the audio source is play
ing
in.
... this can have a big effect if the sound is very directional — controlled by the three cone-related attributes pannernode.cone
innerangle, pannernode.coneouterangle, and pannernode.coneouterga
in.
...
in such a case, a sound po
int
ing away from the listener can be very quiet or even silent.
...And 14 more matches
PushManager.subscribe() - Web APIs
the subscribe() method of the pushmanager
interface subscribes to a push service.
... it returns a promise that resolves to a pushsubscription object conta
ining details of a push subscription.
... a new push subscription is created if the current service worker does not have an exist
ing subscription.
...And 14 more matches
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 gather
ing be redone on both ends of the connection.
... this simplifies the process by allow
ing the same method to be used by either the caller or the receiver to trigger an ice restart.
... after restartice() returns, the offer returned by the next call to createoffer() is automatically configured to trigger ice restart on both the local peer (once the local peer has been set) and on the remote peer, once the offer is sent across your signal
ing mechanism and the remote peer has set its description as well.
...And 14 more matches
RTCRtpSender - Web APIs
the rtcrtpsender
interface provides the ability to control and obta
in details about how a particular mediastreamtrack is encoded and sent to a remote peer.
... with it, you can configure the encod
ing used for the correspond
ing track, get
information about the device's media capabilities, and so forth.
... you can also obta
in access to an rtcdtmfsender which can be used to send dtmf codes (to simulate the user press
ing buttons on a telephone's dial pad) to the remote peer.
...And 14 more matches
Request.mode - Web APIs
the mode read-only property of the request
interface conta
ins the mode of the request (e.g., cors, no-cors, same-orig
in, or navigate.) this is used to determ
ine if cross-orig
in requests lead to valid responses, and which properties of the response are readable.
... the associated mode, available values of which are: same-orig
in — if a request is made to another orig
in with this mode set, the result is simply an error.
... you could use this to ensure that a request is always be
ing made to your orig
in.
...And 14 more matches
SVGFEGaussianBlurElement - Web APIs
the svgfegaussianblurelement
interface corresponds to the <fegaussianblur> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 14 more matches
SVGFESpotLightElement - Web APIs
the svgfespotlightelement
interface corresponds to the <fespotlight> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 14 more matches
ScriptProcessorNode - Web APIs
the scriptprocessornode
interface allows the generation, process
ing, or analyz
ing of audio us
ing javascript.
... the scriptprocessornode
interface is an audionode audio-process
ing module that is l
inked to two buffers, one conta
ining the
input audio data, one conta
ining the processed output audio data.
... an event, implement
ing the audioprocess
ingevent
interface, is sent to the object each time the
input buffer conta
ins new data, and the event handler term
inates when it has filled the output buffer with data.
...And 14 more matches
Slottable: assignedSlot - Web APIs
the assignedslot read-only property of the slottable
interface returns an htmlslotelement represent
ing the <slot> element the node is
inserted
in.
... syntax var slotelement = element
instance.assignedslot value an htmlslotelement
instance, or null if the element is not assigned to a slot, or if the associated shadow root was attached with its mode set to closed (see element.attachshadow for further details).
... examples
in our simple-template example (see it live), we create a trivial custom element example called <my-paragraph>
in which a shadow root is attached and then populated us
ing the contents of a template that conta
ins a slot named my-text.
...And 14 more matches
Comparison of Event Targets - Web APIs
event targets it's easy to get confused about which target to exam
ine when writ
ing an event handler.
... there are five targets to consider: property def
ined
in purpose event.target dom event
interface the dom element on the lefthand side of the call that triggered this event, eg: element.dispatchevent(event) event.currenttarget dom event
interface the eventtarget whose eventlisteners are currently be
ing processed.
... as the event captur
ing and bubbl
ing occurs, this value changes.
...And 13 more matches
File - Web APIs
the file
interface provides
information about files and allows javascript
in a web page to access their content.
... file objects are generally retrieved from a filelist object returned as a result of a user select
ing files us
ing the <
input> element, from a drag and drop operation's datatransfer object, or from the mozgetasfile() api on an htmlcanvaselement.
... a file object is a specific k
ind of a blob, and can be used
in any context that a blob can.
...And 13 more matches
FileSystemEntry.getParent() - Web APIs
the filesystementry
interface's method getparent() obta
ins a filesystemdirectoryentry.
...the callback receives a s
ingle
input parameter: a filesystemdirectoryentry object represent
ing the parent directory.
...there's a s
ingle parameter: a fileerror describ
ing what went wrong.
...And 13 more matches
Gamepad - Web APIs
the gamepad
interface of the gamepad api def
ines an
individual gamepad or other controller, allow
ing access to
information such as button presses, axis positions, and id.
... a gamepad object can be returned
in one of two ways: via the gamepad property of the gamepadconnected and gamepaddisconnected events, or by grabb
ing any position
in the array returned by the navigator.getgamepads() method.
... properties gamepad.axes read only an array represent
ing the controls with axes present on the device (e.g.
...And 13 more matches
HTMLIFrameElement.referrerPolicy - Web APIs
the htmliframeelement.referrerpolicy property reflects the html referrerpolicy attribute of the <iframe> element def
ining which referrer is sent when fetch
ing the resource.
...no referrer
information is sent along with requests.
...the url is sent as a referrer when the protocol security level stays the same (http→http, https→https), but isn't sent to a less secure dest
ination (https→http).
...And 13 more matches
HTMLImageElement.complete - Web APIs
the read-only htmlimageelement
interface's complete attribute is a boolean value which
indicates whether or not the image has completely loaded.
... syntax let doneload
ing = htmlimageelement.complete; value a boolean value which is true if the image has completely loaded; otherwise, the value is false.
... the image is considered completely loaded if any of the follow
ing are true: neither the src nor the srcset attribute is specified.
...And 13 more matches
HTMLLIElement - Web APIs
the htmllielement
interface exposes specific properties and methods (beyond those def
ined by regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing list elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 13 more matches
HTMLMediaElement.textTracks - Web APIs
the read-only texttracks property on htmlmediaelement objects returns a texttracklist object list
ing all of the texttrack objects represent
ing the media element's text tracks,
in the same order as
in the list of text tracks.
... you can detect when tracks are added to and removed from an <audio> or <video> element us
ing the addtrack and removetrack events.
...
instead, they're sent to the track list object of the htmlmediaelement that corresponds to the type of track that was added to the element the returned list is live; that is, as tracks are added to and removed from the media element, the list's contents change dynamically.
...And 13 more matches
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 manipulat
ing the layout and presentation of <meter> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 13 more matches
HTMLOListElement - Web APIs
the htmlolistelement
interface provides special properties (beyond those def
ined on the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing ordered list elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 13 more matches
HTMLParamElement - Web APIs
the htmlparamelement
interface provides special properties (beyond those of the regular htmlelement object
interface it
inherits) for manipulat
ing <param> elements, represent
ing a pair of a key and a value that acts as a parameter for an <object> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 13 more matches
IDBKeyRange.bound() - Web APIs
the bound() method of the idbkeyrange
interface creates a new key range with the specified upper and lower bounds.
... the bounds can be open (that is, the bounds exclude the endpo
int values) or closed (that is, the bounds
include the endpo
int values).
... note: this feature is available
in web workers.
...And 13 more matches
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.
... either a key or an idbkeyrange can be passed, allow
ing one or multiple records to be deleted from a store.
... to delete all records
in a store, use idbobjectstore.clear.
...And 13 more matches
Long Tasks API - Web APIs
motivation the experimental long tasks api gives us visibility
into tasks that take 50 milliseconds or more.
... the 50 ms threshold comes from the rail model,
in particular the "response: process events
in under 50 ms" section.
... tasks that block the ma
in thread for 50 ms or more cause, among other issues: delayed "time to
interactive".
...And 13 more matches
MediaKeySession - Web APIs
the mediakeysession
interface of the encryptedmediaextensions api represents a context for message exchange with a content decryption module (cdm).
... properties mediakeysession.closed read only returns a promise signal
ing when a mediakeysession closes.
...clos
ing a session means that licenses and keys associated with it are no longer valid for decrypt
ing media data.
...And 13 more matches
RTCRtpReceiver.getCapabilities() static function - Web APIs
the static function rtcrtpreceiver.getcapabilities() returns an rtcrtpcapabilities object describ
ing the codecs and capabilities supported by rtcrtpreceivers on the current device.
... you can, similarly, obta
in the capabilities of rtcrtpsenders by call
ing the static function rtcrtpsender.getcapabilities().
... syntax let rtpcapabilities = rtcrtpreceiver.getcapabilities(k
ind); parameters k
ind a domstr
ing
indicat
ing the type of media for which you wish to get the device's capability to receive.
...And 13 more matches
RTCRtpSender.getCapabilities() static function - Web APIs
the static function rtcrtpsender.getcapabilities() returns an rtcrtpcapabilities object describ
ing the codecs and capabilities supported by the rtcrtpsender.
... you can, similarly, obta
in the capabilities of rtcrtpreceivers by call
ing the static function rtcrtpreceiver.getcapabilities().
... syntax let rtpcapabilities = rtcrtpsender.getcapabilities(k
ind); parameters k
ind a domstr
ing
indicat
ing the type of media for which you wish to get the sender's capability to receive.
...And 13 more matches
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.
...
in other words, setparameters() updates the configuration of the rtp transmission as well as the encod
ing configuration for a specific media track on the webrtc connection.
... syntax var promise = rtcrtpsender.setparameters(parameters) parameters parameters an object conform
ing with the rtcrtpsendparameters dictionary, specify
ing options for the rtcrtpsender; these
include potential codecs that could be use for encod
ing the sender's track.
...And 13 more matches
RTCRtpTransceiver.direction - Web APIs
the rtcrtptransceiver property direction is a str
ing which
indicates the transceiver's preferred directionality.
... its value must be one of the str
ings def
ined by the rtcrtptransceiverdirection enumeration.
... the transceiver's current direction is
indicated by the currentdirection property.
...And 13 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 pip
ing process completes successfully, or rejects if any errors were encountered.
... pip
ing a stream will generally lock it for the duration of the pipe, prevent
ing other readers from lock
ing it.
... syntax var promise = readablestream.pipeto(dest
ination[, options]); parameters dest
ination a writablestream that acts as the f
inal dest
ination for the readablestream.
...And 13 more matches
ReadableStreamDefaultReader.read() - Web APIs
the read() method of the readablestreamdefaultreader
interface returns a promise provid
ing access to the next chunk
in the stream's
internal queue.
... return value a promise, which fulfills/rejects with a result depend
ing on the state of the stream.
... if the stream becomes closed, the promise will be fulfilled with an object of the form { value: undef
ined, done: true }.
...And 13 more matches
Response - Web APIs
the response
interface of the fetch api represents the response to a request.
... you can create a new response object us
ing the response.response() constructor, but you are more likely to encounter a response object be
ing returned as the result of another api operation—for example, a service worker fetchevent.respondwith, or a simple w
indoworworkerglobalscope.fetch().
... response.ok read only a boolean
indicat
ing whether the response was successful (status
in the range 200–299) or not.
...And 13 more matches
SVGFEColorMatrixElement - Web APIs
the svgfecolormatrixelement
interface corresponds to the <fecolormatrix> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 13 more matches
SVGFECompositeElement - Web APIs
the svgfecompositeelement
interface corresponds to the <fecomposite> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 13 more matches
SVGFEMorphologyElement - Web APIs
the svgfemorphologyelement
interface corresponds to the <femorphology> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 13 more matches
SVGGradientElement - Web APIs
the svggradient
interface is a base
interface used by svgl
ineargradientelement and svgradialgradientelement.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 13 more matches
Selection.setBaseAndExtent() - Web APIs
the setbaseandextent() method of the selection
interface sets the selection to be a range
includ
ing all or parts of two specified dom nodes, and any content located between them.
...so for example, if the value is 0 the whole node is
included.
... if the value is 1, the whole node m
inus the first child node is
included.
...And 13 more matches
SharedWorker() - Web APIs
this script must obey the same-orig
in policy.
... note: there is disagreement among browser manufacturers about whether a data uri is of the same orig
in or not.
... although gecko 10.0 (firefox 10.0 / thunderbird 10.0 / seamonkey 2.7) and later accept data uris, that's not the case
in all other browsers.
...And 13 more matches
SourceBuffer.mode - Web APIs
the mode property of the sourcebuffer
interface controls whether media segments can be appended to the sourcebuffer
in any order, or
in a strict sequence.
... the two available values are: segments: the media segment timestamps determ
ine the order
in which the segments are played.
... the segments can be appended to the sourcebuffer
in any order.
...And 13 more matches
StorageEvent - Web APIs
a storageevent is sent to a w
indow when a storage area it has access to is changed with
in the context of another document.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/storageevent" targe...
...t="_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-basel
ine="middle">storageevent</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} method overview void
initstorageevent(
in domstr
ing type,
in boolean canbubble,
in boolean cancelable,
in domstr
ing key,
in domstr
ing oldvalue,
in domstr
ing newvalue,
in usvstr
ing url,
in storage storagearea ); attributes attribute type description key domstr
ing represents the key changed.
...And 13 more matches
FontFace.display - Web APIs
the display property of the fontface
interface determ
ines how a font face is displayed based on whether and when it is downloaded and ready to use.
... when this property is used, font load
ing has a timel
ine with three periods.
...(see below.) block period the browser
invisibly prepares a fallback font.
...And 12 more matches
FormData - Web APIs
the formdata
interface provides a way to easily construct a set of key/value pairs represent
ing form fields and their values, which can then be easily sent us
ing the xmlhttprequest.send() method.
... it uses the same format a form would use if the encod
ing type were set to "multipart/form-data".
... you can also pass it directly to the urlsearchparams constructor if you want to generate query parameters
in the way a <form> would do if it were us
ing simple get submission.
...And 12 more matches
GlobalEventHandlers.ontransitioncancel - Web APIs
the ontransitioncancel property of the globaleventhandlers mix
in is an eventhandler that processes transitioncancel events.
...by mov
ing the mouse off a hover-transition
ing element.
... syntax var transitioncancelhandler = target.ontransitioncancel; target.ontransitioncancel = function value a function to be called when a transitioncancel event occurs
indicat
ing that a css transition has been cancelled on the target, where the target object is an html element (htmlelement), document (document), or w
indow (w
indow).
...And 12 more matches
HTMLBaseElement - Web APIs
the htmlbaseelement
interface conta
ins the base uri for a document.
... this object
inherits all of the properties and methods as described
in the htmlelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 12 more matches
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 select
ing from the list.
... note: this
interface is called htmlcollection for historical reasons (before the modern dom, collections implement
ing this
interface could only have html elements as their items).
... an htmlcollection
in the html dom is live; it is automatically updated when the underly
ing document is changed.
...And 12 more matches
HTMLDialogElement - Web APIs
the htmldialogelement
interface provides methods to manipulate <dialog> elements.
... it
inherits properties and methods from the htmlelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/htmldialogelement" target="_top"><rect x="1" y="1" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="86" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">htmldialogelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties
inherits properties from its parent, htmlelement.
...And 12 more matches
HTMLElement.dir - Web APIs
the htmlelement.dir property gets or sets the text writ
ing directionality of the content of the current element.
... the text writ
ing directionality of an element is which direction that text goes (for support of different language systems).
... arabic languages and hebrew are typical languages us
ing the rtl directionality.
...And 12 more matches
HTMLHeadElement - Web APIs
the htmlheadelement
interface conta
ins the descriptive
information, or metadata, for a document.
... this object
inherits all of the properties and methods described
in the htmlelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 12 more matches
HTMLImageElement.naturalWidth - Web APIs
the htmlimageelement
interface's read-only naturalwidth property returns the
intr
insic (natural), density-corrected width of the image
in css pixels.
... this is the width the image is if drawn with noth
ing constra
ining its width; if you neither specify a width for the image nor place the image
inside a conta
iner that limits or expressly specifies the image width, this is the number of css pixels wide the image will be.
... the correspond
ing naturalheight method returns the natural height of the image.
...And 12 more matches
HTMLKeygenElement - Web APIs
note: this page describes the keygen element
interface as specified, not as currently implemented by gecko.
... the <keygen> elements expose the htmlkeygenelement
interface, which provides special properties and methods (beyond the regular element object
interface they also have available to them by
inheritance) for manipulat
ing the layout and presentation of keygen elements.
... properties autofocus is a boolean that reflects the autofocus html attribute,
indicat
ing that the form control should have
input focus when the page loads.
...And 12 more matches
HTMLSourceElement - Web APIs
the htmlsourceelement
interface provides special properties (beyond the regular htmlelement object
interface it also has available to it by
inheritance) for manipulat
ing <source> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 12 more matches
HTMLVideoElement.videoHeight - Web APIs
the htmlvideoelement
interface's read-only videoheight property
indicates the
intr
insic height of the video, expressed
in css pixels.
...
in simple terms, this is the height of the media
in its natural size.
... see about
intr
insic width and height for more details.
...And 12 more matches
HTMLVideoElement.videoWidth - Web APIs
the htmlvideoelement
interface's read-only videowidth property
indicates the
intr
insic width of the video, expressed
in css pixels.
...
in simple terms, this is the width of the media
in its natural size.
... see about
intr
insic width and height for more details.
...And 12 more matches
IDBCursor.delete() - Web APIs
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 chang
ing the cursor's position.
... be aware that you can't call delete() (or idbcursor.update()) on cursors obta
ined from idb
index.openkeycursor().
... for such needs, you have to use idb
index.opencursor()
instead.
...And 12 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.
... this is for retriev
ing specific records from an object store.
... note: this method produces the same result for: a) a record that doesn't exist
in the database and b) a record that has an undef
ined value.
...And 12 more matches
PublicKeyCredentialRequestOptions - Web APIs
the publickeycredentialrequestoptions dictionary of the web authentication api holds the options passed to navigator.credentials.get()
in order to fetch a given publickeycredential.
... properties publickeycredentialrequestoptions.challenge a buffersource, emitted by the rely
ing party's server and used as a cryptographic challenge.
... publickeycredentialrequestoptions.timeout optional a numerical h
int,
in milliseconds, which
indicates the time the caller is will
ing to wait for the retrieval operation to complete.
...And 12 more matches
PushEvent - Web APIs
the pushevent
interface of the push api represents a push message that has been received.
...it conta
ins the
information sent from an application server to a pushsubscription.
... properties
inherits properties from its parent, extendableevent.
...And 12 more matches
RTCDataChannel: error event - Web APIs
bubbles yes cancelable no
interface rtcerrorevent event handler property onerror the rtcerrorevent object provides details about the error that occurred; see that article for details.
... examples // str
ings for each of the sctp cause codes found
in rfc // 4960, section 3.3.10: // https://tools.ietf.org/html/rfc4960#section-3.3.10 const sctpcausecodes = [ "no sctp error", "
invalid stream identifier", "miss
ing mandatory parameter", "stale cookie error", "sender is out of resource (i.e., memory)", "unable to resolve address", "unrecognized sctp chunk type received", "
invalid mandatory parameter", "unrecognized parameters", "no user data (sctp data chunk has no data)", "cookie received while shutt
ing down", "restart of an association with new addresses", "user-
initiated abort", "protocol violation" ]; dc.addeventlistener("error", ev => { const err = ev.error; console.error("webrtc error: ", err.message); // handle specific error detail ty...
...pes switch(err.errordetail) { case "sdp-syntax-error": console.error(" sdp syntax error
in l
ine ", err.sdpl
inenumber); break; case "idp-load-failure": console.error(" identity provider load failure: http error ", err.httprequeststatuscode); break; case "sctp-failure": if (err.sctpcausecode < sctpcausecodes.length) { console.error(" sctp failure: ", err.sctpcausecode); } else { console.error(" unknown sctp error"); } break; case "dtls-failure": if (err.receivedalert) { console.error(" received dlts failure alert: ", err.receivedalert); } if (err.sentalert) { console.error(" sent dlts failure alert: ", err.receivedalert); } break...
...And 12 more matches
RTCError - Web APIs
the rtcerror
interface describes an error which has occurred while handl
ing webrtc operations.
... it's based upon the standard domexception
interface that describes general dom errors.
... constructor rtcerror() creates and returns a new rtcerror object
initialized with the properties of the provided rtcerror
init dictionary and, optionally, a str
ing to use as the value of the error's message property.
...And 12 more matches
RTCErrorEvent.error - Web APIs
the read-only rtcerrorevent property error conta
ins an rtcerror object describ
ing the details of the error which the event is announc
ing.
... syntax let error
info = rtcerrorevent.error; value an rtcerror object whose properties provide details about the error which has occurred
in the context of a webrtc operation.
... s
ince rtcerror is based upon domexception, it
includes those properties.
...And 12 more matches
RTCIceServer - Web APIs
the rtciceserver dictionary def
ines how to connect to a s
ingle ice server (such as a stun or turn server).
... objects of this type are provided
in the configuration of an rtcpeerconnection,
in the iceservers array.
... properties credential optional the credential to use when logg
ing
into the server.
...And 12 more matches
RTCPeerConnection() - Web APIs
syntax pc = new rtcpeerconnection([configuration]); parameters configuration optional an rtcconfiguration dictionary provid
ing options to configure the new connection.
...if this value isn't
included
in the dictionary, "balanced" is assumed.
...if this property isn't specified, a set of certificates is generated automatically for each rtcpeerconnection
instance.
...And 12 more matches
RTCPeerConnection.iceConnectionState - Web APIs
you can detect when this value has changed by watch
ing for the iceconnectionstatechange event.
...the value is one of the str
ings
in the rtciceconnectionstate enum.
... rtciceconnectionstate enum the rtciceconnectionstate enum def
ines the str
ing constants used to describe the current state of the ice agent and its connection to the ice server (that is, the stun or turn server).
...And 12 more matches
RTCRtpTransceiver.setCodecPreferences() - Web APIs
the rtcrtptransceiver method setcodecpreferences() configures the transceiver's codecs given a list of rtcrtpcodeccapability objects specify
ing the new preferences for each codec.
... the specified set of codecs and configurations will be used for all future connections
includ
ing this transceiver until this method is called aga
in.
... when prepar
ing to open an rtcpeerconnection, you can change the codec parameters from the user agent's default configuration by call
ing setcodecparameters() before call
ing either rtcpeerconnection.createoffer() or createanswer().
...And 12 more matches
RTCTrackEvent - Web APIs
the webrtc api
interface rtctrackevent represents the track event, which is sent when a new mediastreamtrack is added to an rtcrtpreceiver which is part of the rtcpeerconnection.
... the target is the rtcpeerconnection object to which the track is be
ing added.
... this event is sent by the webrtc layer to the web site or application, so you will not typically need to
instantiate an rtctrackevent yourself.
...And 12 more matches
ReadableStream.getReader() - Web APIs
the getreader() method of the readablestream
interface creates a reader and locks the stream to it.
... syntax var reader = readablestream.getreader({mode}); parameters {mode} optional an object conta
ining a property mode, which takes as its value a domstr
ing specify
ing the type of reader to create.
... values can be: "byob", which results
in a readablestreambyobreader be
ing created that can read readable byte streams (i.e.
...And 12 more matches
SVGFEBlendElement - Web APIs
the svgfeblendelement
interface corresponds to the <feblend> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 12 more matches
SVGPathSeg - Web APIs
svg path segment
interface this is a base
interface that corresponds to a s
ingle command with
in a path data specification.
...
interface overview also implement none methods none properties unsigned short pathsegtype domstr
ing pathsegtypeasletter constants pathseg_unknown = 0 pathseg_closepath = 1 pathseg_moveto_abs = 2 pathseg_moveto_rel = 3 pathseg_l
ineto_abs = 4 pathseg_l
ineto_rel = 5 pathseg_curveto_cubic_abs = 6 pathseg_curveto_cubic_rel = 7 pathseg_curveto_quadratic_abs = 8 pathseg_curveto_quadratic_rel = 9 pathseg_arc_abs = 10 ...
... pathseg_arc_rel = 11 pathseg_l
ineto_horizontal_abs = 12 pathseg_l
ineto_horizontal_rel = 13 pathseg_l
ineto_vertical_abs = 14 pathseg_l
ineto_vertical_rel = 15 pathseg_curveto_cubic_smooth_abs = 16 pathseg_curveto_cubic_smooth_rel = 17 pathseg_curveto_quadratic_smooth_abs = 18 pathseg_curveto_quadratic_smooth_rel = 19 normative document svg 1.1 (2nd edition) constants name value description pathseg_unknown 0 the unit type is not one of predef
ined types.
...And 12 more matches
Screen - Web APIs
the screen
interface represents a screen, usually the one on which the current w
indow is be
ing rendered, and is obta
ined us
ing w
indow.screen.
... note that browsers determ
ine which screen to report as current by detect
ing which screen has the center of the browser w
indow.
... properties screen.availtop specifies the y-coord
inate of the first pixel that is not allocated to permanent or semipermanent user
interface features.
...And 12 more matches
SecurityPolicyViolationEvent.SecurityPolicyViolationEvent() - Web APIs
the securitypolicyviolationevent constructor creates a new securitypolicyviolationevent object
instance.
... syntax let spvevt = new securitypolicyviolationevent(type, event
initdict); properties type a domstr
ing represent
ing the type of security policy violation that occurred.
... event
initdict optional a dictionary object conta
ining
information about the properties of the securitypolicyviolationevent to be constructed.
...And 12 more matches
DeprecationReportBody - Web APIs
the deprecationreportbody
interface of the report
ing api represents the body of a deprecation report (the return value of its report.body property).
...a deprecated api method) is used on a document be
ing observed by a report
ingobserver.
... properties id a str
ing represent
ing the deprecated feature that generated the report, for example navigatorgetusermedia.
...And 11 more matches
Document.createElement() - Web APIs
in an html document, the document.createelement() method creates the html element specified by tagname, or an htmlunknownelement if tagname isn't recognized.
... syntax let element = document.createelement(tagname[, options]); parameters tagname a str
ing that specifies the type of element to be created.
... the nodename of the created element is
initialized with the value of tagname.
...And 11 more matches
Document.createElementNS() - Web APIs
to create an element without specify
ing a namespace uri, use the createelement() method.
... syntax var element = document.createelementns(namespaceuri, qualifiedname[, options]); parameters namespaceuri a str
ing that specifies the namespace uri to associate with the element.
... the namespaceuri property of the created element is
initialized with the value of namespaceuri.
...And 11 more matches
DocumentOrShadowRoot.activeElement - Web APIs
the activeelement read-only property of the document and shadowroot
interfaces returns the element with
in the dom or shadow dom tree that currently has focus.
... often activeelement will return a html
inputelement or htmltextareaelement object if it has the text selection at the time.
... if so, you can get more detail by us
ing the object's selectionstart and selectionend properties.
...And 11 more matches
Element.getElementsByClassName() - Web APIs
the element method getelementsbyclassname() returns a live htmlcollection which conta
ins every descendant element which has the specified class name or names.
... the method getelementsbyclassname() on the document
interface works essentially the same way, except it acts on the entire document, start
ing at the document root.
... syntax var elements = element.getelementsbyclassname(names); parameters names a domstr
ing conta
ining one or more class names to match on, separated by whitespace.
...And 11 more matches
Element: mousedown event - Web APIs
the mousedown event is fired at an element when a po
int
ing device button is pressed while the po
inter is
inside the element.
... note: this differs from the click event
in that click is fired after a full click action occurs; that is, the mouse button is pressed and released while the po
inter rema
ins
inside the same element.
... mousedown is fired the moment the button is
initially pressed.
...And 11 more matches
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.
... the event cont
inues to propagate as usual, unless one of its event listeners calls stoppropagation() or stopimmediatepropagation(), either of which term
inates propagation at once.
... as noted below, call
ing preventdefault() for a non-cancelable event, such as one dispatched via eventtarget.dispatchevent(), without specify
ing cancelable: true has no effect.
...And 11 more matches
FileSystemEntry.getMetadata() - Web APIs
} the filesystementry
interface's method getmetadata() obta
ins a metadata object with
information about the file system entry, such as its modification date and time and its size.
...receives a s
ingle
input parameter: a metadata object with
information about the file.
... errorcallback optional an optional callback which is executed if an error occurs while look
ing up the metadata.
...And 11 more matches
FileSystemEntry.remove() - Web APIs
the filesystementry
interface's method remove() deletes the file or directory from the file system.
... to recursively remove a directory as well as all of its contents and its subdirectories, call filesystemdirectoryentry.removerecursively()
instead.
... return value undef
ined.
...And 11 more matches
HTMLCanvasElement.toDataURL() - Web APIs
the htmlcanvaselement.todataurl() method returns a data uri conta
ining a representation of the image
in the format specified by the type parameter (defaults to png).
... the returned image is
in a resolution of 96 dpi.
... if the height or width of the canvas is 0 or larger than the maximum canvas size, the str
ing "data:," is returned.
...And 11 more matches
HTMLFormElement: submit event - Web APIs
bubbles yes (although specified as a simple event that doesn't bubble) cancelable yes
interface submitevent event handler property globaleventhandlers.onsubmit note that the submit event fires on the <form> element itself, and not on any <button> or <
input type="submit">
inside it.
... however, the submitevent which is 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.
... the submit event fires when the user clicks a submit button (<button> or <
input type="submit">) or presses enter while edit
ing a field (e.g.
...And 11 more matches
HTMLImageElement.naturalHeight - Web APIs
the htmlimageelement
interface's naturalheight property is a read-only value which returns the
intr
insic (natural), density-corrected height of the image
in css pixels.
... this is the height the image is if drawn with noth
ing constra
ining its height; if you don't specify a height for the image, or place the image
inside a conta
iner that either limits or expressly specifies the image height, it will be rendered this tall.
... syntax let naturalheight = htmlimageelement.naturalheight; value an
integer value
indicat
ing the
intr
insic height,
in css pixels, of the image.
...And 11 more matches
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 manipulat
ing the layout and presentation of <progress> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 11 more matches
HTMLTitleElement - Web APIs
the htmltitleelement
interface conta
ins the title for a document.
... this element
inherits all of the properties and methods of the htmlelement
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 11 more matches
HTMLUListElement - Web APIs
the htmlulistelement
interface provides special properties (beyond those def
ined on the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing unordered list elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 11 more matches
Report - Web APIs
the report
interface of the report
ing api represents a s
ingle report.
... reports can be accessed
in a number of ways: via the report
ingobserver.takerecords() method — this returns all reports
in an observer's report queue, and then empties the queue.
... via the reports parameter of the callback function passed
into the report
ingobserver() constructor upon creation of a new observer
instance.
...And 11 more matches
ResizeObserver - Web APIs
the resizeobserver
interface reports changes to the dimensions of an element's content or border box, or the bound
ing box of an svgelement.
... note: the content box is the box
in which content can be placed, mean
ing the border box m
inus the padd
ing and border width.
... the border box encompasses the content, padd
ing, and border.
...And 11 more matches
SVGEllipseElement - Web APIs
the svgellipseelement
interface provides access to the properties of <ellipse> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 11 more matches
SVGRadialGradientElement - Web APIs
the svgradialgradientelement
interface corresponds to the <radialgradient> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 11 more matches
Selection.modify() - Web APIs
the selection.modify() method applies a change to the current selection or cursor position, us
ing simple textual commands.
... direction the direction
in which to adjust the current selection.
... you can specify "forward" or "backward" to adjust
in the appropriate direction based on the language at the selection po
int.
...And 11 more matches
ServiceWorker - Web APIs
the serviceworker
interface of the serviceworker api provides a reference to a service worker.
... multiple brows
ing contexts (e.g.
... a serviceworker object is available
in the serviceworkerregistration.active property, and the serviceworkerconta
iner.controller property — this is a service worker that has been activated and is controll
ing the page (the service worker has been successfully registered, and the controlled page has been reloaded.) the serviceworker
interface is dispatched a set of lifecycle events —
install and activate — and functional events
includ
ing fetch.
...And 11 more matches
SharedWorker - Web APIs
the sharedworker
interface represents a specific k
ind of worker that can be accessed from several brows
ing contexts, such as several w
indows, iframes or even workers.
... they implement an
interface different than dedicated workers and have a different global scope, sharedworkerglobalscope.
... note: if sharedworker can be accessed from several brows
ing contexts, all those brows
ing contexts must share the exact same orig
in (same protocol, host and port).
...And 11 more matches
StereoPannerNode - Web APIs
the stereopannernode
interface of the web audio api represents a simple stereo panner node that can be used to pan an audio stream left or right.
... it is an audionode audio-process
ing module that positions an
incom
ing audio stream
in a stereo image us
ing a low-cost equal-power pann
ing algorithm.
...this
interface was
introduced as a much simpler way to apply a simple pann
ing effect than hav
ing to use a full pannernode.
...And 11 more matches
TextDecoder - Web APIs
the textdecoder
interface represents a decoder for a specific text encod
ing, such as utf-8, iso-8859-2, koi8-r, gbk, etc.
... a decoder takes a stream of bytes as
input and emits a stream of code po
ints.
... examples represent
ing text with typed arrays this example shows how to decode a ch
inese/japanese character , as represented by five different typed arrays: u
int8array,
int8array, u
int16array,
int16array, and
int32array.
...And 11 more matches
Vibration API - Web APIs
most modern mobile devices
include vibration hardware, which lets software code provide physical feedback to the user by caus
ing the device to shake.
... the vibration api offers web apps the ability to access this hardware, if it exists, and does noth
ing if the device doesn't support it.
... describ
ing vibrations vibration is described as a pattern of on-off pulses, which may be of vary
ing lengths.
...And 11 more matches
Compressed texture formats - Web APIs
these are useful to
increase texture detail while limit
ing the additional video memory necessary.
... by default, no compressed formats are available: a correspond
ing compressed texture format extension must first be enabled.
... if supported, textures can be stored
in a compressed format
in video memory.
...And 11 more matches
self.createImageBitmap() - Web APIs
the createimagebitmap() method creates a bitmap from a given source, optionally cropped to conta
in only a portion of that source.
... the method exists on the global scope
in both w
indows and workers.
... sx the x coord
inate of the reference po
int of the rectangle from which the imagebitmap will be extracted.
...And 11 more matches
WritableStream.getWriter() - Web APIs
the getwriter() method of the writablestream
interface returns a new
instance of writablestreamdefaultwriter and locks the stream to that
instance.
... return value a writablestreamdefaultwriter object
instance.
... exceptions typeerror the stream you are try
ing to create a writer for is not a writablestream.
...And 11 more matches
WritableStreamDefaultWriter.write() - Web APIs
the write() property of the writablestreamdefaultwriter
interface writes a passed chunk of data to a writablestream and its underly
ing s
ink, then returns a promise that resolves to
indicate the success or failure of the write operation.
... note that what "success" means is up to the underly
ing s
ink; it might
indicate simply that the chunk has been accepted, and not necessarily that it is safely saved to its ultimate dest
ination.
... syntax var promise = writablestreamdefaultwriter.write(chunk); parameters chunk a block of b
inary data to pass to the writablestream.
...And 11 more matches
XRRigidTransform - Web APIs
the xrrigidtransform is a webxr api
interface that represents the 3d geometric transform described by a position and orientation.
... xrrigidtransform is used to specify transforms throughout the webxr apis,
includ
ing: the offset and orientation relative to the parent reference space to use when creat
ing a new reference space with getoffsetreferencespace().
... the xrreferencespaceevent event's transform property, as found
in the reset event received by an xrreferencespace.
...And 11 more matches
Components.isSuccessCode
summary determ
ines whether a given xpcom return code (that is, an nsresult value)
indicates the success or failure of an operation, return
ing true or false respectively.
... description components.issuccesscode() may be used to determ
ine whether an xpcom return code (an nsresult)
indicates success or failure.
... an xpcom return code
indicates success if its high-order bit is 0, and it
indicates failure if its high-order bit is 1.
...And 10 more matches
Components.utils.importGlobalProperties
imports various objects
into a system scope.
... system scopes such as jsms and frame scripts don't have certa
in objects, such as
indexeddb and xmlhttprequest, that are available to dom w
indow globals.
... us
ing this api you can import these objects
into such a system scope.
...And 10 more matches
Components.utils.waiveXrays
waives xray vision for an object, giv
ing the caller a transparent wrapper to the underly
ing object.
... when privileged javascript
in gecko accesses objects belong
ing to less-privileged code (such as untrusted web content), it does so, by default, with "xray vision": a mechanism that filters out certa
in changes to the objects that could cause them to behave
in unexpected ways.
... for example, privileged code us
ing an xray to a dom object sees only the orig
inal, native version of the dom object.
...And 10 more matches
PyXPCOM
pyxpcom allows for communication between python and xpcom, such that a python application can access xpcom objects, and xpcom can access any python class that implements an xpcom
interface.
... pyxpcom is actively used
in activestate komodo products, for example.
...mozilla def
ines many external
interfaces available to embeddors and component developers.
...And 10 more matches
mozIStorageVacuumParticipant
/storage/public/mozistoragevacuumparticipant.idlscriptable components can implement this
interface to provide
information to allow a database to be periodically vacuumed by the storage service.
... 1.0 66
introduced gecko 2.0
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to create an
instance of this
interface, use the category manger, with the category "vacuum-participant".
...method overview boolean onbeg
invacuum(); void onendvacuum(
in boolean asucceeded); attributes attribute type description databaseconnection mozistorageconnection a connection to the database file to be vacuumed.
...And 10 more matches
nsIAsyncStreamCopier
netwerk/base/public/nsiasyncstreamcopier.idlscriptable this
interface is used to copy the contents of one stream to another.
...
inherits from: nsirequest last 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 nsi
inputstream asource,
in nsioutputstream as
ink,
in nsieventtarget atarget,
in boolean asourcebuffered,
in boolean as
inkbuffered,
in unsigned long achunksize,
in boolean aclosesource,
in boolean acloses
ink); methods asynccopy() starts the copy operation.
...void asynccopy(
in nsirequestobserver aobserver,
in nsisupports aobservercontext ); parameters aobserver receives notifications.
...And 10 more matches
nsICookie
an optional
interface for access
ing the http or javascript cookie object.
... last changed
in gecko 1.7
inherits from: nsisupports attributes attribute type description expires pru
int64 expiration time
in seconds s
ince midnight (00:00:00), january 1, 1970 utc.
... host autf8str
ing the host (possibly fully qualified) of the cookie.
...And 10 more matches
nsIDNSRecord
netwerk/dns/nsidnsrecord.idlscriptable this
interface represents the result of a dns lookup.
... s
ince a dns query may return more than one resolved ip address, the record acts like an enumerator, allow
ing the caller to easily step through the list of ip addresses.
...
inherits from: nsisupports last changed
in gecko 1.7 method overview prnetaddr getnextaddr(
in pru
int16 aport); native code only!
...And 10 more matches
nsIDictionary
extensions/xml-rpc/idl/nsidictionary.idlscriptable a simple mutable table of objects, ma
inta
ined as key/value pairs.
... objects can be located and managed by referenc
ing them by key.
... 66
introduced gecko 1.0 obsolete gecko 1.9.1
inherits from: nsisummary last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: this
interface was removed
in firefox 3.5; use dict.jsm
instead.
...And 10 more matches
nsIDragSession
widget/public/nsidragsession.idlscriptable provides support for
interact
ing with an ongo
ing drag session dur
ing a drag and drop operation.
...
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void getdata(
in nsitransferable atransferable,
in unsigned long aitem
index ); boolean isdataflavorsupported(
in str
ing adataflavor ); attributes attribute type description candrop boolean set the current state of the drag, whether it can be dropped or not.
... dragaction unsigned long sets the action (copy, move, l
ink and so on) for the current drag.
...And 10 more matches
nsIEnvironment
inherits from: nsisupports last changed
in gecko 1.7 implemented by: @mozilla.org/process/environment;1 as a service: var env = components.classes["@mozilla.org/process/environment;1"].
... getservice(components.
interfaces.nsienvironment); method overview void set(
in astr
ing aname,
in astr
ing avalue); astr
ing get(
in astr
ing aname); boolean exists(
in astr
ing aname); methods set() set the value of an environment variable.
... void set(
in astr
ing aname,
in astr
ing avalue ); parameters aname the variable name to set.
...And 10 more matches
nsIExternalHelperAppService
uriloader/exthandler/nsiexternalhelperappservice.idlscriptable the external helper app service is used for f
ind
ing and launch
ing platform specific external applications for a given mime content type.
...
inherits from: nsisupports last changed
in gecko 1.7 implemented by: @mozilla.org/uriloader/external-helper-app-service;1.
... to access this service, use: var externalhelperappservice = components.classes["@mozilla.org/uriloader/external-helper-app-service;1"] .getservice(components.
interfaces.nsiexternalhelperappservice); method overview boolean applydecod
ingforextension(
in autf8str
ing aextension,
in acstr
ing aencod
ingtype); nsistreamlistener docontent(
in acstr
ing amimecontenttype,
in nsirequest arequest,
in nsi
interfacerequestor aw
indowcontext,
in boolean aforcesave); methods applydecod
ingforextension() determ
ines whether or not data whose filename has the specified extension should be decoded from the specified encod
ing type before be
ing saved or delivered to helper applications.
...And 10 more matches
nsIMessageBroadcaster
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl
inherits from: nsimessagelistenermanager message "broadcasters" don't have a s
ingle "other side" that they send messages to, but rather a set of subord
inate message managers.
... for example, broadcast
ing a message through a w
indow message manager will broadcast the message to all frame message managers with
in its w
indow.
... see message manager
interfaces for more details on the dist
inction between message senders and message broadcasters.
...And 10 more matches
nsIParentalControlsService
toolkit/components/parentalcontrols/public/nsiparentalcontrolsservice.idlscriptable this
interface provides access to the operat
ing system's parental controls feature, allow
ing code to detect whether such a service is enabled and to request overrides to bypass the feature.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) note: currently, this
interface is only supported on microsoft w
indows vista and newer as well as android 4.3 and newer.
...to create an
instance, use: var parentalcontrolsservice = components.classes["@mozilla.org/parental-controls-service;1"] .create
instance(components.
interfaces.nsiparentalcontrolsservice); method overview void log(
in short aentrytype,
in boolean aflag,
in nsiuri asource, [optional]
in nsifile atarget); boolean requesturioverride(
in nsiuri atarget, [optional]
in nsi
interfacerequestor aw
indowcontext); boolean requesturioverrides(
in nsiarray atargets, [optional]
in nsi
interfacerequestor aw
indowcontext); attributes attribute type description blockfiledownloadsenabled boolean true if the current user account's parental controls restrictions ...
...And 10 more matches
nsIScreenManager
widget/public/nsiscreenmanager.idlscriptable this
interface lets you get
information about the display screen (or screens) attached to the user's computer.
... 66
introduced gecko 0.9.5
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) implemented by: @mozilla.org/gfx/screenmanager;1 as a service: var screenmanager = components.classes["@mozilla.org/gfx/screenmanager;1"] .getservice(components.
interfaces.nsiscreenmanager); method overview nsiscreen screenfornativewidget(
in voidptr nativewidget ); native code only!
... nsiscreen screenforrect(
in long left,
in long top,
in long width,
in long height ); attributes attribute type description numberofscreens unsigned long the number of screens on the user's computer.
...And 10 more matches
HTMLImageElement.currentSrc - Web APIs
the read-only htmlimageelement property currentsrc
indicates the url of the image which is currently presented
in the <img> element it represents.
... syntax let currentsource = htmlimageelement.currentsrc; value a usvstr
ing
indicat
ing the full url of the image currently visible
in the <img> element represented by the htmlimageelement.
... this is useful when you provide multiple image options us
ing the sizes and/or htmlimageelement.srcset properties.
...And 10 more matches
HTMLImageElement.src - Web APIs
the htmlimageelement property src, which reflects the html src attribute, specifies the image to display
in the <img> element.
... syntax htmlimageelement.src = newsource; let src = htmlimageelement.src; value when provid
ing only a s
ingle image, rather than a set of images from which the browser selects the best match for the viewport size and display pixel density, the src attribute is a usvstr
ing specify
ing the url of the desired image.
... this can be set either with
in the html itself us
ing the src content attribute, or programmatically by sett
ing the element's src property.
...And 10 more matches
HTMLImageElement.width - Web APIs
the width property of the htmlimageelement
interface
indicates the width at which the image is drawn,
in css pixels if the image is be
ing drawn or rendered to any visual medium such as the screen or a pr
inter; otherwise, it's the natural, pixel density corrected width of the image.
... syntax htmlimageelement.width = newwidth; let width = htmlimageelement.width; value an
integer value
indicat
ing the width of the image.
... the terms
in which the width is def
ined depends on whether the image is be
ing rendered to a visual medium or not.
...And 10 more matches
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 manipulat
ing the layout and presentation of map elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
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 manipulat
ing modification elements, that is <del> and <
ins>.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
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 manipulat
ing the layout and presentation of <optgroup> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
HTMLParagraphElement - Web APIs
the htmlparagraphelement
interface provides special properties (beyond those of the regular htmlelement object
interface it
inherits) for manipulat
ing <p> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
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 manipulat
ing a block of preformatted text (<pre>).
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
HTMLSelectElement.selectedOptions - Web APIs
the read-only htmlselectelement property selectedoptions conta
ins a list of the <option> elements conta
ined with
in the <select> element that are currently selected.
... syntax var selectedcollection = htmlselectelement.selectedoptions; value an htmlcollection which lists every currently selected htmloptionelement which is either a child of the htmlselectelement or of an htmloptgroupelement with
in the <select> element.
...
in other words, any option conta
ined with
in the <select> element may be part of the results, but option groups are not
included
in the list.
...And 10 more matches
HTMLTableCaptionElement - Web APIs
the htmltablecaptionelement
interface special properties (beyond the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing table caption elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
History.replaceState() - Web APIs
the history.replacestate() method modifies the current history entry, replac
ing it with the stateobj, title, and url passed
in the method parameters.
... this method is particularly useful when you want to update the state object or url of the current history entry
in response to some user action.
... title most browsers currently ignore this parameter, although they may use it
in the future.
...And 10 more matches
IDBCursor.advance() - Web APIs
the advance() method of the idbcursor
interface sets the number of times a cursor should move its position forward.
... note: this feature is available
in web workers.
... exceptions this method may raise a domexception of one of the follow
ing types: exception description transaction
inactiveerror this idbcursor's transaction is
inactive.
...And 10 more matches
IDBKeyRange.lowerOpen - Web APIs
the loweropen read-only property of the idbkeyrange
interface returns a boolean
indicat
ing whether the lower-bound value is
included
in the key range.
... note: this feature is available
in web workers.
... syntax var loweropen = mykeyrange.loweropen value a boolean: value
indication true the lower-bound value is not
included
in the key range.
...And 10 more matches
IDBKeyRange.upperOpen - Web APIs
the upperopen read-only property of the idbkeyrange
interface returns a boolean
indicat
ing whether the upper-bound value is
included
in the key range.
... note: this feature is available
in web workers.
... syntax var upperopen = mykeyrange.upperopen value a boolean: value
indication true the upper-bound value is not
included
in the key range.
...And 10 more matches
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.
... all pend
ing idbrequest objects created dur
ing this transaction have their idbrequest.error attribute set to aborterror.
... note: this feature is available
in web workers.
...And 10 more matches
RTCDtlsTransport.state - Web APIs
the state read-only property of the rtcdtlstransport
interface provides
information which describes a datagram transport layer security (dtls) transport state.
... syntax let mystate = dtlstransport.state; value a str
ing whose value is taken from the rtcdtlstransportstate enumerated type.
... its value is one of the follow
ing: new the
initial state when dtls has not started negotiat
ing yet.
...And 10 more matches
RTCPeerConnection: iceconnectionstatechange event - Web APIs
an iceconnectionstatechange event is sent to an rtcpeerconnection object each time the ice connection state changes dur
ing the negotiation process.
... the new ice connection state is available
in the object's iceconnectionstate} property.
... bubbles no cancelable no
interface event event handler property oniceconnectionstatechange one common task performed by the iceconnectionstatechange event listener: to trigger ice restart when the state changes to failed.
...And 10 more matches
ReadableStream.tee() - Web APIs
the tee() method of the readablestream
interface tees the current readable stream, return
ing a two-element array conta
ining the two result
ing branches as new readablestream
instances.
... this is useful for allow
ing two readers to read a stream simultaneously, perhaps at different speeds.
... you might do this for example
in a serviceworker if you want to fetch a response from the server and stream it to the browser, but also stream it to the serviceworker cache.
...And 10 more matches
ReadableStreamDefaultReader.cancel() - Web APIs
the cancel() method of the readablestreamdefaultreader
interface cancels the stream, signal
ing a loss of
interest
in the stream by a consumer.
... the supplied reason argument will be given to the underly
ing source, which may or may not use it.
... cancel is used when you've completely f
inished with the stream and don't need any more data from it, even if there are chunks enqueued wait
ing to be read.
...And 10 more matches
ResizeObserverEntry.contentBoxSize - Web APIs
the contentboxsize read-only property of the resizeobserverentry
interface returns an array conta
ining the new content box size of the observed element when the callback is run.
... syntax var mycontentboxsize = resizeobserverentry.contentboxsize; value an object conta
ining the new content box size of the observed element.
... this object conta
ins two properties: blocksize the length of the observed element's content box
in the block dimension.
...And 10 more matches
SVGFEDropShadowElement - Web APIs
the svgfedropshadowelement
interface corresponds to the <fedropshadow> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 10 more matches
SVGForeignObjectElement - Web APIs
the svgforeignobjectelement
interface provides access to the properties of <foreignobject> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 10 more matches
SVGGraphicsElement - Web APIs
the svggraphicselement
interface represents svg elements whose primary purpose is to directly render graphics
into a group.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 10 more matches
SVGMarkerElement - Web APIs
svg path segment
interface the svgmarkerelement
interface corresponds to the marker element.
...
interface overview also implement none methods void setorienttoangle(
in svgangle angle) void setorienttoauto() properties svganimatedlength refx svganimatedlength refy svganimatedenumeration markerunits svganimatedlength markerwidth svganimatedlength markerheight svganimatedenumeration orienttype svganimatedangle orientangle constants svg_marker_orient_unknown = 0 svg_marker_orient_auto = 1 svg_marker_ori...
...kewidth = 2 normative document svg 1.1 (2nd edition) constants orientation name value description svg_marker_orient_unknown 0 the marker orientation is not one of predef
ined types.
...And 10 more matches
Screen.availHeight - Web APIs
the read-only screen
interface's availheight property returns the height,
in css pixels, of the space available for web content on the screen.
... s
ince screen is exposed on the w
indow
interface's w
indow.screen property, you access availheight us
ing w
indow.screen.availheight.
... syntax let availheight = w
indow.screen.availheight; value a numeric value
indicat
ing the number of css pixels tall the screen's available space is.
...And 10 more matches
StylePropertyMapReadOnly - Web APIs
the 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.
... retrieve an
instance of this
interface us
ing element.computedstylemap().
... properties stylepropertymapreadonly.size returns an uns
inged long
integer conta
ining the size of the stylepropertymapreadonly object.
...And 10 more matches
StyleSheet - Web APIs
an object implement
ing the stylesheet
interface represents a s
ingle style sheet.
... css style sheets will further implement the more specialized cssstylesheet
interface.
... properties stylesheet.disabled is a boolean represent
ing whether the current stylesheet has been applied or not.
...And 10 more matches
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).
... syntax const result = crypto.subtle.generatekey(algorithm, extractable, keyusages); parameters algorithm is a dictionary object def
ining the type of key to generate and provid
ing extra algorithm-specific parameters.
... extractable is a boolean
indicat
ing whether it will be possible to export the key us
ing subtlecrypto.exportkey() or subtlecrypto.wrapkey().
...And 10 more matches
SyncManager.register() - Web APIs
the syncmanager.register method of the syncmanager
interface returns a promise that resolves to a syncregistration
instance.
...}) returns a promise that resolves to an
instance of syncregistration.
... parameters options optional an object that sets options for an
instance of syncregistration.
...And 10 more matches
Touch.radiusX - Web APIs
the value is
in css pixels of the same scale as touch.screenx.
... this value,
in comb
ination with touch.radiusy and touch.rotationangle constructs an ellipse that approximates the size and shape of the area of contact between the user and the screen.
... this may be a relatively large ellipse represent
ing the contact between a f
ingertip and the screen or a small area represent
ing the tip of a stylus, for example.
...And 10 more matches
JS_YieldRequest
obsolete s
ince jsapi 18this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 9 more matches
Implementation Details
introduction this article is a reference how gecko implements at apis.
... supported features
interfaces refer to specific pages to get
information of supported
interfaces for
interested at api: core: gecko
interfaces w
indows: msaa, ia2, ienumvariant and isimpledom*
interfaces l
inux: at-spi roles refer to specific pages to get
information of supported roles for
interested at api: gecko msaa ia2 at-spi states refer to specific pages to get
information of supported states for
interested at api: gecko msaa ia2 at-spi relations refer to specific pages to get
information of supported relations for
interested at api: gecko msaa ia2 at-spi attributes object attributes refer to specific pages to get
information of supported object attributes for
interested at api: gecko msaa ia2 at-spi text attributes refer to specific pages to get
information of supported text ...
...attributes for
interested at api: gecko msaa - doesn't have a way to expose text attributes, use ia2 ia2 at-spi document attributes refer to specific pages to get
information of supported document attributes for
interested at api: gecko/msaa/ia2 - document attributes are not exposed.
...And 9 more matches
XPCshell Test Manifest Expressions
xpcshell unit tests are run by specify
ing them
in a manifest file.
... you can add conditions to tests
in order to control when tests get run.
... operators
in order of decreas
ing precedence: () == != && || literal values booleans: the literal str
ings true and false.
...And 9 more matches
NS_NewNativeLocalFile
« xpcom api reference summary the ns_newnativelocalfile function creates an
instance of nsilocalfile that provides a platform
independent representation of a file path.
... #
include "nsxpcom.h" #
include "nsilocalfile.h" nsresult ns_newnativelocalfile( const nsacstr
ing& apath, prbool afollowl
inks, nsilocalfile** aresult ); parameters apath [
in] a str
ing object that specifies an absolute filesystem path.
... this str
ing should be encoded us
ing ascii or the multibyte character cod
ing correspond
ing to the native filesystem.
...And 9 more matches
IAccessibleImage
other-licenses/ia2/accessibleimage.idlnot scriptable this
interface represents images and icons.
... 1.0 66
introduced gecko 1.9
inherits from: iunknown last changed
in gecko 1.9 (firefox 3) this
interface is used for a representation of images like icons on buttons.
... iaccessibleimage only needs to be implemented
in certa
in situations.
...And 9 more matches
imgILoader
inherits from: nsisupports last changed
in gecko 8.0 (firefox 8.0 / thunderbird 8.0 / seamonkey 2.5) implemented by @mozilla.org/image/loader;1 as a service: var imgiloader = components.classes["@mozilla.org/image/loader;1"] .getservice(components.
interfaces.imgiloader); method overview imgirequest loadimage(
in nsiuri auri,
in nsiuri a
initialdocumenturl,
in nsiuri areferreruri,
in nsipr
incipal aload
ingpr
incipal,
in nsiloadgroup aloadgroup,
in imgidecoderobserver aobserver,
in nsisupports acx,
in nsloadflags aloadflags,
in nsisupports cachekey,
in imgirequest arequest,
in nsichannelpolicy channelpolicy); imgirequest loadimagewithchannel(
in nsichannel achannel,
in imgidec...
...oderobserver aobserver,
in nsisupports cx, out nsistreamlistener alistener); boolean supportimagewithmimetype(
in str
ing 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.
... imgirequest loadimage(
in nsiuri auri,
in nsiuri a
initialdocumenturl,
in nsiuri areferreruri,
in nsipr
incipal aload
ingpr
incipal,
in nsiloadgroup aloadgroup,
in imgidecoderobserver aobserver,
in nsisupports acx,
in nsloadflags aloadflags,
in nsisupports cachekey,
in imgirequest arequest,
in nsichannelpolicy channelpolicy ); parameters auri the uri to load.
...And 9 more matches
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.
... 1.0 66
introduced gecko 1.9.2
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void registeropenpage(
in nsiuri auri); void unregisteropenpage(
in nsiuri auri); constants constant value description match_anywhere 0 match anywhere
in each searchable term.
... match_boundary_anywhere 1 match first on word boundaries, and if we do not get enough results, then match anywhere
in each searchable term.
...And 9 more matches
nsIApplicationCacheService
netwerk/base/public/nsiapplicationcacheservice.idlscriptable this
interface manages the set of application cache groups that manage offl
ine resources for web applications.
... 1.0 66
introduced gecko 1.9.1
inherits from: nsisupports last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void cacheopportunistically(
in nsiapplicationcache cache,
in acstr
ing key); nsiapplicationcache chooseapplicationcache(
in acstr
ing key); nsiapplicationcache createapplicationcache(
in acstr
ing group); void deactivategroup(
in acstr
ing group); nsiapplicationcache getactivecache(
in acstr
ing group); nsiapplicationcache getapplicationcache(
in acstr
ing clientid); void getgroups([optional] out unsigned long count, [array, size_is(count), retval] out str
ing groupids); methods cacheopportunistically() flags the specified key as one that should be cached opportunistically.
...void cacheopportunistically(
in nsiapplicationcache cache,
in acstr
ing key ); parameters cache the cache
in which the entry is currently cached.
...And 9 more matches
nsIContentViewManager
content/base/public/nsiframeloader.idlscriptable manages the content views conta
ined
in a browser 1.0 66
introduced gecko 2.0
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) to obta
in a reference to the view manager for a document, you can query
interface() the nsiframeloader object to nsicontentviewmanager.
... see gett
ing access to content views for details.
... once you have the view manager, you can call getcontentviews
in() to get a list of the content views for a given portion of the browser display, then use those nsicontentview objects to manipulate the content views.
...And 9 more matches
nsIDOMClientRect
dom/
interfaces/base/nsidomclientrect.idlscriptable represents a rectangular box.
...it is returned by functions like element.getbound
ingclientrect.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) attributes attribute type description bottom float y-coord
inate, relative to the viewport orig
in, of the bottom of the rectangle box.
...And 9 more matches
nsIDOMNode
dom/
interfaces/core/nsidomnode.idlscriptable this
interface is the primary datatype for the entire document object model.
... it represents a s
ingle node
in the document tree.
...
inherits from: nsisupports last changed
in gecko 0.9.6 method overview nsidomnode appendchild(
in nsidomnode newchild) nsidomnode clonenode(
in boolean deep); boolean hasattributes(); boolean haschildnodes(); nsidomnode
insertbefore(
in nsidomnode newchild,
in nsidomnode refchild) boolean issupported(
in domstr
ing feature,
in domstr
ing version); void normalize(); nsidomnode removechild(
in nsidomnode oldchild) nsidomnode replacechild(
in nsidomnode newchild,
in nsidomnode oldchild) attributes attribute type description attributes nsidomnamednodemap read only.
...And 9 more matches
nsIDOMSerializer
content/base/public/nsidomserializer.idlscriptable this
interface is really a placeholder till the w3c dom work
ing group def
ines a mechanism for serializ
ing dom nodes.
... an
instance of this
interface can be used to serialize a dom document or any dom subtree.
...
inherits from: nsisupports last changed
in gecko 1.7 implemented by: @mozilla.org/xmlextras/xmlserializer;1.
...And 9 more matches
nsIDOMStorageEventObsolete
obsolete s
ince gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 9 more matches
nsIDOMStorageManager
dom/
interfaces/storage/nsidomstoragemanager.idlscriptable this
interface provides methods for manag
ing data stored
in the offl
ine apps cache.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) implemented by @mozilla.org/dom/storagemanager;1 as a service: var domstoragemanager = components.classes["@mozilla.org/dom/storagemanager;1"] .getservice(components.
interfaces.nsidomstoragemanager); method overview void clearoffl
ineapps(); nsidomstorage getlocalstorageforpr
incipal(
in nsipr
incipal apr
incipal,
in domstr
ing adocumenturi); long getusage(
in astr
ing aownerdoma
in); methods clearoffl
ineapps() clears keys owned by offl
ine applications.
... all data owned by a doma
in with the "offl
ine-app" permission is removed from the database.
...And 9 more matches
nsIDeviceMotion
xpcom/system/nsidevicemotion.idlscriptable this
interface is used to implement accelerometer support.
... 1.0 66
introduced gecko 1.9.2
inherits from: nsisupports last changed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) note: this
interface was named nsidevicemotion prior to gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3).
... method overview void addlistener(
in nsidevicemotionlistener alistener); void addw
indowlistener(
in nsidomw
indow aw
indow); native code only!
...And 9 more matches
nsIDirectoryService
xpcom/io/nsidirectoryservice.idlscriptable this
interface provides methods to
initialize and configure a directory service
instance.
... the xpcom 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.
...And 9 more matches
nsIDocumentLoader
uriloader/base/nsidocumentloader.idlscriptable this
interface responsible for track
ing groups of loads that belong together (images, external scripts, and so on.) and subdocuments (iframe, frame, and so on.).
... it is also responsible for send
ing nsiwebprogresslistener notifications.
...
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) implemented by: @mozilla.org/docloaderservice;1.
...And 9 more matches
nsIDownloadManagerUI
toolkit/components/downloads/public/nsidownloadmanagerui.idlscriptable this
interface is used to implement the user
interface for the download manager.
... if you wish to replace the default download manager user
interface, implement this
interface.
... 1.0 66
introduced gecko 1.9
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) method overview void getattention(); void show([optional]
in nsi
interfacerequestor aw
indowcontext, [optional]
in unsigned long aid, [optional]
in short areason); attributes attribute type description visible boolean true if the download manager ui is visible; otherwise false.
...And 9 more matches
nsIGlobalHistory2
docshell/base/nsiglobalhistory2.idlscriptable this
interface provides
information about global history to gecko.
... it was split off from nsiglobalhistory dur
ing the transition to toolkit
interfaces.
...
inherits from: nsisupports last changed
in gecko 1.7 this
interface replaces and deprecates nsiglobalhistory method overview void adduri(
in nsiuri auri,
in boolean aredirect,
in boolean atoplevel,
in nsiuri areferrer); boolean isvisited(
in nsiuri auri); void setpagetitle(
in nsiuri auri,
in astr
ing atitle); methods adduri() add a uri to global history.
...And 9 more matches
nsIMessageWakeupService
by us
ing this service, you can avoid start
ing those components until they're needed.
... 1.0 66
introduced gecko 2.0
inherits from: nsisupports last changed
in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) note: this service was
introduced
in gecko 5.0 on firefox for android, but was not provided on desktop until gecko 13.0 (firefox 13).
... there is no idl for this
interface.
...And 9 more matches
nsIMicrosummary
toolkit/components/places/public/nsimicrosummaryservice.idlscriptable this
interface def
ines attributes and methods for deal
ing with microsummaries generated by an nsimicrosummarygenerator.
... 1.0 66
introduced gecko 1.8 obsolete gecko 6.0
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) warn
ing: microsummary support was removed
in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) method overview void addobserver(
in nsimicrosummaryobserver observer); boolean equals(
in nsimicrosummary aother); void removeobserver(
in nsimicrosummaryobserver observer); void update(); attributes attribute type description content astr
ing the content of the microsummary.
... s
ince generators and pages can be remote resources, and we need them to generate the content, this may not always be available.
...And 9 more matches
nsIMsgThread
the nsimsgfolder
interface is used to
interact with threads
in thunderbird.
...
inherits from: nsisupports method overview void addchild(
in nsimsgdbhdr child,
in nsimsgdbhdr
inreplyto,
in boolean thread
inthread,
in nsidbchangeannouncer announcer); nsimsgdbhdr getchildat(
in long
index); nsmsgkey getchildkeyat(
in long
index); nsimsgdbhdr getchild(
in nsmsgkey msgkey); nsimsgdbhdr getchildhdrat(
in long
index); nsimsgdbhdr getroothdr(out long
index); void removechildat(
in long
index); void removechildhdr(
in nsimsgdbhdr child,
in nsidbchangeannouncer announcer); void markchildread(
in boolean bread); nsimsgdbhdr getfirstunreadchild(); nsisimpleenumerator enumeratemessages(
in nsmsgkey parent); attributes attribute type description threadkey n...
...smsgkey unsigned long key designat
ing this thread.
...And 9 more matches
nsISmsService
dom/sms/
interfaces/nsismsservice.idlscriptable used to send sms text messages for 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.
... to create an
instance, use: var smsservice = components.classes["@mozilla.org/sms/smsservice;1"] .create
instance(components.
interfaces.nsismsservice); method overview [implicit_jscontext] nsidommozsmsmessage createsmsmessage(
in long id,
in domstr
ing delivery,
in domstr
ing sender,
in domstr
ing receiver,
in domstr
ing body,
in jsval timestamp,
in bool read ); unsigned short getnumberofmessagesfortext(
in domstr
ing text); boolean hassupport(); void send(
in domstr
ing number,
in domstr
ing message,
in long requestid, [optional]
in unsigned long long processid); methods createsmsmessage() [implicit_jscontext] nsidommozsmsmessage createsmsmessage(
in long id,
in domstr
ing delivery,
in domstr
ing sender,
in domstr
ing receiver, ...
...
in domstr
ing body,
in jsval timestamp,
in bool read ); parameters id a number represent
ing the id of the message.
...And 9 more matches
nsIStreamConverter
netwerk/streamconv/public/nsistreamconverter.idlscriptable provides an
interface to implement when you have code that converts data from one type to another.
...
inherits from: nsistreamlistener last changed
in gecko 1.7 suppose you had code that converted pla
in text
into html.
... you could implement this
interface to allow everyone else to use your conversion logic us
ing a standard api.
...And 9 more matches
nsISupports
xpcom/base/nsisupports.idlscriptable all xpcom
interfaces
inherit this
interface.
... last changed
in gecko 1.0 method overview nsrefcnt addref();violates the xpcom
interface guidel
ines void query
interface(
in nsiidref uuid, [iid_is(uuid),retval] out nsqiresult result); nsrefcnt release();violates the xpcom
interface guidel
ines methods violates the xpcom
interface guidel
ines addref() notifies the object that an
interface po
inter has been duplicated.
...return value an
integer value that is generally ignored.
...And 9 more matches
nsIThreadPool
xpcom/threads/nsithreadpool.idlscriptable the nsithreadpool
interface provides support for thread pools.
... 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 ma
in thread.
...once there are more than this many idle worker threads, the idle threads start gett
ing destroyed.
...And 9 more matches
nsITreeColumn
the nsitreecolumn
interface represents a tree column.
... last changed
in gecko 1.9 (firefox 3)
inherits from: nsisupports method overview void getidconst([shared] out wstr
ing idconst); native code only!
... nsitreecolumn getnext(); nsitreecolumn getprevious(); void
invalidate(); attributes attribute type description atom nsiatom the atom attribute of nsitreecolumn which returns an nsiatom for the column, mak
ing it fast to do comparisons.
...And 9 more matches
nsIUpdateChecker
toolkit/mozapps/update/nsiupdateservice.idlscriptable this
interface describes an object that knows how to check for software updates.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void checkforupdates(
in nsiupdatechecklistener listener,
in boolean force); void stopcheck
ing(
in unsigned short duration); constants constant value description current_check 1 constant for the stopcheck
ing() method
indicat
ing that only the current update check should be stopped.
... current_session 2 constant for the stopcheck
ing() method
indicat
ing that all update checks dur
ing the current session should be stopped.
...And 9 more matches
nsIWritablePropertyBag2
xpcom/ds/nsiwritablepropertybag2.idlscriptable this
interface extends nsipropertybag2 with methods for sett
ing properties.
... 1.0 66
introduced gecko 1.8
inherits from: nsipropertybag2 last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void setpropertyasacstr
ing(
in astr
ing prop,
in acstr
ing value); void setpropertyasastr
ing(
in astr
ing prop,
in astr
ing value); void setpropertyasautf8str
ing(
in astr
ing prop,
in autf8str
ing value); void setpropertyasbool(
in astr
ing prop,
in boolean value); void setpropertyasdouble(
in astr
ing prop,
in double value); void setpropertyas
int32(
in astr
ing prop,
in pr
int32 value); void setpropertyas
int64(
in astr
ing prop,
in pr
int64 value); void setpropertyas
interface(
in astr
ing prop,
in nsisupports value); void setpropertyasu
int32(
in astr
ing prop,
in ...
...pru
int32 value); void setpropertyasu
int64(
in astr
ing prop,
in pru
int64 value); methods setpropertyasacstr
ing() void setpropertyasacstr
ing(
in astr
ing prop,
in acstr
ing value ); parameters prop property to set the value of.
...And 9 more matches
Status, Recent Changes, and Plans
i'm sorry this section is
in the way for first-time readers.
... you may want to skip directly to the gett
ing started guide, the reference manual, or the faq.
... i put this section at the top so that check
ing for recent changes will be easy.
...And 9 more matches
GlobalEventHandlers.onkeypress - Web APIs
the onkeypress property of the globaleventhandlers mix
in is an eventhandler that processes keypress events.
...however,
in practice browsers do not fire keypress events for certa
in keys.
...you may want to use onkeydown
instead.
...And 9 more matches
GlobalEventHandlers.ontransitionend - Web APIs
the ontransitionend property of the globaleventhandlers mix
in is an eventhandler that processes transitionend events.
...one way this can happen is by chang
ing the value of the transition-property attribute which applies to the target.
... syntax var transitionendhandler = target.ontransitionend; target.ontransitionend = function value a function to be called when a transitionend event occurs
indicat
ing that a css transition has completed on the target, where the target object is an html element (htmlelement), document (document), or w
indow (w
indow).
...And 9 more matches
Gyroscope - Web APIs
the gyroscope
interface of the sensor apis provides on each read
ing the angular velocity of the device along all three axes.
... if a feature policy blocks use of a feature it is because your code is
inconsistent with the policies set on your server.
... this is not someth
ing that would ever be shown to a user.
...And 9 more matches
HTMLDListElement - Web APIs
the htmldlistelement
interface provides special properties (beyond those of the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing def
inition list (<dl>) elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 9 more matches
HTMLDivElement - Web APIs
the htmldivelement
interface provides special properties (beyond the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <div> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 9 more matches
HTMLFormElement.elements - Web APIs
the htmlformelement property elements returns an htmlformcontrolscollection list
ing all the form controls conta
ined
in the <form> element.
...
independently, you can obta
in just the number of form controls us
ing the length property.
... you can access a particular form control
in the returned collection by us
ing either an
index or the element's name or id.
...And 9 more matches
HTMLImageElement.height - Web APIs
the height property of the htmlimageelement
interface
indicates the height at which the image is drawn,
in css pixels if the image is be
ing drawn or rendered to any visual medium such as the screen or a pr
inter; otherwise, it's the natural, pixel density corrected height of the image.
... syntax htmlimageelement.height = newheight; let height = htmlimageelement.height; value an
integer value
indicat
ing the height of the image.
... the terms
in which the height is def
ined depends on whether the image is be
ing rendered to a visual medium or not.
...And 9 more matches
HTMLImageElement.isMap - Web APIs
the htmlimageelement proeprty ismap is a boolean value which
indicates that the image is to be used by a server-side image map.
... this may only be used on images located with
in an <a> element.
... note: for accessibility reasons, you should generally avoid us
ing server-side image maps, as they require the use of a mouse.
...And 9 more matches
HTMLImageElement.useMap - Web APIs
the usemap property on the htmlimageelement
interface reflects the value of the html usemap attribute, which is a str
ing provid
ing the name of the client-side image map to apply to the image.
... syntax htmlimageelement.usemap = imagemapanchor; let imagemapanchor = htmlimageelement.usemap; value a usvstr
ing provid
ing the page-local url (that is, a url that beg
ins with the hash or pound symbol, "#") of the <map> element which def
ines the image map to apply to the image.
... you can learn more about client-side image maps
in our learn
ing article add a hitmap on top of an image.
...And 9 more matches
HTMLMediaElement.currentTime - Web APIs
the htmlmediaelement
interface's currenttime property specifies the current playback time
in seconds.
... chang
ing the value of currenttime this value seeks the media to the new time.
... syntax var currenttime = htmlmediaelement.currenttime; htmlmediaelement.currenttime = 35; value a double-precision float
ing-po
int value
indicat
ing the current playback time
in seconds.
...And 9 more matches
HTMLElement.focus() - Web APIs
syntax element.focus(options); // object parameter parameters options optional an optional object provid
ing options to control aspects of the focus
ing process.
... this object may conta
in the follow
ing property: preventscroll optional a boolean value
indicat
ing whether or not the browser should scroll the document to br
ing the newly-focused element
into view.
... a value of false for preventscroll (the default) means that the browser will scroll the element
into view after focus
ing it.
...And 9 more matches
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 manipulat
ing quot
ing elements, like <blockquote> and <q>, but not the <cite> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 9 more matches
HTMLSelectElement.add() - Web APIs
syntax collection.add(item[, before]); parameters item is an htmloptionelement or htmloptgroupelement before is optional and an element of the collection, or an
index of type long, represent
ing the item item should be
inserted before.
... if this parameter is null (or the
index does not exist), the new element is appended to the end of the collection.
... examples creat
ing elements from scratch var sel = document.createelement("select"); var opt1 = document.createelement("option"); var opt2 = document.createelement("option"); opt1.value = "1"; opt1.text = "option: value 1"; opt2.value = "2"; opt2.text = "option: value 2"; sel.add(opt1, null); sel.add(opt2, null); /* produces the follow
ing, conceptually: <select> <option value="1">option: value 1</option> <option value="2">option: value 2</option> </select> */ the before parameter is optional.
...And 9 more matches
HashChangeEvent - Web APIs
the hashchangeevent
interface represents events that fire when the fragment identifier of the url has changed.
... the fragment identifier is the part of the url that follows (and
includes) the # symbol.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/hashchangeevent" ta...
...And 9 more matches
History API - Web APIs
the dom w
indow object provides access to the browser's session history (not to be confused for webextensions history) through the history object.
... concepts and usage mov
ing backward and forward through the user's history is done us
ing the back(), forward(), and go() methods.
... mov
ing forward and backward to move backward through history: w
indow.history.back() this acts exactly as if the user clicked on the back button
in their browser toolbar.
...And 9 more matches
RTCConfiguration.iceTransportPolicy - Web APIs
the webrtc device api dictionary rtcconfiguration's icetransportpolicy property is a str
ing
indicat
ing the transport selection policy the ice agent should use dur
ing negotiation of connections.
... if this property isn't
included
in the rtcconfiguration, the default value, all, is used.
... syntax let rtcconfiguration = { icetransportpolicy: policy }; rtcconfiguration.icetransportpolicy = policy; let policy = rtcconfiguration.icetransportpolicy; value a domstr
ing which
indicates what ice candidate policy the ice agent should use dur
ing the negotiation process, per the jsep standard.
...And 9 more matches
RTCIceCandidate.protocol - Web APIs
the rtcicecandidate
interface's read-only protocol property is a str
ing which
indicates whether the candidate uses udp or tcp as its transport protocol.
... protocol is null by default if not specified properly
in the sdp, but this is an error condition and will result
in a thrown exception when you call rtcpeerconnection.addicecandidate().
...the value is automatically extracted from the candidate a-l
ine, if it's formatted properly.
...And 9 more matches
RTCIceCandidate.relatedAddress - Web APIs
the rtcicecandidate
interface's read-only relatedaddress property is a str
ing
indicat
ing the related address of a relay or reflexive candidate.
... if the candidate is a host candidate (that is, its ip is
in fact the real ip address of the remote peer), relatedaddress is null.
...you can't specify the value of relatedaddress
in the options object, but the address is automatically extracted from the candidate a-l
ine, if it's formatted properly, be
ing taken from its rel-address field.
...And 9 more matches
RTCIceCandidate.type - Web APIs
the rtcicecandidate
interface's read-only type specifies the type of candidate the object represents.
...you can't specify the value of type
in the options object, but the address is automatically extracted from the candidate a-l
ine, if it's formatted properly, be
ing taken from its cand-type field.
... syntax var type = rtcicecandidate.type; value a domstr
ing whose value is one of those def
ined by the rtcicecandidatetype enumerated type.
...And 9 more matches
RTCIceCandidatePairStats.state - Web APIs
the state property
in an rtcicecandidatepairstats object
indicates the state of the check list of which the candidate pair is a member.
... syntax state = rtcicecandidatepairstats.state; value a domstr
ing whose value is one of those found
in the rtcstatsicecandidatepairstate enumerated type.
... ice check lists dur
ing ice negotiation, the ice layer builds up a check list, which is a list of potential pair
ings of ice candidates.
...And 9 more matches
RTCIceCandidateStats.networkType - Web APIs
note: the networktype property is only
included
in rtcicecandidatestats objects for local candidates (that is, candidates generated locally and
included
in an sdp offer or answer that has been sent to the remote peer).
... syntax networktype = rtcicecandidatestats.networktype; value a domstr
ing whose value is taken from the rtcnetworktype enumerated type.
... the str
ing
indicates the type of network connection that the described candidate would use to communicate with the other peer.
...And 9 more matches
RTCPeerConnection.connectionState - Web APIs
the read-only connectionstate property of the rtcpeerconnection
interface
indicates the current state of the peer connection by return
ing one of the str
ing values specified by the enum rtcpeerconnectionstate.
... when this property's value changes, a connectionstatechange event is sent to the rtcpeerconnection
instance.
... rtcpeerconnectionstate enum the rtcpeerconnectionstate enum def
ines str
ing constants which describe states
in which the rtcpeerconnection may be.
...And 9 more matches
RTCPeerConnectionIceErrorEvent - Web APIs
the rtcpeerconnectioniceerrorevent
interface—based upon the event
interface—provides details perta
ining to an ice error announced by send
ing an icecandidateerror event to the rtcpeerconnection object.
... constructor rtcpeerconnectioniceerrorevent() creates and returns a new rtcpeerconnectioniceerrorevent object, with its type and other properties
initialized as specified
in the parameters.
... properties the rtcpeerconnectioniceerrorevent
interface
includes the properties found on the event
interface, as well as the follow
ing properties: address read only a domstr
ing provid
ing the local ip address used to communicate with the stun or turn server be
ing used to negotiate the connection, or null if the local ip address has not yet been exposed as part of a local ice candidate.
...And 9 more matches
RTCRtpParameters - Web APIs
the rtcrtpparameters dictionary is the basic object describ
ing the parameters of an rtp transport.
... it is extended separately for senders and receivers
in the form of the rtcrtpsendparameters and rtcrtpreceiveparameters dictionaries.
... to obta
in the parameters of a sender or receiver, call its getparameters() method: getparameters() getparameters() properties codecs an array of rtcrtpcodecparameters objects describ
ing the set of codecs from which the sender or receiver will choose.
...And 9 more matches
RTCRtpReceiver - Web APIs
the rtcrtpreceiver
interface of the webrtc api manages the reception and decod
ing of data for a mediastreamtrack on an rtcpeerconnection.
... properties rtcrtpreceiver.track read only returns the mediastreamtrack associated with the current rtcrtpreceiver
instance.
... rtcrtpreceiver.transport read only returns the rtcdtlstransport
instance over which the media for the receiver's track is received.
...And 9 more matches
Range.extractContents() - Web APIs
the range.extractcontents() method moves contents of the range from the document tree
into a documentfragment.
... event listeners added us
ing dom events are not reta
ined dur
ing extraction.
... html attribute events are reta
ined or duplicated as they are for the node.clonenode() method.
...And 9 more matches
Range.setStart() - Web APIs
sett
ing the start po
int below (lower
in the document) the end po
int will result
in a collapsed range with the start and end po
ints both set to the specified start position.
... startoffset an
integer greater than or equal to zero represent
ing the offset for the start of the range from the start of startnode.
...the selected range is then highlighted us
ing range.surroundcontents().
...And 9 more matches
ResizeObserverEntry - Web APIs
the resizeobserverentry
interface represents the object passed to the resizeobserver() constructor's callback function, which allows you to access the new dimensions of the element or svgelement be
ing observed.
... properties resizeobserverentry.borderboxsize read only an object conta
ining the new border box size of the observed element when the callback is run.
... resizeobserverentry.contentboxsize read only an object conta
ining the new content box size of the observed element when the callback is run.
...And 9 more matches
Response.type - Web APIs
the type read-only property of the response
interface conta
ins the type of the response.
... it can be one of the follow
ing: basic: normal, same orig
in response, with all headers exposed except “set-cookie” and “set-cookie2″.
... cors: response was received from a valid cross-orig
in request.
...And 9 more matches
SVGFEOffsetElement - Web APIs
the svgfeoffsetelement
interface corresponds to the <feoffset> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 9 more matches
SVGFilterElement - Web APIs
the svgfilterelement
interface provides access to the properties of <filter> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 9 more matches
SVGTextElement - Web APIs
the svgtextelement
interface corresponds to the <text> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 9 more matches
ScreenOrientation - Web APIs
the screenorientation
interface of the the screen orientation api provides
information about the current orientation of the document.
... methods screenorientation.lock() locks the orientation of the conta
ining document to its default orientation and returns a promise.
... screenorientation.unlock() unlocks the orientation of the conta
ining document from its default orientation.
...And 9 more matches
StaticRange.StaticRange() - Web APIs
the staticrange() constructor creates a new staticrange object represent
ing a span of content with
in the dom.
... it
includes properties identify
ing the standard and end positions of the range as well as a boolean
indicat
ing whether or not the range is collapsed (that is, empty).
... syntax var staticrange = new staticrange(rangespec) parameters rangespec the required rangespec parameter is an object adher
ing to the staticrange
init dictionary.
...And 9 more matches
TextDecoder() - Web APIs
the textdecoder() constructor returns a newly created textdecoder object for the encod
ing specified
in parameter.
... if the value for utflabel is unknown, or is one of the two values lead
ing to a 'replacement' decod
ing algorithm ( "iso-2022-cn" or "iso-2022-cn-ext"), a domexception with the "typeerror" value is thrown.
... syntax decoder = new textdecoder(utflabel, options); parameters utflabeloptional is a domstr
ing, default
ing to "utf-8", conta
ining the label of the encoder.
...And 9 more matches
TrackEvent - Web APIs
the trackevent
interface, which is part of the html dom specification, is used for events which represent changes to a set of available tracks on an html media element; these events are addtrack and removetrack.
... it's important not to confuse trackevent with the rtctrackevent
interface, which is used for tracks which are part of an rtcpeerconnection.
... events based on trackevent are always sent to one of the media track list types: events
involv
ing video tracks are always sent to the videotracklist found
in htmlmediaelement.videotracks events
involv
ing audio tracks are always sent to the audiotracklist specified
in htmlmediaelement.audiotracks events affect
ing text tracks are sent to the texttracklist object
indicated by htmlmediaelement.texttracks.
...And 9 more matches
Transferable - Web APIs
the transferable
interface represents an object that can be transfered between different execution contexts, like the ma
in thread and web workers.
... this is an abstract
interface and there is no object of this type.
... this
interface does not def
ine any method or property; it is merely a tag
indicat
ing objects that can be used
in specific conditions, such as be
ing transfered to a worker us
ing the worker.postmessage() method.
...And 9 more matches
TransitionEvent - Web APIs
the transitionevent
interface represents events provid
ing
information related to transitions.
... properties also
inherits properties from its parent event.
... transitionevent.propertyname read only is a domstr
ing conta
ining the name css property associated with the transition.
...And 9 more matches
TreeWalker.whatToShow - Web APIs
the treewalker.whattoshow read-only property returns an unsigned long be
ing a bitmask made of constants describ
ing the types of node that must to be presented.
... non-match
ing nodes are skipped, but their children may be
included, if relevant.
...this is mean
ingful only when creat
ing a treewalker with an attr node as its root;
in this case, it means that the attribute node will appear
in the first position of the iteration or traversal.
...And 9 more matches
URL.createObjectURL() - Web APIs
the url.createobjecturl() static method creates a domstr
ing conta
ining a url represent
ing the object given
in the parameter.
... the url lifetime is tied to the document
in the w
indow on which it was created.
... note: this feature is available
in web workers.
...And 9 more matches
UserDataHandler - Web APIs
obsolete s
ince gecko 26 (firefox 26 / thunderbird 26 / seamonkey 2.23 / firefox os 1.2)this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 9 more matches
ValidityState.patternMismatch - Web APIs
the read-only patternmismatch property of a validitystate object
indicates if the value of an <
input>, after hav
ing been edited by the user, does not conform to the constra
ints set by the element's pattern attribute.
... if the field supports the pattern attribute -- which means the <
input> is of type text, tel, email, url, password, or search -- and the pattern value is set to a valid regular expression, if the value don't doesn't conform to the constra
ints set by the pattern value, the patternmismatch property will be true.
... examples given the follow
ing: <p> <label>enter your phone number
in the format (123)456-7890 (<
input name="tel1" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-digit area code" size="2"/>)- <
input name="tel2" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-digit prefix" size="2"/> - <
input name="tel3" type="tel" pattern="[0-9]{4}" placeholder="####" aria-label="4-digit number" size="3"/> </label> </p> here we have 3 sections for a north american phone number with an implicit label encompass
ing all three components of the phone number, expect
ing 3-digits, 3-digits and 4-digits respectively, as def
ined by the pattern attribute set on each.
...And 9 more matches
Canvas size and WebGL - Web APIs
« previousnext » this webgl example explores the effect of sett
ing (or not sett
ing) the canvas size to its element size
in css pixels, as it appears
in the browser w
indow.
... effect of canvas size on render
ing with webgl with scissor() and clear() we can demonstrate how the webgl draw
ing buffer is affected by the size of the canvas.
... the size of the first canvas is set to the styled element size, determ
ined by css.
...And 9 more matches
Detect WebGL - Web APIs
« previousnext » this example demonstrates how to detect a webgl render
ing context and reports the result to the user.
... feature-detect
ing webgl
in this first example we are go
ing to check whether the browser supports webgl.
... to that end we will try to obta
in the webgl render
ing context from a canvas element.
...And 9 more matches
WebSocket.send() - Web APIs
the websocket.send() method enqueues the specified data to be transmitted to the server over the websocket connection,
increas
ing the value of bufferedamount by the number of bytes needed to conta
in the data.
...it may be one of the follow
ing types: usvstr
ing a text str
ing.
... the str
ing is added to the buffer
in utf-8 format, and the value of bufferedamount is
increased by the number of bytes required to represent the utf-8 str
ing.
...And 9 more matches
externalResourcesRequired - SVG: Scalable Vector Graphics
the externalresourcesrequired attribute specifies whether referenced resources that are not part of the current document are required for proper render
ing of the given conta
iner or graphics element.
... this attribute applies to all types of resource references,
includ
ing style sheets, color profiles and fonts specified by a reference us
ing a <font-face> element or a css @font-face specification.
...
in particular, if an element sets externalresourcesrequired="true", then all style sheets must be available s
ince any style sheet might affect the render
ing of that element.
...And 9 more matches
gradientTransform - SVG: Scalable Vector Graphics
the gradienttransform attribute conta
ins the def
inition of an optional additional transformation from the gradient coord
inate system onto the target coord
inate system (i.e., userspaceonuse or objectbound
ingbox).
... this allows for th
ings such as skew
ing the gradient.
... this additional transformation matrix is post-multiplied to (i.e.,
inserted to the right of) any previously def
ined transformations,
includ
ing the implicit transformation necessary to convert from object bound
ing box units to user space.
...And 9 more matches
lang - SVG: Scalable Vector Graphics
the lang attribute specifies the primary language used
in contents and attributes conta
ining text content of particular elements.
...if both of them are def
ined, the one with namespace is used and the one without is ignored.
...
in svg 1.1 there was a lang attribute def
ined with a different mean
ing and only apply
ing to <glyph> elements.
...And 9 more matches
opacity - SVG: Scalable Vector Graphics
the opacity attribute specifies the transparency of an object or of a group of objects, that is, the degree to which the background beh
ind the element is overlaid.
...see the css opacity property for more
information.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing elements: <a>, <audio>, <canvas>, <circle>, <ellipse>, <foreignobject>, <g>, <iframe>, <image>, <l
ine>, <marker>, <path>, <polygon>, <polyl
ine>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, <use>, <unknown>, and <video> html, body, svg { height: 100%; } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <defs> <l
ineargradient id="gradient" x1="0%" y1="0%" x2="0" y2="100%"> <stop offset="0%" style="stop-color:skyblue;" /> <stop offset="100%" style="stop-color:seagreen;" /> </l
ineargradient> </defs> <rect x="0" y="0" width="100%" height="100%" fill="url(#gradient)" /> <circle cx="50" cy="50" r="40" fill="black" /> <circle cx...
...And 9 more matches
order - SVG: Scalable Vector Graphics
the order attribute
indicates the size of the matrix to be used by a <feconvolvematrix> element.
... only one element is us
ing this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="emboss1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="3"/> </filter> <filter id="emboss2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="1 1 1"/> </filter> <rect x="0" y="0" width="200" height="200" style="filter:url(#emboss1);" /> <rect x="0" y="0" width="200" height="200" style="filter:url(#emboss2); transform: translatex(220px);" /> </svg> usage notes value <number-opti...
...onal-number> default value 3 animatable yes <number-optional-number> this value
indicates the number of cells
in each dimension for the kernel matrix.
...And 9 more matches
result - SVG: Scalable Vector Graphics
the result attribute def
ines the assigned name for this filter primitive.
... if supplied, then graphics that result from process
ing this filter primitive can be referenced by an
in attribute on a subsequent filter primitive with
in the same <filter> element.
... if no value is provided, the output will only be available for re-use as the implicit
input
into the next filter primitive if that filter primitive provides no value for its
in attribute.
...And 9 more matches
stroke-miterlimit - SVG: Scalable Vector Graphics
the stroke-miterlimit attribute is a presentation attribute def
ining a limit on the ratio of the miter length to the stroke-width used to draw a miter jo
in.
... when the limit is exceeded, the jo
in is converted from a miter to a bevel.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing n
ine elements: <altglyph>, <path>, <polygon>, <polyl
ine>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 38 30" xmlns="http://www.w3.org/2000/svg"> <!-- impact of the default miter limit --> <path stroke="black" fill="none" stroke-l
inejo
in="miter" id="p1" d="m1,9 l7 ,-3 l7 ,3 m2,0 l3.5 ,-3 l3.5 ,3 m2,0 l2 ,-3 l2 ,3 m2,0 l0.75,-3 l0.75,3 m2,0 l0.5 ,-3 l0.5 ,3" /> <!-- impact of the smallest miter limit (1) --> <path stroke="black" fill="none" stroke-l
inejo
in="miter" stroke-miterl...
...And 9 more matches
<mask> - SVG: Scalable Vector Graphics
the <mask> element def
ines an alpha mask for composit
ing the current object
into the background.
... a mask is used/referenced us
ing the mask property.
... html,body,svg { height:100% } <svg viewbox="-10 -10 120 120"> <mask id="mymask"> <!-- everyth
ing under a white pixel will be visible --> <rect x="0" y="0" width="100" height="100" fill="white" /> <!-- everyth
ing under a black pixel will be
invisible --> <path d="m10,35 a20,20,0,0,1,50,35 a20,20,0,0,1,90,35 q90,65,50,95 q10,65,10,35 z" fill="black" /> </mask> <polygon po
ints="-10,110 110,110 110,-10" fill="orange" /> <!-- with this mask applied, we "punch" a heart shape hole
into the circle --> <circle cx="50" cy="50" r="50" mask="url(#mymask)" /> </svg> attributes height this attribute def
ines the height of the mask
ing area.
...And 9 more matches
<tspan> - SVG: Scalable Vector Graphics
the svg <tspan> element def
ines a subtext with
in a <text> element or another <tspan> element.
... </text> </svg> attributes x the x coord
inate of the start
ing po
int of the text basel
ine.
... value type: <length>|<percentage> ; default value: none; animatable: yes y the y coord
inate of the start
ing po
int of the text basel
ine.
...And 9 more matches
Secure contexts - Web security
a secure context is a w
indow or worker for which certa
in m
inimum standards of authentication and confidentiality are met.
... many web apis and features are accessible only
in a secure context.
... the primary goal of secure contexts is to prevent mitm attackers from access
ing powerful apis that could further compromise the victim of an attack.
...And 9 more matches
<xsl:decimal-format> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:decimal-format> element def
ines the characters and symbols that are to be used
in convert
ing numbers
into str
ings us
ing theformat-number( ) function.
... syntax <xsl:decimal-format name=name decimal-separator=character group
ing-separator=character
inf
inity=str
ing m
inus-sign=character nan=str
ing percent=character per-mille=charater zero-digit=character digit=character pattern-separator=character /> required attributes none.
... decimal-separator specifies the decimal po
int character.
...And 9 more matches
notifications - Archive of obsolete content
usage this api supports desktop notifications on w
indows, os x us
ing growl (and notification center as of os x 10.9 mavericks), and l
inux us
ing libnotify.
...when the message is clicked, a str
ing is logged to the console.
... var notifications = require("sdk/notifications"); notifications.notify({ title: "jabberwocky", text: "'twas brillig, and the slithy toves", data: "did gyre and gimble
in the wabe", onclick: function (data) { console.log(data); // console.log(this.data) would produce the same result.
...And 8 more matches
timers - Archive of obsolete content
globals constructors functions settimeout(callback, ms) schedules callback to be called
in ms milliseconds.
... ms :
integer
interval
in milliseconds after which the function will be called.
... returns
integer : an id that can later be used to undo this schedul
ing, if callback hasn't yet been called.
...And 8 more matches
stylesheet/style - Archive of obsolete content
experimental modify styles us
ing stylesheet files or css rules.
...stylesheet file url(s) are verified to be local to an add-on, while css rules are verified to be a str
ing or array of str
ings.
... the style created can be applied to a content by call
ing attach, and removed us
ing detach.
...And 8 more matches
List of Former Mozilla-Based Applications - Archive of obsolete content
the follow
ing is a list of all known applications that at one po
int used mozilla technologies or that are no longer be
ing actively ma
inta
ined.
... a list of actively ma
inta
ined mozilla-based applications is also available.
... applications that switched to another technology name description additional
information angelsoft tools for startups, vcs, and angel
investors switched from xulrunner-based client to a web application autodesk maya 3d model
ing tool switched off of gecko for help browser
in version 8.5 blam feed reader switched to webkit
in version 1.8.6 boxee media center software switched to webkit
in version 1.0 epiphany browser switched from gecko to webkit flock social brows
ing flock switched from be
ing firefox-based to chromium-based when it released a new beta on june 16, 2010 jolicloud web operat
ing system as of march 2010, rw/w reports jolicloud is on chrome/chrome os j...
...And 8 more matches
XPCOM guide
these articles provide tutorials and usage documentation for xpcom,
includ
ing how to use it
in your own projects and how to build xpcom components for your firefox add-ons and the like.
... avoid
ing leaks
in javascript xpcom componentsprogrammers writ
ing and review
ing javascript code
in mozilla should understand how code us
ing xpcom
in javascript can leak so that they can avoid leaks.
... this document attempts to help them do so, first by expla
ining the underly
ing concepts, and second by describ
ing a number of common javascript patterns that cause leaks.creat
ing xpcom componentsthis guide is about gecko, and about creat
ing xpcom components for gecko-based applications.how to build an xpcom component
in javascriptif you are look
ing for add-on sdk solution for xpcom javascript components then check out platform/xpcom module first.
inherit
ing from implementation classesgiven that idl
interfaces map to abstract classes
in c++, a common problem when deal
ing with idl is when you have an idl
inheritance hierarchy, and a correspond
ing c++ implementation hierarchy, you run
into multiple
inheritance.
...And 8 more matches
Components.Constructor
summary creates a javascript function which can be used to create or construct new
instances of xpcom components.
... syntax var func = [ new ] components.constructor(contractid [,
interfacename [,
initializer ] ]); parameters contractid a str
ing conta
ining the contract id of the component
interfacename if given, nsisupports.query
interface() will be called on each newly-created
instance with the
interface named by this str
ing
initializer if given, a str
ing conta
ining the name of a function which will be called on the newly-created
instance, us
ing the arguments provided to the created function when called description components.constructor() is a handy shortcut for creat
ing
instances of xpcom components.
... it elim
inates the clutter of typ
ing components.classes, components.
interfaces, create
instance, and so on every time you wish to create an
instance.
...And 8 more matches
xpcshell
unlike the ord
inary js shell (js), xpcshell lets the scripts runn
ing
in it access xpcom functionality.
... runn
ing xpcshell ./run-mozilla.sh ./xpcshell xpcshell is almost always
in the same directory as run-mozilla.sh.
...(however, it might not be there if you have a non-debug version of firefox, mozilla, thunderbird, etc.) $ cd /opt/mozilla $ ./run-mozilla.sh ./xpcshell js> execute xpcshell from w
indow the built xpcshell.exe can't be executed under the mozilla build shell(bash).
...And 8 more matches
XPCOM glue classes
when these classes are used by a component, you may need to l
ink the component aga
inst the xpcom glue library.
...asciitoutf16 externalclass declarationns 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.
... if there is no base class method with the same signature, a compiler with static-check
ing enabled will fail to compile.ns_postconditionmacrons_preconditionmacronsacstr
ingthe nsacstr
ing abstract class represents a character str
ing composed of s
ingle-byte storage units.
...And 8 more matches
imgICache
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) as of firefox 18, there is no longer a s
ingle image cache.
... that means that us
ing getservice
in order to obta
in it will yield
incorrect results.
... use the follow
ing snippet to obta
in a relevant image cache for a given document or channel (where relevantdocument is a document object that conta
ins images you care about, or relevantchannel is an nsichannel that is used for fetch
ing images): var tools = components.classes["@mozilla.org/image/tools;1"].getservice(components.
interfaces.imgitools); var 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.
...And 8 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.
...
inherits from: nsisupports last changed
in gecko 1.7 this
interface is the base class for decoders for specific image formats.
... method overview void close(); void flush(); void
init(
in imgiload aload); unsigned long writefrom(
in nsi
inputstream
instr,
in unsigned long count); methods close() closes the stream.
...And 8 more matches
mozIStorageError
the mozistorageerror
interface represents errors returned by the storage api, offer
ing attributes to obta
in the error code as well as a human-readable error message correspond
ing to the error that occurred.
... last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0)
inherits from: nsisupports attributes attribute type description message autf8str
ing a human readable error str
ing with details; this may be null if no details are available.
... constants constant value description error 1 general sql error, or miss
ing database ioerr 10 a disk i/o error occurred.
...And 8 more matches
nsIAccessibleSelectable
accessible/public/nsiaccessibleselectable.idlscriptable an
interface for the accessibility module and
in-process accessibility clients for deal
ing with gett
ing and chang
ing the selection of accessible nodes.
...
inherits from: nsisupports last changed
in gecko 1.7 method overview void addchildtoselection(
in long
index); void clearselection(); nsiarray getselectedchildren(); boolean ischildselected(
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.
...if the specified object is already selected, then it does noth
ing.
...And 8 more matches
nsIClipboardCommands
webshell/public/nsiclipboardcommands.idlscriptable an
interface for embedd
ing clients who wish to
interact with the system-wide os clipboard.
... mozilla does not use a private clipboard,
instead it places its data directly onto the system clipboard.
... the webshell implements this
interface.
...And 8 more matches
nsICookieManager
an optional
interface for access
ing or remov
ing the cookies that are
in the cookie list.
... last changed
in gecko 1.7
inherits from: nsisupports this
interface is
intended to be used as a service.
... it is implemented by the @mozilla.org/cookiemanager;1 component, but should generally be accessed via services.cookies method overview void remove(
in autf8str
ing ahost,
in acstr
ing aname,
in autf8str
ing apath,
in boolean ablocked,
in jsval aorig
inattributes); void removeall(); attributes attribute type description enumerator nsisimpleenumerator called to enumerate through each cookie
in the cookie list.
...And 8 more matches
nsICookieStorage
obsolete s
ince gecko 2 (firefox 4 / thunderbird 3.3 / seamonkey 2.1)this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 8 more matches
nsIDOMMouseScrollEvent
dom/
interfaces/events/nsidommousescrollevent.idlscriptable this
interface represents a mouse scroll wheel event.
... 1.0 66
introduced gecko 1.9.1
inherits from: nsidommouseevent last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) gecko 1.9.2 note prior to gecko 1.9.2, this
inherited from nsisupports
instead of from nsidommouseevent.
... method overview void
initmousescrollevent(
in domstr
ing typearg,
in boolean canbubblearg,
in boolean cancelablearg,
in nsidomabstractview viewarg,
in long detailarg,
in long screenxarg,
in long screenyarg,
in long clientxarg,
in long clientyarg,
in boolean ctrlkeyarg,
in boolean altkeyarg,
in boolean shiftkeyarg,
in boolean metakeyarg,
in unsigned short buttonarg,
in nsidomeventtarget relatedtargetarg,
in long axis); attributes attribute type description axis long
indicates which mouse wheel axis changed; this will be either horizontal_axis or vertical_axis.
...And 8 more matches
nsIPropertyBag
xpcom/ds/nsipropertybag.idlscriptable this
interface is used to store a set of properties.
...
inherits from: nsisupports last changed
in gecko 1.0 method overview nsivariant getproperty(
in astr
ing name); attributes attribute type description enumerator nsisimpleenumerator get a nsisimpleenumerator whose elements are nsiproperty objects.
... nsivariant getproperty(
in astr
ing name ); parameters name the name to return the match
ing property.
...And 8 more matches
nsIProtocolProxyFilter
netwerk/base/public/nsiprotocolproxyfilter.idlscriptable this
interface is used to apply filters to the proxies selected for a given uri.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) this
interface is used to apply filters to the proxies selected for a given uri.
... use nsiprotocolproxyservice.registerfilter() to hook up
instances of this
interface.
...And 8 more matches
nsISimpleEnumerator
xpcom/ds/nsisimpleenumerator.idlscriptable this
interface represents an enumeration of xpcom objects and provides methods to access elements sequentially.
...
inherits from: nsisupports last changed
in gecko 0.9.6 method overview nsisupports getnext(); boolean hasmoreelements(); methods getnext() called to retrieve the next element
in the enumerator.
...this method is generally called with
in a loop to iterate over the elements
in the enumerator.
...And 8 more matches
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.
... this
interface is only available
in workers as it enables synchronous i/o that could potentially block.
... syntax arraybuffer readasarraybuffer(
in blob blob ); parameters blob the dom file or blob to read
into the file or arraybuffer.
...And 8 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.
... syntax filesystemfileentry.createwriter(successcallback[, errorcallback]); parameters successcallback a callback function which is called when the filewriter has been created successfully; the filewriter is passed
into the callback as the only parameter.
... errorcallback optional if provided, this must be a method which is caled when an error occurs while try
ing to create the filewriter.
...And 8 more matches
FocusEvent - Web APIs
the focusevent
interface represents focus-related events,
includ
ing focus, blur, focus
in, and focusout.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/uievent" target="_t...
...op"><rect x="116" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="153.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">uievent</text></a><polyl
ine po
ints="191,25 201,20 201,30 191,25" stroke="#d4dde4" fill="none"/><l
ine x1="201" y1="25" x2="231" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/focusevent" target="_top"><rect x="231" y="1" width="100" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="281" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">focusevent</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: a...
...And 8 more matches
GeolocationPositionError - Web APIs
the geolocationpositionerror
interface represents the reason of an error occurr
ing when us
ing the geolocat
ing device.
... properties the geolocationpositionerror
interface doesn't
inherit any property.
... geolocationpositionerror.code read only secure context returns an unsigned short represent
ing the error code.
...And 8 more matches
msAudioCategory - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the msaudiocategory property of the html <audio> element, is a read/write proprietary attribute, specific to
internet explorer and microsoft edge.
...And 8 more matches
HTMLElement.hidden - Web APIs
this is quite different from us
ing the css property display to control the visibility of an element.
... appropriate use cases for hidden
include: content that isn't yet relevant but may be needed later content that was previously needed but is not any longer content that is reused by other parts of the page
in a template-like fashion creat
ing an offscreen canvas as a draw
ing buffer
inappropriate use cases
include: hid
ing panels
in a tabbed dialog box hid
ing content
in one presentation while
intend
ing it to be visible
in others elements that are not hidden must not l
ink to elements which are.
... example here's an example where a hidden block is used to conta
in a thank you message that is displayed after a user agrees to an unusual request.
...And 8 more matches
HTMLIFrameElement.allowPaymentRequest - Web APIs
the allowpaymentrequest property of the htmliframeelement
interface returns a boolean
indicat
ing whether the payment request api may be
invoked on a cross-orig
in iframe.
... specifications specification status comment payment request apithe def
inition of 'allowpaymentrequest'
in that specification.
... html liv
ing standardthe def
inition of 'htmliframeelement: allowpaymentrequest'
in that specification.
...And 8 more matches
HTMLMediaElement.audioTracks - Web APIs
the read-only audiotracks property on htmlmediaelement objects returns an audiotracklist object list
ing all of the audiotrack objects represent
ing the media element's audio tracks.
...once you have a reference to the list, you can monitor it for changes to detect when new audio tracks are added or exist
ing ones removed.
... see event handlers
in audiotracklist to learn more about watch
ing for changes to a media element's track list.
...And 8 more matches
HTMLMediaElement.autoplay - Web APIs
the htmlmediaelement.autoplay property reflects the autoplay html attribute,
indicat
ing whether playback should automatically beg
in as soon as enough media is available to do so without
interruption.
... a media element whose source is a mediastream and whose autoplay property is true will beg
in playback when it becomes active (that is, when mediastream.active becomes true).
...if you must offer autoplay functionality, you should make it opt-
in (requir
ing a user to specifically enable it).
...And 8 more matches
HTMLMediaElement.seekToNextFrame() - Web APIs
the htmlmediaelement.seektonextframe() method asynchronously advances the the current play position to the next frame
in the media.
... this non-standard method is part of an experimentation process around support for non-real-time access to media for tasks
includ
ing filter
ing, edit
ing, and so forth.
... you should not use this method
in production code, because its implementation may change—or be removed outright—without notice.
...And 8 more matches
HTMLMediaElement.srcObject - Web APIs
the srcobject property of the htmlmediaelement
interface sets or returns the object which serves as the source of the media associated with the htmlmediaelement.
... the object can be a mediastream, a mediasource, a blob, or a file (which
inherits from blob).
... note: as of march 2020, only safari supports sett
ing objects other than mediastream.
...And 8 more matches
HTMLSpanElement - Web APIs
the htmlspanelement
interface represents a <span> element and derives from the htmlelement
interface, but without implement
ing any additional properties or methods.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 8 more matches
HTMLTimeElement - Web APIs
the htmltimeelement
interface provides special properties (beyond the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <time> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 8 more matches
History.back() - Web APIs
the history.back() method causes the browser to move back one page
in the session history.
... it has the same effect as call
ing history.go(-1).
... if there is no previous page, this method call does noth
ing.
...And 8 more matches
IDBCursor.key - Web APIs
the key read-only property of the idbcursor
interface returns the key for the record at the cursor's position.
... if the cursor is outside its range, this is set to undef
ined.
... note: this feature is available
in web workers.
...And 8 more matches
SVGAElement - Web APIs
the svgaelement
interface provides access to the properties of <a> element, as well as methods to manipulate them.
... properties this
interface also
inherits properties from its parent, svggraphicselement, and implements properties from svgurireference and htmlhyperl
inkelementutils.
... svgaelement.hreflang is a domstr
ing that reflects the hreflang attribute,
indicat
ing the language of the l
inked resource.
...And 8 more matches
SVGAnimateElement - Web APIs
the svganimateelement
interface corresponds to the <animate> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGClipPathElement - Web APIs
the svgclippathelement
interface provides access to the properties of <clippath> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGFEDistantLightElement - Web APIs
the svgfedistantlightelement
interface corresponds to the <fedistantlight> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGFEImageElement - Web APIs
the svgfeimageelement
interface corresponds to the <feimage> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGFilterPrimitiveStandardAttributes - Web APIs
the svgfilterprimitivestandardattributes
interface def
ines the set of dom attributes that are common across the filter primitive
interfaces.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgfilterprimitivestandardattributes" target="_top"><rect x="1" y="1" width="360" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="181" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">svgfilterprimitivestandardattributes</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties svgfilterprimitivestandarda...
...ttributes.x read only an svganimatedlength correspond
ing to the x attribute of the given element.
...And 8 more matches
SVGGElement - Web APIs
the svggelement
interface corresponds to the <g> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGGlyphRefElement - Web APIs
the svgglyphrefelement
interface corresponds to the <glyphref> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgglyphrefelement" target="_top"><rect x="1" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">svgglyphrefelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties this
interface also
inherits properties from its parent, svgeleme...
... svgglyphrefelement.glyphref a domstr
ing correspond
ing to the glyphref attribute of the given element.
...And 8 more matches
SVGScriptElement - Web APIs
the svgscriptelement
interface corresponds to the svg <script> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGStopElement - Web APIs
the svgstopelement
interface corresponds to the <stop> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGSwitchElement - Web APIs
the svgswitchelement
interface corresponds to the <switch> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 8 more matches
SVGTSpanElement - Web APIs
the svgtspanelement
interface represents a <tspan> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 8 more matches
Selection.extend() - Web APIs
the selection.extend() method moves the focus of the selection to a specified po
int.
... syntax sel.extend(node, offset) parameters node the node with
in which the focus will be moved.
... offset optional the offset position with
in node where the focus will be moved to.
...And 8 more matches
ServiceWorkerMessageEvent - Web APIs
important:
in modern browsers, this
interface has been deprecated.
... service worker messages will now use the messageevent
interface, for consistency with other web messag
ing features.
... the serviceworkermessageevent
interface of the serviceworker api conta
ins
information about an event sent to a serviceworkerconta
iner target.
...And 8 more matches
SourceBuffer.abort() - Web APIs
the abort() method of the sourcebuffer
interface aborts the current segment and resets the segment parser.
... return value undef
ined.
... exceptions exception explanation
invalidstateerror the mediasource.readystate property of the parent media source is not equal to open, or this sourcebuffer has been removed from the mediasource.
...And 8 more matches
class expression - JavaScript
the class expression is one way to def
ine a class
in ecmascript 2015.
... javascript classes use prototype-based
inheritance.
... the source for this
interactive example is stored
in a github repository.
...And 8 more matches
class - JavaScript
the class declaration creates a new class with a given name us
ing prototype-based
inheritance.
... the source for this
interactive example is stored
in a github repository.
... 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.
...And 8 more matches
display - Web app manifests
type str
ing mandatory no the display member is a str
ing that determ
ines the developers’ preferred display mode for the website.
... the display mode changes how much of browser ui is shown to the user and can range from browser (when the full browser w
indow is shown) to fullscreen (when the app is full-screened).
... note: you can selectively apply css to your app based on the display mode, us
ing the display-mode media feature.
...And 8 more matches
dur - SVG: Scalable Vector Graphics
the dur attribute
indicates the simple duration of an animation.
... five elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 220 150" xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="
indef
inite"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="3s" repeatcount="
indef
inite"/> </rect> </svg> usage notes value <clock-value> | media |
indef
inite default value
indef
inite animatable no <clock-value> this value specifies the length of the simple duration.
... the value must be greater than 0 and can be expressed with hours (h), m
inutes (m), seconds (s) or milliseconds (ms).
...And 8 more matches
orient - SVG: Scalable Vector Graphics
the orient attribute
indicates how a marker is rotated when it is placed at its position on the shape.
... only one element is us
ing this attribute: <marker> html, body, svg { height: 100%; } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="arrow" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="6" markerheight="6" orient="auto-start-reverse"> <path d="m 0 0 l 10 5 l 0 10 z" /> </marker> <marker id="dataarrow" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="6" markerheight="6" orient="-65deg"> <path d="m 0 0 l 10 5 l 0 10 z" fill="red" /> </marker> </defs> <polyl
ine po
ints="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <polyl
ine po
ints="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="ur...
...l(#dataarrow)" marker-mid="url(#dataarrow)" marker-end="url(#dataarrow)" /> </svg> usage notes value auto | auto-start-reverse | <angle> | <number> default value 0 animatable yes (non-additive) auto this value
indicates that the marker is oriented such that its positive x-axis is po
int
ing
in a direction relative to the path at the position the marker is placed.
...And 8 more matches
overflow - SVG: Scalable Vector Graphics
the overflow attribute sets what to do when an element's content is too big to fit
in its block formatt
ing context.
... it has the same parameter values and mean
ing as the css overflow property, however, the follow
ing additional po
ints apply: if it has a value of visible, the attribute has no effect (i.e., a clipp
ing rectangle is not created).
... with
in svg content, the value auto implies that all rendered content for child elements must be visible, either through a scroll
ing mechanism, or by render
ing with no clip.
...And 8 more matches
r - SVG: Scalable Vector Graphics
the r attribute def
ines the radius of a circle.
... two elements are us
ing this attribute: <circle>, and <radialgradient> html,body,svg { height:100% } <svg viewbox="0 0 300 200" xmlns="http://www.w3.org/2000/svg"> <radialgradient r="0" id="mygradient000"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <radialgradient r="50%" id="mygradient050"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <radialgradient r="100%" id="mygradient100"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <circle cx="50" cy="50" r="0"/> <circle cx="150" cy="50" r="25"/> <circle cx="250" cy="50" r="50"/> <rect x="20" y="120" width="60" height="60" fil...
...l="url(#mygradient000)" /> <rect x="120" y="120" width="60" height="60" fill="url(#mygradient050)" /> <rect x="220" y="120" width="60" height="60" fill="url(#mygradient100)" /> </svg> circle for <circle>, r def
ines the radius of the circle and therefor its size.
...And 8 more matches
y1 - SVG: Scalable Vector Graphics
the y1 attribute is used to specify the first y-coord
inate for draw
ing an svg element that requires more than one coord
inate.
... elements that only need one coord
inate use the y attribute
instead.
... two elements are us
ing this attribute: <l
ine>, and <l
ineargradient> html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <l
ine x1="1" x2="9" y1="1" y2="5" stroke="red" /> <l
ine x1="1" x2="9" y1="5" y2="5" stroke="green" /> <l
ine x1="1" x2="9" y1="9" y2="5" stroke="blue" /> </svg> l
ine for <l
ine>, y1 def
ines the y coord
inate of the start
ing po
int of the l
ine.
...And 8 more matches
y2 - SVG: Scalable Vector Graphics
the y2 attribute is used to specify the second y-coord
inate for draw
ing an svg element that requires more than one coord
inate.
... elements that only need one coord
inate use the y attribute
instead.
... two elements are us
ing this attribute: <l
ine>, and <l
ineargradient> html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <l
ine x1="1" x2="9" y1="5" y2="1" stroke="red" /> <l
ine x1="1" x2="9" y1="5" y2="5" stroke="green" /> <l
ine x1="1" x2="9" y1="5" y2="9" stroke="blue" /> </svg> l
ine for <l
ine>, y2 def
ines the y coord
inate of the end
ing po
int of the l
ine.
...And 8 more matches
SVG Attribute reference - SVG: Scalable Vector Graphics
svg elements can be modified us
ing attributes that specify details about exactly how the element should be handled or rendered.
... below is a list of all of the attributes available
in svg along with l
inks to reference documentation to help you learn which elements support them and how they work.
... svg attributes a to z a accent-height accumulate additive alignment-basel
ine allowreorder alphabetic amplitude arabic-form ascent attributename attributetype autoreverse azimuth b basefrequency basel
ine-shift baseprofile bbox beg
in bias by c calcmode cap-height class clip clippathunits clip-path clip-rule color color-
interpolation color-
interpolation-filters color-profile color-render
ing contentscripttype contentstyletype cursor cx cy d d decelerate descent diffuseconstant direction display divisor dom
inant-basel
ine dur dx dy e edgemode elevation enable-background end exponent externalresourcesrequired f fill fill-opacity fill-rule filter filterres filterunits flood-color flood-opacity font-family font-...
...And 8 more matches
<circle> - SVG: Scalable Vector Graphics
the <circle> svg element is an svg basic shape, used to draw circles based on a center po
int and a radius.
... html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <circle cx="50" cy="50" r="50"/> </svg> attributes cx the x-axis coord
inate of the center of the circle.
... value type: <length>|<percentage> ; default value: 0; animatable: yes cy the y-axis coord
inate of the center of the circle.
...And 8 more matches
<feComponentTransfer> - SVG: Scalable Vector Graphics
th <fecomponenttransfer> svg filter primitive performs color-component-wise remapp
ing of data for each pixel.
... it allows operations like brightness adjustment, contrast adjustment, color balance or threshold
ing.
...the colors are modified by chang
ing each channel (r, g, b, and a) to the result of what the children <fefuncr>, <fefuncb>, <fefuncg>, and <fefunca> return.
...And 8 more matches
<foreignObject> - SVG: Scalable Vector Graphics
the <foreignobject> svg element
includes elements from a different xml namespace.
...
in the context of a browser, it is most likely (x)html.
... html,body,svg { height:100% } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <style> div { color: white; font: 18px serif; height: 100%; overflow: auto; } </style> <polygon po
ints="5,5 195,10 185,185 10,195" /> <!-- common use case: embed html text
into svg --> <foreignobject x="20" y="20" width="160" height="160"> <!--
in the context of svg embedded
in an html document, the xhtml namespace could be omitted, but it is mandatory
in the context of an svg document --> <div xmlns="http://www.w3.org/1999/xhtml"> lorem ipsum dolor sit amet, consectetur adipisc
ing elit.
...And 8 more matches
<textPath> - SVG: Scalable Vector Graphics
to render text along the shape of a <path>, enclose the text
in a <textpath> element that has an href attribute with a reference to the <path> element.
... html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!-- to hide the path, it is usually wrapped
in a <defs> element --> <!-- <defs> --> <path id="mypath" fill="none" stroke="red" d="m10,90 q90,90 90,45 q90,10 50,10 q10,10 10,40 q10,70 45,70 q70,70 75,50" /> <!-- </defs> --> <text> <textpath href="#mypath"> quick brown fox jumps over the lazy dog.
... value type: spac
ing|spac
ingandglyphs; default value: spac
ing; animatable: yes method which method to render
individual glyphs along the path.
...And 8 more matches
SVG Filters Tutorial - SVG: Scalable Vector Graphics
filters svg allows us to use similar tools as the bitmap description language such as the use of shadow, blur effects or even merg
ing the results of different filters.
...when creat
ing them, try apply
ing and test
ing the effect step by step.
... this element has different attributes that help us create the clipp
ing region.
...And 8 more matches
FederatedCredential.protocol - Web APIs
the protocol property of the federatedcredential
interface returns a read-only domstr
ing conta
ining a credential's federated identity protocol.
... if this property is null, the protocol may be
inferred from the federatedcredential.provider property.
... syntax var protocol = federatedcredential.protocol value a domstr
ing conta
ining a credential's federated identity protocol (e.g.
...And 7 more matches
File.getAsText() - Web APIs
obsolete s
ince gecko 7.0 (firefox 7.0 / thunderbird 7.0 / seamonkey 2.4)this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 7 more matches
FileReaderSync.readAsDataURL() - Web APIs
the readasdataurl() method of the filereadersync
interface allows to read file or blob objects
in a synchronous way
into an domstr
ing represent
ing a data url.
... this
interface is only available
in workers as it enables synchronous i/o that could potentially block.
... return value an domstr
ing represent
ing the
input data as a data url.
...And 7 more matches
FontFaceSet - Web APIs
the fontfaceset
interface of the css font load
ing api manages the load
ing of font-faces and query
ing of their download status.
... properties fontfaceset.status read only
indicates the font-face's load
ing status.
... it will be one of 'load
ing' or 'loaded'.
...And 7 more matches
FontFaceSetLoadEvent - Web APIs
the fontfacesetloadevent
interface of the the css font load
ing api is fired whenever a fontfaceset loads.
... properties fontfacesetloadevent.fontfacesread only returns an array of fontface
instances each of which represents a s
ingle usable font.
... specifications specification status comment css font load
ing module level 3the def
inition of 'fontfacesetloadevent'
in that specification.
...And 7 more matches
FormData.set() - Web APIs
the set() method of the formdata
interface sets a new value for an exist
ing key
inside a formdata object, or adds the key/value if it does not already exist.
... the difference between set() and formdata.append is that if the specified key does already exist, set() will overwrite all exist
ing values with the new one, whereas formdata.append will append the new value onto the end of the exist
ing set of values.
... note: this method is available
in web workers.
...And 7 more matches
Geolocation - Web APIs
the geolocation
interface represents an object able to programmatically obta
in the position of the device.
... an object with this
interface is obta
ined us
ing the navigator.geolocation property implemented by the navigator object.
... note: for security reasons, when a web page tries to access location
information, the user is notified and asked to grant permission.
...And 7 more matches
HTMLBRElement - Web APIs
the htmlbrelement
interface represents a html l
ine break element (<br>).
... it
inherits from htmlelement.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
...And 7 more matches
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.
... it displays
into the top layer, along with a ::backdrop pseudo-element.
...
interaction outside the dialog is blocked and the content outside it is rendered
inert.
...And 7 more matches
HTMLDocument - Web APIs
the htmldocument
interface, which may be accessed through the w
indow.htmldocument property, extends the w
indow.htmldocument property to
include methods and properties that are specific to html documents.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/nod...
...e" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/document" target="_top"><rect x="266" y="1" width="80" height="50" fill="#fff" 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-basel
ine="middle">document</text></a><polyl
ine po
ints="346,25 356,20 356,30 346,25" stroke="#d4d...
...And 7 more matches
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.
... this can be used to
initiate load
ing of the image prior to attach
ing it to an element
in the dom (or add
ing it to the dom as a new element), so that the image can be rendered immediately upon be
ing added to the dom.
... this,
in turn, prevents the render
ing of the next frame after add
ing the image to the dom from caus
ing a delay while the image loads.
...And 7 more matches
HTMLImageElement.longDesc - Web APIs
the obsolete property longdesc on the htmlimageelement
interface specifies the url of a text or html file which conta
ins a long-form description of the image.
... this can be used to provide optional added details beyond the short description provided
in the title attribute.
... syntax descurl = htmlimageelement.longdesc; htmlimageelement.longdesc = descurl; value a domstr
ing which may be either an empty str
ing (
indicat
ing that no long description is available) or the url of a file conta
ining a long form description of the image's contents.
...And 7 more matches
HTMLMediaElement.onencrypted - Web APIs
the onencrypted property of the htmlmediaelement is an event handler, fired whenever an encrypted event occurs, denot
ing the media is encrypted.
... this
interface
inherits from the extendableevent
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node...
...And 7 more matches
HTMLMenuElement - Web APIs
the htmlmenuelement
interface provides special properties (beyond those def
ined on the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <menu> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 7 more matches
HTMLTemplateElement - Web APIs
the htmltemplateelement
interface enables access to the contents of an html <template> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 7 more matches
RTCPeerConnection.onnegotiationneeded - Web APIs
the rtcpeerconnection
interface's onnegotiationneeded property is an eventlistener which specifies a function which is called to handle the negotiationneeded event when it occurs on an rtcpeerconnection
instance.
...if the session is modified
in a manner that requires negotiation while a negotiation is already
in progress, no negotiationneeded event will fire until negotiation completes, and only then if negotiation is still needed.
... syntax rtcpeerconnection.onnegotiationneeded = eventhandler; value this should be set to a function you provide which is passed a s
ingle parameter: an event object conta
ining the negotiationneeded event.
...And 7 more matches
RTCPeerConnection.ontrack - Web APIs
the rtcpeerconnection property ontrack is an eventhandler which specifies a function to be called when the track event occurs,
indicat
ing that a track has been added to the rtcpeerconnection.
... the function receives as
input the event object, of type rtctrackevent; this event is sent when a new
incom
ing mediastreamtrack has been created and associated with an rtcrtpreceiver object which has been added to the set of receivers on connection.
... syntax rtcpeerconnection.ontrack = eventhandler; value set ontrack to be a function you provide that accepts as
input a rtctrackevent object describ
ing the new track and how it's be
ing used.
...And 7 more matches
RTCRtcpParameters - Web APIs
properties cname the canonical name (cname) be
ing used by rtcp.
... this is used, for example,
in sdes (sdp security descriptions) messages, described
in rfc 4568.
... this property cannot be changed once
initialized.
...And 7 more matches
RTCRtpCodecParameters - Web APIs
the rtcrtpcodecparameters dictionary, part of the webrtc api, is used to describe the configuration parameters for a s
ingle media codec.
...
in addition to be
ing the type of the rtcrtpparameters.codecs property, it's used when call
ing rtcrtptransceiver.setcodecpreferences() to configure a transceiver's codecs before beg
inn
ing the offer/answer process to establish a webrtc peer connection.
... most of the fields
in this property take values which are def
ined and ma
inta
ined by the
internet assigned numbers authority (iana).
...And 7 more matches
RTCRtpStreamStats.firCount - Web APIs
the fircount property of the rtcrtpstreamstats dictionary
indicates the number of full
intra request (fir) packets have been sent by the receiver to the sender.
... this is a measure of how often the stream falls beh
ind and has to skip frames
in order to catch up.
... syntax var fircount = rtcrtpstreamstats.fircount; value an
integer value
indicat
ing how many fir packets have been received by the sender dur
ing the current connection.
...And 7 more matches
RTCRtpStreamStats.pliCount - Web APIs
the plicount property of the rtcrtpstreamstats dictionary states the number of times the stream's receiv
ing end sent a picture loss
indication (pli) packet to the sender.
... a pli packet
indicates that some amount of encoded video data has been lost for one or more frames.
... syntax var plicount = rtcrtpstreamstats.plicount; value an
integer value
indicat
ing the number of times a pli packet was sent by the stream's receiver to the sender.
...And 7 more matches
RTCRtpTransceiver.stop() - Web APIs
the stop() method
in the rtcrtptransceiver
interface permanently stops the transceiver by stopp
ing both the associated rtcrtpsender and rtcrtpreceiver.
...that property has been deprecated and will be removed at some po
int.
...
instead, check the value of currentdirection.
...And 7 more matches
RTCSctpTransport - Web APIs
the rtcsctptransport
interface provides
information which describes a stream control transmission protocol (sctp) transport.
... this provides
information about limitations of the transport, but also provides a way to access the underly
ing datagram transport layer security (dtls) transport over which sctp packets for all of an rtcpeerconnection's data channels are sent and received.
... you don't create rtcsctptransport objects yourself;
instead, you get access to the rtcsctptransport for a given rtcpeerconnection through its sctp property.
...And 7 more matches
RTCStatsIceCandidatePairState - Web APIs
the rtcstatsicecandidatepairstate enumerated type represents the set of str
ing values which are possible for the rtcicecandidatepairstats object's state property.
... this represents the state of this candidate pair with
in the ice check list for the rtcpeerconnection.
... see ice check lists
in rtcicecandidatepairstats.state for further
information about how ice check lsits work.
...And 7 more matches
RadioNodeList - Web APIs
the radionodelist
interface represents a collection of radio elements
in a <form> or a <fieldset> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/nodelist" target="_top"><rect x="1" y="1" width="80" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="41" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">nodelist</text></a><polyl
ine po
ints="81,25 91,20 91,30 81,25" stroke="#d4dde4" fill="none"/><l
ine x1="91" y1="25" x2="121" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/radionodelist" ...
...target="_top"><rect x="121" y="1" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="186" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">radionodelist</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties the radionodelist
interface
inherits the properties of nodelist.
...And 7 more matches
ResizeObserverEntry.borderBoxSize - Web APIs
the borderboxsize read-only property of the resizeobserverentry
interface returns an array conta
ining the new border box size of the observed element when the callback is run.
... syntax var myborderboxsize = resizeobserverentry.borderboxsize; value an array conta
ining objects with the new border box size of the observed element.
... the array is necessary to support elements that have multiple fragments, which occur
in multi-column scenarios.
...And 7 more matches
RsaHashedKeyGenParams - Web APIs
the rsahashedkeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter
into subtlecrypto.generatekey(), when generat
ing any rsa-based key pair: that is, when the algorithm is identified as any of rsassa-pkcs1-v1_5, rsa-pss, or rsa-oaep.
... properties name a domstr
ing.
... this should be set to rsassa-pkcs1-v1_5, rsa-pss, or rsa-oaep, depend
ing on the algorithm you want to use.
...And 7 more matches
SVGAltGlyphElement - Web APIs
the svgaltglyphelement
interface represents an <altglyph> element.
... this
interface makes it possible to implement more sophisticated and particular glyph characters.
...musical symbols) or even alternate glyphs such as asian text str
ings it is required that a different set of glyphs be used than the normal given character data.
...And 7 more matches
SVGAnimateMotionElement - Web APIs
the svganimatemotionelement
interface corresponds to the <animatemotion> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGAnimateTransformElement - Web APIs
the svganimatetransformelement
interface corresponds to the <animatetransform> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
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.
...
interface overview also implement none methods none properties svgpathseglist animatednormalizedpathseglist svgpathseglist animatedpathseglist svgpathseglist normalizedpathseglist svgpathseglist pathseglist normative document svg 1.1 (2nd edition) properties this
interface also
inherits properties from its parent, svgpathelement.
... name type description animatednormalizedpathseglist svgpathseglist provides access to the current animated contents of the 'd' attribute
in a form where all path data commands are expressed
in terms of the follow
ing subset of svgpathseg types: svg_pathseg_moveto_abs (m), svg_pathseg_l
ineto_abs (l), svg_pathseg_curveto_cubic_abs (c) and svg_pathseg_closepath (z).
...And 7 more matches
SVGCursorElement - Web APIs
the svgcursorelement
interface provides access to the properties of <cursor> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGDefsElement - Web APIs
the svgdefselement
interface corresponds to the <defs> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFEComponentTransferElement - Web APIs
the svgfecomponenttransferelement
interface corresponds to the <fecomponenttransfer> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFEFuncAElement - Web APIs
the svgfefuncaelement
interface corresponds to the <fefunca> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFEFuncBElement - Web APIs
the svgfefuncbelement
interface corresponds to the <fefuncb> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFEFuncGElement - Web APIs
the svgfefuncgelement
interface corresponds to the <fefuncg> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFEFuncRElement - Web APIs
the svgfefuncrelement
interface corresponds to the <fefuncr> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFEMergeNodeElement - Web APIs
the svgfemergenodeelement
interface corresponds to the <femergenode> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGFETileElement - Web APIs
the svgfetileelement
interface corresponds to the <fetile> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGMPathElement - Web APIs
the svgmpathelement
interface corresponds to the <mpath> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGPolygonElement - Web APIs
the svgpolygonelement
interface provides access to the properties of <polygon> elements, as well as methods to manipulate them.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGSetElement - Web APIs
the svgsetelement
interface corresponds to the <set> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGSymbolElement - Web APIs
the svgsymbolelement
interface corresponds to the <symbol> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
SVGTitleElement - Web APIs
the svgtitleelement
interface corresponds to the <title> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 7 more matches
FormDataEvent - Web APIs
the formdataevent
interface represents a formdata event — such an event is fired on an htmlformelement object after the entry list represent
ing the form's data is constructed.
... this happens when the form is submitted, but can also be triggered by the
invocation of a formdata() constructor.
... this allows a formdata object to be quickly obta
ined
in response to a formdata event fir
ing, rather than need
ing to put it together yourself when you wish to submit form data via a method like xmlhttprequest (see us
ing formdata objects).
...And 6 more matches
FullscreenOptions.navigationUI - Web APIs
the fullscreenoptions dictionary's navigationui property is used when call
ing requestfullscreen() to specify to what extent the user agent should
include its standard user
interface while the element is presented
in full-screen mode.
... syntax let fullscreenoptions = { navigationui: value }; value the value of the navigationui property must be one of the follow
ing str
ings.
... "hide" the browser's navigation
interface will be hidden and the entire dimensions of the screen will be allocated to the display of the element.
...And 6 more matches
Gamepad.buttons - Web APIs
the gamepad.buttons property of the gamepad
interface returns an array of gamepadbutton objects represent
ing the buttons present on the device.
... each entry
in the array is 0 if the button is not pressed, and non-zero (typically 1.0) if the button is pressed.
... each gamepadbutton object has two properties: pressed and value: the pressed property is a boolean
indicat
ing whether the button is currently pressed (true) or unpressed (false).
...And 6 more matches
GamepadButton - Web APIs
the gamepadbutton
interface def
ines an
individual button of a gamepad or other controller, allow
ing access to the current state of different types of buttons available on the control device.
... a gamepadbutton object is returned by query
ing any value of the array returned by the buttons property of the gamepad
interface.
... note: this is the case
in firefox gecko 28 and later; chrome and earlier firefox versions still return an array of double values when this property is accessed.
...And 6 more matches
GlobalEventHandlers.onclick - Web APIs
the onclick property of the globaleventhandlers mix
in is the eventhandler for process
ing click events on a given element.
...it fires after the mousedown and mouseup events,
in that order.
... note: when us
ing the click event to trigger an action, also consider add
ing this same action to the keydown event, to allow the use of that same action by people who don't use a mouse or a touch screen.
...And 6 more matches
GlobalEventHandlers.oncontextmenu - Web APIs
the oncontextmenu property of the globaleventhandlers mix
in is an eventhandler that processes contextmenu events.
... the contextmenu event typically fires when the right mouse button is clicked on the w
indow.
...you may prefer to use the eventtarget.addeventlistener() method
instead, s
ince it's more flexible.
...And 6 more matches
HTMLAnchorElement.referrerPolicy - Web APIs
the htmlanchorelement.referrerpolicy property reflect the html referrerpolicy attribute of the <a> element def
ining which referrer is sent when fetch
ing the resource.
... syntax refstr = anchorelt.referrerpolicy; anchorelt.referrerpolicy = refstr; values "no-referrer" mean
ing that the referer: http header will not be sent.
... "orig
in" mean
ing that the referrer will be the orig
in of the page, that is roughly the scheme, the host and the port.
...And 6 more matches
HTMLAreaElement.referrerPolicy - Web APIs
the htmlareaelement.referrerpolicy property reflect the html referrerpolicy attribute of the <area> element def
ining which referrer is sent when fetch
ing the resource.
... syntax refstr = areaelt.referrerpolicy; areaelt.referrerpolicy = refstr; values "no-referrer" mean
ing that the referer: http header will not be sent.
... "orig
in" mean
ing that the referrer will be the orig
in of the page, that is roughly the scheme, the host and the port.
...And 6 more matches
HTMLDataElement - Web APIs
the htmldataelement
interface provides special properties (beyond the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <data> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 6 more matches
HTMLDataListElement - Web APIs
the htmldatalistelement
interface provides special properties (beyond the htmlelement object
interface it also has available to it by
inheritance) to manipulate <datalist> elements and their content.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 6 more matches
HTMLElement.offsetWidth - Web APIs
the htmlelement.offsetwidth read-only property returns the layout width of an element as an
integer.
... typically, offsetwidth is a measurement
in pixels of the element's css width,
includ
ing any borders, padd
ing, and vertical scrollbars (if rendered).
... it does not
include the width of pseudo-elements such as ::before or ::after.
...And 6 more matches
HTMLFormElement.requestSubmit() - Web APIs
the htmlformelement method requestsubmit() requests that the form be submitted us
ing a specific submit button.
...this may be either an <
input> or <button> element whose type attribute is submit.
...the submitter must be either a descendant of the form element or must have an form attribute referr
ing to the form.
...And 6 more matches
HTMLImageElement.hspace - Web APIs
the obsolete hspace property of the htmlimageelement
interface specifies the number of pixels of empty space to leave empty on the left and right sides of the <img> element when lay
ing out the page.
... syntax htmlimageelement.hspace = marg
inwidth; marg
inwidth = htmlimageelement.hspace; value an
integer value specify
ing the width,
in pixels, of the horizontal marg
in to apply to the left and right sides of the image.
... usage notes the value specified for hspace is mapped to the marg
in-left and marg
in-right properties to specify the width of those marg
ins
in pixels.
...And 6 more matches
HTMLImageElement.name - Web APIs
the htmlimageelement
interface's deprecated name property specifies a name for the element.
... syntax htmlimageelement.name = namestr
ing; namestr
ing = htmlimageelement.name; value a domstr
ing provid
ing a name by which the image can be referenced.
... important: this property is deprecated and is only
in the specification still for backward compatibility purposes.
...And 6 more matches
HTMLImageElement.referrerPolicy - Web APIs
the htmlimageelement.referrerpolicy property reflects the html referrerpolicy attribute of the <img> element def
ining which referrer is sent when fetch
ing the resource.
... syntax refstr = imgelt.referrerpolicy; imgelt.referrerpolicy = refstr; values a domstr
ing represent
ing the referrer policy.
... possible values are: "no-referrer" mean
ing that the referer: http header will not be sent.
...And 6 more matches
RTCRemoteOutboundRtpStreamStats - Web APIs
the webrtc statistics model's rtcremoteoutboundrtpstreamstats dictionary extends the underly
ing rtcsentrtpstreamstats dictionary with properties measur
ing metrics specific to outgo
ing rtp streams.
... properties
in addition to the properties def
ined by rtcsentrtpstreamstats and its underly
ing rtcrtpstreamstats and rtcstats dictionaries, rtcremoteoutboundrtpstreamstats def
ines the follow
ing properties.
... localid a domstr
ing which is used to f
ind the local rtc
inboundrtpstreamstats object which shares the same synchronization source (ssrc).
...And 6 more matches
RTCRtpCodecCapability - Web APIs
the webrtc api's rtcrtpcodeccapability dictionary provides
information describ
ing the capabilities of a s
ingle media codec.
... properties channels optional an unsigned
integer value
indicat
ing the maximum number of channels supported by the codec; for example, a codec that supports only mono sound would have a value of 1; stereo codecs would have a 2, etc.
... clockrate an unsigned long
integer specify
ing the codec's clock rate
in hertz (hz).
...And 6 more matches
RTCRtpSynchronizationSource - Web APIs
a synchronization source is a s
ingle source that shares tim
ing and sequence number space.
... s
ince rtcrtpsynchronizationsource implements rtcrtpcontribut
ingsource, its properties are also available.
... the
information provided is based on the last ten seconds of media received.
...And 6 more matches
Range.selectNodeContents() - Web APIs
the range.selectnodecontents() method sets the range to conta
in the contents of a node.
...the startoffset is 0, and the endoffset is the number of child nodes or number of characters conta
ined
in the reference node.
... syntax range.selectnodecontents(referencenode); parameters referencenode the node whose contents will be selected with
in a range.
...And 6 more matches
Range.surroundContents() - Web APIs
the range.surroundcontents() method moves content of the range
into a new node, plac
ing the new node at the start of the specified range.
... this method is nearly equivalent to newnode.appendchild(range.extractcontents()); range.
insertnode(newnode).
... after surround
ing, the boundary po
ints of the range
include newnode.
...And 6 more matches
ResizeObserverEntry.target - Web APIs
the target read-only property of the resizeobserverentry
interface returns a reference to the element or svgelement that is be
ing observed.
... syntax var element = resizeobserverentry.target; var svgelement = resizeobserverentry.target; value an element or svgelement represent
ing the element be
ing observed.
... examples the follow
ing snippet is taken from the resize-observer-border-radius.html (see source) example.
...And 6 more matches
SVGDescElement - Web APIs
the svgdescelement
interface corresponds to the <desc> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 6 more matches
SVGDocument - Web APIs
svg document
interface when an "svg" element is embedded
inl
ine as a component of a document from another namespace, such as when an "svg" element is embedded
inl
ine with
in 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.
...
interface overview also implement none methods none properties domstr
ing doma
in domstr
ing referrer svgsvgelement rootelement domstr
ing title domstr
ing url normative document svg 1.1 (2nd edition) properties name type description doma
in domstr
ing the doma
in name of the server that served the document, or a null str
ing if the server cannot be identified by a doma
in na...
... referrer domstr
ing returns the uri of the page that l
inked to this page.
...And 6 more matches
SVGFEFloodElement - Web APIs
the svgfefloodelement
interface corresponds to the <feflood> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 6 more matches
SVGFEMergeElement - Web APIs
the svgfemergeelement
interface corresponds to the <femerge> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 6 more matches
SVGMetadataElement - Web APIs
the svgmetadataelement
interface corresponds to the <metadata> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/no...
...de" target="_top"><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4...
...And 6 more matches
SVGRect - Web APIs
rectangles consist of an x and y coord
inate pair identify
ing a m
inimum x value, a m
inimum y value, and a width and height, which are constra
ined to be non-negative.
... an svgrect object can be designated as read only, which means that attempts to modify the object will result
in an exception be
ing thrown.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgrect" target="_top"><rect x="1" y="1" width="75" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">svgrect</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties svgrect.x the exact effect of this coord
inate depends on each element.
...And 6 more matches
SVGURIReference - Web APIs
the svgurireference
interface is used to reflect the href attribute and the deprecated xl
ink:href attribute.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgurireference" target="_top"><rect x="1" y="1" width="150" height="50" fill="#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-basel
ine="middle">svgurireference</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties svgurireference.href read only an svganimatedstr
ing that represents ...
...the value of the href attribute, and, on elements that are def
ined to support it, the deprecated xl
ink:href attribute.
...And 6 more matches
SVGViewElement - Web APIs
the svgviewelement
interface provides access to the properties of <view> elements, as well as methods to manipulate them.
... properties this
interface also
inherits properties from its parent
interface, svgelement.
... svgviewelement.viewtarget an svgstr
inglist correspond
ing to the viewtarget attribute of the given <view> element.
...And 6 more matches
Screen Orientation API - Web APIs
the screen orientation api provides
information about the orientation of the screen.
...
interfaces screenorientation specifications specification status comment screen orientation api work
ing draft
initial def
inition.
... desktopmobilechromeedgefirefox
internet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung
internetscreenorientationchrome full support 38edge full support 79firefox full support 43ie no support noopera full support 25safari no support ...
...And 6 more matches
categories - Web app manifests
type array of str
ings mandatory no the categories member is an array of str
ings def
ining the names of categories that the application supposedly belongs to.
... there is no standard list of possible values, but the w3c ma
inta
ins a list of known categories.
... note: categories are used only as h
ints for catalogs or stores list
ing web applications.
...And 6 more matches
<mglyph> - MathML
the mathml <mglyph> element is used to display non-standard symbols where exist
ing unicode characters are not available.
... it may be used with
in token elements.
... attributes alt this attribute def
ines the alternative text describ
ing the image.
...And 6 more matches
<msubsup> - MathML
it uses the follow
ing syntax: <msubsup> base subscript superscript </msubsup>.
... href used to set a hyperl
ink to a specified uri.
... subscriptshift the m
inimum space by which to shift the subscript below the basel
ine of the expression, as a length value.
...And 6 more matches
<mtd> - MathML
the mathml <mtd> element represents a cell
in a table or a matrix.
... it may only appear
in a <mtr> element.
... columnspan a non-negative
integer value that
indicates on how many columns does the cell extend.
...And 6 more matches
<mtext> - MathML
the mathml <mtext> element is used to render arbitrary text with no notational mean
ing, such as comments or annotations.
... to display text with notational mean
ing, use <mi> and <mo>
instead.
... href used to set a hyperl
ink to a specified uri.
...And 6 more matches
Web technology reference
the open web is based on a number of technologies which, together, can be used to create everyth
ing from simple sites to powerful web applications.
... below you'll f
ind l
inks to a selection of key documentation for each.
... if you're new to web development, consider start
ing with our learn
ing area, which is filled with step-by-step tutorials that will guide you from total webdev newbie to at least semi-pro!
...And 6 more matches
clip-path - SVG: Scalable Vector Graphics
the clip-path presentation attribute def
ines or associates a clipp
ing path with the element it is related to.
... as a presentation attribute, it can be applied to any element but it has noticeable effects mostly on the follow
ing n
ineteen elements: <a>, <circle>, <clippath>, <ellipse>, <g>, <glyph>, <image>, <l
ine>, <marker>, <mask>, <path>, <pattern>, <polygon>, <polyl
ine>, <rect>, <svg>, <symbol>, <text>, <use> html,body,svg { height:100% } <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <clippath id="myclip" clippathunits="objectbound
ingbox"> <circle cx=".5" cy=".5" r=".5" /> </clippath> <!-- top-left: apply a custom def
ined clipp
ing path --> <rect x="1" y="1" width="8" height="8" stroke="green" clip-path="url(#myclip)" /> <!-- top-right: apply a css basic shape on a fill-box ...
...this is the same as hav
ing a custom clipp
ing path with a clippathunits set to objectbound
ingbox --> <rect x="11" y="1" width="8" height="8" stroke="green" clip-path="circle() fill-box" /> <!-- bottom-left --> <rect x="1" y="11" width="8" height="8" stroke="green" clip-path="circle() stroke-box" /> <!-- bottom-right: apply a css basic shape on a view-box geometry.
...And 6 more matches
clipPathUnits - SVG: Scalable Vector Graphics
the clippathunits attribute
indicates which coord
inate system to use for the contents of the <clippath> element.
... only one element is us
ing this attribute: <clippath> html,body,svg { height:100% } <svg viewbox="0 0 100 100"> <clippath id="myclip1" clippathunits="userspaceonuse"> <circle cx="50" cy="50" r="35" /> </clippath> <clippath id="myclip2" clippathunits="objectbound
ingbox"> <circle cx=".5" cy=".5" r=".35" /> </clippath> <!-- some reference rect to materialized to clip path --> <rect id="r1" x="0" y="0" width="45" height="45" /> <rect id="r2" x="0" y="55" width="45" height="45" /> <rect id="r3" x="55" y="55" width="45" height="45" /> <rect id="r4" x="55" y="0" width="45" height="45" /> <!-- the first 3 rect are clipped with usespaceonuse units --> <use clip-path="url(#myclip1)" xl
ink:href="#r1" fill="red" /> <use clip-path="url(#myclip1)" xl
ink:href="#...
...r2" fill="red" /> <use clip-path="url(#myclip1)" xl
ink:href="#r3" fill="red" /> <!-- the last rect is clipped with objectbound
ingbox units --> <use clip-path="url(#myclip2)" xl
ink:href="#r4" fill="red" /> </svg> clippath for <clippath>, clippathunits def
ine the coord
inate system
in use for the content of the element.
...And 6 more matches
enable-background - SVG: Scalable Vector Graphics
as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing eleven elements: <a>, <defs>, <glyph>, <g>, <marker>, <mask>, <miss
ing-glyph>, <pattern>, <svg>, <switch>, and <symbol> context notes value accumulate | new [ <x> <y> <width> <height> ]?
... default value accumulate animatable no accumulate if an ancestor conta
iner element has a property value of enable-background: new, then all graphics elements with
in the current conta
iner element are rendered both onto the parent conta
iner elementʼs background image canvas and onto the target device.
... this value enables the ability of children of the current conta
iner element to access the background image.
...And 6 more matches
filter - SVG: Scalable Vector Graphics
the filter attribute specifies the filter effects def
ined by the <filter> element that shall be applied to its element.
...see css filter for further
information.
... as a presentation attribute, it can be applied to any element but it only has effect on conta
iner elements without the <defs> element, all graphics elements and the <use> element.
...And 6 more matches
font-style - SVG: Scalable Vector Graphics
the font-style attribute specifies whether the text is to be rendered us
ing a normal, italic, or oblique face.
...see the css font-style property for more
information.
... as a presentation attribute, it can be applied to any element but only has an effect on the follow
ing five elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-style="normal">normal font style</text> <text x="150" y="20" font-style="italic">italic font style</text> </svg> usage notes value normal | italic | oblique default value normal animatable yes for a description of the values, please refer to the css font-style property.
...And 6 more matches
id - SVG: Scalable Vector Graphics
all elements are us
ing this attribute.
...the id must be unique with
in the node tree, must not be an empty str
ing, and must not conta
in any whitespace characters.
... note: you should avoid the use of id values that would be parsed as an svg view specification (e.g., mydraw
ing.svg#svgview(viewbox(0,200,1000,1000))) or a basic media fragment when used as a url target fragment.
...And 6 more matches
maskContentUnits - SVG: Scalable Vector Graphics
the maskcontentunits attribute
indicates which coord
inate system to use for the contents of the <mask> element.
... only one element is us
ing this attribute: <mask> html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <mask id="mymask1" maskcontentunits="userspaceonuse"> <rect fill="black" x="0" y="0" width="100%" height="100%" /> <circle fill="white" cx="50" cy="50" r="35" /> </mask> <mask id="mymask2" maskcontentunits="objectbound
ingbox"> <rect fill="black" x="0" y="0" width="100%" height="100%" /> <circle fill="white" cx=".5" cy=".5" r=".35" /> </mask> <!-- some reference rect to materialized the mask --> <rect id="r1" x="0" y="0" width="45" height="45" /> <rect id="r2" x="0" y="55" width="45" height="45" /> <rect id="r3" x="55" y="55" width="45" height="45" /> <rect id="r4" x="55" y="0" width="45" height="45" />...
... <!-- the first 3 rect are masked with usespaceonuse units --> <use mask="url(#mymask1)" xl
ink:href="#r1" fill="red" /> <use mask="url(#mymask1)" xl
ink:href="#r2" fill="red" /> <use mask="url(#mymask1)" xl
ink:href="#r3" fill="red" /> <!-- the last rect is masked with objectbound
ingbox units --> <use mask="url(#mymask2)" xl
ink:href="#r4" fill="red" /> </svg> mask for <mask>, maskcontentunits def
ines the coord
inate system
in use for the content of the element.
...And 6 more matches
maskUnits - SVG: Scalable Vector Graphics
the maskunits attribute
indicates which coord
inate system to use for the geometry properties of the <mask> element.
... only one element is us
ing this attribute: <mask> html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <mask id="mymask1" maskunits="userspaceonuse" x="20%" y="20%" width="60%" height="60%"> <rect fill="black" x="0" y="0" width="100%" height="100%" /> <circle fill="white" cx="50" cy="50" r="35" /> </mask> <mask id="mymask2" maskunits="objectbound
ingbox" x="20%" y="20%" width="60%" height="60%"> <rect fill="black" x="0" y="0" width="100%" height="100%" /> <circle fill="white" cx="50" cy="50" r="35" /> </mask> <!-- some reference rect to materialized the mask --> <rect id="r1" x="0" y="0" width="45" height="45" /> <rect id="r2" x="0" y="55" width="45" height="45" /> <rect id="r3" x="55" y="5...
...5" width="45" height="45" /> <rect id="r4" x="55" y="0" width="45" height="45" /> <!-- the first 3 rect are masked with usespaceonuse units --> <use mask="url(#mymask1)" xl
ink:href="#r1" fill="red" /> <use mask="url(#mymask1)" xl
ink:href="#r2" fill="red" /> <use mask="url(#mymask1)" xl
ink:href="#r3" fill="red" /> <!-- the last rect is masked with objectbound
ingbox units --> <use mask="url(#mymask2)" xl
ink:href="#r4" fill="red" /> </svg> mask for <mask>, maskunits def
ines the coord
inate system
in use for the geometry attributes (x, y, width and height) of the element.
...And 6 more matches
method - SVG: Scalable Vector Graphics
the method attribute
indicates the method by which text should be rendered along the path of a <textpath> element.
... only one element is us
ing this attribute: <textpath> textpath for <textpath>, method
indicates the method by which text should be rendered along the path.
... value align | stretch default value align animatable yes align this value
indicates that the characters should be rendered so that they are not stretched or warped.
...And 6 more matches
patternUnits - SVG: Scalable Vector Graphics
the patternunits attribute
indicates which coord
inate system to use for the geometry properties of the <pattern> element.
... only one element is us
ing this attribute: <pattern> html,body,svg { height:100% } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <!-- all geometry properties are relative to the current user space --> <pattern id="p1" x="12.5" y="12.5" width="25" height="25" patternunits="userspaceonuse"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- all geometry properties are relative to the target bound
ing box --> <pattern id="p2" x=".125" y=".125" width=".25" height=".25" patternunits="objectbound
ingbox"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- left square with user space tiles --> <rect x="10" y="10" width="80" height="80" fill="url(#p1)" /> <!-- right square with bound
ing box tiles --> <rect x="110" y=...
..."10" width="80" height="80" fill="url(#p2)" /> </svg> pattern for <pattern>, patternunits def
ines the coord
inate system
in use for the geometry properties (x, y, width and height) of the element.
...And 6 more matches
rotate - SVG: Scalable Vector Graphics
the rotate attribute specifies how the animated element rotates as it travels along a path specified
in an <animatemotion> element.
...if the value of rotate is auto, the element turns to align its right-hand side
in the current direction of motion.
... if the value is auto-reverse, it turns its left-hand side
in the current direction of motion.
...And 6 more matches
stop-color - SVG: Scalable Vector Graphics
the stop-color attribute
indicates what color to use at a gradient stop.
...svg does not calculate gradients
in pre-multiplied space, so transparent really means transparent black.
... so, specify
ing a stop-color with the value transparent is equivalent to specify
ing a stop-color with the value black and a stop-opacity with the value 0.
...And 6 more matches
stroke-dashoffset - SVG: Scalable Vector Graphics
the stroke-dashoffset attribute is a presentation attribute def
ining an offset on the render
ing of the associated dash array.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing twelve elements: <altglyph>, <circle>, <ellipse>, <path>, <l
ine>, <polygon>, <polyl
ine>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="-3 0 33 10" xmlns="http://www.w3.org/2000/svg"> <!-- no dash array --> <l
ine x1="0" y1="1" x2="30" y2="1" stroke="black" /> <!-- no dash offset --> <l
ine x1="0" y1="3" x2="30" y2="3" stroke="black" stroke-dasharray="3 1" /> <!-- the start of the dash array computation is pulled by 3 user units --> <l
ine x1="0" y1="5" x2="30" y2="5" stroke="black" stroke-dasharray="3 1" stroke-das...
...hoffset="3" /> <!-- the start of the dash array computation is pushed by 3 user units --> <l
ine x1="0" y1="7" x2="30" y2="7" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="-3" /> <!-- the start of the dash array computation is pulled by 1 user units which ends up
in the same render
ing as the previous example --> <l
ine x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="3 1" stroke-dashoffset="1" /> <!-- the follow
ing red l
ines highlight the offset of the dash array for each l
ine --> <path d="m0,5 h-3 m0,7 h3 m0,9 h-1" stroke="rgba(255,0,0,.5)" /> </svg> usage notes value <percentage> | <length> default value 0 animatable yes the offset is usually expresse...
...And 6 more matches
stroke-opacity - SVG: Scalable Vector Graphics
the stroke-opacity attribute is a presentation attribute def
ining the opacity of the pa
int server (color, gradient, pattern, etc) applied to the stroke of a shape.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing twelve elements: <altglyph>, <circle>, <ellipse>, <path>, <l
ine>, <polygon>, <polyl
ine>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 40 10" xmlns="http://www.w3.org/2000/svg"> <!-- default stroke opacity: 1 --> <circle cx="5" cy="5" r="4" stroke="green" /> <!-- stroke opacity as a number --> <circle cx="15" cy="5" r="4" stroke="green" stroke-opacity="0.7" /> <!-- stroke opacity as a percentage --> <circle cx="25" cy="5" r="4" stroke="green" stroke-opacity="50%" /> <!-- stroke opacity as a css property --> <circle cx...
...="35" cy="5" r="4" stroke="green" style="stroke-opacity: .3;" /> </svg> usage notes value [0-1] | <percentage> default value 1 animatable yes note: svg2
introduces percentage values for stroke-opacity, however, it is not widely supported yet (see browser compatibility below) as a consequence, it is best practices to set opacity with a value
in the range [0-1].
...And 6 more matches
stroke - SVG: Scalable Vector Graphics
the stroke attribute is a presentation attribute def
ining the color (or any svg pa
int servers like gradients or patterns) used to pa
int the outl
ine of the shape; note: as a presentation attribute stroke can be used as a css property.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing twelve elements: <altglyph>, <circle>, <ellipse>, <l
ine>, <path>, <polygon>, <polyl
ine>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- simple color stroke --> <circle cx="5" cy="5" r="4" fill="none" stroke="green" /> <!-- stroke a circle with a gradient --> <defs> <l
ineargradient id="mygradient"> <stop offset="0%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </l
ineargradient> </defs> <circle cx="15" cy="5" r="4" fill="none" stroke="url(#mygradient)" /> </svg> usage notes value <pa
int> d...
...efault value none animatable yes specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'stroke'
in that specification.
...And 6 more matches
to - SVG: Scalable Vector Graphics
the to attribute
indicates the f
inal value of the attribute that will be modified dur
ing the animation.
... five elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="100" height="100"> <animate attributetype="xml" attributename="width" fill="freeze" from="100" to="150" dur="3s"/> </rect> </svg> animate, animatecolor, animatemotion, animatetransform for <animate>, <animatecolor>, <animatemotion>, and <animatetransform>, to specifies the end
ing value of the animation.
... if a list of values is def
ined via the values attribute, the to attribute is ignored.
...And 6 more matches
xChannelSelector - SVG: Scalable Vector Graphics
the xchannelselector attribute
indicates which color channel from
in2 to use to displace the pixels
in in along the x-axis.
... only one element is us
ing this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feimage xl
ink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap
in2="abc"
in="sourcegraphic" scale="30" xchannelselector="r"/> </filter> <filter id="displacementfilter2"> <feimage xl
ink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap
in2="abc"
in="sourcegraphic" scale="30" xchannelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)"...
...>some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color channel of the
input image def
ined
in in2 will be used to displace the pixels of the
input image def
ined
in in along the x-axis.
...And 6 more matches
yChannelSelector - SVG: Scalable Vector Graphics
the ychannelselector attribute
indicates which color channel from
in2 to use to displace the pixels
in in along the y-axis.
... only one element is us
ing this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 440 160" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feimage xl
ink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap
in2="abc"
in="sourcegraphic" scale="30" ychannelselector="r"/> </filter> <filter id="displacementfilter2"> <feimage xl
ink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap
in2="abc"
in="sourcegraphic" scale="30" ychannelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)"...
...>some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color channel of the
input image def
ined
in in2 will be used to displace the pixels of the
input image def
ined
in in along the y-axis.
...And 6 more matches
z - SVG: Scalable Vector Graphics
the z attribute def
ines the location along the z-axis for a light source
in the coord
inate system established by the primitiveunits attribute on the <filter> element, assum
ing that,
in the
initial coord
inate system, the positive z-axis comes out towards the person view
ing the content and assum
ing that one unit along the z-axis equals one unit
in x and y.
... two elements are us
ing this attribute: <fepo
intlight> and <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="diffuselight
ing1" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fepo
intlight x="60" y="60" z="10" /> </fediffuselight
ing> </filter> <filter id="diffuselight
ing2" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic"> <fepo
intlight x="60" y="60" z="50" /> </fediffuselight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselight
ing1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselight
ing2); transform: translatex(220px);" /> </svg> fepo
intlight ...
...for <fepo
intlight>, z def
ines the location along the z-axis for the light source
in the coord
inate system established by the primitiveunits attribute on the <filter> element.
...And 6 more matches
<animateMotion> - SVG: Scalable Vector Graphics
the svg <animatemotion> element let def
ine how an element moves along a motion path.
... note: to reuse an exist
ing path, it will be necessary to use an <mpath> element
inside the <animatemotion> element
instead of the path attribute.
... html,body,svg { height:100%; marg
in: 0; padd
ing: 0; display:block; } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <path fill="none" stroke="lightgrey" d="m20,50 c20,-50 180,150 180,50 c180-50 20,150 20,50 z" /> <circle r="5" fill="red"> <animatemotion dur="10s" repeatcount="
indef
inite" path="m20,50 c20,-50 180,150 180,50 c180-50 20,150 20,50 z" /> </circle> </svg> usage context categoriesanimation elementpermitted contentany number of the follow
ing elements,
in any order:descriptive elements<mpath> attributes keypo
ints this attribute
indicate,
in the range [0,1], how far is the object along the path for each keytimes associated values.
...And 6 more matches
<ellipse> - SVG: Scalable Vector Graphics
the <ellipse> element is an svg basic shape, used to create ellipses based on a center coord
inate, and both their x and y radius.
... note: ellipses are unable to specify the exact orientation of the ellipse (if, for example, you wanted to draw an ellipse tilted at a 45 degree angle), but it can be rotated by us
ing the transform attribute.
... value type: auto|<length>|<percentage> ; default value: auto; animatable: yes pathlength this attribute lets specify the total length for the path,
in user units.
...And 6 more matches
<path> - SVG: Scalable Vector Graphics
the <path> svg element is the generic element to def
ine a shape.
... html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <path d="m 10,30 a 20,20 0,0,1 50,30 a 20,20 0,0,1 90,30 q 90,60 50,90 q 10,60 10,30 z"/> </svg> attributes d this attribute def
ines the shape of the path.
... value type: <str
ing> ; default value: ''; animatable: yes pathlength this attribute lets authors specify the total length for the path,
in user units.
...And 6 more matches
<solidcolor> - SVG: Scalable Vector Graphics
the <solidcolor> svg element lets authors def
ine a s
ingle color for use
in multiple places
in an svg document.
... it is also useful as away of animat
ing a palette colors.
... note: this is an experimental technology, and not yet implemented
in browsers.
...And 6 more matches
<switch> - SVG: Scalable Vector Graphics
the <switch> svg element evaluates any requiredfeatures, requiredextensions and systemlanguage attributes on its direct child elements
in order, and then renders the first child where these attributes evaluate to true.
...if a child element is a conta
iner element, like <g>, then its subtree is also processed/rendered or bypassed/not rendered.
... the display and visibility properties have no effect on <switch> element process
ing.
...And 6 more matches
font-variant - SVG: Scalable Vector Graphics
the font-variant attribute
indicates whether the text is to be rendered us
ing variations of the fontʼs glyphs.
...see the css font-variant property for more
information.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 250 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-variant="normal">normal text</text> <text x="100" y="20" font-variant="small-caps">small-caps text</text> </svg> usage notes value normal | none | [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> || stylistic( <feature-value-name> ) || historical-forms || styleset( <feature-value-name># ) || character-variant( <feature-value-name># ) || swash( <feature-value-name> ) || ornaments( <feature-value-name> ) || annotation( <feat...
...And 5 more matches
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
when the reference orientation direction is horizontal and the glyph-orientation-horizontal results
in an orientation angle that is a multiple of 180 degrees, then the current text position is
incremented accord
ing to the horizontal metrics of the glyph.
... otherwise, if the value of this attribute is not a multiple of 180 degrees, then the current text position is
incremented accord
ing to the vertical metrics of the glyph.
... this attribute is applied only to text written
in a horizontal writ
ing-mode.
...And 5 more matches
horiz-adv-x - SVG: Scalable Vector Graphics
the horiz-adv-x attribute
indicates the horizontal advance after render
ing a glyph
in horizontal orientation.
... three elements are us
ing this attribute: <font>, <glyph>, and <miss
ing-glyph> font for <font> elements, horiz-adv-x specifies the default horizontal advance of a glyph
in horizontal orientation.
... value <number> default value none animatable no <number> this value
indicates the horizontal advance of the glyph.
...And 5 more matches
kernelMatrix - SVG: Scalable Vector Graphics
the kernelmatrix attribute def
ines the list of numbers that make up the kernel matrix for the <feconvolvematrix> element.
...the number of entries
in the list must equal to <orderx> by <ordery> as def
ined
in the order attribute.
... only one element is us
ing this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="convolvematrix1" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 1 0 0 0 0 0 0 -1"/> </filter> <filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="-1 0 0 0 0 0 0 0 1"/> </filter> <image xl
ink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xl
ink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage no...
...And 5 more matches
lengthAdjust - SVG: Scalable Vector Graphics
the lengthadjust attribute controls how the text is stretched
into the length def
ined by the textlength attribute.
... four elements are us
ing this attribute: <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg width="300" height="150" xmlns="http://www.w3.org/2000/svg"> <g font-face="sans-serif"> <text x="0" y="20" textlength="300" lengthadjust="spac
ing"> stretched us
ing spac
ing only.
... </text> <text x="0" y="50" textlength="300" lengthadjust="spac
ingandglyphs"> stretched us
ing spac
ing and glyphs.
...And 5 more matches
marker-start - SVG: Scalable Vector Graphics
the marker-start attribute def
ines the arrowhead or polymarker that will be drawn at the first vertex of the given shape.
... for all shape elements, except <polyl
ine> and <path>, the last vertex is the same as the first vertex.
...
in this case, if the value of marker-start and marker-end are both not none, then two markers will be rendered on that f
inal vertex.
...And 5 more matches
name - SVG: Scalable Vector Graphics
two elements are us
ing this attribute: <color-profile> and <font-face-name> color-profile for <color-profile>, name def
ines the name of the color profile.
... value <name> default value none animatable yes <name> this value is the name which is used as the first parameter for icc color specifications with
in fill, stroke, stop-color, flood-color and light
ing-color property values to identify the color profile to use for the icc color specification and the name which can be the value of the color-profile property.
...the name "srgb" is predef
ined; any color profile descriptions with <name> set to "srgb" (case-
insensitively) will be ignored.
...And 5 more matches
numOctaves - SVG: Scalable Vector Graphics
the numoctaves attribute def
ines the number of octaves for the noise function of the <feturbulence> primitive.
... an octave is a noise function def
ined by its frequency and amplitude.
... a turbulence is built by accumulat
ing several octaves with
increas
ing frequencies and decreas
ing amplitudes.
...And 5 more matches
preserveAlpha - SVG: Scalable Vector Graphics
the preservealpha attribute
indicates how a <feconvolvematrix> element handled alpha transparency.
... only one element is us
ing this attribute: <feconvolvematrix> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="convolvematrix1" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 -1 2 0 0 0 0 0 -2" preservealpha="true"/> </filter> <filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 -1 2 0 0 0 0 0 -2" preservealpha="false"/> </filter> <image xl
ink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xl
ink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transf...
...orm:translatex(220px);"/> </svg> usage notes default value false value true | false animatable yes true this value
indicates that the convolution will only apply to the color channels.
...And 5 more matches
restart - SVG: Scalable Vector Graphics
five elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } a { fill: blue; text-decoration: underl
ine; cursor: po
inter; } <svg viewbox="0 0 220 200" xmlns="http://www.w3.org/2000/svg"> <rect y="30" width="100" height="100"> <animate attributetype="xml" attributename="y" from="30" to="100" dur="5s" repeatcount="1" restart="always" /> </rect> <rect x="120" y="30" width="100" height="100"> <animate attributetype="xml" attributename="y" from="30" to="100" dur="5s" repeatcount="1" restart="whennotactive"/> </rect> <a id="restart"><text y="20">restart animation</text></a> </svg> document.
...getelementbyid("restart").addeventlistener("click", evt => { document.queryselectorall("animate").foreach(element => { element.beg
inelement(); }); }); usage notes value always | whennotactive | never default value always animatable no always this value
indicates that the animation can be restarted at any time.
... whennotactive this value
indicates that the animation can only be restarted when it is not active (i.e.
...And 5 more matches
specularExponent - SVG: Scalable Vector Graphics
two elements are us
ing this attribute: <fespecularlight
ing> and <fespotlight> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="diffuselight
ing1" x="0" y="0" width="100%" height="100%"> <fespecularlight
ing
in="sourcegraphic" specularexponent="1"> <fepo
intlight x="60" y="60" z="20" /> </fespecularlight
ing> </filter> <filter id="diffuselight
ing2" x="0" y="0" width="100%" height="100%"> <fespecularlight
ing
in="sourcegraphic" specularexponent="5"> <fepo
intlight x="60" y="60" z="20" /> </fespecularlight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: ur...
...l(#diffuselight
ing1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselight
ing2); transform: translatex(220px);" /> </svg> fespecularlight
ing for <fespecularlight
ing>, specularexponent def
ines the exponent value for the specular term.
... value <number> default value 1 animatable yes fespotlight for <fespotlight>, specularexponent def
ines the exponent value controll
ing the focus for the light source.
...And 5 more matches
startOffset - SVG: Scalable Vector Graphics
the startoffset attribute def
ines an offset from the start of the path for the
initial current text position along the path after convert
ing the path to the <textpath> element's coord
inate system.
... only one element is us
ing this attribute: <textpath> html,body,svg { height:100% } <svg viewbox="0 0 220 100" xmlns="http://www.w3.org/2000/svg"> <path id="path1" fill="none" stroke="red" d="m10,90 q90,90 90,45 q90,10 50,10 q10,10 10,40 q10,70 45,70 q70,70 75,50" /> <path id="path2" fill="none" stroke="red" d="m130,90 q210,90 210,45 q210,10 170,10 q130,10 130,40 q130,70 165,70 q190,70 195,50" /> <text> <textpath href="#path1" startoffset="0"> quick brown fox jumps over the lazy dog.
... </textpath> </text> </svg> usage notes value <length-percentage> | <number> default value 0 animatable yes <length-percentage> a length represents a distance along the path measured
in the current user coord
inate system for the <textpath> element.
...And 5 more matches
stitchTiles - SVG: Scalable Vector Graphics
the stitchtiles attribute def
ines how the perl
in noise tiles behave at the border.
... only one element is us
ing this attribute: <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" stitchtiles="nostitch" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" stitchtiles="stitch" /> </filter> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(100px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(0, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: ur...
...late(320px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(220px, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(320px, 100px);" /> </svg> usage notes value nostitch | stitch default value nostitch animatable yes nostitch this value
indicates that no attempt is made to achieve smooth transitions at the border of tiles which conta
in a turbulence function.
...And 5 more matches
stroke-dasharray - SVG: Scalable Vector Graphics
the stroke-dasharray attribute is a presentation attribute def
ining the pattern of dashes and gaps used to pa
int the outl
ine of the shape; note: as a presentation attribute, stroke-dasharray can be used as a css property.
... as a presentation attribute, it can be applied to any element, but it only has effect on the follow
ing twelve elements: <altglyph> <circle> <ellipse> <path> <l
ine> <polygon> <polyl
ine> <rect> <text> <textpath> <tref> <tspan> html,body,svg { height:100% } <svg viewbox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!-- no dashes nor gaps --> <l
ine x1="0" y1="1" x2="30" y2="1" stroke="black" /> <!-- dashes and gaps of the same size --> <l
ine x1="0" y1="3" x2="30" y2="3" stroke="black" stroke-dasharray="4" /> <!-- dashes and gaps of different sizes --> <l
ine x1="0" y1="5" x2="30" y2="5" stroke="black" stroke-dasharray="4 1" /> <!-- dashes and gaps of various sizes with an odd number of values --> <l
ine x1="0" y1="7" x2="30" y...
...2="7" stroke="black" stroke-dasharray="4 1 2" /> <!-- dashes and gaps of various sizes with an even number of values --> <l
ine x1="0" y1="9" x2="30" y2="9" stroke="black" stroke-dasharray="4 1 2 3" /> </svg> usage notes value none | <dasharray> default value none animatable yes <dasharray> a list of comma and/or white space separated <length>s and <percentage>s that specify the lengths of alternat
ing dashes and gaps.
...And 5 more matches
style - SVG: Scalable Vector Graphics
the style attribute allows to style an element us
ing css declarations.
... it functions identically to the style attribute
in html.
... all elements are us
ing this attribute.
...And 5 more matches
surfaceScale - SVG: Scalable Vector Graphics
two elements are us
ing this attribute: <fediffuselight
ing> and <fespecularlight
ing> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="diffuselight
ing1" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic" surfacescale="1"> <fepo
intlight x="60" y="60" z="20" /> </fediffuselight
ing> </filter> <filter id="diffuselight
ing2" x="0" y="0" width="100%" height="100%"> <fediffuselight
ing
in="sourcegraphic" surfacescale="15"> <fepo
intlight x="60" y="60" z="20" /> </fediffuselight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselight
ing1);" /> ...
...<rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselight
ing2); transform: translatex(220px);" /> </svg> fespecularlight
ing for <fespecularlight
ing>, surfacescale def
ines the height of the surface.
... value <number> default value 1 animatable yes fediffuselight
ing for <fediffuselight
ing>, surfacescale def
ines the height of the surface.
...And 5 more matches
<animate> - SVG: Scalable Vector Graphics
html,body,svg { height:100%; marg
in:0; padd
ing:0; } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <rect width="10" height="10"> <animate attributename="rx" values="0;5;0" dur="10s" repeatcount="
indef
inite" /> </rect> </svg> attributes animation attributes animation tim
ing attributes beg
in, dur, end, m
in, max, restart, repeatcount, repeatdur, fill animation value attributes calcmode, values, keytimes, keyspl
ines, from, to, by other animation attributes most notably: attributename, additive, accumulate animation event attributes most notably: onbeg
in, onend, onrepeat global attributes core attributes most notably: id styl
ing attributes class, style even...
...t attributes global event attributes, document element event attributes usage notes this element implements the svganimateelement
interface.
... accessibility concerns bl
ink
ing and flash
ing animation can be problematic for people with cognitive concerns such as attention deficit hyperactivity disorder (adhd).
...And 5 more matches
<feDropShadow> - SVG: Scalable Vector Graphics
the svg <fedropshadow> filter primitive creates a drop shadow of the
input image.
... it can only be used
inside a <filter> element.
... the drop shadow color and opacity can be changed by us
ing the flood-color and flood-opacity presentation attributes.
...And 5 more matches
<script> - SVG: Scalable Vector Graphics
while svg's script element is equivalent to the html <script> element, it has some discrepancies, like it uses the href attribute
instead of src and it doesn't support ecmascript modules so far (see browser compatibility below for details) html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <script> // <![cdata[ w
indow.addeventlistener('domcontentloaded', () => { function getcolor () { const r = math.round(math.random() * 255).tostr
ing(16).padstart(2,'0') const g = math.round(math.random() * 255).tostr
ing(16).padstart(2,'0') const b = math.round(math.random() * 255).tostr
ing(16).padstart(2,'0') return `#${r}${g}${b}` } document.query...
...selector('circle').addeventlistener('click', (e) => { e.target.style.fill = getcolor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> attributes crossorig
in this attribute def
ines cors sett
ings as def
ine for the html <script> element.
... value type: <str
ing>; default value: ?; animatable: yes href the url to the script to load.
...And 5 more matches
<stop> - SVG: Scalable Vector Graphics
the svg <stop> element def
ines a color and its position to use on a gradient.
... this element is always a child of a <l
ineargradient> or <radialgradient> element.
... html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xl
ink="http://www.w3.org/1999/xl
ink"> <defs> <l
ineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </l
ineargradient> </defs> <!-- us
ing my l
inear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes offset this attribute def
ines where the gradient stop is placed along the gradient vector.
...And 5 more matches
<style> - SVG: Scalable Vector Graphics
the svg <style> element allows style sheets to be embedded directly with
in svg content.
... svg's style element has the same attributes as the correspond
ing element
in html (see html's <style> element).
... html,body,svg { height:100%; marg
in: 0; padd
ing: 0; } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <style> circle { fill: gold; stroke: maroon; stroke-width: 2px; } </style> <circle cx="5" cy="5" r="4" /> </svg> attributes type this attribute def
ines type of the style sheet language to use as a media type str
ing.
...And 5 more matches
HTML Imports - Web Components
obsolete s
ince google chrome 73 this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 5 more matches
id - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the id function f
inds nodes match
ing the given ids and returns a node-set conta
ining the identified nodes.
... syntax id(expression ) arguments expression if expression is a node-set, then the str
ing value of each node
in the node-set is treated as an
individual id.
... the returned node set is the nodes correspond
ing to those ids.
...And 5 more matches
system-property - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the system-property function returns an object represent
ing the given system-property.
...the argument must evaluate to a str
ing that is a qname.
... the qname is expanded
into a name us
ing the namespace declarations
in scope for the expression.
...And 5 more matches
<xsl:variable> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:variable> element declares a global or local variable
in a stylesheet and gives it a value.
... because xslt permits no side-effects, once the value of the variable has been established, it rema
ins the same until the variable goes out of scope syntax <xsl:variable name=name select=expression > template </xsl:variable> required attributes name gives the variable a name.
... optional attributes select def
ines the value of the variable through an xpath expression.
...And 5 more matches
frame/utils - Archive of obsolete content
experimental provides helper functions for work
ing with platform
internals like frames and browsers.
... usage module exports create function that takes the nsidomdocument of a privileged document and creates a browser element
in its documentelement: let { open } = require('sdk/w
indow/utils'); let { create } = require('sdk/frame/utils'); let w
indow = open('data:text/html,foo'); let frame = create(w
indow.document); optionally create can be passed set of options to configure created frame even further.
... execution of scripts may easily be enabled: let { open } = require('sdk/w
indow/utils'); let { create } = require('sdk/frame/utils'); let w
indow = open('data:text/html,top'); let frame = create(w
indow.document, { uri: 'data:text/html,<script>console.log("runn
ing");</script>', allowjavascript: true }); } globals functions create(document, options) creates a xul browser element
in a privileged document.
...And 4 more matches
net/xhr - Archive of obsolete content
it also has unfettered access to any local area networks, vpns, and the
internet.
... if access to the filesystem isn't prevented, it could easily be used to access sensitive user data, though this may be
inconsequential if the client can't access the network.
... attenuat
ing access based on a regular expression may be
ineffective if it's easy to write a regular expression that looks safe but conta
ins a special character or two that makes it far less secure than it seems at first glance.
...And 4 more matches
system/unload - Archive of obsolete content
globals functions ensure(object, name) call
ing ensure() on an object does two th
ings: it replaces a destructor method with a wrapper method that will never call the destructor more than once.
... the destructor will be called with a s
ingle argument describ
ing the reason for the unload; see when().
... parameters object : object an object that def
ines a destructor method.
...And 4 more matches
util/list - Archive of obsolete content
experimental build
ing blocks for compos
ing lists.
... globals constructors list(element1, element2, ...) constructor can takes any number of elements and creates an
instance of list populated with the specified elements.
... parameters element1 : object|str
ing|number element2 : object|str
ing|number ...
...And 4 more matches
Annotator - Archive of obsolete content
deprecated
in firefox 29 and removed
in firefox 38.
... warn
ing: this tutorial relies on the s
ince-removed widget api and no longer works with firefox.
...
in particular, for a simple button, try the action button or toggle button apis, and for a more complex widget try the toolbar or sidebar apis.
...And 4 more matches
nsIMsgAccount
nsimsgaccount mailnews/base/public/nsimsgaccount.idlscriptable an account consists of an
incom
ing server and one or more outgo
ing identities.
...
inherits from: nsisupports last changed
in gecko 1.7 method overview void addidentity(
in nsimsgidentity identity); void clearallvalues(); void
init(); void removeidentity(
in nsimsgidentity identity); astr
ing tostr
ing(); attributes attribute type description defaultidentity nsimsgidentity identities nsisupportsarray read only.
... outgo
ing identity list (array of nsimsgidentity's)
incom
ingserver nsimsg
incom
ingserver
incom
ing server stuff key acstr
ing
internal key identify
ing itself methods addidentity() adds a new identity to this account.
...And 4 more matches
nsISupportsArray
inherits from: nsicollection last changed
in gecko 1.7 method overview boolean appendelements(
in nsisupportsarray aelements); violates the xpcom
interface guidel
ines nsisupportsarray clone(); void compact(); void deleteelementat(
in unsigned long a
index); void deletelastelement(
in nsisupports aelement); nsisupports elementat(
in unsigned long a
index); violates the xpcom
interface guidel
ines boolean enumeratebackwards(
in nsisupportsarrayenumfunc afunc,
in voidptr adata); violates the xpcom
interface guidel
ines boolean enumerateforwards(
in nsisupportsarrayenumfunc afunc,
in voidptr adata); violates the xpcom
interface guidel
ines boolean equals([const]
in nsisupportsarray other); viola...
...tes the xpcom
interface guidel
ines long get
indexof(
in nsisupports apossibleelement); long get
indexofstart
ingat(
in nsisupports apossibleelement,
in unsigned long astart
index); long getlast
indexof(
in nsisupports apossibleelement); long
indexof([const]
in nsisupports apossibleelement); violates the xpcom
interface guidel
ines long
indexofstart
ingat([const]
in nsisupports apossibleelement,
in unsigned long astart
index); violates the xpcom
interface guidel
ines boolean
insertelementat(
in nsisupports aelement,
in unsigned long a
index); violates the xpcom
interface guidel
ines boolean
insertelementsat(
in nsisupportsarray aother,
in unsigned long a
index); violates the xpcom
interface guidel
ines long last
indexof([const]
in nsisupports apossibleelement); violates the xpcom
interface guide...
...l
ines boolean moveelement(
in long afrom,
in long ato); violates the xpcom
interface guidel
ines boolean removeelementat(
in unsigned long a
index); violates the xpcom
interface guidel
ines boolean removeelementsat(
in unsigned long a
index,
in unsigned long acount); violates the xpcom
interface guidel
ines boolean removelastelement([const]
in nsisupports aelement); violates the xpcom
interface guidel
ines boolean replaceelementat(
in nsisupports aelement,
in unsigned long a
index); violates the xpcom
interface guidel
ines boolean sizeto(
in long asize); violates the xpcom
interface guidel
ines methods violates the xpcom
interface guidel
ines appendelements() boolean appendelements(
in nsisupportsarray aelements ); parameters aelements return value clone() nsisupportsarray clone...
...And 4 more matches
nsISupportsChar
xpcom/ds/nsisupportsprimitives.idlscriptable this
interface provides scriptable access for s
ingle character values (often used to store an ascii character).
...
inherits from: nsisupportsprimitive last changed
in gecko 1.2 method overview str
ing tostr
ing(); attributes attribute type description data char provides access to the native type represented by the object.
... methods tostr
ing() this methods returns a str
ing valued representation of the object.
...And 4 more matches
nsISupportsDouble
xpcom/ds/nsisupportsprimitives.idlscriptable this
interface provides scriptable access for double-precision float
ing-po
int values.
...
inherits from: nsisupportsprimitive last changed
in gecko 1.2 method overview str
ing tostr
ing(); attributes attribute type description data double provides access to the native type represented by the object.
... methods tostr
ing() this methods returns a str
ing valued representation of the object.
...And 4 more matches
nsISupportsFloat
xpcom/ds/nsisupportsprimitives.idlscriptable this
interface provides scriptable access for s
ingle-precision float
ing-po
int values.
...
inherits from: nsisupportsprimitive last changed
in gecko 1.2 method overview str
ing tostr
ing(); attributes attribute type description data float provides access to the native type represented by the object.
... methods tostr
ing() this methods returns a str
ing valued representation of the object.
...And 4 more matches
nsISupportsID
xpcom/ds/nsisupportsprimitives.idlscriptable this
interface provides scriptable access for boolean values.
...
inherits from: nsisupportsprimitive last changed
in gecko 1.2 method overview str
ing tostr
ing(); attributes attribute type description data nsidptr provides access to the native type represented by the object.
... methods tostr
ing() this method returns a str
ing valued representation of the object.
...And 4 more matches
nsISupportsPRBool
xpcom/ds/nsisupportsprimitives.idlscriptable this
interface provides scriptable access for boolean values.
...
inherits from: nsisupportsprimitive last changed
in gecko 1.2 method overview str
ing tostr
ing(); attributes attribute type description data prbool provides access to the native type represented by the object.
... methods tostr
ing() this methods returns a str
ing valued representation of the object.
...And 4 more matches
nsISupportsPRTime
xpcom/ds/nsisupportsprimitives.idlscriptable this
interface provides scriptable access for prtime values.
...
inherits from: nsisupportsprimitive last changed
in gecko 1.2 method overview str
ing tostr
ing(); attributes attribute type description data prtime provides access to the native type represented by the object.
... methods tostr
ing() this methods returns a str
ing valued representation of the object.
...And 4 more matches
nsIThreadEventFilter
the nsithreadeventfilter
interface may be implemented to determ
ine whether or not an event may be accepted by a nested event queue; see nsithread
internal.pusheventqueue() for more
information.
... you should implement this
interface and its acceptevent() method, then pass the object implement
ing it as the filter.
... xpcom/threads/nsithread
internal.idlscriptable please add a summary to this article.
...And 4 more matches
nsIURLFormatter
toolkit/components/urlformatter/public/nsiurlformatter.idlscriptable this
interface exposes methods to substitute variables
in url formats.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) variable names can conta
in 'a-z' letters and '_' characters.
... mozilla applications l
ink
ing to mozilla websites are strongly encouraged to use urls of the follow
ing format: http[s]://%service%.mozilla.[com|org]/%locale%/ method overview astr
ing formaturl(
in astr
ing aformat); astr
ing formaturlpref(
in astr
ing apref); methods formaturl() formats a str
ing url.
...And 4 more matches
nsIUUIDGenerator
xpcom/base/nsiuuidgenerator.idlscriptable this
interface can be used to generate an id that can be considered globally unique, often referred to as a uuid or guid.
... 1.0 66
introduced gecko 1.8.1
inherits from: nsisupports 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 generateuuid
inplace(
in nsnonconstidptr id); native code only!
... methods generateuuid() obta
ins a new uuid us
ing appropriate platform-specific methods to obta
in a nsid that can be considered to be globally unique.
...And 4 more matches
nsIUpdateManager
toolkit/mozapps/update/nsiupdateservice.idlscriptable this
interface describes a global application service that ma
inta
ins a list of previously
installed updates, as well as the currently
in use update.
... 1.0 66
introduced gecko 1.8
inherits from: nsisupports last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview nsiupdate getupdateat(
in long
index); void saveupdates(); attributes attribute type description activeupdate nsiupdate an nsiupdate object describ
ing the currently
in use update.
... this update is not
in the history list.
...And 4 more matches
nsIWebPageDescriptor
docshell/base/nsiwebpagedescriptor.idlscriptable this
interface allows content be
ing displayed
in one w
indow to be loaded
into another w
indow without refetch
ing it from the network.
...
inherits from: nsisupports last changed
in gecko 1.7 method overview void loadpage(
in nsisupports apagedescriptor,
in unsigned long adisplaytype); attributes attribute type description currentdescriptor nsisupports retrieves the page descriptor for the current document.
... constants display type constants constant value description display_as_source 0x0001 generates an optionally syntax-highlighted (for xml/html documents) source of the orig
inal page.
...And 4 more matches
nsIWifiListener
netwerk/wifi/nsiwifilistener.idlscriptable this
interface is implemented by clients
interested
in receiv
ing notifications when the list of available wifi access po
ints changes.
... 1.0 66
introduced gecko 1.9.1
inherits from: nsisupports last changed
in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void onchange([array, size_is(alen)]
in nsiwifiaccesspo
int accesspo
ints,
in unsigned long alen); void onerror(
in long error); methods onchange() called when the list of available access po
ints changes.
... void onchange( [array, size_is(alen)]
in nsiwifiaccesspo
int accesspo
ints,
in unsigned long alen ); parameters accesspo
ints an array of nsiwifiaccesspo
int objects represent
ing all currently-available wifi access po
ints.
...And 4 more matches
nsIWifiMonitor
netwerk/wifi/nsiwifimonitor.idlscriptable this
interface can be used to be alerted when the list of available wifi access po
ints changes.
... 1.0 66
introduced gecko 1.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 po
ints for location detection.
... implemented by @mozilla.org/wifi/monitor;1 as a service: var wifimonitor = components.classes["@mozilla.org/wifi/monitor;1"] .getservice(components.
interfaces.nsiwifimonitor); method overview void startwatch
ing(
in nsiwifilistener alistener); void stopwatch
ing(
in nsiwifilistener alistener); methods startwatch
ing() starts listen
ing for changes to the wifi access po
int list.
...And 4 more matches
HTMLIFrameElement.csp - Web APIs
the csp property of the htmliframeelement
interface specifies the content security policy that an embedded document must agree to enforce upon itself.
... specifications specification status comment content security policy: embedded enforcementthe def
inition of 'csp'
in that specification.
... work
ing draft
initial def
inition.
...And 4 more matches
Image() - Web APIs
the image() constructor creates a new htmlimageelement
instance.
... usage note the entire bitmap is loaded regardless of the sizes specified
in the constructor.
... the size specified
in the constructor is reflected through the properties htmlimageelement.width and htmlimageelement.height of the result
ing
instance.
...And 4 more matches
HTMLImageElement.lowSrc - Web APIs
the htmlimageelement
interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-load
ing version of the image specified by the src property.
... syntax htmlimageelement.lowsrc = imageurl; imageurl = htmlimageelement.lowsrc; value a domstr
ing specify
ing the url of a version of the image specified by src which has been modified
in some fashion so that it loads significantly more quickly than the primary image.
... there are a number of ways to achieve this; primary among them: higher compression levels (for example, a primary image saved as a jpeg us
ing 85% quality might have a lowsrc version saved at 15%.
...And 4 more matches
HTMLMediaElement.captureStream() - Web APIs
the capturestream() property of the htmlmediaelement
interface returns a mediastream object which is stream
ing a real-time capture of the content be
ing rendered
in the media element.
... return value a mediastream object which can be used as a source for audio and/or video data by other media process
ing code, or as a source for webrtc.
... example
in this example, an event handler is established so that click
ing a button starts captur
ing the contents of a media element with the id "playback"
into a mediastream.
...And 4 more matches
HTMLMediaElement: loadeddata event - Web APIs
the loadeddata event is fired when the frame at the current playback position of the media has f
inished load
ing; often the first frame.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onloadeddata specification html5 media note that this event will not fire
in mobile/tablet devices if data-saver is on
in browser sett
ings.
... examples these examples add an event listener for the htmlmediaelement's loadeddata event, then post a message when that event handler has reacted to the event fir
ing.
...And 4 more matches
HTMLMediaElement.setMediaKeys() - Web APIs
the setmediakeys() property of the htmlmediaelement
interface returns a promise that resolves to the passed mediakeys, which are those used to decrypt media dur
ing playback.
... syntax var promise = htmlmediaelement.setmediakeys(mediakeys); parameters mediakeys a reference to a mediakeys object that the htmlmediaelement can use for decryption of media data dur
ing playback.
... returns a promise that resolves to the passed
instance of mediakeys.
...And 4 more matches
HTMLMenuItemElement - Web APIs
the htmlmenuitemelement
interface provides special properties (beyond those def
ined on the regular htmlelement
interface it also has available to it by
inheritance) for manipulat
ing <menuitem> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 4 more matches
HTMLObjectElement.setCustomValidity - Web APIs
the setcustomvalidity() method of the htmlobjectelement
interface sets a custom validity message for the element.
... return value undef
ined exceptions none.
... examples
in this example, we pass the id of an
input element, and set different error messages depend
ing on whether the value is miss
ing, too low or too high.
...And 4 more matches
HTMLOptionsCollection - Web APIs
the htmloptionscollection
interface represents a collection of <option> html elements (
in document order) and offers methods and properties for select
ing from the list as well as optionally alter
ing its items.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/htmlcollection" target="_top"><rect x="1" y="1" width="140" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">htmlcollection</text></a><polyl
ine po
ints="141,25 151,20 151,30 141,25" stroke="#d4dde4" fill="none"/><l
ine x1="151" y1="...
...25" x2="181" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/htmloptionscollection" target="_top"><rect x="181" y="1" width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="286" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">htmloptionscollection</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties name type description length unsigned long as optionally allowed by the spec, this property isn't read-only.
...And 4 more matches
HTMLSelectElement.autofocus - Web APIs
the htmlselectelement.autofocus property is a boolean that reflects the autofocus html attribute, which
indicates whether the associated <select> element will get
input focus when the page loads, unless the user overrides it.
... only one form-associated element
in a document can have this attribute specified.
... if there are several, the first element with the attribute set
inserted, usually the first such element on the page, get the
initial focus.
...And 4 more matches
HTMLSelectElement.item() - Web APIs
the htmlselectelement.item() method returns the element correspond
ing to the htmloptionelement whose position
in the options list corresponds to the
index given
in the parameter, or null if there are none.
...
in javascript, us
ing the array bracket syntax with an unsigned long, like selectelt[
index] is equivalent to selectelt.nameditem(
index).
... syntax var item = collection.item(
index); var item = collection[
index]; parameters
index is an unsigned long.
...And 4 more matches
HTMLSelectElement.namedItem() - Web APIs
the htmlselectelement.nameditem() method returns the htmloptionelement correspond
ing to the htmloptionelement whose name or id match the specified name, or null if no option matches.
...
in javascript, us
ing the array bracket syntax with a str
ing, like selectelt["value"] is equivalent to selectelt.nameditem("value").
... syntax var item = collection.nameditem(str); var item = collection[str]; parameters str is a domstr
ing.
...And 4 more matches
HTMLSelectElement.type - Web APIs
example switch (select.type) { case 'select-multiple': // multiple values may be selected break; case 'select-one': // only one value may be selected break; default: // non-standard value (or this isn't a select element) } specifications specification status comment html liv
ing standardthe def
inition of 'htmlselectelement'
in that specification.
... liv
ing standard no change from html5, the latest snapshot.
... html5the def
inition of 'htmlselectelement'
in that specification.
...And 4 more matches
HTMLShadowElement - Web APIs
the htmlshadowelement
interface represents a <shadow> html element, which is used
in shadow dom.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 20%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 120" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" 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-basel
ine="middle">eventtarget</text></a><polyl
ine po
ints="111,25 121,20 121,30 111,25" stroke="#d4dde4" fill="none"/><l
ine x1="121" y1="25" x2="151" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/node" target="_top...
..."><rect x="151" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">node</text></a><polyl
ine po
ints="226,25 236,20 236,30 226,25" stroke="#d4dde4" fill="none"/><l
ine x1="236" y1="25" x2="266" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/element" target="_top"><rect x="266" y="1" width="75" height="50" fill="#fff" stroke="#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-basel
ine="middle">element</text></a><polyl
ine po
ints="341,25 351,20 351,30 341,25" stroke="#d4dde4" fill="none...
...And 4 more matches
HTMLSlotElement.assignedNodes() - Web APIs
the assignednodes() property of the htmlslotelement
interface returns a sequence of the nodes assigned to this slot, and if the flatten option is set to true, the assigned nodes of any other slots that are descendants of this slot.
...the available options are: flatten: a boolean
indicat
ing whether to return the assigned nodes of any available child <slot> elements (true) or not (false).
... examples the follow
ing snippet is taken from our slotchange example (see it live also).
...And 4 more matches
StorageEstimate.quota - Web APIs
the storageestimate dictionary's quota property is a conservative approximation of how much storage is allotted to the orig
in or web app that called storagemanager.estimate(); there may be more space available, but there will not be less.
... this value is an estimate to help prevent its use for f
ingerpr
int
ing—that is, identify
ing a device us
ing an amalgamation of the values of seem
ingly
innocuous properties.
... syntax quota = storageestimate.quota; value a numeric value specify
ing an approximation of the total amount of storage space available for use by the application.
...And 4 more matches
StylePropertyMapReadOnly.forEach() - Web APIs
syntax stylepropertymapreadonly.foreach(function callback(currentvalue[,
index[, array]]) { //your code }[, thisarg]); parameters callback the function to execute for each element, tak
ing three arguments: currentvalue the value of the current element be
ing processed.
...
indexoptional the
index of the current element be
ing processed.
... arrayoptional the stylepropertymapreadonly thatforeach() is be
ing called on.
...And 4 more matches
Stylesheet.href - Web APIs
the href property of the stylesheet
interface returns the location of the style sheet.
... syntax uri = stylesheet.href parameters uri is a str
ing conta
ining the stylesheet's uri.
... example // on a local mach
ine: <html> <head> <l
ink rel="stylesheet" href="example.css" type="text/css" /> <script> function sref() { alert(document.stylesheets[0].href); } </script> </head> <body> <div class="thunder">thunder</div> <button onclick="sref()">ss</button> </body> </html> // returns "file:////c:/w
indows/desktop/example.css notes if the style sheet is a l
inked style sheet, the value of its attribute is its location.
...And 4 more matches
SubmitEvent() - Web APIs
syntax let submitevent = new submitevent(type,event
initdict); parameters type a domstr
ing
indicat
ing the event which occurred.
... event
initdict optional an optional dictionary of
initial values for the event's properties.
... return value a submitevent object configured us
ing the given
inputs.
...And 4 more matches
SyncEvent - Web APIs
the syncevent
interface represents a sync action that is dispatched on the serviceworkerglobalscope of a serviceworker.
... this
interface
inherits from the extendableevent
interface.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 8.571428571428571%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-20 0 700 60" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/extendableevent" tar...
...And 4 more matches
getTrackById() - Web APIs
the texttracklist method gettrackbyid() returns the first texttrack object from the track list whose id matches the specified str
ing.
... this lets you f
ind a specified track if you know its id str
ing.
... syntax var thetrack = texttracklist.gettrackbyid(id); paramters id a domstr
ing
indicat
ing the id of the track to locate with
in the track list.
...And 4 more matches
TimeEvent - Web APIs
the timeevent
interface, a part of svg smil animation, provides specific contextual
information associated with time events.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stroke="#d4dde4"/><a xl
ink:href="/docs/web/api/timeevent" target="...
..._top"><rect x="116" y="1" width="90" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="161" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">timeevent</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties timeevent.detail read only is a long that specifies some detail
information about the event, depend
ing on the type of the event.
...And 4 more matches
TouchEvent.touches - Web APIs
touches is a read-only touchlist list
ing all the touch objects for touch po
ints that are currently
in contact with the touch surface, regardless of whether or not they've changed or what their target element was at touchstart time.
... you can th
ink of it as how many separate f
ingers are able to be identified as touch
ing the screen.
... syntax var touches = touchevent.touches; return value touches a touchlist list
ing all the touch objects for touch po
ints that are still
in contact with the touch surface, regardless of whether or not they've changed or what their target element was at touchstart time.
...And 4 more matches
TouchList - Web APIs
the touchlist
interface represents a list of contact po
ints on a touch surface.
... for example, if the user has three f
ingers on the touch surface (such as a screen or trackpad), the correspond
ing touchlist object would have one touch object for each f
inger, for a total of three entries.
... properties touchlist.length read only the number of touch objects
in the touchlist.
...And 4 more matches
URLSearchParams.sort() - Web APIs
the urlsearchparams.sort() method sorts all key/value pairs conta
ined
in this object
in place and returns undef
ined.
... the sort order is accord
ing to unicode code po
ints of the keys.
... this method uses a stable sort
ing algorithm (i.e.
...And 4 more matches
USBConfiguration - Web APIs
the usbconfiguration
interface of the webusb api provides
information about a particular configuration of a usb device and the
interfaces that it supports.
... constructor usbconfiguration.usbconfiguration() creates a new usbconfiguration object which conta
ins
information about the configuration on the provided usbdevice with the given configuration value.
...this is equal to the bconfigurationvalue field of the configuration descriptor provided by the device def
ining this configuration.
...And 4 more matches
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.
...the available options are: requesttype: must be one of three values specify
ing whether the tranfer is "standard" (common to all usb devices) "class" (common to an
industry-standard class of devices) or "vendor".
... recipient: specifices the target of the transfer on the device, one of "device", "
interface", "endpo
int", or "other".
...And 4 more matches
VRStageParameters - Web APIs
the vrstageparameters
interface of the webvr api represents the values describ
ing the the stage area for devices that support room-scale experiences.
... this
interface is accessible through the vrdisplay.stageparameters property.
... properties vrstageparameters.sitt
ingtostand
ingtransform read only conta
ins a matrix that transforms the sitt
ing-space view matrices of vrframedata to stand
ing-space.
...And 4 more matches
ValidityState.rangeOverflow - Web APIs
the read-only rangeoverflow property of a validitystate object
indicates if the value of an <
input>, after hav
ing been edited by the user, does not conform to the constra
ints set by the element's max attribute.
... if the field is numeric
in nature,
includ
ing the date, month, week, time, datetime-local, number and range types and a max value is set, if the value don't doesn't conform to the constra
ints set by the max value, the rangeoverflow property will be true.
... given the follow
ing: <
input type="number" m
in="20" max="40" step="2"/> if value > 40, rangeoverflow will be true.
...And 4 more matches
ValidityState.rangeUnderflow - Web APIs
the read-only rangeunderflow property of a validitystate object
indicates if the value of an <
input>, after hav
ing been edited by the user, does not conform to the constra
ints set by the element's m
in attribute.
... if the field is numeric
in nature,
includ
ing the date, month, week, time, datetime-local, number and range types and a m
in value is set, if the value don't doesn't conform to the constra
ints set by the m
in value, the rangeunderflow property will be true.
... given the follow
ing: <
input type="number" m
in="20" max="40" step="2"/> if value < 20, rangeunderflow will be true.
...And 4 more matches
patternTransform - SVG: Scalable Vector Graphics
the patterntransform attribute def
ines a list of transform def
initions that are applied to a pattern tile.
... only one element is us
ing this attribute: <pattern> html,body,svg { height:100% } <svg viewbox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"> <!-- apply a transform on the tile --> <pattern id="p1" width=".25" height=".25" patterntransform="rotate(20) skewx(30) scale(1 0.5)"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- apply the transformed pattern tile --> <rect x="10" y="10" width="80" height="80" fill="url(#p1)" /> </svg> pattern for <pattern>, patterntransform def
ines a list of transform def
initions that are applied to a pattern tile.
...for backward compatibility reason, it is highly suggested to keep us
ing the patterntransform attribute.
...And 4 more matches
repeatCount - SVG: Scalable Vector Graphics
the repeatcount attribute
indicates the number of times an animation will take place.
... five elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 220 150" xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="5"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatcount="
indef
inite"/> </rect> </svg> usage notes value <number> |
indef
inite default value none animatable no <number> this value specifies the number of iterations.
... it can
include partial iterations expressed as fraction values.
...And 4 more matches
scale - SVG: Scalable Vector Graphics
the scale attribute def
ines the displacement scale factor to be used on a <fedisplacementmap> filter primitive.
... the amount is expressed
in the coord
inate system established by the primitiveunits attribute on the <filter> element.
... only one element is us
ing this attribute: <fedisplacementmap> html, body, svg { height: 100%; } <svg viewbox="0 0 480 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter" x="-20%" y="-20%" width="140%" height="140%"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap
in2="turbulence"
in="sourcegraphic" scale="5"/> </filter> <filter id="displacementfilter2" x="-20%" y="-20%" width="140%" height="140%"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap
in2="turbulence"
in="sourcegraphic" scale="50"/> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#displacementfilter);""/> <circle cx="100" cy="100" r="80" st...
...And 4 more matches
stdDeviation - SVG: Scalable Vector Graphics
the stddeviation attribute def
ines the standard deviation for the blur operation.
... only one element is us
ing this attribute: <fegaussianblur> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <filter id="gaussianblur1"> <fegaussianblur stddeviation="1" /> </filter> <filter id="gaussianblur2"> <fegaussianblur stddeviation="5" /> </filter> <filter id="gaussianblur3" x="-30%" y="-30%" width="160%" height="160%"> <fegaussianblur stddeviation="10" /> </filter> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur1);" /> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur2); transform: translatex(140px);" /> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur3); transform: translatex(280px);" /> </svg> usage notes value <number-optional-...
...a value of zero disables the effect of the given filter primitive (i.e., the result is the filter
input image).
...And 4 more matches
stop-opacity - SVG: Scalable Vector Graphics
the stop-opacity attribute def
ines the opacity of a given color gradient stop.
...for stop-color values that donʼt
include explicit opacity
information, the opacity is treated as 1.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing element: <stop> usage notes value <opacity-value> default value 1 animatable yes <opacity-value> this value is either a <number> between 0 and 1 or a <percentage> value specify
ing the opacity of the color gradient stop.
...And 4 more matches
stroke-width - SVG: Scalable Vector Graphics
the stroke-width attribute is a presentation attribute def
ining the width of the stroke to be applied to the shape.
... as a presentation attribute, it can be applied to any element but it only has effect on shapes and text context elements,
includ
ing: <altglyph>, <circle>, <ellipse>, <l
ine>, <path>, <polygon>, <polyl
ine>, <rect>, <text>, <textpath>, <tref>, and <tspan> html,body,svg { height:100% } <svg viewbox="0 0 30 10" xmlns="http://www.w3.org/2000/svg"> <!-- default stroke width: 1 --> <circle cx="5" cy="5" r="3" stroke="green" /> <!-- stroke width as a number --> <circle cx="15" cy="5" r="3" stroke="green" stroke-width="3" /> <!-- stroke width as a percentage --> <circle cx="25" cy="5" r="3" stroke="green" stroke-width="2%" /> </svg> usage notes value <length> | <percentage> default value 1px animatable yes note: a...
... desktopmobilechromeedgefirefox
internet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung
internetstroke-widthchrome ?
...And 4 more matches
tableValues - SVG: Scalable Vector Graphics
the tablevalues attribute def
ines a list of numbers def
ining a lookup table of values for a for a color component transfer function.
... four elements are us
ing this attribute: <fefunca>, <fefuncb>, <fefuncg>, and <fefuncr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <l
ineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </l
ineargradient> </defs> <filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="table" tablevalues="0 1"/> <fefuncg type="table" tablevalues="0 1"/> <fefuncb type="table" tablevalues="0 1"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="...
...omponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <list-of-numbers> default value empty list result
ing
in identity transfer animatable yes <list-of-numbers> this value holds a comma- and/or space-separated list of <number>s, which def
ine a lookup table for the color component transfer function.
...And 4 more matches
u1 - SVG: Scalable Vector Graphics
the u1 attribute specifies list of unicode characters (refer to the description of the unicode attribute of the <glyph> element for a description of how to express
individual unicode characters) and/or ranges of unicode characters, which identify a set of possible first glyphs
in a kern
ing pair.
... if a given unicode character with
in the set has multiple correspond
ing <glyph> elements (i.e., there are multiple <glyph> elements with the same unicode attribute value but different glyph-name values), then all such glyphs are
included
in the set.
... comma is the separator character; thus, to kern a comma, specify the comma as part of a range of unicode characters or as a glyph name us
ing the g1 attribute.
...And 4 more matches
u2 - SVG: Scalable Vector Graphics
the u2 attribute specifies list of unicode characters (refer to the description of the unicode attribute of the <glyph> element for a description of how to express
individual unicode characters) and/or ranges of unicode characters, which identify a set of possible second glyphs
in a kern
ing pair.
... if a given unicode character with
in the set has multiple correspond
ing <glyph> elements (i.e., there are multiple <glyph> elements with the same unicode attribute value but different glyph-name values), then all such glyphs are
included
in the set.
... comma is the separator character; thus, to kern a comma, specify the comma as part of a range of unicode characters or as a glyph name us
ing the g2 attribute.
...And 4 more matches
unicode-bidi - SVG: Scalable Vector Graphics
see the css unicode-bidi property for more
information.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing eleven elements: <altglyph>, <textpath>, <text>, <tref>, and <tspan> context notes value normal | embed | isolate | bidi-override | isolate-override | pla
intext default value normal animatable no for a description of the values, please refer to the css unicode-bidi property.
... specifications specification status comment css writ
ing modes module level 3the def
inition of 'unicode-bidi'
in that specification.
...And 4 more matches
unicode - SVG: Scalable Vector Graphics
the unicode attribute specifies one or more unicode characters
indicat
ing the sequence of unicode characters which corresponds to a glyph.
... it is often useful to refer to characters us
ing xml character references expressed
in hexadecimal notation or decimal notation.
... for example, unicode="ffl" could be expressed as xml character references
in hexadecimal notation as unicode="ffl" or
in decimal notation as unicode="ffl".
...And 4 more matches
<defs> - SVG: Scalable Vector Graphics
objects created
inside a <defs> element are not rendered directly.
... graphical objects can be referenced from anywhere, however, def
ining these objects
inside of a <defs> element promotes understandability of the svg content and is beneficial to the overall accessibility of the document.
... html,body,svg { height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xl
ink="http://www.w3.org/1999/xl
ink"> <!-- some graphical objects to use --> <defs> <circle id="mycircle" cx="0" cy="0" r="5" /> <l
ineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="20%" stop-color="gold" /> <stop offset="90%" stop-color="red" /> </l
ineargradient> </defs> <!-- us
ing my graphical objects --> <use x="5" y="5" xl
ink:href="#mycircle" fill="url('#mygradient')" /> </svg> attributes global attributes core attributes most notably: id lang styl
ing attributes class, style event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most n...
...And 4 more matches
<desc> - SVG: Scalable Vector Graphics
the <desc> element provides an accessible, long-text description of any svg conta
iner element or graphics element.
... text
in a <desc> element is not rendered as part of the graphic.
... the hidden text of a <desc> element can also be concatenated with the visible text of other elements us
ing multiple ids
in an aria-describedby value.
...And 4 more matches
<feBlend> - SVG: Scalable Vector Graphics
the <feblend> svg filter primitive composes two objects together ruled by a certa
in blend
ing mode.
... this is similar to what is known from image edit
ing software when blend
ing two layers.
... the mode is def
ined by the mode attribute.
...And 4 more matches
<feMerge> - SVG: Scalable Vector Graphics
the <femerge> svg element allows filter effects to be applied concurrently
instead of sequentially.
... this is achieved by other filters stor
ing their output via the result attribute and then access
ing it
in a <femergenode> child.
... usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<femergenode> example svg <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <filter id="feoffset" x="-40" y="-20" width="100" height="200"> <feoffset
in="sourcegraphic" dx="60" dy="60" /> <fegaussianblur stddeviation="5" result="blur2" /> <femerge> <femergenode
in="blur2" /> <femergenode
in="sourcegraphic" /> </femerge> </filter> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green; filter: url(#feoffset);" /> </svg> result attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes none dom
interface ...
...And 4 more matches
PR_Shutdown
syntax #
include <prio.h> prstatus pr_shutdown( prfiledesc *fd, prshutdownhow how); parameters the function has the follow
ing parameters: fd a po
inter to a prfiledesc object represent
ing a connected socket.
... how the k
ind of disallowed operations on the socket.
... possible values
include the follow
ing: pr_shutdown_rcv.
...And 3 more matches
PR_TicksPerSecond
returns the number of ticks per second currently used to determ
ine the value of pr
intervaltime.
... syntax #
include <pr
inrval.h> pru
int32 pr_tickspersecond(void); returns an
integer between 1000 and 100000
indicat
ing the number of ticks per second counted by pr
intervaltime on the current platform.
... this value is platform-dependent and does not change after nspr is
initialized.
...And 3 more matches
PR_cnvtf
converts a float
ing po
int number to a str
ing.
... syntax #
include <prdtoa.h> void pr_cnvtf ( char *buf, pr
intn bufsz, pr
intn prcsn, prfloat64 fval); parameters the function has these parameters: buf the address of the buffer
in which to store the result.
... prcsn the number of digits of precision to which to generate the float
ing po
int value.
...And 3 more matches
NSPR API Reference
introduction to nspr nspr nam
ing conventions nspr threads thread schedul
ing sett
ing thread priorities preempt
ing threads
interrupt
ing threads nspr thread synchronization locks and monitors condition variables nspr sample code nspr types call
ing convention types algebraic types 8-, 16-, and 32-bit
integer types signed
integers unsigned
integers 64-bit
integer types float
ing-po
int
integer type native os
integer types miscellaneous types size type po
inter difference types boolean types status type for return values threads thread
ing types and constants thread
ing functions creat
ing, jo
ining, and identify
ing threads controll
ing thread priorities con...
...troll
ing per-thread private data
interrupt
ing and yield
ing sett
ing global thread concurrency gett
ing a thread's scope process
initialization identity and version
ing name and version constants
initialization and cleanup module
initialization locks lock type lock functions condition variables condition variable type condition variable functions monitors monitor type monitor functions cached monitors cached monitor functions i/o types directory type file descriptor types file
info types network address types types used with socket options functions type used with memory-mapped i/o offset
interpretation for seek functions i/o functions functions that operate on pathnames functions that act on file descriptors directory i/o...
... functions socket manipulation functions convert
ing between host and network addresses memory-mapped i/o functions anonymous pipe function poll
ing functions pollable events manipulat
ing layers network addresses network address types and constants network address functions atomic operations pr_atomic
increment pr_atomicdecrement pr_atomicset
interval tim
ing
interval time type and constants
interval functions date and time types and constants time parameter callback functions functions memory management operations memory allocation functions memory allocation macros str
ing operations pl_strlen pl_strcpy pl_strdup pl_strfree float
ing po
int number to str
ing conversion pr_strtod pr_dtoa pr_cnvtf long long (64-bit)
integers bitmaps formatted...
...And 3 more matches
NSS 3.17 release notes
introduction the nss team has released network security services (nss) 3.17, which is a m
inor release.
... distribution
information the hg tag is nss_3_17_rtm.
...nss 3.17 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_17_rtm/src/ new
in nss 3.17 new functionality when us
ing ecdhe, the tls server code may be configured to generate a fresh ephemeral ecdh key for each handshake, by sett
ing the ssl_reuse_server_ecdhe_key socket option to pr_false.
...And 3 more matches
NSS 3.40.1 release notes
introduction the nss team has released network security services (nss) 3.40.1, which is a patch release for nss 3.40 distribution
information the hg tag is nss_3_40_1_rtm.
... nss 3.40 source distributions are available on ftp.mozilla.org for secure https download: source tarballs: https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/nss_3_40_1_rtm/src/ new
in nss 3.40.1 new functionality no new functionality is
introduced
in this release.
... this is a patch release to fix cve-2018-12404 new functions none bugs fixed
in nss 3.40.1 bug 1485864 - cache side-channel variant of the bleichenbacher attack (cve-2018-12404) compatibility nss 3.40.1 shared libraries are backward compatible with all older nss 3.x shared libraries.
...And 3 more matches
NSS Sample Code sample3
sample code 3: hash
ing, mac /* * demonstration program for hash
ing and macs */ #
include <iostream.h> #
include "pk11pub.h" #
include "nss.h" static void pr
intdigest(unsigned char *digest, unsigned
int len) {
int i; cout << "length: " << len << endl; for(i = 0;i < len;i++) pr
intf("%02x ", digest[i]); cout << endl; } /* * ma
in */
int ma
in(
int argc, const char *argv[]) {
int status = 0; pk11slot
info *slot = 0; pk11symkey *key = 0; pk11context *context = 0; unsigned char data[80]; unsigned char digest[20]; /*is there a way to tell how large the output is?*/ unsigned
int len; secstatus s; /*
initialize nss * if your application code has already
initialized nss, you can skip it * here.
... * this code uses the simplest of the
init functions, which does not * require a nss database to exist */ nss_nodb_
init("."); /* get a slot to use for the crypto operations */ slot = pk11_get
internalkeyslot(); if (!slot) { cout << "get
internalkeyslot failed" << endl; status = 1; goto done; } /* * part 1 - simple hash
ing */ cout << "part 1 -- simple hash
ing" << endl; /*
initialize data */ memset(data, 0xbc, sizeof data); /* create a context for hash
ing (digest
ing) */ context = pk11_createdigestcontext(sec_oid_md5); if (!context) { cout << "createdigestcontext failed" << endl; goto done; } s = pk11_digestbeg
in(context); if (s != secsuccess) { cout << "digestbeg
in failed" << endl; goto done; } s = pk11_digestop(context, data, siz...
...eof data); if (s != secsuccess) { cout << "digestupdate failed" << endl; goto done; } s = pk11_digestf
inal(context, digest, &len, sizeof digest); if (s != secsuccess) { cout << "digestf
inal failed" << endl; goto done; } /* pr
int digest */ pr
intdigest(digest, len); pk11_destroycontext(context, pr_true); context = 0; /* * part 2 - hash
ing with
included secret key */ cout << "part 2 -- hash
ing with
included secret key" << endl; /*
initialize data */ memset(data, 0xbc, sizeof data); /* create a key */ key = pk11_keygen(slot, ckm_generic_secret_key_gen, 0, 128, 0); if (!key) { cout << "create key failed" << endl; goto done; } cout << (void *)key << endl; /* create parameters for crypto context */ /* note: params must be provided, but may be empty *...
...And 3 more matches
NSS Tech Notes
nss technical notes newsgroup: mozilla.dev.tech.crypto nss technical notes provide latest
information about new nss features and supplementary documentation for advanced topics
in programm
ing with nss.
... tn2: us
ing the pkcs #11 module logger.
... tn4: pull
ing certificate extension
information out of ssl certificates.
...And 3 more matches
FC_CreateObject
syntax ck_rv fc_createobject( ck_session_handle hsession, ck_attribute_ptr ptemplate, ck_ulong ulcount, ck_object_handle_ptr phobject ); parameters hsession [
in] session handle.
... ptemplate [
in] object template.
... ulcount [
in] number of attributes
in the template.
...And 3 more matches
FC_DigestKey
syntax ck_rv fc_digestkey( ck_session_handle hsession, ck_object_handle hkey ); parameters hsession [
in] session handle.
... hkey [
in] handle of the key to be digested.
... description fc_digestkey cont
inues a multi-part digest operation by digest
ing the value of a secret key.
...And 3 more matches
NSS cryptographic module
the nss cryptographic module uses the
industry standard pkcs #11 v2.20 as its api with some extensions.
... the standard pkcs #11 function c_getfunctionlist or the equivalent nsc_getfunctionlist function returns po
inters to the functions that implement the default mode of operation.
... to enable the fips mode of operation, use the function fc_getfunctionlist
instead to get po
inters to the functions that implement the fips mode of operation.
...And 3 more matches
Necko
necko is a network library that provides a platform-
independent api for several layers of network
ing, rang
ing from transport to presentation layers.
... this api is used
in many mozilla-based client applications (
includ
ing firefox) and can be used for writ
ing other network
ing clients.
...you can get the whole distribution as described
in the build documentation.
...And 3 more matches
BOOLEAN_TO_JSVAL
obsolete s
ince jsapi 42this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 3 more matches
JS::Call
this article covers features
introduced
in spidermonkey 17 call a specified js function.
... js::mutablehandlevalue rval); bool js::call(jscontext *cx, js::handlevalue thisv, js::handlevalue fun, const js::handlevaluearray& args, js::mutablehandlevalue rval); bool js::call(jscontext *cx, js::handlevalue thisv, js::handleobject funobj, const js::handlevaluearray& args, js::mutablehandlevalue rval); name type description cx jscontext * po
inter to a js context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 3 more matches
JS::CurrentGlobalOrNull
this article covers features
introduced
in spidermonkey 31 return the global object for the active function on the context.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... description js::currentglobalornull() returns the global object for whatever function is currently runn
ing on the context.
...And 3 more matches
JS_GetFunctionPrototype
this article covers features
introduced
in spidermonkey 17 retrieves the orig
inal, canonical function.prototype for an object's global object.
... syntax jsobject * js_getfunctionprototype(jscontext *cx, js::handleobject forobj); name type description cx jscontext * po
inter to a javascript context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 3 more matches
JS_GetObjectPrototype
this article covers features
introduced
in spidermonkey 17 retrieves the orig
inal, canonical object.prototype for an object's global object.
... syntax jsobject * js_getobjectprototype(jscontext *cx, js::handleobject forobj); name type description cx jscontext * po
inter to a javascript context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 3 more matches
JS_HasOwnProperty
this article covers features
introduced
in spidermonkey 45 determ
ine whether a javascript object has a specified own property.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... foundp bool * non-null po
inter to a variable of type bool.
...And 3 more matches
JS_IsArrayObject
determ
ine if a specified object is an array.
... syntax bool js_isarrayobject(jscontext *cx, js::handlevalue value, bool *isarray); bool js_isarrayobject(jscontext *cx, js::handleobject obj, bool *isarray); // obsolete s
ince jsapi 44 bool js_isarrayobject(jscontext *cx, js::handlevalue value); bool js_isarrayobject(jscontext *cx, js::handleobject obj); name type description cx jscontext * a context.
... value js::handlevalue the value to exam
ine.
...And 3 more matches
JS_LooselyEqual
this article covers features
introduced
in spidermonkey 1.8.1 determ
ine whether two javascript values are equal
in the sense of the == operator.
... syntax bool js_looselyequal(jscontext *cx, js::handle<js::value> v1, js::handle<js::value> v2, bool *equal); name type description cx jscontext * the context
in which to perform the conversion.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 3 more matches
JS_NewObjectForConstructor
syntax jsobject * js_newobjectforconstructor(jscontext *cx, const jsclass *clasp, const js::callargs& args); // added
in jsapi 32 jsobject * js_newobjectforconstructor(jscontext *cx, jsclass *clasp, const jsval *vp); // added
in jsapi 14, obsolete s
ince jsapi 32 jsobject * js_newobjectforconstructor(jscontext *cx, const jsval *vp); // obsolete s
ince jsapi 14 name type description cx jscontext * the context
in which to create the new object.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...added
in spidermonkey 17 vp jsval * po
inter to a constructor.
...And 3 more matches
JS_SameValue
this article covers features
introduced
in spidermonkey 1.8.1 determ
ines if two jsvals are the same, as determ
ined by the samevalue algorithm
in ecmascript 262, 5th edition.
... samevalue slightly differs from strict equality (===)
in that +0 and -0 are not the same and
in that nan is the same as nan.
... the samevalue algorithm is equivalent to the follow
ing javascript: function samevalue(v1, v2) { if (v1 === 0 && v2 === 0) return 1 / v1 === 1 / v2; if (v1 !== v1 && v2 !== v2) return true; return v1 === v2; } syntax // added
in spidermonkey 45 bool js_samevalue(jscontext *cx, js::handle<js::value> v1, js::handle<js::value> v2, bool *same); // obsolete s
ince jsapi 39 bool js_samevalue(jscontext *cx, jsval v1, jsval v2, bool *same); name type description cx jscontext * po
inter to a js context from which to derive runtime
information.
...And 3 more matches
JS_SaveExceptionState
syntax jsexceptionstate * js_saveexceptionstate(jscontext *cx); name type description cx jscontext * po
inter to a js context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... description saves the current exception state (that is, any pend
ing exception, or a cleared exception state) associated with the specified context cx, and returns a jsexceptionstate object hold
ing this state.
...And 3 more matches
JS_SetPrototype
syntax bool js_setprototype(jscontext *cx, js::handleobject obj, js::handleobject proto); name type description cx jscontext * the context
in which to set the object's prototype.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...a prototype object provides properties that are shared by similar js object
instances.
...And 3 more matches
JS_SetVersion
obsolete s
ince jsapi 25this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...And 3 more matches
JS_StrictlyEqual
this article covers features
introduced
in spidermonkey 1.8.1 determ
ine whether two javascript values are equal
in the sense of the === operator.
... syntax // added
in spidermonkey 45 bool js_strictlyequal(jscontext *cx, js::handle<js::value> v1, js::handle<js::value> v2, bool *equal); // obsolete s
ince jsapi 39 bool js_strictlyequal(jscontext *cx, jsval v1, jsval v2, bool *equal); name type description cx jscontext * the context
in which to perform the conversion.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
...And 3 more matches
jsid
jsid is either a 31-bit signed
integer,
interned str
ing or object.
... a few jsapi functions use jsids
instead of js::values for property names: js_nextproperty, js_enumerate, and all functions with names end
ing
in byid.
... also, there is an additional jsid value, jsid_void, which does not occur
in js scripts but may be used to
indicate the absence of a valid jsid.
...And 3 more matches
JSDBGAPI
the jsdbg api is obsolete and has been removed
in spidermonkey 35.
... breakpo
ints js_settrap js_gettrapopcode js_cleartrap js_clearscripttraps js_clearalltraps js_handletrap js_set
interrupt js_clear
interrupt watchpo
ints js_setwatchpo
int js_clearwatchpo
int js_clearwatchpo
intsforobject js_clearallwatchpo
ints
inspect
ing the stack js_pctol
inenumber js_l
inenumbertopc js_getfunctionscript js_getfunctionnative js_getfunctionfastnative js_getscriptpr
incipals typedef jsstackframe js_frameiterator js_getframescript js_getframepc js_getscriptedcaller js_stackframepr
incipals js_evalframepr
incipals js_getframeannotation js_setframeannotation js_getframepr
incipalarray js_isnativeframe js_getframeobject js_getframescopecha
in js_getframecallobject js_getframethis js_getframefunction js_getframefunctionobjec...
...t js_isconstructorframe js_isdebuggerframe js_getframereturnvalue js_setframereturnvalue js_getframecalleeobject js_getscriptfilename js_getscriptbasel
inenumber js_getscriptl
ineextent js_getscriptversion js_gettopscriptfilenameflags js_getscriptfilenameflags js_flagscriptfilenameprefix jsfilename_null jsfilename_system jsfilename_protected evaluat
ing debug code js_evaluate
instackframe exam
ining object properties typedef jspropertydesc jspd_enumerate jspd_readonly jspd_permanent jspd_alias jspd_argument jspd_variable jspd_exception jspd_error typedef jspropertydescarray js_propertyiterator js_getpropertydesc js_getpropertydescarray js_putpropertydescarray hooks js_setdebuggerhandler js_setsourcehandler js_setexecutehook js_setcal...
...And 3 more matches
SpiderMonkey releases
our cont
inuous
integration system does produce a tarball that is built
into a b
inary that runs our smoke tests, but we do not ma
inta
in it nor actively test its suitability for general embedd
ing.
... we have periodically created "releases", but they are best-effort and
incomplete.
... we do happily accept patches, and make some effort to keep the tip of the gecko tree m
inimally work
ing as an embeddable source package.
...And 3 more matches
TPS Tab Lists
a tabs asset list is an array of objects with the follow
ing keys: uri: the uri of the tab, required.
...if specified, only used dur
ing verify actions.
..."http://hg.mozilla.org/automation/crossweave/raw-file/2d9aca9585b6/pages/page1.html", title: "crossweave test page 1", profile: "profile1" }, { uri: "data:text/html,<html><head><title>hello</title></head><body>hello</body></html>", title: "hello", profile: "profile1" } ]; tab lists and phase actions tabs cannot be modified or deleted, only added or verified with the follow
ing functions: tabs.add - opens the specified tabs
in the browser w
indow.
...And 3 more matches
SMILE
this article covers features
introduced
in seamonkey 2 smile is a javascript library designed to help developers build extensions us
ing term
inology and
interfaces that are familiar to them.
... smile is about mak
ing it easier for extension developers to be productive, by m
inimiz
ing some of the xpcom formality and add
ing some "modern" javascript ideas.
... smile has a smileiapplication
interface that implements all the functions of extiapplication.
...And 3 more matches
STEEL
consider us
ing the functions found
in appconstants.jsm or services.jsm
instead steel is the scriptable thunderbird easy extension library.
... it is a fuel-like set of
interfaces to facilitate thunderbird extension development.
... currently, steel has an steeliapplication
interface that implements all the functions of extiapplication.
...And 3 more matches
XPCOM Glue without mozalloc
start
ing with xulrunner 2.0, the frozen l
inkage dependent glue (xpcomglue_s.lib on w
indows, libxpcomglue_s.a on l
inux and mac) is dependent on the new
infallible memory allocation rout
ines (mozalloc).
... s
ince these rout
ines didn't exist prior to xulrunner 2.0, xpcom components that l
ink aga
inst the frozen l
inkage dependent glue will not be compatible with xulrunner applications prior to 2.0.
... the solution is to l
ink aga
inst xpcomglue_s_nomozalloc
instead (xpcomglue_s_nomozalloc.lib on w
indows, libxpcomglue_s_nomozalloc.a on l
inux and mac).
...And 3 more matches
Components.returnCode
this problem was
introduced
in mozilla 1.4.
... usage components.returncode is a property that can be used to
indicate to an xpcom caller of the javascript method that the method is return
ing a specific nsresult code.
... generally, xpconnect does a f
ine job of mak
ing it unnecessary for javascript code to worry about nsresult codes.
...And 3 more matches
Components.utils.unwaiveXrays
undo a previous call to components.utils.waivexrays(), restor
ing xray vision for the caller.
... for example, if privileged code accesses a dom object belong
ing to web content, it will by default see it us
ing xray vision, mean
ing that among other th
ings expando properties added to the object by content are not visible.
... privileged code can waive xray vision us
ing waivexrays, and it will then see expandos.
...And 3 more matches
nsDirectoryService
this service returns the locations of "well known" directories
in an os-
independent manner.
... for
instance, it can give you the path of the system's temporary directory, desktop directory, current work
ing directory, and so on.
... class id f00152d0-b40b-11d3-8c9c-000064657374 contractid @mozilla.org/file/directory_service;1 supported
interfaces nsiproperties nsidirectoryservice remarks this component is a s
ingleton and should therefore be accessed via the xpcom service manager.
...And 3 more matches
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.
... if there is no base class method with the same signature, a compiler with static-check
ing enabled will fail to compile.
... ns_override is declared
in nscore.h, beg
inn
ing with gecko 2.0.
...And 3 more matches
operator=
self_type& operator=( const self_type& astr
ing ); parameters astr
ing [
in] a nsacstr
ing to append to this str
ing.
... return values this operator returns a reference back to the object be
ing modified to allow operator cha
ining.
... self_type& operator=( const char_type* adata ); parameters adata [
in] a raw character array to append to this str
ing.
...And 3 more matches
operator+=
self_type& operator+=( const self_type& astr
ing ); parameters astr
ing [
in] a nsacstr
ing to append to this str
ing.
... return values this operator returns a reference back to the object be
ing modified to allow operator cha
ining.
... self_type& operator+=( const char_type* adata ); parameters adata [
in] a raw character array to append to this str
ing.
...And 3 more matches
operator=
self_type& operator+=( const self_type& astr
ing ); parameters astr
ing [
in] a nsastr
ing to append to this str
ing.
... return values this operator returns a reference back to the object be
ing modified to allow operator cha
ining.
... self_type& operator=( const char_type* adata ); parameters adata [
in] a raw character array to append to this str
ing.
...And 3 more matches
nsAutoRef
nsautoref<t> is a template class implement
ing an object that holds a handle to a resource that must be released, typically on destruction of the object.
... nsautoref has a role similar to nsautoptr and nsrefptr but does not require that the handle is a po
inter to an object that was created with new or has addref() and release() methods.
... nsautoref is therefore useful for manag
ing a reference to a foreign object.
...And 3 more matches
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 f
indrepresentativecolor(
in nsiuri imageuri,
in mozirepresentativecolorcallback callback); methods f
indrepresentativecolor() given an image uri, f
ind the most representative color for that image based on the frequency of each color.
... preference is given to colors that are more
interest
ing.
...this is
intended to be used on favicon images.
...And 3 more matches
mozIStorageProgressHandler
the mozistorageprogresshandler
interface lets storage consumers receive callbacks dur
ing the execution of sqlite requests.
... last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0)
inherits from: nsisupports method overview boolean onprogress(
in mozistorageconnection aconnection); methods onprogress() the onprogress() method is called periodically while an sqlite operation is ongo
ing.
... this allows you to monitor the progress and possibly display status
information to the user.
...And 3 more matches
nsIAccessibilityService
last changed
in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0)
inherits from: nsiaccessibleretrieval method overview nsiaccessible createouterdocaccessible(
in nsidomnode anode); nsiaccessible createrootaccessible(
in nsipresshell ashell,
in nsidocument adocument); nsiaccessible createhtml4buttonaccessible(
in nsisupports aframe); nsiaccessible createhypertextaccessible(
in nsisupports aframe); nsiaccessible createhtmlbraccessible(
in nsisupports aframe); nsiaccessible createhtmlbuttonaccessible(
in nsisupports aframe); nsiaccessible createhtmlaccessiblebymarkup(
in nsiframe aframe,
in nsiweakreference aweakshell,
in nsidomnode adomnode); nsiaccessible...
... createhtmlliaccessible(
in nsisupports aframe,
in nsisupports abulletframe,
in astr
ing abullettext); nsiaccessible createhtmlcheckboxaccessible(
in nsisupports aframe); nsiaccessible createhtmlcomboboxaccessible(
in nsidomnode anode,
in nsiweakreference apresshell); nsiaccessible createhtmlgenericaccessible(
in nsisupports aframe); nsiaccessible createhtmlgenericaccessible(
in nsisupports aframe); nsiaccessible createhtmlhraccessible(
in nsisupports aframe); nsiaccessible createhtmlimageaccessible(
in nsisupports aframe); nsiaccessible createhtmllabelaccessible(
in nsisupports aframe); nsiaccessible createhtmllabelaccessible(
in nsidomnode anode,
in nsiweakreference apresshell); nsiaccessible createhtmlobjectframeaccessible(
in nsobjectframe aframe); nsiaccessible create...
...htmlradiobuttonaccessible(
in nsisupports aframe); nsiaccessible createhtmlselectoptionaccessible(
in nsidomnode anode,
in nsiaccessible aaccparent,
in nsiweakreference apresshell); nsiaccessible createhtmltableaccessible(
in nsisupports aframe); nsiaccessible createhtmltablecellaccessible(
in nsisupports aframe); nsiaccessible createhtmltableheadaccessible(
in nsidomnode adomnode); nsiaccessible createhtmltextaccessible(
in nsisupports aframe); nsiaccessible createhtmltextfieldaccessible(
in nsisupports aframe); nsiaccessible createhtmlcaptionaccessible(
in nsisupports aframe); nsiaccessible getaccessible(
in nsidomnode anode,
in nsipresshell apresshell,
in nsiweakreference aweakshell,
inout nsiframe frameh
int, out boolean aishidden); nsiaccessible addnativerootaccessible(...
...And 3 more matches
nsIAuthPromptProvider
netwerk/base/public/nsiauthpromptprovider.idlscriptable this
interface requests a prompt
interface for the given prompt reason.
...
inherits from: nsisupports last changed
in gecko 1.9 (firefox 3) method overview void getauthprompt(
in pru
int32 apromptreason,
in nsiidref iid, [iid_is(iid),retval] out nsqiresult result); constants constant value description prompt_normal 0 normal (non-proxy) prompt request.
... methods getauthprompt() this method requests a prompt
interface for the given prompt reason.
...And 3 more matches
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.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/event" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">event</text></a><polyl
ine po
ints="76,25 86,20 86,30 76,25" stroke="#d4dde4" fill="none"/><l
ine x1="86" y1="25" x2="116" y2="25" stro...
...ke="#d4dde4"/><a xl
ink:href="/docs/web/api/mediastreamtrackevent" target="_top"><rect x="116" y="1" width="210" 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-basel
ine="middle">mediastreamtrackevent</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} the events based on this
interface are addtrack and removetrack properties also
inherits properties from its parent
interface, event.
...And 3 more matches
MouseEvent.ctrlKey - Web APIs
the mouseevent.ctrlkey read-only property is a boolean that
indicates whether the ctrl key was pressed or not when a given mouse event occurs.
... note: on mac
intosh keyboards, this key is the control key.
... syntax var ctrlkeypressed =
instanceofmouseevent.ctrlkey return value a boolean, where true
indicates that the key is pressed, and false
indicates that the key is not pressed.
...And 3 more matches
MouseWheelEvent - Web APIs
the mousewheelevent
interface represents events that occur due to the user turn
ing a mouse wheel.
... do not use this
interface for wheel events.
... like mousescrollevent, this
interface is non-standard and deprecated.
...And 3 more matches
msPlayToPreferredSourceUri - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... this proprietary property is specific to
internet explorer and microsoft edge.
...And 3 more matches
msSetMediaProtectionManager - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the mssetmediaprotectionmanager method specifies the media protection manager for a given media pipel
ine.
...And 3 more matches
Navigator.oscpu - Web APIs
the navigator.oscpu property returns a str
ing that identifies the current operat
ing system.
... syntax oscpu
info = navigator.oscpu value a domstr
ing provid
ing a str
ing which identifies the operat
ing system on which the browser is runn
ing.
... operat
ing system oscpu
info str
ing format os/2 os/2 warp x (either 3, 4 or 4.5) w
indows ce w
indowsce x.y1 w
indows 64-bit (64-bit build) w
indows nt x.y; w
in64; x64 w
indows 64-bit (32-bit build) w
indows nt x.y; wow64 w
indows 32-bit w
indows nt x.y mac os x (ppc build) powerpc mac os x version x.y mac os x (i386/x64 build)
intel mac os x or macos version x.y l
inux 64-bit (32-bit build) output of uname -s plus "i686 on x86_64" l
inux output of uname -sm x.y refers to the version of the operat
ing system example function os
info() { alert(w
indow.navigator.oscpu); } os
info(); // alerts "w
indows nt 6.0" for example usage notes unless your code is privileged (chrome ...
...And 3 more matches
Navigator.serviceWorker - Web APIs
the navigator.serviceworker read-only property returns the serviceworkerconta
iner object for the associated document, which provides access to registration, removal, upgrade, and communication with the serviceworker.
... the feature may not be available
in private mode.
... syntax var workerconta
iner
instance = navigator.serviceworker; value serviceworkerconta
iner examples this code checks if the browser supports service workers.
...And 3 more matches
NavigatorStorage - Web APIs
the navigatorstorage mix
in adds to the navigator and workernavigator
interfaces the navigator.storage property, which provides access to the storagemanager s
ingleton used for controll
ing the persistence of data stores as well as obta
ining
information note: this feature is available
in web workers.
... there are many apis which provide ways for web content to store data on a user's computer,
includ
ing cookies, the web storage api (w
indow.localstorage and w
indow.sessionstorage), and
indexeddb.
... the storage standard is designed to serve as a common basis for the implementation of all of those apis and storage technologies, so that their constra
ints and configurations can be understood and controlled us
ing a common set of methods and properties.
...And 3 more matches
Node.baseURIObject - Web APIs
the node.baseuriobject property returns the nsiuri represent
ing the node's (typically a document or an element) base url.
... it's similar to node.baseuri, except it returns an nsiuri
instead of a str
ing.
... this property exists on all nodes (html, xul, svg, mathml, etc.), but only if the script try
ing to use it has universalxpconnect privileges.
...And 3 more matches
Node.isConnected - Web APIs
the isconnected read-only property of the node
interface returns a boolean
indicat
ing whether the node is connected (directly or
indirectly) to the context object, for example the document object
in the case of the normal dom, or the shadowroot
in the case of a shadow dom.
... syntax var isitconnected = nodeobject
instance.isconnected return value a boolean that is true if the node is connected to its relevant context object, and false if not.
...rns false document.body.appendchild(test); console.log(test.isconnected); // returns true shadow dom a shadow dom example: // create a shadow root var shadow = this.attachshadow({mode: 'open'}); // create some css to apply to the shadow dom var style = document.createelement('style'); console.log(style.isconnected); // returns false style.textcontent = ` .wrapper { position: relative; } .
info { font-size: 0.8rem; width: 200px; display:
inl
ine-block; border: 1px solid black; padd
ing: 10px; background: white; border-radius: 10px; opacity: 0; transition: 0.6s all; positions: absolute; bottom: 20px; left: 10px; z-
index: 3 } `; // attach the created style element to the shadow dom shadow.appendchild(style); console.log(style.isconnected); // returns true poly...
...And 3 more matches
Node.isEqualNode() - Web APIs
two nodes are equal when they have the same type, def
ining characteristics (for elements, this would be their id, number of children, and so forth), its attributes match, and so on.
... the specific set of data po
ints that must match varies depend
ing on the types of the nodes.
... example
in this example, we create three <div> blocks.
...And 3 more matches
NodeList.length - Web APIs
the nodelist.length property returns the number of items
in a nodelist.
... syntax numitems = nodelist.length numitems is an
integer value represent
ing the number of items
in a nodelist.
... example the length property is often useful
in dom programm
ing.
...And 3 more matches
Notification.icon - Web APIs
note: this feature is available
in web workers.
... the icon read-only property of the notification
interface conta
ins the url of an icon to be displayed as part of the notification, as specified
in the icon option of the notification() constructor.
... syntax var icon = notification.icon; value a usvstr
ing.
...And 3 more matches
Notification.maxActions - Web APIs
note: this feature is available
in web workers.
... the maxactions attribute of the notification
interface returns the maximum number of actions supported by the device and the user agent.
... effectively, this is the maximum number of elements
in notification.actions array which will be respected by the user agent.
...And 3 more matches
Notification.silent - Web APIs
note: this feature is available
in web workers.
... the silent read-only property of the notification
interface specifies whether the notification should be silent, i.e., no sounds or vibrations should be issued, regardless of the device sett
ings.
... this is specified
in the silent option of the notification() constructor.
...And 3 more matches
SVGFontFaceElement - Web APIs
the svgfontfaceelement
interface corresponds to the <font-face> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgfontfaceelement" target="_top"><rect x="1" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">svgfontfaceelement</text></a></svg></div> a:hover text { fill: #0095dd; poi...
...nter-events: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
SVGFontFaceFormatElement - Web APIs
the svgfontfaceformatelement
interface corresponds to the <font-face-format> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgfontfaceformatelement" target="_top"><rect x="1" y="1" width="240" height="50" fill="#f4f7f8" stroke="#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-basel
ine="middle">svgfontfaceformatelement</text></a></svg></div> a:hover text ...
...{ fill: #0095dd; po
inter-events: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
SVGFontFaceNameElement - Web APIs
the svgfontfacenameelement
interface corresponds to the <font-face-name> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgfontfacenameelement" target="_top"><rect x="1" y="1" width="220" height="50" fill="#f4f7f8" 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-basel
ine="middle">svgfontfacenameelement</text></a></svg></div> a:hover text { fill...
...: #0095dd; po
inter-events: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
SVGFontFaceSrcElement - Web APIs
the svgfontfacesrcelement
interface corresponds to the <font-face-src> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgfontfacesrcelement" target="_top"><rect x="1" y="1" width="210" height="50" fill="#f4f7f8" 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-basel
ine="middle">svgfontfacesrcelement</text></a></svg></div> a:hover text { fill: #...
...0095dd; po
inter-events: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
SVGFontFaceUriElement - Web APIs
the svgfontfaceurielement
interface corresponds to the <font-face-uri> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgfontfaceurielement" target="_top"><rect x="1" y="1" width="210" height="50" fill="#f4f7f8" 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-basel
ine="middle">svgfontfaceurielement</text></a></svg></div> a:hover text { fill: #...
...0095dd; po
inter-events: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
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.
... note: this method was orig
inally part of the svgpathelement
interface.
... svg 2
introduced the svggeometryelement
interface and moved the property to it.
...And 3 more matches
SVGGraphicsElement: copy event - Web APIs
the copy event fires on svggraphicselements when the user
initiates a copy action through the browser's user
interface.
... bubbles yes cancelable yes
interface clipboardevent event handler property oncopy the event's default action is to copy the selection (if any) to the clipboard.
... a handler for this event can modify the clipboard contents by call
ing setdata(format, data) on the event's clipboardevent.clipboarddata property, and cancell
ing the event's default action us
ing event.preventdefault().
...And 3 more matches
SVGHKernElement - Web APIs
the svghkernelement
interface corresponds to the <hkern> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svghkernelement" target="_top"><rect x="1" y="1" width="150" height="50" fill="#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-basel
ine="middle">svghkernelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-event...
...s: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
SVGTRefElement - Web APIs
the svgtrefelement
interface corresponds to the <tref> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgtrefelement" target="_top"><rect x="1" y="1" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">svgtrefelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: ...
...all;} properties this
interface has no properties but
inherits properties from its parent, svgtextposition
ingelement and implements properties from svgurireference.
...And 3 more matches
SVGVKernElement - Web APIs
the svgvkernelement
interface corresponds to the <vkern> elements.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgvkernelement" target="_top"><rect x="1" y="1" width="150" height="50" fill="#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-basel
ine="middle">svgvkernelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-event...
...s: all;} properties this
interface has no properties but
inherits properties from its parent, svgelement.
...And 3 more matches
SVGZoomAndPan - Web APIs
the svgzoomandpan
interface is used to reflect the zoomandpan attribute, and is mixed
in to other
interfaces for elements that support this attribute.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svgzoomandpan" target="_top"><rect x="1" y="1" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="66" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-basel
ine="middle">svgzoomandpan</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} constants name value description svg_zoomandpan_unknown 0 ...
... the type is not one of predef
ined types.
...And 3 more matches
ScreenOrientation.angle - Web APIs
the angle read-only property of the screenorientation
interface returns the document's current orientation angle.
... syntax angle = screenorientation.angle value an unsigned short
integer.
... specifications specification status comment screen orientation apithe def
inition of 'angle'
in that specification.
...And 3 more matches
ScreenOrientation.lock() - Web APIs
the lock() property of the screenorientation
interface locks the orientation of the conta
ining document to its default orientation.
...one of the follow
ing: "any" "natural" "landscape" "portrait" "portrait-primary" "portrait-secondary" "landscape-primary" "landscape-secondary" return value a promise.
... specifications specification status comment screen orientation apithe def
inition of 'lock()'
in that specification.
...And 3 more matches
ScreenOrientation.type - Web APIs
the type read-only property of the screenorientation
interface returns the document's current orientation type, one of "portrait-primary", "portrait-secondary", "landscape-primary", or "landscape-secondary".
... syntax type = screenorientation.type value a str
ing.
... specifications specification status comment screen orientation apithe def
inition of 'type'
in that specification.
...And 3 more matches
ScrollToOptions.left - Web APIs
the left property of the scrolltooptions dictionary specifies the number of pixels along the x axis to scroll the w
indow or element.
... examples
in our scrolltooptions example (see it live) we
include a form that allows the user to enter three values — two numbers represent
ing the left and top properties (i.e.
... the positions to scroll to along the x and y axes), and a checkbox
indicat
ing whether they want smooth scroll
ing enabled or not.
...And 3 more matches
cursor - SVG: Scalable Vector Graphics
« svg attribute reference home the cursor attribute specifies the mouse cursor displayed when the mouse po
inter is over an element.
... as a presentation attribute, it also can be used as a property directly
inside a css stylesheet, see css cursor for further
information.
... usage context categories presentation attribute value [[<funciri>,]* [ auto | crosshair | default | po
inter | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] |
inherit animatable yes normative document svg 1.1 (2nd edition) <funciri> functional notation for a reference.
...And 3 more matches
elevation - SVG: Scalable Vector Graphics
the elevation attribute specifies the direction angle for the light source from the xy plane towards the z-axis,
in degrees.
... note that the positive z-axis po
ints towards the viewer of the content.
... only one element is us
ing this attribute: <fedistantlight> html, body, svg { height: 100%; } <svg viewbox="0 0 440 200" xmlns="http://www.w3.org/2000/svg"> <filter id="distantlight1"> <fediffuselight
ing> <fedistantlight elevation="0" /> </fediffuselight
ing> </filter> <filter id="distantlight2"> <fediffuselight
ing> <fedistantlight elevation="45" /> </fediffuselight
ing> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight2); transform: translatex(240px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter ef...
...And 3 more matches
filterUnits - SVG: Scalable Vector Graphics
the filterunits attribute def
ines the coord
inate system for the attributes x, y, width and height.
... only one element is us
ing this attribute: <filter> usage notes value userspaceonuse | objectbound
ingbox default value objectbound
ingbox animatable yes userspaceonuse x, y, width and height represent values
in the current coord
inate system that results from tak
ing the current user coord
inate system
in place at the time when the <filter> element is referenced (i.e., the user coord
inate system for the element referenc
ing the <filter> element via a filter attribute).
... objectbound
ingbox
in that case, x, y, width and height represent fractions or percentages of the bound
ing box on the referenc
ing element.
...And 3 more matches
flood-color - SVG: Scalable Vector Graphics
the flood-color attribute
indicates what color to use to flood the current filter primitive subregion.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing two elements: <feflood> and <fedropshadow> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="flood1"> <feflood flood-color="skyblue" x="0" y="0" width="200" height="200"/> </filter> <filter id="flood2"> <feflood flood-color="seagreen" x="0" y="0" width="200" height="200"/> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#flood1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#flood2); transform: translatex(220px);" /> </svg> usage notes value color
initial v...
...alue black animatable yes specifications specification status comment filter effects module level 1the def
inition of 'flood-color'
in that specification.
...And 3 more matches
font-size - SVG: Scalable Vector Graphics
the font-size attribute refers to the size of the font from basel
ine to basel
ine when multiple l
ines of text are set solid
in a multil
ine layout environment.
...see the css font-size property for more
information.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing eight elements: <altglyph>, <text>, <textpath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg viewbox="0 0 200 30" xmlns="http://www.w3.org/2000/svg"> <text y="20" font-size="smaller">smaller</text> <text x="100" y="20" font-size="2em">2em</text> </svg> usage notes value <absolute-size> | <relative-size> | <length-percentage> default value medium animatable yes for a description of the values, please refer to the css font-size property.
...And 3 more matches
fx - SVG: Scalable Vector Graphics
the fx attribute def
ines the x-axis coord
inate of the focal po
int for a radial gradient.
... only one element is us
ing this attribute: <radialgradient> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient1" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> <radialgradient id="gradient2" cx="0.5" cy="0.5" r="0.5" fx="0.75" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage ...
...notes value <length> default value co
incides with the presentational value of cx for the element whether the value for cx was
inherited or not.
...And 3 more matches
fy - SVG: Scalable Vector Graphics
the fy attribute def
ines the y-axis coord
inate of the focal po
int for a radial gradient.
... only one element is us
ing this attribute: <radialgradient> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient1" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> <radialgradient id="gradient2" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.75" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage ...
...notes value <length> default value co
incides with the presentational value of cy for the element whether the value for cy was
inherited or not.
...And 3 more matches
g1 - SVG: Scalable Vector Graphics
the g1 attribute specifies a list of glyph names which identify a set of possible first glyphs
in the kern
ing pair.
... all glyphs with the given glyph name are
included
in the set.
... the total set of possible first glyphs
in the kern
ing pair is the union of glyphs specified by the u1 and g1 attributes.
...And 3 more matches
g2 - SVG: Scalable Vector Graphics
the g2 attribute specifies a list of glyph names which identify a set of possible second glyphs
in the kern
ing pair.
... all glyphs with the given glyph name are
included
in the set.
... the total set of possible second glyphs
in the kern
ing pair is the union of glyphs specified by the u2 and g2 attributes.
...And 3 more matches
glyph-name - SVG: Scalable Vector Graphics
it is recommended that glyph names be unique with
in a font.
... the glyph names can be used
in situations where unicode character numbers do not provide sufficient
information to access the correct glyph, such as when there are multiple glyphs per unicode character.
... the glyph names can be referenced
in kern
ing def
initions created by <hkern> and <vkern> elements.
...And 3 more matches
marker-mid - SVG: Scalable Vector Graphics
the marker-mid attribute def
ines the arrowhead or polymarker that will be drawn at all
interior vertices of the given shape.
... as a presentation attribute, it can be applied to any element but it has effect only on the follow
ing seven elements: <circle>, <ellipse>, <l
ine>, <path>, <polygon>, <polyl
ine>, and <rect> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="circle" markerwidth="8" markerheight="8" refx="4" refy="4"> <circle cx="4" cy="4" r="4" stroke="none" fill="#f00"/> </marker> </defs> <polyl
ine fill="none" stroke="black" po
ints="20,100 40,60 70,80 100,20" marker-mid="url(#circle)"/> </svg> usage notes value none | <...
...marker-ref> default value none animatable yes none
indicates that no marker symbol shall be drawn at the given vertices.
...And 3 more matches
markerUnits - SVG: Scalable Vector Graphics
the markerunits attribute def
ines the coord
inate system for the markerwidth and markerunits attributes and the contents of the <marker>.
... usage notes value userspaceonuse | strokewidth default value strokewidth animatable yes userspaceonuse this value specifies that the markerwidth and markerunits attributes and the contents of the <marker> element represent values
in the current user coord
inate system
in place for the graphic object referenc
ing the marker (i.e., the user coord
inate system for the element referenc
ing the <marker> element via a marker, marker-start, marker-mid, or marker-end property).
... strokewidth this value specifies that the markerwidth and markerunits attributes and the contents of the <marker> element represent values
in a coord
inate system which has a s
ingle unit equal the size
in user units of the current stroke width (see the stroke-width attribute)
in place for the graphic object referenc
ing the marker.
...And 3 more matches
mode - SVG: Scalable Vector Graphics
the mode attribute def
ines the blend
ing mode on the <feblend> filter primitive.
... only one element is us
ing this attribute: <feblend> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <filter id="blend
ing1" x="0" y="0" width="100%" height="100%"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="seagreen" flood-opacity="1"/> <feblend
in="sourcegraphic"
in2="floodfill" mode="multiply"/> </filter> <filter id="blend
ing2" x="0" y="0" width="100%" height="100%"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="seagreen" flood-opacity="1"/> <feblend
in="sourcegraphic"
in2="floodfill" mode="color-dodge"/> </filter> <image xl
ink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" ...
... style="filter:url(#blend
ing1);"/> <image xl
ink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#blend
ing2); transform:translatex(220px);"/> </svg> usage notes value <blend-mode> default value normal animatable yes for a description of the values, see <blend-mode>.
...And 3 more matches
primitiveUnits - SVG: Scalable Vector Graphics
the primitiveunits attribute specifies the coord
inate system for the various length values with
in the filter primitives and for the attributes that def
ine the filter primitive subregion.
... only one element is us
ing this attribute: <filter> usage notes value userspaceonuse | objectbound
ingbox default value userspaceonuse animatable yes userspaceonuse this value
indicates that any length values with
in the filter def
initions represent values
in the current user coord
inate system
in place at the time when the <filter> element is referenced (i.e., the user coord
inate system for the element referenc
ing the <filter> element via a filter attribute).
... objectbound
ingbox this value
indicates that any length values with
in the filter def
initions represent fractions or percentages of the bound
ing box on the referenc
ing element.
...And 3 more matches
repeatDur - SVG: Scalable Vector Graphics
the repeatdur attribute specifies the total duration for repeat
ing an animation.
... five elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 220 150" xmlns="http://www.w3.org/2000/svg"> <rect x="0" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatdur="5s"/> </rect> <rect x="120" y="0" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="1s" repeatdur="
indef
inite"/> </rect> </svg> usage notes value <clock-value> |
indef
inite default values none animatable no <clock-value> this value specifies the duration
in presentation time to repeat the animation.
...
indef
inite this value
indicates that the animation will be repeated
indef
initely (i.e.
...And 3 more matches
specularConstant - SVG: Scalable Vector Graphics
the specularconstant attribute controls the ratio of reflection of the specular light
ing.
... it represents the ks value
in the phong light
ing model.
... only one element is us
ing this attribute: <fespecularlight
ing> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="specularlight
ing1" x="0" y="0" width="100%" height="100%"> <fespecularlight
ing
in="sourcegraphic" specularconstant="1.2"> <fepo
intlight x="60" y="60" z="20" /> </fespecularlight
ing> </filter> <filter id="specularlight
ing2" x="0" y="0" width="100%" height="100%"> <fespecularlight
ing
in="sourcegraphic" specularconstant="0.8"> <fepo
intlight x="60" y="60" z="20" /> </fespecularlight
ing> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#specularlight
ing1);" /> <rect x="0" y="0" width="200" height="200" ...
...And 3 more matches
stemh - SVG: Scalable Vector Graphics
the stemh attribute
indicates the horizontal stem width of the font.
... the stem width refers to the dom
inant stem of the font.
...for example, the ma
in vertical stems of roman characters will differ from the th
in stems on serifed "m" and "n", plus there may be different widths for uppercase and lowercase characters
in the same font.
...And 3 more matches
stemv - SVG: Scalable Vector Graphics
the stemv attribute
indicates the vertical stem width of the font.
...this
information is often tied to h
int
ing, and may not be directly accessible
in some font formats.
... the measurement is meant for the dom
inant vertical stem
in the font because there might be different group
ings of vertical stems (e.g., one ma
in one, and one lighter weight one as for an uppercase "m" or "n").
...And 3 more matches
vert-adv-y - SVG: Scalable Vector Graphics
the vert-adv-y attribute
indicates the vertical advance after render
ing a glyph
in vertical orientation.
... three elements are us
ing this attribute: <font>, <glyph>, and <miss
ing-glyph> font for <font> elements, vert-adv-y specifies the default vertical advance for a glyph
in vertical orientation.
... value <number> default value 1 em as of units-per-em animatable no <number> this value
indicates the default vertical advance of the glyph
in vertical direction glyph, miss
ing-glyph for <glyph> and <miss
ing-glyph> elements, vert-adv-y specifies the vertical advance for a glyph
in vertical orientation.
...And 3 more matches
<animateColor> - SVG: Scalable Vector Graphics
this element has been deprecated
in svg 1.1 second edition and may be removed
in a future version of svg.
... it provides no features not already available by us
ing the <animate> element.
... so, authors should use the <animate> element
instead.
...And 3 more matches
<animateTransform> - SVG: Scalable Vector Graphics
the animatetransform element animates a transformation attribute on its target element, thereby allow
ing animations to control translation, scal
ing, rotation, and/or skew
ing.
... usage context categoriesanimation elementpermitted contentany number of the follow
ing elements,
in any order:descriptive elements example <svg width="120" height="120" viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <polygon po
ints="60,30 90,90 30,90"> <animatetransform attributename="transform" attributetype="xml" type="rotate" from="0 60 70" to="360 60 70" dur="10s" repeatcount="
indef
inite"/> </polygon> </svg> live sample attributes global attributes conditional process
ing attributes » core attributes » animation event attributes » xl
ink attributes » animation attribute target attribu...
...tes » animation tim
ing attributes » animation value attributes » animation addition attributes » externalresourcesrequired specific attributes by from to type dom
interface this element implements the svganimatetransformelement
interface.
...And 3 more matches
<feDisplacementMap> - SVG: Scalable Vector Graphics
the <fedisplacementmap> svg filter primitive uses the pixel values from the image from
in2 to spatially displace the image from
in.
... the formula for the transformation looks like this: p'(x,y) ← p( x + scale * (xc(x,y) - 0.5), y + scale * (yc(x,y) - 0.5)) where p(x,y) is the
input image,
in, and p'(x,y) is the dest
ination.
... usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<animate>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes
in in2 scale xchannelselector ychannelselector dom
interface this element implements the svgfedisplacementmapelement
interface.
...And 3 more matches
<feFlood> - SVG: Scalable Vector Graphics
the <feflood> svg filter primitive fills the filter subregion with the color and opacity def
ined by flood-color and flood-opacity.
... usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<animate>, <animatecolor>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes flood-color flood-opacity dom
interface this element implements the svgfefloodelement
interface.
...vg" width="200" height="200"> <defs> <filter id="floodfilter" filterunits="userspaceonuse"> <feflood x="50" y="50" width="100" height="100" flood-color="green" flood-opacity="0.5"/> </filter> </defs> <use style="filter: url(#floodfilter);"/> </svg> result specifications specification status comment filter effects module level 1the def
inition of '<feflood>'
in that specification.
...And 3 more matches
<feGaussianBlur> - SVG: Scalable Vector Graphics
the <fegaussianblur> svg filter primitive blurs the
input image by the amount specified
in stddeviation, which def
ines the bell-curve.
... usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<animate>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes
in stddeviation edgemode dom
interface this element implements the svgfegaussianblurelement
interface.
... example simple example svg <svg width="230" height="120" xmlns="http://www.w3.org/2000/svg" xmlns:xl
ink="http://www.w3.org/1999/xl
ink"> <filter id="blurme"> <fegaussianblur
in="sourcegraphic" stddeviation="5" /> </filter> <circle cx="60" cy="60" r="50" fill="green" /> <circle cx="170" cy="60" r="50" fill="green" filter="url(#blurme)" /> </svg> result screenshotlive sample drop shadow example svg <svg width="120" height="120" xmlns="http://www.w3.org/2000/svg" xmlns:xl
ink="http://www.w3.org/1999/xl
ink"> <filter id="dropshadow"> <fegaussianblur
in="sourcealpha" stddeviation="3" /> <feoffset dx="2" dy="4" /> <femerge> <femergenode /> <femergenode
in="sourcegraphic" /> </femerge> </filter> <circle cx="60" cy="60" r=...
...And 3 more matches
<feImage> - SVG: Scalable Vector Graphics
the <feimage> svg filter primitive fetches image data from an external source and provides the pixel data as output (mean
ing if the external source is an svg image, it is rasterized.) usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<animate>, <animatetransform>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes xl
ink attributes class style externalresourcesrequired specific attributes preserveaspectratio xl
ink:href dom
interface this element implements the svgfeimageelement
interface.
... example svg <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xl
ink="http://www.w3.org/1999/xl
ink"> <defs> <filter id="image"> <feimage xl
ink:href="/files/6457/mdn_logo_only_color.png"/> </filter> </defs> <rect x="10%" y="10%" width="80%" height="80%" style="filter:url(#image);"/> </svg> result specifications specification status comment filter effects module level 1the def
inition of '<feimage>'
in that specification.
... work
ing draft added href attribute and deprecated xl
ink:href.
...And 3 more matches
<feOffset> - SVG: Scalable Vector Graphics
the <feoffset> svg filter primitive allows to offset the
input image.
... the
input image as a whole is offset by the values specified
in the dx and dy attributes.
... usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<animate>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes
in dx dy dom
interface this element implements the svgfeoffsetelement
interface.
...And 3 more matches
<feTurbulence> - SVG: Scalable Vector Graphics
the <feturbulence> svg filter primitive creates an image us
ing the perl
in turbulence function.
...the result
ing image will fill the entire filter primitive subregion.
... usage context categoriesfilter primitive elementpermitted contentany number of the follow
ing elements,
in any order:<animate>, <set> attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes basefrequency numoctaves seed stitchtiles type dom
interface this element implements the svgfeturbulenceelement
interface.
...And 3 more matches
<view> - SVG: Scalable Vector Graphics
a view is a def
ined way to view the image, like a zoom level or a detail view.
... usage context categoriesnonepermitted contentany number of the follow
ing elements,
in any order:descriptive elements attributes global attributes aria attributes » core attributes » global event attributes » externalresourcesrequired specific attributes viewbox preserveaspectratio zoomandpan viewtarget example svg <svg width="600" height="200" viewbox="0 0 600 200" xmlns="http://www.w3.org/2000/svg" xmlns:xl
ink="http://www.w3.org/1999/xl
ink"> <defs> <radialgradient id="gradient"> <stop offset="0%" stop-color="#8cffa0" /> <stop offset="100%" stop-color="#8ca0ff" /> </radialgradient> </defs> <circle r="50" cx="180" cy="50" style="fill:url(#gradient)"/> <view id="halfsizeview" viewbox="0 0 1200 400"/> <view id="normalsizeview" vi...
...ewbox="0 0 600 200"/> <view id="doublesizeview" viewbox="0 0 300 100"/> <a xl
ink:href="#halfsizeview"> <text x="5" y="20" font-size="20">half size</text> </a> <a xl
ink:href="#normalsizeview"> <text x="5" y="40" font-size="20">normal size</text> </a> <a xl
ink:href="#doublesizeview"> <text x="5" y="60" font-size="20">double size</text> </a> </svg> result dom
interface this element implements the svgviewelement
interface.
...And 3 more matches
format-number - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the format-number function evaluates a number and returns a str
ing represent
ing the number
in a given format.
... syntax format-number(number ,pattern [,decimal-format] ) arguments number the number to be formatted pattern a str
ing
in the format of the jdk 1.1 decimalformat class.
... (the documentation for jdk 1.1 is not available onl
ine.
...And 3 more matches
generate-id - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the generate-id function generates a unique id for the first node
in a given node-set and returns a str
ing conta
ining that id.
... syntax generate-id( [node-set] ) arguments node-set (optional) an id will be generated for the first node
in this node-set.
... returns a str
ing conta
ining the generated id.
...And 3 more matches
loadURI - Archive of obsolete content
« xul reference home note: this is the xul method on <browser> / <tabbrowser>, not the global function
in chrome://browser/content/browser.js.
... please check which one you're document
ing!
... (this one has no post data parameter, see loaduriwithflags for a version that does) loaduri( uri, referrer, charset ) return type: no return value load a url
into the document, with the given referrer and character set.
...And 2 more matches
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.
...
in addition to the flags allowed for the reloadwithflags method, the follow
ing flags are also valid: load_flags_is_refresh: this flag is used when the url is loaded because of a meta tag refresh or redirect.
... load_flags_is_l
ink: this flag is used when the url is loaded because a user clicked on a l
ink.
...And 2 more matches
reloadWithFlags - Archive of obsolete content
« xul reference home reloadwithflags( flags ) return type: no return value reloads the document
in the browser with the given load flags.
... the flags listed below may be used, which are all constants of the webnavigation property (or the nsiwebnavigation
interface).
... you may comb
ine flags us
ing a or symbol ( | ).
...And 2 more matches
state - Archive of obsolete content
« xul reference state type: str
ing this read only property
indicates whether the popup is open or not.
... show
ing: a request has been made to open the popup, but it has not yet been shown.
... this state will occur dur
ing the popupshow
ing event.
...And 2 more matches
XUL Reference - Archive of obsolete content
« xul reference « alphabetical list of all xul elements action arrowscrollbox assign bbox b
ind
ing b
ind
ings box broadcaster broadcasterset button browser checkbox caption clicktoscroll colorpicker column columns commandset command conditions content datepicker deck description dialog dialogheader dropmarker editor grid grippy groupbox hbox iframe image key keyset label listbox listcell listcol listcols listhead listheader listitem member menu menubar menuitem menulist menupopup menuseparator notification notificationbox observes overlay page panel param popupset preference preferences prefpane prefw
indow progressmeter query queryset radio radiogroup resizer richlistbox richlistitem row rows rule scale sc...
...ript scrollbar scrollbox scrollcorner separator spacer sp
inbuttons splitter stack statusbar statusbarpanel str
ingbundle str
ingbundleset tab tabbrowser (firefox-only start
ing with firefox 3/gecko 1.9) tabbox tabpanel tabpanels tabs template textnode textbox textbox (firefox autocomplete) textbox (mozilla autocomplete) timepicker titlebar toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer toolbarspr
ing toolbox tooltip tree treecell treechildren treecol treecols treeitem treerow treeseparator triple vbox where w
indow wizard wizardpage categorical list of all xul elements « xul reference « w
indows w
indow wizard wizardpage titlebar w
indow structure --- menus and popups ...
... --- toolbars toolbar toolbarbutton toolbargrippy toolbaritem toolbarpallete toolbarseperator toolbarspr
ing tabs and group
ing tab tabbox tabpanel tabpanels tabs controls --- text and images label caption image lists --- trees --- layout --- templates --- script
ing --- helper elements other xul lists dialog overlay page w
indow wizard wizardpage preference preferences prefpane prefw
indow browser tabbrowser editor iframe titlebar resizer statusbar statusbarpanel dialogheader notification notificationbox menubar menu menuitem menuseparator menupopup panel tooltip popupset toolbar toolbarbutton toolbargrippy toolbaritem toolbarpalette toolbarseparator toolbarset toolbarspacer...
...And 2 more matches
assign - Archive of obsolete content
for more
information, see xml_assignments attributes expr, var examples (example needed) attributes expr type: str
ing for xml queries, an xpath expression which returns results.
... any namespace prefixes declared on the element may be used with
in the expression.
... var type: str
ing for the xul assign attribute, this is the variable to assign the value to; otherwise it's a reference to a template variable such as "?name".
...And 2 more matches
dropmarker - Archive of obsolete content
a dropmarker is not
intended to be used as a separate element, but as part of another element.
... for
instance the menulist and the popup type of datepicker use a dropmarker, that when pressed, will reveal a popup menu.
... examples properties accessibletype attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type:
integer a value
indicat
ing the type of accessibility object for the element.
...And 2 more matches
hbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a conta
iner element which can conta
in any number of child elements.
... more
information is available
in the xul tutorial.
... example <!-- two button on the right --> <hbox> <spacer flex="1"/> <button label="connect"/> <button label="p
ing"/> </hbox> attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , ,...
...And 2 more matches
tabpanel - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a
individual panel
in a tabpanels element.
... this element is optional and you may just use any other conta
iner
in place of it.
... more
information is available
in the xul tutorial.
...And 2 more matches
toolbarpalette - Archive of obsolete content
do not add the various spac
ing items, as those are added automatically.
... you can add your own custom buttons to the firefox browser by us
ing an overlay that overlays the toolbarpalette with the idbrowsertoolbarpalette.
... examples <toolbarpalette id="browsertoolbarpalette"> <toolbarbutton id="toolbarpalette-button" class="toolbarbutton-class" label="&mylabel;" tooltiptext="&mytiptext;" oncommand="somefunction()"/> </toolbarpalette> attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, ...
...And 2 more matches
vbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a conta
iner element which can conta
in any number of child elements.
... more
information is available
in the xul tutorial.
... example <!-- two labels at bottom --> <vbox> <spacer flex="1"/> <label value="one"/> <label value="two"/> </vbox> attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classna...
...And 2 more matches
2006-10-06 - Archive of obsolete content
summary: mozilla.dev.apps.calendar - september 29 - october 6, 2006 announcements sunbird and lightn
ing 0.3rc1 available gordon announced the candidate (rc) builds for sunbird and lightn
ing 0.3 are released.
... sunbird release notes lightn
ing release notes sunbird_0_3_release tag be
ing created lilmatt announced the sunbird 0.3 realse tag be
ing created.
... sun microsystems contributes to lightn
ing to comb
ine it with openoffice.org sun microsystems provide users with an alternative open source choice by comb
ining openoffice.org respectively staroffice and thunderbird/lightn
ing.
...And 2 more matches
2006-11-10 - Archive of obsolete content
summary: mozilla.dev.l10n - november 10, 2006 announcements seamonkey 1.0.5
in belarusian belarusian [be-by] localization for seamonkey 1.0.5 is available now.
... trunk / 1_8 for kurdish firefox the firefox translations of the kurdish are only
in trunk translat
ing the firefox privacy policy the f
inal and approved en-us version of privacy policy is available here and ready for localization team to translate.
... seamonkey 1.0.6 and 1.1 beta upcom
ing seamonkey 1.0.6 and 1.1 beta are both available here.
...And 2 more matches
2006-10-27 - Archive of obsolete content
visit http://www.getfirefox.com/ discussions firefox 3 feature prioritiz
ing rudi gens po
inted out that hundreds of edits have been done to the firefox 3 feature bra
instorm
ing page.
... he suggests that some prioritiz
ing be done.
... meet
ings gecko 1.9/gran paradiso status meet
ing gecko 1.9/gran paradiso status meet
ing: october 25th, 2006 - 11am pdt.
...And 2 more matches
2006-10-20 - Archive of obsolete content
traffic october 14, 2006, 6:53pm - ed notes that, on w
indows, composer 0.1's reccomended
install directory needs to be different than those noted
in the release notes.
...benjam
in smedberg would like to know what paths were used.
...he wants to be able to build applications that will run
inside the browser.
...And 2 more matches
AesKeyGenParams - Web APIs
the aeskeygenparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter
into subtlecrypto.generatekey(), when generat
ing an aes key: that is, when the algorithm is identified as any of aes-cbc, aes-ctr, aes-gcm, or aes-kw.
... properties name a domstr
ing.
... this should be set to aes-cbc, aes-ctr, aes-gcm, or aes-kw, depend
ing on the algorithm you want to use.
...And 2 more matches
Animation.ready - Web APIs
a new promise is created every time the animation enters the "pend
ing" play state as well as when the animation is canceled, s
ince
in both of those scenarios, the animation is ready to be started aga
in.
... s
ince the same promise is used for both pend
ing play and pend
ing pause requests, authors are advised to check the state of the animation when the promise is resolved.
...you'll typically use a construct similar to this when us
ing the ready promise: animation.ready.then(function() { // do whatever needs to be done when // the animation is ready to run }); example
in the follow
ing example, the state of the animation will be runn
ing when the current ready promise is resolved because the animation does not leave the pend
ing play state
in between the calls to pause and play and hence the current ready promise does not change.
...And 2 more matches
Animation.reverse() - Web APIs
the animation.reverse() method of the animation
interface reverses the playback direction, mean
ing the animation ends at its beg
inn
ing.
...if called on a paused animation, the animation will cont
inue
in reverse.
... return value undef
ined example
in the grow
ing/shr
ink
ing alice game example, click
ing or tapp
ing the bottle causes alice's grow
ing animation (alicechange) to play backwards, caus
ing her to get smaller.
...And 2 more matches
AnimationPlaybackEvent - Web APIs
the animationplaybackevent
interface of the web animations api represents animation events.
... constructor animationplaybackevent.animationplaybackevent() constructs a new animationplaybackevent object
instance.
... animationplaybackevent.timel
inetime the time value of the timel
ine of the animation that generated the event.
...And 2 more matches
AudioBuffer.length - Web APIs
the length property of the audiobuffer
interface returns an
integer represent
ing the length,
in sample-frames, of the pcm data stored
in the buffer.
... syntax var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); myarraybuffer.length; value an
integer.
...o buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // this gives us the actual arraybuffer that conta
ins the data var nowbuffer
ing = myarraybuffer.getchanneldata(channel); for (var i = 0; i < framecount; i++) { // math.random() is
in [0; 1.0] // audio needs to be
in [-1.0; 1.0] nowbuffer
ing[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.length); } specification specification status comment web audio apithe def
inition of 'length...
...And 2 more matches
AudioBuffer.numberOfChannels - Web APIs
the numberofchannels property of the audiobuffer
interface returns an
integer represent
ing the number of discrete audio channels described by the pcm data stored
in the buffer.
... syntax var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); myarraybuffer.numberofchannels; value an
integer.
...o buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // this gives us the actual arraybuffer that conta
ins the data var nowbuffer
ing = myarraybuffer.getchanneldata(channel); for (var i = 0; i < framecount; i++) { // math.random() is
in [0; 1.0] // audio needs to be
in [-1.0; 1.0] nowbuffer
ing[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.numberofchannels); } specification specification status comment web audio apithe def
inition ...
...And 2 more matches
AudioBuffer.sampleRate - Web APIs
the samplerate property of the audiobuffer
interface returns a float represent
ing the sample rate,
in samples per second, of the pcm data stored
in the buffer.
... syntax var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); myarraybuffer.samplerate; value a float
ing-po
int value
indicat
ing the current sample rate of the buffers data,
in samples per second.
...o buffer at the // sample rate of the audiocontext var framecount = audioctx.samplerate * 2.0; var myarraybuffer = audioctx.createbuffer(2, framecount, audioctx.samplerate); button.onclick = function() { // fill the buffer with white noise; // just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; channel++) { // this gives us the actual arraybuffer that conta
ins the data var nowbuffer
ing = myarraybuffer.getchanneldata(channel); for (var i = 0; i < framecount; i++) { // math.random() is
in [0; 1.0] // audio needs to be
in [-1.0; 1.0] nowbuffer
ing[i] = math.random() * 2 - 1; } } console.log(myarraybuffer.samplerate); } specification specification status comment web audio apithe def
inition of 'sa...
...And 2 more matches
AudioBufferSourceNode.detune - Web APIs
the detune property of the audiobuffersourcenode
interface is a k-rate audioparam represent
ing detun
ing of oscillation
in cents.
... syntax var source = audioctx.createbuffersource(); source.detune.value = 100; // value
in cents note: though the audioparam returned is read-only, the value it represents is not.
... value a k-rate audioparam whose value
indicates the detun
ing of oscillation
in cents.
...And 2 more matches
AudioNode.channelCount - Web APIs
the channelcount property of the audionode
interface represents an
integer used to determ
ine how many channels are used when up-mix
ing and down-mix
ing connections to any
inputs to the node.
... channelcount's usage and precise def
inition depend on the value of audionode.channelcountmode: it is ignored if the channelcountmode value is max.
... syntax var oscillator = audioctx.createoscillator(); var channels = oscillator.channelcount; value an
integer.
...And 2 more matches
AudioNode.numberOfOutputs - Web APIs
the numberofoutputs property of the audionode
interface returns the number of outputs com
ing out of the node.
... dest
ination nodes — like audiodest
inationnode — have a value of 0 for this attribute.
... syntax var numoutputs = audionode.numberofoutputs; value an
integer ≥ 0.
...And 2 more matches
AudioParam.cancelScheduledValues() - Web APIs
the cancelscheduledvalues() method of the audioparam
interface cancels all scheduled future changes to the audioparam.
... syntax var audioparam = audioparam.cancelscheduledvalues(starttime) parameters starttime a double represent
ing the time (
in seconds) after the audiocontext was first created after which all scheduled changes will be cancelled.
...
in some older implementations this method returns void.
...And 2 more matches
AudioParam.maxValue - Web APIs
the maxvalue read-only property of the audioparam
interface represents the maximum possible value for the parameter's nom
inal (effective) range.
... syntax var maxval = audioparam.maxvalue; value a float
ing-po
int number
indicat
ing the maximum value permitted for the parameter's nom
inal range.
... the default value of maxvalue is the maximum positive s
ingle-precision float
ing-po
int value (+340,282,346,638,528,859,811,704,183,484,516,925,440).
...And 2 more matches
AudioScheduledSourceNode: ended event - Web APIs
the ended event of the audioscheduledsourcenode
interface is fired when the source node has stopped play
ing.
... bubbles no cancelable no
interface event event handler property audioscheduledsourcenode.onended usage notes this event occurs when a audioscheduledsourcenode has stopped play
ing, either because it's reached a predeterm
ined stop time, the full duration of the audio has been performed, or because the entire buffer has been played.
... examples
in this simple example, an event listener for the ended event is set up to enable a "start" button
in the user
interface when the node stops play
ing: node.addeventlistener('ended', () => { document.getelementbyid("startbutton").disabled = false; }) you can also set up the event handler us
ing the audioscheduledsourcenode.onended property: node.onended = function() { document.getelementbyid("startbutton").disabled = false; } for an example of the ended event
in use, see our audio-buffer example on github.
...And 2 more matches
AudioTrack.id - Web APIs
the id property conta
ins a str
ing which uniquely identifies the track represented by the audiotrack.
... this id can be used with the audiotracklist.gettrackbyid() method to locate a specific track with
in the media associated with a media element.
... syntax var trackid = audiotrack.id; value a domstr
ing which identifies the track, suitable for use when call
ing gettrackbyid() on an audiotracklist such as the one specified by a media element's audiotracks property.
...And 2 more matches
BaseAudioContext.audioWorklet - Web APIs
the audioworklet read-only property of the baseaudiocontext
interface returns an
instance of audioworklet that can be used for add
ing audioworkletprocessor-derived classes which implement custom audio process
ing.
... syntax baseaudiocontext
instance.audioworklet; value an audioworklet
instance.
... examples for a complete example demonstrat
ing user-def
ined audio process
ing, see the audioworkletnode page.
...And 2 more matches
Document: transitionrun event - Web APIs
bubbles yes cancelable no
interface transitionevent event handler property ontransitionrun the orig
inal target for this event is the element that had the transition applied.
... you can listen for this event on the document
interface to handle it
in the capture or bubbl
ing phases.
... examples this code adds a listener to the transitionrun event: document.addeventlistener('transitionrun', () => { console.log('transition is runn
ing but hasn't necessarily started transition
ing yet'); }); the same, but us
ing the ontransitionrun property
instead of addeventlistener(): document.ontransitionrun = () => { console.log('transition started runn
ing'); }; see a live example of this event.
...And 2 more matches
Document: transitionstart event - Web APIs
bubbles yes cancelable no
interface transitionevent event handler property globaleventhandlers.ontransitionstart the orig
inal target for this event is the element that had the transition applied.
... you can listen for this event on the document
interface to handle it
in the capture or bubbl
ing phases.
... examples this code adds a listener to the transitionstart event: document.addeventlistener('transitionstart', () => { console.log('started transition
ing'); }); the same, but us
ing the ontransitionstart property
instead of addeventlistener(): document.ontransitionrun = () => { console.log('started transition
ing'); }; see a live example of this event.
...And 2 more matches
Document.width - Web APIs
note: start
ing
in gecko 6.0, document.width is no longer supported.
...
instead, use document.body.clientwidth.
... returns the width of the <body> element of the current document
in pixels.
...And 2 more matches
DocumentOrShadowRoot.styleSheets - Web APIs
the stylesheets read-only property of the documentorshadowroot
interface returns a stylesheetlist of cssstylesheet objects, for stylesheets explicitly l
inked
into or embedded
in a document.
... examples function getstylesheet(unique_title) { for (var i=0; i<document.stylesheets.length; i++) { var sheet = document.stylesheets[i]; if (sheet.title == unique_title) { return sheet; } } } notes the returned list is ordered as follows: stylesheets retrieved from <l
ink> headers are placed first, sorted
in header order.
... stylesheets retrieved from the dom are placed after, sorted
in tree order.
...And 2 more matches
DragEvent.dataTransfer - Web APIs
syntax let data = dragevent.datatransfer; return value data a datatransfer object which conta
ins the drag event's data.
... example this example illustrates access
ing the drag and drop data with
in the dragend event handler.
...} dragtarget.addeventlistener("dragend", function(ev) { // call the drag and drop data processor if (ev.datatransfer !== null) processdata(ev.datatransfer); }, false); specifications specification status comment html liv
ing standardthe def
inition of 'dragevent.datatransfer'
in that specification.
...And 2 more matches
DynamicsCompressorNode.knee - Web APIs
the knee property of the dynamicscompressornode
interface is a k-rate audioparam conta
ining a decibel value represent
ing the range above the threshold where the curve smoothly transitions to the compressed portion.
... // create a mediaelementaudiosourcenode // feed the htmlmediaelement
into it var source = audioctx.createmediaelementsource(myaudio); // create a compressor node var compressor = audioctx.createdynamicscompressor(); compressor.threshold.setvalueattime(-50, audioctx.currenttime); compressor.knee.setvalueattime(40, audioctx.currenttime); compressor.ratio.setvalueattime(12, audioctx.currenttime); compressor.attack.setvalueattime(0, audioctx.currenttime); compressor.rel...
...ease.setvalueattime(0.25, audioctx.currenttime); // connect the audiobuffersourcenode to the dest
ination source.connect(audioctx.dest
ination); button.onclick = function() { var active = button.getattribute('data-active'); if(active == 'false') { button.setattribute('data-active', 'true'); button.
innerhtml = 'remove compression'; source.disconnect(audioctx.dest
ination); source.connect(compressor); compressor.connect(audioctx.dest
ination); } else if(active == 'true') { button.setattribute('data-active', 'false'); button.
innerhtml = 'add compression'; source.disconnect(compressor); compressor.disconnect(audioctx.dest
ination); source.connect(audioctx.dest
ination); } } specifications specification status comment web aud...
...And 2 more matches
DynamicsCompressorNode.ratio - Web APIs
the ratio property of the dynamicscompressornode
interface is a k-rate audioparam represent
ing the amount of change,
in db, needed
in the
input for a 1 db change
in the output.
... // create a mediaelementaudiosourcenode // feed the htmlmediaelement
into it var source = audioctx.createmediaelementsource(myaudio); // create a compressor node var compressor = audioctx.createdynamicscompressor(); compressor.threshold.setvalueattime(-50, audioctx.currenttime); compressor.knee.setvalueattime(40, audioctx.currenttime); compressor.ratio.setvalueattime(12, audioctx.currenttime); compressor.attack.setvalueattime(0, audioctx.currenttime); compressor.rel...
...ease.setvalueattime(0.25, audioctx.currenttime); // connect the audiobuffersourcenode to the dest
ination source.connect(audioctx.dest
ination); button.onclick = function() { var active = button.getattribute('data-active'); if(active == 'false') { button.setattribute('data-active', 'true'); button.
innerhtml = 'remove compression'; source.disconnect(audioctx.dest
ination); source.connect(compressor); compressor.connect(audioctx.dest
ination); } else if(active == 'true') { button.setattribute('data-active', 'false'); button.
innerhtml = 'add compression'; source.disconnect(compressor); compressor.disconnect(audioctx.dest
ination); source.connect(audioctx.dest
ination); } } specifications specification status comment web aud...
...And 2 more matches
DynamicsCompressorNode.threshold - Web APIs
the threshold property of the dynamicscompressornode
interface is a k-rate audioparam represent
ing the decibel value above which the compression will start tak
ing effect.
... // create a mediaelementaudiosourcenode // feed the htmlmediaelement
into it var source = audioctx.createmediaelementsource(myaudio); // create a compressor node var compressor = audioctx.createdynamicscompressor(); compressor.threshold.setvalueattime(-50, audioctx.currenttime); compressor.knee.setvalueattime(40, audioctx.currenttime); compressor.ratio.setvalueattime(12, audioctx.currenttime); compressor.attack.setvalueattime(0, audioctx.currenttime); compressor.rel...
...ease.setvalueattime(0.25, audioctx.currenttime); // connect the audiobuffersourcenode to the dest
ination source.connect(audioctx.dest
ination); button.onclick = function() { var active = button.getattribute('data-active'); if(active == 'false') { button.setattribute('data-active', 'true'); button.
innerhtml = 'remove compression'; source.disconnect(audioctx.dest
ination); source.connect(compressor); compressor.connect(audioctx.dest
ination); } else if(active == 'true') { button.setattribute('data-active', 'false'); button.
innerhtml = 'add compression'; source.disconnect(compressor); compressor.disconnect(audioctx.dest
ination); source.connect(audioctx.dest
ination); } } specifications specification status comment web aud...
...And 2 more matches
EXT_texture_compression_rgtc - Web APIs
webgl extensions are available us
ing the webglrender
ingcontext.getextension() method.
... for more
information, see also us
ing extensions
in the webgl tutorial.
...there is no support on w
indows.
...And 2 more matches
Element: MSGestureHold event - Web APIs
the msgesturehold event is fired when the user contacts the touch surface and rema
ins
in the same position for a while.
... it is a proprietary event specific to microsoft edge and
internet explorer.
... bubbles unknown cancelable unknown
interface msgestureevent event handler property unknown the uievent.detail property of an msgesturehold event has 3 possible values: msgesture_flag_beg
in this value
indicates that the user started contact
ing the touch surface.
...And 2 more matches
Element: MSManipulationStateChanged event - Web APIs
msmanipulationstatechanged fires when the state of an element be
ing manipulated has changed (ie.
... whenever you start or f
inish pann
ing or zoom
ing an element).
... it is a proprietary event specific to microsoft edge and
internet explorer.
...And 2 more matches
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.
... for example, this event could be fired after a user f
inishes enter
ing a ch
inese character us
ing a p
iny
in ime.
... bubbles yes cancelable yes
interface compositionevent event handler property none examples const
inputelement = document.queryselector('
input[type="text"]');
inputelement.addeventlistener('compositionend', (event) => { console.log(`generated characters were: ${event.data}`); }); live example html <div class="control"> <label for="name">on macos, click
in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <
input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padd
ing: .2rem; display: gri...
...And 2 more matches
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.
... for example, this event could be fired after a user starts enter
ing a ch
inese character us
ing a p
iny
in ime.
... bubbles yes cancelable yes
interface compositionevent event handler property none examples const
inputelement = document.queryselector('
input[type="text"]');
inputelement.addeventlistener('compositionstart', (event) => { console.log(`generated characters were: ${event.data}`); }); live example html <div class="control"> <label for="name">on macos, click
in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <
input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padd
ing: .2rem; display: g...
...And 2 more matches
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.
... for example, this event could be fired while a user enters a ch
inese character us
ing a p
iny
in ime.
... bubbles yes cancelable yes
interface compositionevent event handler property none examples const
inputelement = document.queryselector('
input[type="text"]');
inputelement.addeventlistener('compositionupdate', (event) => { console.log(`generated characters were: ${event.data}`); }); live example html <div class="control"> <label for="name">on macos, click
in the textbox below,<br> then type <kbd>option</kbd> + <kbd>`</kbd>, then <kbd>a</kbd>:</label> <
input type="text" id="example" name="example"> </div> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents" rows="8" cols="25"></textarea> <button class="clear-log">clear</button> </div> css body { padd
ing: .2rem; display: ...
...And 2 more matches
Element: copy event - Web APIs
the copy event fires when the user
initiates a copy action through the browser's user
interface.
... bubbles yes cancelable yes
interface clipboardevent event handler property oncopy the event's default action is to copy the selection (if any) to the clipboard.
... a handler for this event can modify the clipboard contents by call
ing setdata(format, data) on the event's clipboardevent.clipboarddata property, and cancell
ing the event's default action us
ing event.preventdefault().
...And 2 more matches
ReadableStreamBYOBRequest - Web APIs
the readablestreambyobrequest
interface of the streams api represents a pull request
into a readablebytestreamcontroller view.
... a view, as mentioned below, refers to a typed array represent
ing the dest
ination region to which the associated readablebytestreamcontroller controller can write generated data.
...readablestreambyobrequest
instance is created automatically by readablebytestreamcontroller as needed.
...And 2 more matches
ReadableStreamDefaultController.desiredSize - Web APIs
the desiredsize read-only property of the readablestreamdefaultcontroller
interface returns the desired size required to fill the stream's
internal queue.
... syntax var desiredsize = readablestreamdefaultcontroller.desiredsize; value an
integer.
... examples the a readable stream with an underly
ing push source and backpressure support example
in the spec provides a good example of us
ing desiredsize to manually detect when the stream is full and apply backpressure, and also of us
ing readablestreamdefaultcontroller.error() to manually trigger a stream error if another part of the system it relies on fails.
...And 2 more matches
Request.clone() - Web APIs
the clone() method of the request
interface creates a copy of the current request object.
...
in fact, the ma
in reason clone() exists is to allow multiple uses of body objects (when they are one-use only.) if
intend to modify the request, you may prefer the request constructor.
... example
in the follow
ing snippet, we create a new request us
ing the request.request() constructor (for an image file
in the same directory as the script), then clone the request.
...And 2 more matches
Request.referrer - Web APIs
the referrer read-only property of the request
interface is set by the user agent to be the referrer of the request.
... (e.g., client, no-referrer, or a url.) note: if referrer's value is no-referrer, it returns an empty str
ing.
... syntax var myreferrer = request.referrer; value a domstr
ing represent
ing the request's referrer.
...And 2 more matches
Request.referrerPolicy - Web APIs
the referrerpolicy read-only property of the request
interface returns the referrer policy, which governs what referrer
information, sent
in the referer header, should be
included with the request.
... syntax var myreferrerpolicy = request.referrerpolicy; value a domstr
ing represent
ing the request's referrerpolicy.
... for more
information and possible values, see the referrer-policy http header page.
...And 2 more matches
ResizeObserver.observe() - Web APIs
the observe() method of the resizeobserver
interface starts observ
ing the specified element or svgelement.
... options optional an options object allow
ing you to set options for the observation.
... examples the follow
ing snippet is taken from the resize-observer-text.html (see source) example: const resizeobserver = new resizeobserver(entries => { for (let entry of entries) { if(entry.contentboxsize) { h1elem.style.fontsize = math.max(1.5, entry.contentboxsize.
inl
inesize/200) + 'rem'; pelem.style.fontsize = math.max(1, entry.contentboxsize.
inl
inesize/600) + 'rem'; } else { h1elem.style.fontsize = math.max(1.5, entry.contentrect.width/200) + 'rem'; pelem.style.fontsize = math.max(1, entry.contentrect.width/600) + 'r...
...And 2 more matches
Response() - Web APIs
syntax var myresponse = new response(body,
init); parameters body optional an object def
ining a body for the response.
... this can be null (which is the default value), or one of: blob buffersource formdata readablestream urlsearchparams usvstr
ing
init optional an options object conta
ining any custom sett
ings that you want to apply to the response, or an empty object (which is the default value).
... headers: any headers you want to add to your response, conta
ined with
in a headers object or object literal of bytestr
ing key/value pairs (see http headers for a reference).
...And 2 more matches
Response.headers - Web APIs
the headers read-only property of the response
interface conta
ins the headers object associated with the response.
... example
in our fetch response example (see fetch response live) we create a new request object us
ing the request() constructor, pass
ing it a jpg path.
... we then fetch this request us
ing fetch(), extract a blob from the response us
ing body.blob, create an object url out of it us
ing url.createobjecturl, and display this
in an <img>.
...And 2 more matches
Response.ok - Web APIs
the ok read-only property of the response
interface conta
ins a boolean stat
ing whether the response was successful (status
in the range 200-299) or not.
... example
in our fetch response example (see fetch response live) we create a new request object us
ing the request() constructor, pass
ing it a jpg path.
... we then fetch this request us
ing fetch(), extract a blob from the response us
ing body.blob, create an object url out of it us
ing url.createobjecturl, and display this
in an <img>.
...And 2 more matches
Response.status - Web APIs
the status read-only property of the response
interface conta
ins the status code of the response (e.g., 200 for a success).
... example
in our fetch response example (see fetch response live) we create a new request object us
ing the request() constructor, pass
ing it a jpg path.
... we then fetch this request us
ing fetch(), extract a blob from the response us
ing body.blob, create an object url out of it us
ing url.createobjecturl, and display this
in an <img>.
...And 2 more matches
RsaPssParams - Web APIs
the rsapssparams dictionary of the web crypto api represents the object that should be passed as the algorithm parameter
into subtlecrypto.sign() or subtlecrypto.verify(), when us
ing the rsa-pss algorithm.
... properties name a domstr
ing.
... saltlength a long
integer represent
ing the length of the random salt to use,
in bytes.
...And 2 more matches
format - Web APIs
the svgaltglyphelement.format property is a domstr
ing that def
ines the format of the given font.
... it has the same mean
ing as the 'format' property of svgglyphrefelement property.
... if the font is
in one of the formats listed
in css2([css2], section15.3.5), then its value is the correspond
ing <str
ing> parameter of the font.
...And 2 more matches
SVGAnimateColorElement - Web APIs
the svganimatecolorelement
interface corresponds to the <animatecolor> element.
... <div id="
interfacediagram" style="display:
inl
ine-block; position: relative; width: 100%; padd
ing-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display:
inl
ine-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveaspectratio="xm
inym
in meet"><a xl
ink:href="/docs/web/api/svganimatecolorelement" target="_top"><rect x="1" y="1" width="220" height="50" fill="#f4f7f8" 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-basel
ine="middle">svganimatecolorelement</text></a></svg></div> a:hover text { fill: #0095dd; po
inter-events: all;} properties this
interface has no properties but
inherits properties...
... methods this
interface has no methods but
inherits methods from its parent, svganimationelement.
...And 2 more matches
cx - Web APIs
the cx read-only property of the svgcircleelement
interface reflects the cx attribute of a <circle> element and by that def
ines the x-coord
inate of the circleʼs center.
... syntax var xcoord
inate = element.cx; value an svganimatedlength represent
ing the x-coord
inate of the circleʼs center.
... example svg <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 100" width="200" height="200"> <circle cx="50" cy="50" r="50" fill="gold" id="circle"/> </svg> javascript const circle = document.getelementbyid('circle'); console.log(circle.cx); specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'svgcircleelement.cx'
in that specification.
...And 2 more matches
cy - Web APIs
the cy read-only property of the svgcircleelement
interface reflects the cy attribute of a <circle> element and by that def
ines the y-coord
inate of the circleʼs center.
... syntax var ycoord
inate = element.cy; value an svganimatedlength represent
ing the y-coord
inate of the circleʼs center.
... example svg <svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 100 100" width="200" height="200"> <circle cy="50" cy="50" r="50" fill="gold" id="circle"/> </svg> javascript const circle = document.getelementbyid('circle'); console.log(circle.cy); specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'svgcircleelement.cy'
in that specification.
...And 2 more matches
MathML element reference - MathML
the term presentation markup is used to describe the layout structure of mathematical notation whereas content markup provides the underly
ing mathematical mean
ing and is not supposed to be rendered by the mathml parser (see bug 276028).
... if you want to learn more about content markup you should consider chapter 4
in the mathml 3 specification.
... mathml presentation elements a to z math <math> (top-level element) a <maction> (b
inded actions to sub-expressions) <maligngroup> (alignment group) <malignmark> (alignment po
ints) e <menclose> (enclosed contents) <merror> (enclosed syntax error messages) f <mfenced> (parentheses) <mfrac> (fraction) g <mglyph> (display
ing non-standard symbols) i <mi> (identifier) l <mlabeledtr> (labeled row
in a table or a matrix) <mlongdiv> (long division notation) m <mmultiscripts> (prescripts and tensor
indices) n <mn> (number) o <mo> (operator) <mover> (overscript) p <mpadded> (space around content) <mphantom> (
invisible content with reserved space) r <mroot> (radical with specified ...
...And 2 more matches
accumulate - SVG: Scalable Vector Graphics
it is frequently useful for repeated animations to build upon the previous results, accumulat
ing with each iteration.
... four elements are us
ing this attribute: <animate>, <animatecolor>, <animatemotion>, and <animatetransform> usage notes value none | sum default value none animatable no sum specifies that each repeat iteration after the first builds upon the last value of the previous iteration.
... specifications specification status comment svg animations level 2the def
inition of 'accumulate'
in that specification.
...And 2 more matches
ascent - SVG: Scalable Vector Graphics
the ascent attribute def
ines the maximum unaccented height of the font with
in the font coord
inate system.
... if the attribute is not specified, the effect is as if the attribute were set to the difference between the units-per-em value and the vert-orig
in-y value for the correspond
ing font.
... only one element is us
ing this attribute: <font-face> font-face for <font-face>, ascent def
ines the maximum unaccented height of the font with
in the font coord
inate system.
...And 2 more matches
attributeName - SVG: Scalable Vector Graphics
the attributename attribute
indicates the name of the css property or attribute of the target element that is go
ing to be changed dur
ing an animation.
... four elements are us
ing this attribute: <animate>, <animatecolor>, <animatetransform>, and <set> html, body, svg { height: 100%; } <svg viewbox="0 0 250 250" xmlns="http://www.w3.org/2000/svg"> <rect x="50" y="50" width="100" height="100"> <animate attributetype="xml" attributename="y" from="0" to="50" dur="5s" repeatcount="
indef
inite"/> </rect> </svg> usage notes value <name> default value none animatable no <name> this value
indicates the name of the css property or attribute of the target element to be animated.
... specifications specification status comment svg animations level 2the def
inition of 'attributename'
in that specification.
...And 2 more matches
azimuth - SVG: Scalable Vector Graphics
the azimuth attribute specifies the direction angle for the light source on the xy plane (clockwise),
in degrees from the x axis.
... only one element is us
ing this attribute: <fedistantlight> html, body, svg { height: 100%; } <svg viewbox="0 0 440 200" xmlns="http://www.w3.org/2000/svg"> <filter id="distantlight1"> <fediffuselight
ing> <fedistantlight azimuth="0" /> </fediffuselight
ing> </filter> <filter id="distantlight2"> <fediffuselight
ing> <fedistantlight azimuth="240" /> </fediffuselight
ing> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight2); transform: translatex(240px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effec...
...ts module level 1the def
inition of 'azimuth'
in that specification.
...And 2 more matches
baseFrequency - SVG: Scalable Vector Graphics
only one element is us
ing this attribute: <feturbulence> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.05" /> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <number-optional-number> default valu...
...e 0 animatable yes <number-optional-number> if two numbers are provided, the first one represents the base frequency
in the horizontal direction and the second one the base frequency
in the vertical direction.
... example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap
in2="turbulence"
in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the def
inition of 'basefrequency'
in that specification.
...And 2 more matches
contentScriptType - SVG: Scalable Vector Graphics
the contentscripttype attribute specifies the default script
ing language for the given document fragment on the <svg> element.
... this attribute sets the default script
ing language used to process the value str
ings
in event attributes.
... this language must be used for all
instances of script that do not specify their own script
ing language.
...And 2 more matches
contentStyleType - SVG: Scalable Vector Graphics
this language is used for all
instances of style that do not specify their own styl
ing language, such as the style attribute that is available on many elements.
... usage notes value one of the content types specified
in the media types default value text/css animatable no s
ince css is the only widely deployed style sheet language for onl
ine styl
ing and it's already def
ined as default value if contentstyletype is ommitted, the attribute is not well supported
in user agents.
... if other style sheet languages become more popular they might not use the style attribute,
instead it could be easily declared which style language is used
in the <style>'s type attribute.
...And 2 more matches
exponent - SVG: Scalable Vector Graphics
the exponent attribute def
ines the exponent of the gamma function.
... four elements are us
ing this attribute: <fefunca>, <fefuncb>, <fefuncg>, and <fefuncr> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <defs> <l
ineargradient id="gradient" gradientunits="userspaceonuse" x1="0" y1="0" x2="200" y2="0"> <stop offset="0" stop-color="#ff0000" /> <stop offset="0.5" stop-color="#00ff00" /> <stop offset="1" stop-color="#0000ff" /> </l
ineargradient> </defs> <filter id="componenttransfer1" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="gamma" exponent="1"/> <fefuncg type="gamma" exponent="1"/> <fefuncb type="gamma" exponent="1"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="0" y="0" width=...
...ansfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes <number> if the type attribute of the component element is set to gamma, this value specifies the exponent of the gamma function specifications specification status comment filter effects module level 1the def
inition of 'exponent'
in that specification.
...And 2 more matches
format - SVG: Scalable Vector Graphics
the format attribute
indicates the format of the given font.
... two elements are us
ing this attribute: <altglyph> and <glyphref> context notes value <str
ing> default value none animatable no <str
ing> this value specifies the format of the given font.
... here is a list of font formats and their str
ings that can be used as values for this attribute: format str
ing format truedoc-pfr truedoc™ portable font resource embedded-opentype embedded opentype type-1 postscript™ type 1 truetype truetype opentype opentype,
includ
ing truetype open truetype-gx truetype with gx extensions speedo speedo
intellifont
intellifont specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'format for <glyphref>'
in that specification.
...And 2 more matches
ideographic - SVG: Scalable Vector Graphics
the ideographic attribute
indicates the alignment coord
inate for glyphs to achieve ideographic basel
ine alignment for horizontally oriented glyph layouts.
... the value is an offset
in the font coord
inate system.
... only one element is us
ing this attribute: <font-face> usage notes value <number> default value none animatable no <number> this value
indicates the alignment coord
inate for the glyphs.
...And 2 more matches
k - SVG: Scalable Vector Graphics
the k attribute specifies the amount for decreas
ing the spac
ing between the two glyphs
in a kern
ing pair.
... the value is
in the font coord
inate system.
... two elements are us
ing this attribute: <hkern> and <vkern> context notes value <number> default value none animatable no <number> this value
indicates the amount for decreas
ing the spac
ing between the two glyphs
in the kern
ing pair.
...And 2 more matches
k1 - SVG: Scalable Vector Graphics
the k1 attribute def
ines one of the values to be used with
in the the arithmetic operation of the <fecomposite> filter primitive.
... the pixel composition is computed us
ing the follow
ing formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is us
ing this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite
in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="0" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite
in2="sourcegraphic" operator="arithmetic" k1="10" k2="0" k3="0" k4="0" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/126...
...68/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the def
inition of 'k1'
in that specification.
...And 2 more matches
k2 - SVG: Scalable Vector Graphics
the k2 attribute def
ines one of the values to be used with
in the the arithmetic operation of the <fecomposite> filter primitive.
... the pixel composition is computed us
ing the follow
ing formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is us
ing this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite
in2="sourcegraphic" operator="arithmetic" k1="1" k2="1" k3="0" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite
in2="sourcegraphic" operator="arithmetic" k1="1" k2="10" k3="0" k4="0" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/126...
...68/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the def
inition of 'k2'
in that specification.
...And 2 more matches
k3 - SVG: Scalable Vector Graphics
the k3 attribute def
ines one of the values to be used with
in the the arithmetic operation of the <fecomposite> filter primitive.
... the pixel composition is computed us
ing the follow
ing formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4 only one element is us
ing this attribute: <fecomposite> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="composite1" x="0" y="0" width="100%" height="100%"> <fecomposite
in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="1" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite
in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="10" k4="0" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/126...
...68/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the def
inition of 'k3'
in that specification.
...And 2 more matches
name - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the name function returns a str
ing represent
ing the qname of the first node
in a given node-set.
... syntax name( [node-set] ) arguments node-set (optional) the qname of the first node
in this node-set will be returned.
... returns a str
ing represent
ing the qname of a node.
...And 2 more matches
normalize-space - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the normalize-space function strips lead
ing and trail
ing white-space from a str
ing, replaces sequences of whitespace characters by a s
ingle space, and returns the result
ing str
ing.
... syntax normalize-space( [str
ing] ) arguments str
ing (optional) the str
ing to be normalized.
... if omitted, str
ing used will be the same as the context node converted to a str
ing.
...And 2 more matches
position - XPath
syntax position() returns an
integer equal to the context position from the expression evaluation context.
... notes note that a node's position
in a context is not zero-based.
... the context is determ
ined by the rest of the path.
...And 2 more matches
unparsed-entity-url - XPath
this is non-xml data referenced
in the dtd of the source document.
... syntax str
ing unparsed-entity-url(str
ing) arguments the name of the unparsed entity.
... if the argument is not a str
ing, it is converted us
ing the rules of the str
ing() function.
...And 2 more matches
<xsl:apply-imports> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:apply-imports> element is fairly arcane, used mostly
in complex stylesheets.
... import precedence requires that template rules
in ma
in stylesheets have higher precedence than template rules
in imported stylesheets.
... sometimes, however, it is useful to be able to force the processor to use a template rule from the (lower precedence) imported stylesheet rather than an equivalent rule
in the ma
in stylesheet.
...And 2 more matches
<xsl:choose> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:choose> element def
ines a choice among a number of alternatives.
... it behaves like a switch statement
in procedural languages.
... type
instruction, appears with a template.
...And 2 more matches
<xsl:for-each> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:for-each> element selects a set of nodes and processes each of them
in the same way.
...if one or more <xsl:sort> elements appear as the children of this element, sort
ing occurs before process
ing.
... otherwise, nodes are processed
in document order.
...And 2 more matches
<xsl:if> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:if> element conta
ins a test attribute and a template.
...
in this it is similar to an if statement
in other languages.
... syntax <xsl:if test=expression> template </xsl:if> required attributes test conta
ins an xpath expression that can be evaluated (us
ing the rules def
ined for boolean( ) if necessary) to a boolean value.
...And 2 more matches
<xsl:import> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:import> element is a top-level element that serves to import the contents of one stylesheet
into another stylesheet.
... generally speak
ing, the contents of the imported stylesheet have a lower import precedence than that of the import
ing stylesheet.
... this is
in contrast to <xsl:
include> where the contents of the
included stylesheet have exactly the same precedence as the contents of the
includ
ing stylesheet.
...And 2 more matches
<xsl:with-param> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:with-param> element sets the value of a parameter to be passed
into a template.
... optional attributes select def
ines the value of the parameter through an xpath expression.
... if the element conta
ins a template, this attribute is ignored.
...And 2 more matches
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
the follow
ing is an alphabetized and annotated list of the elements, axes, and functions from the w3c's 1.0 recommendation for xslt, as well as from the appropriate sections of the xpath recommendation.
... development of the xslt processor is ongo
ing, and this document will be updated as functionality is expanded.
...xsl:apply-templates (supported) xsl:attribute (supported) xsl:attribute-set (supported) xsl:call-template (supported) xsl:choose (supported) xsl:comment (supported) xsl:copy (supported) xsl:copy-of (supported) xsl:decimal-format (supported) xsl:element (supported) xsl:fallback (not supported) xsl:for-each (supported) xsl:if (supported) xsl:import (mostly supported) xsl:
include (supported) xsl:key (supported) xsl:message (supported) xsl:namespace-alias (not supported) xsl:number (partially supported) xsl:otherwise (supported) xsl:output (partially supported) xsl:param (supported) xsl:preserve-space (supported) xsl:process
ing-
instruction xsl:sort (supported) xsl:strip-space (supported) xsl:stylesheet (partially supported) xsl:template (supp...
...And 2 more matches
Alerts and Notifications - Archive of obsolete content
basic modal alert alert('hello'); pop-ups the follow
ing code presents a non-modal pop-up, which automatically disappears after an appropriate delay.
...this works on w
indows, l
inux and (if growl is
installed) mac os x: function popup(title, text) { try { components.classes['@mozilla.org/alerts-service;1'] .getservice(components.
interfaces.nsialertsservice) .showalertnotification(null, title, text, false, '', null); } catch(e) { // prevents runtime error on platforms that don't implement nsialertsservice } } if you need to display a comparable alert on a platform that doesn't support nsialertsservice, you can do this: function popup(title, msg) { var image = null; var w
in = components.classes['@mozilla.org/embedcomp/w
indow-watcher;1'] .getservice(components.
interfaces.nsiw
indowwatcher) .openw
indow(null, 'chrome://global/co...
...ntent/alerts/alert.xul', '_blank', 'chrome,titlebar=no,popup=yes', null); w
in.arguments = [image, title, msg, false, '']; } us
ing notification box another way of non-modal notification and further
interaction with users is us
ing of xul elements notificationbox and notification (implicitly).
... var message = 'another pop-up blocked'; var box = gbrowser.getnotificationbox(); var notification = box.getnotificationwithvalue('popup-blocked'); if (notification) { notification.label = message; } else { var buttons = [{ label: 'button', accesskey: 'b', popup: 'blockedpopupoptions', callback: null }]; let priority = box.priority_warn
ing_medium; box.appendnotification(message, 'popup-blocked', 'chrome://browser/sk
in/
info.png', priority, buttons); } ...
Boxes - Archive of obsolete content
wrapp
ing contents
in html you can use a div as a conta
iner and when the div changes size, the contents will wrap or adjust the layout.
...make the box style="display: block" and the wrapp
ing behavior will occur when the box is resized: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/sk
in/" type="text/css"?> <w
indow id="yourw
indow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <hbox style="display: block"> <label value="aaa"/> <label value="bbb"/> <label value="ccc"/> <label value="ddd"/> <label value="eee"/> <label value="fff"/> <label value="ggg"/> <label value="hhh"/> <label value="iii"/> <label value="jjj"/> <label value="kkk"/> <label value="lll"/> <label value="mmm"/> <label value="nnn"/> <label value="ooo"/> <label value=...
..."ppp"/> <label value="qqq"/> <label value="rrr"/> <label value="sss"/> <label value="ttt"/> <label value="uuu"/> <label value="vvv"/> <label value="www"/> <label value="xxx"/> <label value="yyy"/> <label value="zzz"/> </hbox> </w
indow> images if you put image
in the contents, you should probably add align="start" attribute to the box.
... this keeps the image from stretch
ing
inside the box: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/sk
in/" type="text/css"?> <w
indow xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <box align="start" style="display:block"> <image src="chrome://global/sk
in/icons/error.png" style="padd
ing:5px"/> <textbox /> <image src="chrome://global/sk
in/icons/error.png" style="padd
ing:5px"/> <button label="hello"/> <image src="chrome://global/sk
in/icons/error.png" style="padd
ing:5px"/> </box> </w
indow> ...
LookupNamespaceURI - Archive of obsolete content
note that all gecko-based browsers (
includ
ing firefox) support node.lookupnamespaceuri.
... /*globals document, htmldocument */ (function () { 'use strict'; var doc = typeof document !== 'undef
ined' ?
...ceurihelper (node, prefix) { // adapted directly from http://www.w3.org/tr/dom-level-3-core/namespaces-algorithms.html#lookupnamespaceurialgo var i, att, htmlmode = document.contenttype, // mozilla only xmlnspattern = /^xmlns:(.*)$/; switch (node.nodetype) { case 1: // element_node (could also just test for node.element_node, etc., if supported
in all browsers) if (node.namespaceuri != null && node.prefix === prefix) { // note: prefix could be "null"
in the case we are look
ing for default namespace return node.namespaceuri; } if (node.attributes.length) { for (i = 0; i < node.attributes.length; i++) { att = n...
...gment_node return null; // unknown case 2: // attribute_node if (node.ownerelement) { return lookupnamespaceurihelper(node.ownerelement, prefix); } return null; // unknown default: // text_node (3), cdata_section_node (4), entity_reference_node (5), // process
ing_
instruction_node (7), comment_node (8) if (node.parentnode) { // entityreferences may have to be skipped to get to it return lookupnamespaceurihelper(node.parentnode, prefix); } return null; // unknown } }; } }()); ...
cached - Archive of obsolete content
the cached event is fired when the resources listed
in the application cache manifest have been downloaded, and the application is now cached.
... general
info specification offl
ine
interface event bubbles no cancelable no target applicationcache default action none properties property type description target eventtarget (dom element) the event target (the topmost target
in the dom tree).
... type str
ing the type of event.
... related events check
ing noupdate download
ing progress cached updateready obsolete error ...
tag - Archive of obsolete content
if set, the conditions will only match if the template builder is pars
ing content for an element directly
inside this tag.
... for example, by us
ing a value of treechildren, the condition will only match when plac
ing elements directly
inside a treechildren tag.
... thus, nested elements will not match because they are directly
inside a treeitem.
... this attribute is useful to provide different rules for outer and
inner elements.
bbox - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a horizontal box that is basel
ine aligned.
... it is equivalent to us
ing an hbox element with an align attribute set to basel
ine.
... examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hi...
...dden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceur...
broadcasterset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a conta
iner element for broadcaster elements.
... more
information is available
in the xul tutorial.
... examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hi...
...dden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceur...
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 sibl
ing element of the splitter.
... more
information is available
in the xul tutorial.
... examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hi...
...dden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceur...
listcol - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a column
in a listbox.
... examples example <!-- a two column listbox with one column flexible --> <listbox> <listhead> <listheader label="first"/> <listheader label="last"/> </listhead> <listcols> <listcol flex="1"/> <listcol/> </listcols> <listitem> <listcell label="buck"/> <listcell label="rogers"/> </listitem> <listitem> <listcell label="john"/> <listcell label="pa
inter"/> </listitem> </listbox> attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, ...
...pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, orient, , pack, , persist, , , , ref, resource, , , , , statustext, style, ,, tooltip, tooltiptext, top, width methods
inherited methods addeventlistener(), appendchild(), blur, click, clonenode(), comparedocumentposition, dispatchevent(), docommand, focus, getattribute(), getattribut...
...enode(), getattributenodens(), getattributens(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements listbox, listcell, listcols, listhead, listheader, listitem ...
queryset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] a conta
iner for query elements when more than one query is used.
... for more
information, see multiple queries.
... attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxhei...
...ght, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize()...
toolbarseparator - Archive of obsolete content
properties accessibletype examples <toolbox> <toolbar> <toolbarbutton label="button 1"/> <toolbarseparator /> <toolbarbutton label="button 2"/> </toolbar> </toolbox> attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable...
..., querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties accessibletype type:
integer a value
indicat
ing the type of accessibility object for the element.
...
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeatu...
...re, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarset, toolbarspacer, toolbarspr
ing, toolbox ...
toolbarspacer - Archive of obsolete content
properties accessibletype examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties ...
... accessibletype type:
integer a value
indicat
ing the type of accessibility object for the element.
...
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfe...
...ature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata related elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarspr
ing, toolbox
interfaces nsiaccessibleprovider ...
treeseparator - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] used to place a separator row
in a tree.
...for more
information, see styl
ing a tree.
...
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwid...
...th, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), querysele...
xulauncher - Archive of obsolete content
#!/b
in/bash -e # a simple bash script to create a m
inimal xulrunner dir structure and # needed meta files
in /tmp, copy the xul-file over and start it # usage: # xulauncher xulfile.xul [options] ############################################################################## # check if theres atleast one parameter ############################################################################## if [ $# -lt 1 ] then echo "you need to give the xul file as first parameter" exit fi # check if 1st parameter is a file ############################################################################## if [ !
... -f "$1" ] then echo "\"$1\" is not a file" exit fi # def
ine some variables ############################################################################## wd=/tmp ext=".xul" xulfile=`basename $1` xulname=${xulfile%$ext} xuldir="$wd/$xulname/chrome/$xulname/" xulprefdir="$wd/$xulname/defaults/preferences" xulapp
ini="$wd/$xulname/application.
ini" xulmanifest="$wd/$xulname/chrome/chrome.manifest" xulprefs="$wd/$xulname/defaults/preferences/prefs.js" # make m
inimal directory structure ############################################################################## mkdir -p $xuldir mkdir -p $xulprefdir # create application.
ini file ############################################################################## echo " [app] vendor=xulauncher.sh name=$xulname version=0.0.1 buildid=`date +%y%m...
...%d` [gecko] m
inversion=1.8 maxversion=1.9 ">$xulapp
ini # create chrome.manifest file ############################################################################## echo " content $xulname file:$xulname/ ">$xulmanifest # create prefs.js file ############################################################################## echo " pref(\"toolkit.defaultchromeuri\", \"chrome://$xulname/content/$xulfile\"); /* debugg
ing prefs */ pref(\"browser.dom.w
indow.dump.enabled\", true); pref(\"javascript.options.show
inconsole\", true); pref(\"javascript.options.strict\", true); pref(\"nglayout.debug.disable_xul_cache\", true); pref(\"nglayout.debug.disable_xul_fastload\", true); ">$xulprefs # copy xul file to right location and run it #######################################################################...
...####### cp $xulfile $xuldir xulrunner $xulapp
ini $@ ...
ant script to assemble an extension - Archive of obsolete content
this ant script helps to package an extension <?xml version="1.0"?> this build file was written by régis décamps <decamps@users.sf.net> <project name="blogmark" default="createxpi"> <property name="version" value="1.3-rc1"/> <property name="description" value="new context-menu item to add the current page
in your blogmarks"/> xpi file is created after "chrome/blogmark.jar" is created, which is then stuffed
into "blogmark.xpi" <target name="createxpi" depends="createjar" description="assemble the f
inal build blogmark.xpi"> <zip destfile="blogmark-${version}.xpi"> <zipfileset dir="."
includes="chrome/blogmark.jar" /> <zip...
...fileset dir="."
includes="
install.rdf" /> </zip> </target> everyth
ing
inside the chrome directory is zipped
into chrome/blogmark.jar <target name="createjar" depends="templates" description="assemble the jar"> <jar destfile="chrome/blogmark.jar"> <fileset dir="chrome/"> <
include name="**/*"/> <exclude name="**/*~"/> <exclude name="**/*.tpl.*"/> <exclude name="blogmark.jar"/> </fileset> </jar> </target> <target name="templates" description="generate files from templates."> <copy file="chrome/content/blogmark/contents.rdf.tpl.
...xml" tofile="chrome/content/blogmark/contents.rdf" overwrite="true"> <filtercha
in> <replacetokens> <token key="version" value="${version}"/> <token key="description" value="${description}"/> </replacetokens> </filtercha
in> </copy> <copy file="chrome/content/blogmark/about.xul.tpl.xml" tofile="chrome/content/blogmark/about.xul" overwrite="true"> <filtercha
in> <replacetokens> <token key="version" value="...
...${version}"/> </replacetokens> </filtercha
in> </copy> <copy file="
install.rdf.tpl.xml" tofile="
install.rdf" overwrite="true"> <filtercha
in> <replacetokens> <token key="version" value="${version}"/> <token key="description" value="${description}"/> </replacetokens> </filtercha
in> </copy> </target> </project> ...
2006-10-06 - Archive of obsolete content
summary: mozilla.dev.accessibility - oct 6, 2006 announcements legal precedent set for web accessibility us federal court rules that retailers may be sued if its website is
inaccsessible.
... discussions w3c sets road map for web app accessibility the w3c
introduced its wai-aria (web accessibility
initiative for accessible rich
internet applications) roadmap--a set of guidel
ines for developers to make accessible web content.
... this set of documents tackles some of the difficulties that ajax has been caus
ing with regards to accessibility.
...other l
inks of
interest: roadmap for accessible rich
internet applications (wai-aria roadmap) roles for accessible rich
internet applications (wai-aria roles) states and properties module for accessible rich
internet applications (wai-aria states and properties) mak
ing ajax work with screen readers meet
ings accessibility hackfest 2006 - october 10-12
in cambridge, ma (more details) participants
include the mozilla foundation, ibm, sun and novell to name a few.
2006-09-29 - Archive of obsolete content
summary: mozilla.dev.apps.thunderbird - september 22-29, 2006 announcements development for thunderjudge extension is put on hold the author of the thunderjudge extension is currently putt
ing the development of the extension on hold due to several issues (more details available at the website).
... he is also ask
ing if there are developers out there who know the tb core and are will
ing to help him out.
... discussions developer documentation issues for thunderbird 2 eric shepherd has requested feedback for any developer documentation issues that might need deal
ing with for thunderbird 2.
... meet
ings none for this week.
2006-10-27 - Archive of obsolete content
discussions effect of eudora/thunderbird re-write joes is voic
ing a concern about the recent announcement regard
ing the eudora/thunderbird rewrite: "is thunderbird dest
ined to become a hybrid of the exist
ing code and eudora?".
... jonathan pritchard has clarified that announcement does not mean thunderbird will be chang
ing direction, just certa
in areas of development that are of
interest to the eudora developers will have more attention paid to them.
... call
ing tb with a specific message to be displayed there's a new question by guenter about call
ing tb from an external program (eg.
... meet
ings none for this week.
2006-11-24 - Archive of obsolete content
summary: mozilla.dev.apps.thunderbird - november 18 - 24, 2006 announcements none for this week discussions issues with 2.0 features there's renewed discussion on why certa
in features were removed
in the 2.0 release, and the addition of support for s/mime and not pgp/gpg encryption.
... additional l
inks: bug 22687 and orig
inal newsgroup thread.
... thunderbird los
ing emails tb seems to be delet
ing mail folders when they reach 4gb
in size.
... meet
ings none for this week ...
NPRect - Archive of obsolete content
« gecko plug
in api reference « browser side plug-
in api summary represents a rectangular area of a plug-
in's content area.
... syntax typedef struct _nprect { u
int16 top; u
int16 left; u
int16 bottom; u
int16 right; } nprect; fields the data structure has the follow
ing fields: top, left, bottom, right the top, left, bottom, and right sides of the rectangle.
... description nprect def
ines the bound
ing box of the area of the plug-
in w
indow to be updated, pa
inted,
invalidated, or clipped to.
... see also npn_forceredraw() npn_
invalidaterect() npn_
invalidateregion() npregion npw
indow ...
Atomic RSS - Archive of obsolete content
"gett
ing started" box, if there is no "gett
ing started" article yet written, should be populated with another feature article or tutorial, should one exist.
... otherwise, just comment it out gett
ing started a guided tutorial that will help you get started with atomic rss.
...it br
ings
in atom elements
into rss, add
ing the advantages of atom to rss while ma
inta
ining backwards compatibility.
... documentation selected articles atomic rss tim bray talks about us
ing atom 1.0 as a micro format and extension module for rss 2.0; keep
ing rss 2.0 as your sydication format but br
ing
ing
in and us
ing selected atom 1.0 elements.
Slash - Archive of obsolete content
gett
ing started a guided tutorial that will help you get started with the rss slash module.
... the rss slash module is popular among slash based blogs and blogs imitat
ing the feel for slashdot.
... slash is the eng
ine beh
ind the famous slashdot.
... documentation selected articles up to 10 why rss slash is popular: count
ing your comments charles iliya krempeaux talks about the rss slash module, why it is popular among some, and how it is used to give a count for your comments (2005-08-22).
Use Case - Archive of obsolete content
rss use cases this section conta
ins common rss use cases.
... it is
intended to help people understand why the rss format is the way it is.
...and help give developers more
insight.
... use cases between rss aggregators and rss feeds poll
ing rss feeds figur
ing out which version of rss 0.91 you have how to handle enclosures http mime type handl
ing use cases between users and rss feeds subscrib
ing to an rss feed ...
Version - Archive of obsolete content
they are listed
in chronological order of when they were released.
... note:
in the list below, although rss 1.0 seems to be out of place, it is actually
in the correct place chronologically.
... note: rss 0.93 and rss 0.94 were only ever released as "drafts" and never became "f
inal" and thus were not meant to actually be used.
... xml netscape netscape's rss 0.91 revision 3 july 10, 1999 xml netscape userland's rss 0.91 june 4, 2000 xml userland rss 1.0 standard december 9, 2000 rdf rss-dev work
ing group rss 0.92 december 25, 2000 xml userland rss 0.93 april 20, 2001 xml userland rss 0.94 august 19, 2002 xml userland rss 2.0 september 2002 xml userland rss 2.0 (post 2002-11-11) november 11, 2002 xml userland rss 2.0 (post 2003-01-21) standard january 21, 2003 ...
-ms-block-progression - Archive of obsolete content
initial valuetbapplies toall elements
inheritednocomputed valueas specifiedanimation typediscrete syntax values tb default.
... remarks
in vertical layout, text l
ines are rotated 90° clockwise.
...box layout
in vertical orientations is exactly analogous to layout
in the horizontal orientation: width, height, top, bottom, right, and left do not rotate with the text.
... only one block progression is active at a time; these values cannot be comb
ined.
-ms-flow-from - Archive of obsolete content
the -ms-flow-from css property is a microsoft extension that gets or sets a value identify
ing a region conta
iner
in the document that accepts the content flow from the data source.
...
initial valuenoneapplies tonon-replaced elements
inheritednocomputed valueas specifiedanimation typediscrete syntax values none default.
... no conta
iner has been specified.
... <custom-ident> the name of the region conta
iner.
-ms-scrollbar-3dlight-color - Archive of obsolete content
the -ms-scrollbar-3dlight-color css property is a microsoft extension specify
ing the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
...
initial valuedepends on user agentapplies toall elements
inheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the top and left edges of the scroll box and scroll arrows of the scroll bar.
...)where <alpha-value> = <number> | <percentage><hue> = <number> | <angle> examples the follow
ing example shows how to create a style rule that sets the -ms-scrollbar-3dlight-color property for a <textarea> element.
...*/ } </style> </head> <body> <textarea class="blue3dlight">the top and left edges of the thumb and button-face elements
in the scroll bar for this element will be blue.</textarea> </body> </html> specifications not part of any specification.
-ms-scrollbar-highlight-color - Archive of obsolete content
initial valuethreedhighlightapplies toall elements
inheritedyescomputed valueas specifiedanimation typediscrete syntax values <color> the color of the slider tray, the top and left edges of the scroll box, and the scroll arrows of a scroll bar.
... div { width: 150px; height: 150px; border-style: solid; border-width: th
in; overflow-y: scroll; font-family: sans-serif; float: left; marg
in-right: 10px; } .bluescroll { -ms-scrollbar-highlight-color: aqua; -ms-scrollbar-face-color: blue; -ms-scrollbar-arrow-color: blue; border-color: blue; } .redscroll { -ms-scrollbar-highlight-color: bisque; -ms-scrollbar-face-color: red; -ms-scrollbar-arrow-color: red; border-color: red; } <body> <div cla...
...ss="bluescroll"> lorem ipsum dolor sit amet, consectetuer adipisc
ing elit, sed diam nonummy nibh euismod t
incidunt ut laoreet dolore magna aliquam erat volutpat.
... </div> <div class="redscroll"> lorem ipsum dolor sit amet, consectetuer adipisc
ing elit, sed diam nonummy nibh euismod t
incidunt ut laoreet dolore magna aliquam erat volutpat.
::-ms-expand - Archive of obsolete content
typically it is a triangle that po
ints downward.
... allowable properties only the follow
ing css properties can be used
in a rule with ::-ms-expand
in its selector.
... -ms-high-contrast-adjust background-clip background-color background-image background-orig
in background-position-x background-position-y background-repeat background-size border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-siz
ing color cursor display (values block,
inl
ine-block, none) @font-face font-size font-style font-weight height marg
in-bottom marg
in-left marg
in-right marg
in-top opacity outl
ine-color outl
ine-style outl
ine-width ...
...padd
ing-bottom padd
ing-left padd
ing-right padd
ing-top transform transform-orig
in visibility width syntax ::-ms-clear specifications not part of any specification.
::-ms-ticks-after - Archive of obsolete content
a slider control is one possible representation of <
input type="range">.
... allowable properties only the follow
ing css properties can be used
in a rule with ::-ms-ticks-after
in its selector.
... background-clip background-color background-image background-orig
in background-repeat background-size border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-siz
ing color cursor display (values block,
inl
ine-block, none) @font-face font-size font-style font-weight height marg
in-bottom marg
in-left marg
in-right marg
in-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outl
ine-color outl
ine-style outl
ine-...
...width padd
ing-bottom padd
ing-left padd
ing-right padd
ing-top transform transform-orig
in visibility width syntax ::-ms-ticks-after ...
::-ms-ticks-before - Archive of obsolete content
a slider control is one possible representation of <
input type="range">.
... allowable properties only the follow
ing css properties can be used
in a rule with ::-ms-ticks-before
in its selector.
... background-clip background-color background-image background-orig
in background-repeat background-size border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-siz
ing color cursor display (values block,
inl
ine-block, none) @font-face font-size font-style font-weight height marg
in-bottom marg
in-left marg
in-right marg
in-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outl
ine-color outl
ine-style outl
ine-...
...width padd
ing-bottom padd
ing-left padd
ing-right padd
ing-top transform transform-orig
in visibility width syntax ::-ms-ticks-before ...
::-ms-value - Archive of obsolete content
the ::-ms-value css pseudo-element is a microsoft extension that applies rules to the value of a text or password <
input> control or the content of a <select> control.
... allowable properties only the follow
ing css properties can be used
in a rule with ::-ms-value
in its selector.
... background-clip background-color background-image background-orig
in background-repeat background-size border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-left-color border-left-style border-left-width border-right-color border-right-style border-right-width border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width box-shadow box-siz
ing color cursor display (values block,
inl
ine-block, none) @font-face font-size font-style font-weight height marg
in-bottom marg
in-left marg
in-right marg
in-top -ms-background-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outl
ine-color outl
ine-style outl
ine-...
...width padd
ing-bottom padd
ing-left padd
ing-right padd
ing-top transform transform-orig
in visibility width syntax ::-ms-value example
input::-ms-value { color: lime; font-style: italic; } to disable the default styl
ing: select::-ms-value { background-color: transparent; color:
inherit; } specifications not part of any specification.
-moz-mac-graphite-theme - Archive of obsolete content
note: s
ince firefox 58, this media feature is no longer available to web content — it is only available
internally (e.g.
... syntax <
integer> if the user has configured their device to use the "graphite" appearance on mac os x, this is 1.
... if the user is us
ing the standard blue appearance, or is not on mac os x, this is 0.
... media: media/visual accepts m
in/max prefixes: no ...
-moz-maemo-classic - Archive of obsolete content
the -moz-maemo-classic gecko-only css media feature can be used to apply styles based on whether the user agent is us
ing the orig
inal maemo theme.
... syntax <
integer> if the user agent is us
ing maemo with the orig
inal theme, this is 1.
... if it's us
ing the newer fremantle theme, this is 0.
... media: media/visual accepts m
in/max prefixes: no ...
-moz-touch-enabled - Archive of obsolete content
use po
inter: coarse
instead.
... syntax <
integer> if the device supports touch events (for a touch screen), this is 1.
... media: media/visual accepts m
in/max prefixes: no example you might use this feature to render your buttons slightly larger if the user is on a touch-screen device, to make them more f
inger-friendly.
... button { padd
ing: .5em; } @media (-moz-touch-enabled) { button { padd
ing: 1em; } } ...
Legacy generator function - Archive of obsolete content
the legacy generator function was a spidermonkey-specific feature, which is removed
in firefox 58+.
... for future-fac
ing usages, consider us
ing function*.
... you can also def
ine functions us
ing the function constructor with functionbody and at least one yield expression, and a legacy generator function expression.
...this should conta
in at least one yield expression.
Object.prototype.eval() - Archive of obsolete content
the object.eval() method used to evaluate a str
ing of javascript code
in the context of an object, however, this method has been removed.
... syntax obj.eval(str
ing) parameters str
ing any str
ing represent
ing a javascript expression, statement, or sequence of statements.
... the expression can
include variables and properties of exist
ing objects.
...use the top-level eval() function
instead.
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.
... return value an iterator with the enumerable own and
inherited properties of the target object.
... description the reflect.enumerate method returns an iterator with the enumerable own and
inherited properties of the target object.
... examples us
ing reflect.enumerate() var obj = { x: 1, y: 2 }; for (var name of reflect.enumerate(obj)) { console.log(name); } // logs "x" and "y" specifications not part of any standard.
java - Archive of obsolete content
summary core object a top-level object used to access any java class
in the package java.*.
... the support for this object was removed
in gecko 16, see liveconnect for details.
... created by the java object is a top-level, predef
ined javascript object.
... you can automatically access it without us
ing a constructor or call
ing a method.
XForms Custom Controls Examples - Archive of obsolete content
introduction here is a collection of misc.
...a full example show
ing a complete form can be found on xforms:custom_controls.
... output show
ing images <b
ind
ing id="output-image" extends="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.str
ingvalue); return true; </body> </method> </implementation> </b
ind
ing> output show
ing xhtml <b
ind
ing 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="nsixformsuiw...
... var val = this.str
ingvalue; var newdom = this.domparser.parsefromstr
ing(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> </b
ind
ing> ...
Character sets supported by Gecko - Gecko Redirect 1
gecko supports the character encod
ings def
ined
in the encod
ing standard.
...
in gecko-
internal apis, it is necessary to use particular (potentially) mixed-case names for the encod
ings.
... for encod
ings that have a compatibility name
in the dom standard, except gbk, this is the compatibilty name.
... for other encod
ings,
includ
ing gbk, this is the lower-case name from the encod
ing standard.
Example 2 - Learn web development
this is the second example that expla
in how to build custom form widgets.
...n">lemon</li> <li class="option">banana</li> <li class="option">strawberry</li> <li class="option">apple</li> </ul> </div> <form> css content .widget select, .no-widget .select { position : absolute; left : -5000em; height : 0; overflow : hidden; } /* --------------- */ /* required styles */ /* --------------- */ .select { position: relative; display :
inl
ine-block; } .select.active, .select:focus { box-shadow: 0 0 3px 1px #227755; outl
ine: none; } .select .optlist { position: absolute; top : 100%; left : 0; } .select .optlist.hidden { max-height: 0; visibility: hidden; } /* ------------ */ /* fancy styles */ /* ------------ */ .select { font-size : 0.625em; /* 10px */ font-family : verdana, arial, sans-serif; -m...
...oz-box-siz
ing : border-box; box-siz
ing : border-box; padd
ing : 0.1em 2.5em 0.2em 0.5em; /* 1px 25px 2px 5px */ width : 10em; /* 100px */ border : 0.2em solid #000; /* 2px */ border-radius : 0.4em; /* 4px */ box-shadow : 0 0.1em 0.2em rgba(0,0,0,.45); /* 0 1px 2px */ background : #f0f0f0; background : -webkit-l
inear-gradient(90deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); background : l
inear-gradient(0deg, #e3e3e3, #fcfcfc 50%, #f0f0f0); } .select .value { display :
inl
ine-block; width : 100%; overflow : hidden; white-space : nowrap; text-overflow : ellipsis; vertical-align: top; } .select:after { content : "▼"; position: absolute; z-
index : 1; height : 100%; width : 2em; /* 20px */ top : 0; right : 0; padd
ing-top : .1em; ...
... -moz-box-siz
ing : border-box; box-siz
ing : border-box; text-align : center; border-left : .2em solid #000; border-radius: 0 .1em .1em 0; background-color : #000; color : #fff; } .select .optlist { z-
index : 2; list-style: none; marg
in : 0; padd
ing: 0; background: #f0f0f0; border: .2em solid #000; border-top-width : .1em; border-radius: 0 0 .4em .4em; box-shadow: 0 .2em .4em rgba(0,0,0,.4); -moz-box-siz
ing : border-box; box-siz
ing : border-box; m
in-width : 100%; max-height: 10em; /* 100px */ overflow-y: auto; overflow-x: hidden; } .select .option { padd
ing: .2em .3em; } .select .highlight { background: #000; color: #ffffff; } javascript content w
indow.addeventlistener("load", function () { var form = document.queryselector('form...
Example - Learn web development
a payment form html content <form method="post"> <h1>payment form</h1> <p>required fields are followed by <strong><abbr title="required">*</abbr></strong>.</p> <section> <h2>contact
information</h2> <fieldset> <legend>title</legend> <ul> <li> <label for="title_1"> <
input type="radio" id="title_1" name="title" value="a"> ace </label> </li> <li> <label for="title_2"> <
input type="radio" id="title_2" name="title" value="k" > k
ing </label> </li> <li> <label for="title_3"> <
input type="radio" id="title_3" name="title" value="...
...q"> queen </label> </li> </ul> </fieldset> <p> <label for="name"> <span>name: </span> <strong><abbr title="required">*</abbr></strong> </label> <
input type="text" id="name" name="username"> </p> <p> <label for="mail"> <span>e-mail: </span> <strong><abbr title="required">*</abbr></strong> </label> <
input type="email" id="mail" name="usermail"> </p> <p> <label for="pwd"> <span>password: </span> <strong><abbr title="required">*</abbr></strong> </label> <
input type="password" id="pwd" name="password"> </p> </section> <section> <h2>payment
information</h2> <p> <label for="card"> <span>card type:</span> ...
... </label> <select id="card" name="usercard"> <option value="visa">visa</option> <option value="mc">mastercard</option> <option value="amex">american express</option> </select> </p> <p> <label for="number"> <span>card number:</span> <strong><abbr title="required">*</abbr></strong> </label> <
input type="tel" id="number" name="cardnumber"> </p> <p> <label for="date"> <span>expiration date:</span> <strong><abbr title="required">*</abbr></strong> <em>formatted as mm/dd/yyyy</em> </label> <
input type="date" id="date" name="expiration"> </p> </section> <section> <p> <button type="submit">validate the payment</button> </p> </section> </form> css content h1 {...
... marg
in-top: 0; } ul { marg
in: 0; padd
ing: 0; list-style: none; } form { marg
in: 0 auto; width: 400px; padd
ing: 1em; border: 1px solid #ccc; border-radius: 1em; } div+div { marg
in-top: 1em; } label span { display:
inl
ine-block; width: 120px; text-align: right; }
input, textarea { font: 1em sans-serif; width: 250px; box-siz
ing: border-box; border: 1px solid #999; }
input[type=checkbox],
input[type=radio] { width: auto; border: none; }
input:focus, textarea:focus { border-color: #000; } textarea { vertical-align: top; height: 5em; resize: vertical; } fieldset { width: 250px; box-siz
ing: border-box; marg
in-left: 136px; border: 1px solid #999; } button { marg
in: 20px 0 0 124p...
ChromeWorkers and the Chrome worker loader
to complement the open web worker functionality, mozilla has
introduced the chromeworker
interface, which provides this capability with
in application chrome.
... note: if you're contribut
ing content to this section, create subpages us
ing the "new sub-page" option
in the "this page" menu.
... chrome worker modulesthe preferred way to def
ine and load modules for chrome workers is to use the chrome worker module loader.
... this module loader should not surprise developers familiar with commonjs, as it implements a m
inimal commonjs require().
Articles for new developers
when first gett
ing started as a contributor to the mozilla project, there's a lot of
information to sort through and understand.
... to help you f
ind the most critical stuff as quickly as possible, we've created this list of the articles you'll f
ind most useful as you get yourself oriented and make your first contributions to the project.
...we look forward to your
input!
... contribut
ing to the mozilla code base this page should guide you through the
initial steps of contribut
ing to mozilla.
Message manager
they are particularly useful for allow
ing chrome code,
includ
ing the browser's code and extension's code, to access web content while the browser is runn
ing web content
in a separate process.
... these guides expla
in how to use message managers
in multiprocess firefox.
... note that none of this requires multiprocess firefox: everyth
ing described here will work with s
ingle-process firefox, so the same code will work on both variants.
... guides message manager overview frame script load
ing and lifetime communicat
ing with frame scripts performance best practices frame script environment limitations of frame scripts process scripts api reference nsiframescriptloader nsimessagelistenermanager nsimessagebroadcaster nsimessagesender nsisyncmessagesender nsicontentframemessagemanager nsiprocessscriptloader ...
HTMLIFrameElement.getActive()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the getactive() method of the htmliframeelement
indicates whether the current browser <iframe> is the currently active frame.
... syntax var amiactive =
instanceofhtmliframeelement.getactive(); returns a boolean
indicat
ing whether the current browser <iframe> is the currently active frame (true) or not (false.) parameters none.
HTMLIFrameElement.getCanGoBack()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the getcangoback() method of the htmliframeelement
interface is used to
indicate whether it's possible to go back
in the navigation history of the browser <iframe>.
... syntax
instanceofhtmliframeelement.getcangoback() .then(function(result) { ...
HTMLIFrameElement.getCanGoForward()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the getcangoforward() method of the htmliframeelement is used to
indicate whether it's possible to go forward
in the navigation history of the browser <iframe>.
... syntax
instanceofhtmliframeelement.getcangoforward() .then(function(result) { ...
HTMLIFrameElement.getContentDimensions()
warn
ing: removed
in firefox 65.
... the getcontentdimensions() method of the htmliframeelement
interface retrieves the x and y dimensions of the content w
indow.
... syntax var
instanceofdomrequest =
instanceofhtmliframeelement.getcontentdimensions(); returns a domrequest for handl
ing the dimensions request.
... the x and y dimensions are available
in the request.result.x and request.result.y properties, respectively.
HTMLIFrameElement.getVisible()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... syntax
instanceofdomrequest =
instanceofhtmliframeelement.getvisible(); returns a domrequest object to handle the getvisible() request's success and error cases.
... if the request is successful, the request's result is a boolean
indicat
ing the visible state of the browser <iframe>.
HTMLIFrameElement.purgeHistory()
warn
ing: removed
in firefox 65.
... the purgehistory() method of the htmliframeelement
interface is used to clear the brows
ing history associated with the browser <iframe>.
... it only deletes history, not cookies or other stored
information.
... syntax there is a domrequest version and a promise version: var mydomrequest =
instanceofhtmliframeelement.purgehistory();
instanceofhtmliframeelement.purgehistory().then(function() { ...
HTMLIFrameElement.setActive()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... syntax
instanceofhtmliframeelement.setactive(boolean); returns void.
... parameters boolean a boolean that
indicates whether the iframe is to be the active frame (true) or not (false).
HTMLIFrameElement.setVolume()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... syntax
instanceofhtmliframeelement.setvolume(number); returns void.
... parameters number a float
ing po
int number represent
ing the volume you want to set — this can have a value between 0 and 1.
HTMLIFrameElement.stop()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the stop() method of the htmliframeelement
interface is used to stop load
ing the content of the <iframe>.
... syntax
instanceofhtmliframeelement.stop(); returns void.
HTMLIFrameElement.unmute()
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the unmute() method of the htmliframeelement unmutes any audio play
ing
in the browser <iframe>.
... syntax
instanceofhtmliframeelement.unmute(); returns void.
How test harnesses work
mozilla test harnesses are typically composed of a python runner that
invokes firefox, utilizes the browser to run tests, and reports the results.
... the python harness communicates with the browser by
insert
ing an extension
in the test
ing profile or uses marionette's wire protocol to drive the browser.
... python runner the python runner: sets up the test
ing environment sets up environment variables (mozrunner, currently) creates a profile (mozprofile via mozrunner) sets appropriate test preferences
inserts a shim extension
in the profile (for non-marionette tests) gathers the tests (manifestdest
iny) potentially sets up an http server for test data (mozhttpd)
invokes the b
inary (mozrunner) it is the job of the shim extension to shut down the browser logg
ing (mozlog,
in theory) (run tests, accrue results) cleanup: shutdown the browser check for crashes (mozcrash) report
ing (moztest) marionette tests list of test
ing extensions pageloader (talos) mochitest: //github.com/realityripple/uxp/blob/master/test
ing/mochit...
...est/
install.rdf (mochitest) ...
Code Samples
gett
ing the directory where your add-on is located if you need to determ
ine the directory
in which your add-on is
installed, code like the follow
ing will do the trick.
... components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("yourextensionid", function(addon) { var addonlocation = addon.getresourceuri("").query
interface(components.
interfaces.nsifileurl).file.path; }); access
ing file and version
information components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("my-addon@foo.com", function(addon) { alert("my extension's version is " + addon.version); alert("did i remember to
include that file.txt file
in my xpi?
..."yes!" : "no"); alert("let's pretend i did, it's available from the url " + addon.getresourceuri("file.txt").spec); }); un
install an add-on components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("youraddon@youraddon.com", function(addon) { addon.un
install(); }); disable an add-on components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("youraddon@youraddon.com", function(addon) { if (addon.isactive) addon.userdisabled = addon.isactive; }); listen
ing for add-on un
install this example sets a variable be
ingun
installed that you can check when you get a profile-before-change message to do cleanup for your add-on on un
install.
... var be
ingun
installed; let listener = { onun
install
ing: function(addon) { if (addon.id == "youraddon@youraddon.com") { be
ingun
installed = true; } }, onoperationcancelled: function(addon) { if (addon.id == "youraddon@youraddon.com") { be
ingun
installed = (addon.pend
ingoperations & addonmanager.pend
ing_un
install) != 0; } } } try { components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.addaddonlistener(listener); } catch (ex) {} ...
DownloadError
a downloaderror object provides detailed
information about a download failure.
... becausesourcefailed read only boolean
indicates an error occurred while read
ing from the remote location.
... becausetargetfailed read only boolean
indicates an error occurred while writ
ing to the local target.
...
inherits properties from error.
DownloadSource
properties attribute type description url read only str
ing the uri for the download source.
... isprivate read only boolean
indicates whether the download orig
inated from a private w
indow.
... this determ
ines the context of the network request that is made to retrieve the resource.
... referrer read only str
ing referrer uri of the download source, or null if no referrer should be sent or the download source is not http.
Geometry.jsm
the geometry.jsm javascript code module provides rout
ines for perform
ing common geometry operations on po
ints and rectangles.
... it exports two classes: po
int and rect.
... to use these rout
ines, you first need to import the code module
into your javascript scope: components.utils.import("resource://gre/modules/geometry.jsm"); once you've imported the module, you can then use the po
int and rect classes.
... note: although this module is usable from mobile, and is present
in firefox 4, it's currently not used
in firefox 4 and attempt
ing to use it may produce unreliable results there.
PromiseUtils.jsm
to use it, you first need to import the code module
into your javascript scope: components.utils.import("resource://gre/modules/promiseutils.jsm"); method overview deferred defer(); methods defer() creates a new pend
ing promise and provides methods to resolve or reject this promise.
... this method was previously implemented as promise.defer(), which is obsolete s
ince gecko 30.
... and promiseutils.defer uses dom promise
instead of promise.jsm's promise.
... return value a new object, conta
ining the new promise
in the promise property, and the methods to change its state
in the resolve and reject properties.
Localization: Frequently asked questions
for more detailed documentation about localization
in general, see our localization page.
... how do i preserve whitespace
in an entity?
... do you really want to preserve whitespace or are you look
ing for a no-break space, you can add that via a &ua0; or \ua0 to dtd and properties files, resp.
... how can i not display a variable
in a .properties entry?
MathML Screenshots
this page also shows how mathml can be used
in comb
ination with other web features such as background images at a desired opacity.
... screen captures of mtable, show
ing typesett
ing mathematical constructs
in 2d.
... screenshot of roots and physics equations (maxwell's equations and e
inste
in's field equations).
... mathml
in blog posts and emails.
JS_IsExtensible
this article covers features
introduced
in spidermonkey 1.8.5 query [[extensible]] properly of the given object.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... obj js::handleobject the object to exam
ine.
...if successful, js_isextensible stores [[extensible]] property to *extensible and returns true, otherwise returns false and the value of *extensible is undef
ined.
JS_LeaveCompartment
this article covers features
introduced
in spidermonkey 24 note: the preferred way of chang
ing a context's current compartment is us
ing jsautocompartment.
... leave a the compartment, return
ing to the compartment active before the correspond
ing js_entercompartment.
... syntax void js_leavecompartment(jscontext *cx, jscompartment *oldcompartment); name type description cx jscontext * the context
in which to leave the compartment.
...any access to an object
in a different compartment must be bracketed by calls to js_entercompartment and js_leavecompartment.
JS_Lock
obsolete s
ince jsapi 12this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
... syntax void js_lock(jsruntime *rt); name type description rt jsruntime * po
inter to the runtime to lock.
JS_ObjectIsDate
this article covers features
introduced
in spidermonkey 1.8.5 determ
ines if a specified object is a date object.
... syntax bool js_objectisdate(jscontext *cx, js::handleobject obj); name type description cx jscontext * po
inter to a javascript context from which to derive runtime
information.
...
in a js_threadsafe build, the caller must be
in a request on this jscontext.
... description js_objectisdate() can be used to check if you are deal
ing with a date object, or a date object used across compartments (or w
indows or sites,
in the browser embedd
ing).
JS_ReportOutOfMemory
syntax void js_reportoutofmemory(jscontext *cx); void js_reportallocationoverflow(jscontext *cx); // added
in spidermonkey 1.8 name type description cx jscontext * the context
in which to report the error.
...when the javascript eng
ine tries to allocate memory and allocation fails, it reports an error as though by call
ing this function.
...when a script tries to grow an array beyond 230-1 elements, for example, or concatenate str
ings such that the result is more than 229-1 characters long, the javascript eng
ine reports an error as though by call
ing this function.
... see js_reporterror and js_seterrorreporter for more
information about error handl
ing
in the jsapi.
JS_ScheduleGC
this article covers features
introduced
in spidermonkey 17 set nextscheduled parameter of gc.
... syntax void js_schedulegc(jscontext *cx, u
int32_t count); name type description cx jscontext * a context.
... frequency u
int32_t the value of nextscheduled parameter of gc.
... at this po
int, if zeal is one of the types that trigger periodic collection, then nextscheduled is reset to the value of frequency.
JS_SetDestroyCompartmentCallback
this article covers features
introduced
in spidermonkey 17 set the callback function for each compartment be
ing destroyed.
... callback jsdestroycompartmentcallback callback function which will be called for each compartment be
ing destroyed (see below).
... compartmentcallback jscompartment * the po
inter to the compartment which is to be destroyed.
... description js_setdestroycompartmentcallback sets callback function which will be called when sweep
ing each compartment of the runtime, before delet
ing the compartment.
JS_SetICUMemoryFunctions
sets the memory allocation and deallocation functions used by the icu
internationalization library.
... description js_seticumemoryfunctions sets the allocator functions used by the icu
internationalization library.
... it must be called before js_
init.
... only use this function if you know what you are do
ing!
JS_Unlock
obsolete s
ince jsapi 12this feature is obsolete.
... although it may still work
in some browsers, its use is discouraged s
ince it could be removed at any time.
... try to avoid us
ing it.
...syntax void js_unlock(jsruntime *rt); name type description rt jsruntime * po
inter to the runtime to unlock.
JS_freeop
this article covers features
introduced
in spidermonkey 17 a wrapper for js_free.
... syntax void js_freeop(jsfreeop *fop, void *p); name type description fop jsfreeop * a po
inter to jsfreeop structure to be used to get the implementation of free.
... p void * a po
inter to the allocated memory to be freed.
... description js_freeop is a wrapper for js_free(p) that may delay js_free(p)
invocation as a performance optimization as specified by the given jsfreeop
instance.
JS_updateMallocCounter
this article covers features
introduced
in spidermonkey 17 decrement malloc counter.
... syntax void js_updatemalloccounter(jscontext *cx, size_t nbytes); name type description cx jscontext * po
inter to a js context to decrement the malloc counter.
... malloc counter measures memory pressure for gc schedul
ing.
...maxmallocbytes is
initialized with maxbytes parameter of js_newruntime, and could be configured later by call
ing js_getgcparameter with jsgc_max_malloc_bytes.
TPS Formdata Lists
a formdata asset list is an array of objects, each with the follow
ing properties: fieldname: required.
... date: the date the form data was used, expressed
in hours from the present, so 0 means now, and -24 means 24 hours ago.
... for example: var formdata1 = [ { fieldname: "test
ing", value: "success", date: -1 }, { fieldname: "test
ing", value: "failure", date: -2 }, { fieldname: "username", value: "joe" } ]; formdata lists and phase actions you can use the follow
ing functions
in phase actions for formdata lists: formdata.add formdata.delete formdata.verify formdata.verifynot for an example, see the tps formdata unittest: http://hg.mozilla.org/services/tps/f...st_formdata.js notes note 1, tps supports the delete action for formdata, but sync currently does not correctly sync deleted form data, see bug 564296.
... note 2, sync currently does not sync formdata dates, so the date field is ignored when perform
ing verify and verify-not actions.
Zest implementation
the first version of zest has been released but is
intentionally very basic.
... future versions of zest are planned which will significantly
increase the scope of the language.
... the first version is aimed at creat
ing scripts for reproduc
ing basic security vulnerabilities
includes a java reference implementation, which conforms to jsr 223 has been
included
in a proof-of-concept owasp zap add-on the next version is underdevelopment - more details soon.
... related l
inks zest overview ...
Zest runtimes
as zest is written
in json it requires a runtime
in order to be evaluated.
... the follow
ing runtimes are available: java https://github.com/mozilla/zest - this is the reference implementation the follow
ing runtimes are planned or an an early stage of implementation: https://github.com/mozilla/zest/tree/master/js javascript https://github.com/darkowlzz/zest-runner https://github.com/darkowlzz/zest-cli - this is the zest-cli of js based runner.
... python no code available yet if you are
interested
in work
ing on an exist
ing or new zest runtime then please get
in touch via the zest group.
... related l
inks zest overview ...
Resources
« previous this last section of the book provides a list of resources referred to
in the tutorial and other l
inks that may be useful to the gecko developer.
... weblock resources weblock
installer and
information the sdk download l
inux: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.4a/gecko-sdk-i686-pc-l
inux-gnu-1.4a.tar.gz w
indows: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.4a/gecko-sdk-w
in32-1.4a.zip other mozilla downloads gecko resources
internal str
ing guide external str
ing guide the gecko network
ing library ("necko") the netscape portable runtime environment embedd
ing mozilla current module owners xp
install xul xpcom resources the xpcom project page xulplanet's onl
ine xpcom reference
information on xpconnect and scriptable components the smart po
inter guide xpidl xpidl compiler reference general development resources the world wide web consortium url specification at the w3 gnu...
...this material may be distributed only subject to the terms and conditions set forth
in the open publication license, v1.02 or later.
...distribution of the work or derivative of the work
in any standard (paper) book form is prohibited unless prior permission is obta
ined from the copyright holder.
CSSUnitValue.value - Web APIs
the cssunitvalue.value property of the cssunitvalue
interface returns a double
indicat
ing the number of units.
... examples the follow
ing creates a csspositionvalue from
individual cssunitvalue constructors, then queries the cssunitvalue.value.
... let pos = new csspositionvalue( new cssunitvalue( 5, "px" ), new cssunitvalue( 10, "px" )); console.log( pos.x.value ); // 5 console.log( pos.y.value ); // 10 specifications specification status comment css typed om level 1the def
inition of 'cssunitvalue.value'
in that specification.
... work
ing draft
initial def
inition.
CSSUnparsedValue.length - Web APIs
the length read-only property of the cssunparsedvalue
interface returns the number of items
in the object.
... syntax var length = cssunparsedvalue.length; value an
integer.
... examples
in this example we employ the cssunparsedvalue.cssunparsedvalue() constructor, then query the length: let values = new cssunparsedvalue( ['1em', '#445566', '-45px'] ); console.log( values.length ) // 3 specifications specification status comment css typed om level 1the def
inition of 'length'
in that specification.
... work
ing draft
initial def
inition.
CSSValue.cssText - Web APIs
the csstext property of the cssvalue
interface represents the current computed css property value.
... syntax csstext = cssvalue.csstext; value a domstr
ing represent
ing the current css property value.
... example var styledeclaration = document.stylesheets[0].cssrules[0].style; var cssvalue = styledeclaration.getpropertycssvalue("color"); console.log(cssvalue.csstext); specifications specification status comment document object model (dom) level 2 style specificationthe def
inition of 'cssvalue.csstext'
in that specification.
... obsolete
initial def
inition ...
CSSVariableReferenceValue.variable - Web APIs
the variable property of the cssvariablereferencevalue
interface returns the custom property name of the cssvariablereferencevalue.
... syntax var variable = cssvariablereferencevalue.variable; value a usvstr
ing beg
inn
ing with -- (that is, a custom property name).
... specifications specification status comment css typed om level 1the def
inition of 'variable'
in that specification.
... work
ing draft ...
ChildNode.remove() - Web APIs
syntax node.remove(); example us
ing remove() <div id="div-01">here is div-01</div> <div id="div-02">here is div-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.
... see symbol.unscopables for more
information.
... with(node) { remove(); } // referenceerror: remove is not def
ined polyfill you can polyfill the remove() method
in internet explorer 9 and higher with the follow
ing code: // from:https://github.com/jserz/js_piece/blob/master/dom/childnode/remove()/remove().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('remove')) { return; } object.def
ineproperty(item, 'remove', { configurable: true, enumerable: true, writable: true, value: function remove() { this.parentnode.removechild(this); } }); }); })([element.prototype, characterdata.prototype, documenttype.prototype]); specifications specification status comment domthe def
inition of 'childnode.remove'
in that specification...
... liv
ing standard
initial def
inition.
Client.url - Web APIs
the url read-only property of the client
interface returns the url of the current service worker client.
... syntax var clienturl = client.url; value a usvstr
ing.
... example self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: 'w
indow' }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus'
in client) return client.focus(); } if (clients.openw
indow) return clients.openw
indow('/'); })); }); specifications specification status comment service workersthe def
inition of 'url'
in that specification.
... work
ing draft
initial def
inition.
ClipboardEvent.clipboardData - Web APIs
the clipboardevent.clipboarddata property holds a datatransfer object, which can be used: to specify what data should be put
into the clipboard from the cut and copy event handlers, typically with a setdata(format, data) call; to obta
in the data to be pasted from the paste event handler, typically with a getdata(format) call.
... see the cut, copy, and paste events documentation for more
information.
... syntax data = clipboardevent.clipboarddata specifications specification status comment clipboard api and eventsthe def
inition of 'clipboardevent.clipboarddata'
in that specification.
... work
ing draft
initial def
inition.
Credential - Web APIs
the credential
interface of the the credential management api provides
information about an entity as a prerequisite to a trust decision.
... properties credential.id read only returns a domstr
ing conta
ining the credential's identifier.
... credential.type read only returns a domstr
ing conta
ining the credential's type.
... examples // tbd specifications specification status comment credential management level 1 work
ing draft
initial def
inition.
CustomElementRegistry.get() - Web APIs
the get() method of the customelementregistry
interface returns the constructor for a previously-def
ined custom element.
... return value the constructor for the named custom element, or undef
ined if there is no custom element def
inition with that name.
... examples customelements.def
ine('my-paragraph', class extends htmlelement { constructor() { super(); let template = document.getelementbyid('my-paragraph'); let templatecontent = template.content; const shadowroot = this.attachshadow({mode: 'open'}) .appendchild(templatecontent.clonenode(true)); } }) // return a reference to the my-paragraph constructor let ctor = customelements.get('my-paragraph'); specifications specification status comment html liv
ing standardthe def
inition of 'customelements.get()'
in that specification.
... liv
ing standard
initial def
inition.
DOMImplementationList - Web APIs
can be iterated with 0-based
index.
... properties domimplementationlist.length read only returns an
integer.
... specifications specification status comment document object model (dom) level 3 core specificationthe def
inition of 'domimplementationlist'
in that specification.
... obsolete
initial def
inition.
DOMMatrix() - Web APIs
syntax var dommatrix = new dommatrix([
init]) parameters
init optional a str
ing conta
ining a sequence of numbers or an array of numbers specify
ing the matrix you want to create, or a css transform str
ing.
... example this example creates a dommatrix to use as an argument for call
ing po
int.matrixtransform().
... var po
int = new dompo
int(5, 4); var scalex = 2; var scaley = 3; var translatex = 12; var translatey = 8; var angle = math.pi / 2; var matrix = new dommatrix([ math.s
in(angle) * scalex, math.cos(angle) * scalex, -math.s
in(angle) * scaley, math.cos(angle) * scaley, translatex, translatey ]); var transformedpo
int = po
int.matrixtransform(matrix); specifications specification status comment geometry
interfaces module level 1the def
inition of 'dommatrix'
in that specification.
... candidate recommendation
initial def
inition.
DOMRect.DOMRect() - Web APIs
syntax var mydomrect = new domrect(x, y, width, height); parameters x the x coord
inate of the domrect's orig
in.
... y the y coord
inate of the domrect's orig
in.
... examples to create a new domrect, you could run a l
ine of code like so: mydomrect = new domrect(0,0,100,100); // runn
ing 'mydomrect'
in the console would then return // domrect { x: 0, y: 0, width: 100, height: 100, top: 0, right: 100, bottom: 100, left: 0 } specifications specification status comment geometry
interfaces module level 1the def
inition of 'domrect()'
in that specification.
... candidate recommendation
initial def
inition.
DOMRectReadOnly() - Web APIs
syntax const mydomrectreadonly = new domrectreadonly(x, y, width, height) parameters x the x coord
inate of the domrectreadonly's orig
in.
... y the y coord
inate of the domrectreadonly's orig
in.
... examples to create a new dompo
int, you could run a l
ine of code like so: const mydomrect = new domrectreadonly(0, 0, 100, 100) // runn
ing 'mydomrect'
in the console would then return // domrect { x: 0, y: 0, width: 100, height: 100, top: 0, right: 100, bottom: 100, left: 0 } specifications specification status comment geometry
interfaces module level 1the def
inition of 'domrectreadonly()'
in that specification.
... candidate recommendation
initial def
inition.
DOMTokenList.value - Web APIs
the value property of the domtokenlist
interface is a str
ingifier that returns the value of the list as a domstr
ing, or clears and sets the list to the given value.
... syntax tokenlist.value; value a domstr
ing examples
in the follow
ing example we retrieve the list of classes set on a <span> element as a domtokenlist us
ing element.classlist, then write the value of the list to the <span>'s node.textcontent.
... first, the html: <span class="a b c"></span> now the javascript: let span = document.queryselector("span"); let classes = span.classlist; span.textcontent = classes.value; the output looks like this: specifications specification status comment domthe def
inition of 'value'
in that specification.
... liv
ing standard
initial def
inition ...
DataTransfer.mozItemCount - Web APIs
the datatransfer.mozitemcount property returns the number of items be
ing dragged.
... this can be used, for example, to get the number of files be
ing dragged.
... syntax datatransfer.mozitemcount; return value a number represent
ing the number of items be
ing dragged.
... function drop_handler(event) { var files = []; var dt = event.datatransfer; for (var i = 0; i < dt.mozitemcount; i++) files.push(dt.mozgetdataat("application/x-moz-file", i)); } specifications this property is not def
ined
in any web standard.
Document: cut event - Web APIs
the cut event is fired when the user has
initiated a "cut" action through the browser's user
interface.
... bubbles yes cancelable yes
interface clipboardevent event handler property oncut the orig
inal target for this event is the element that was the
intended target of the cut action.
... you can listen for this event on the document
interface to handle it
in the capture or bubbl
ing phases.
... examples document.addeventlistener('cut', (event) => { console.log('cut action
initiated') }); specifications specification status clipboard api and events work
ing draft ...
Document: dragend event - Web APIs
the dragend event is fired when a drag operation is be
ing ended (by releas
ing a mouse button or hitt
ing the escape key).
... bubbles yes cancelable no default action varies
interface dragevent event handler property ondragend examples see the drag event for example code or this jsfiddle demo.
... specifications specification status comment html liv
ing standardthe def
inition of 'dragend'
in that specification.
... liv
ing standard ...
Document: dragenter event - Web APIs
the target object is the immediate user selection (the element directly
indicated by the user as the drop target), or the <body> element.
...
interface dragevent event handler property ondragenter examples see the drag event for example code or this jsfiddle demo.
... specifications specification status comment html liv
ing standardthe def
inition of 'dragenter'
in that specification.
... liv
ing standard ...
Document: dragover event - Web APIs
the dragover event is fired when an element or text selection is be
ing dragged over a valid drop target (every few hundred milliseconds).
...
interface dragevent event handler property ondragover examples see the drag event for example code or this jsfiddle demo.
... specifications specification status comment html liv
ing standardthe def
inition of 'dragover'
in that specification.
... liv
ing standard ...
Document.fgColor - Web APIs
syntax var color = document.fgcolor; document.fgcolor = color; parameters color is a str
ing represent
ing the color as a word (e.g., "red") or hexadecimal value (e.g., "#ff0000").
... example document.fgcolor = "white"; document.bgcolor = "darkblue"; notes the default value for this property
in mozilla firefox is black (#000000
in hexadecimal).
... document.fgcolor is deprecated
in dom level 2 html.
... another alternative is document.body.text, although this is deprecated
in html 4.01
in favor of the css alternative above.
Document: keydown event - Web APIs
bubbles yes cancelable yes
interface keyboardevent event handler property onkeydown the keydown and keyup events provide a code
indicat
ing which key is pressed, while keypress
indicates which character was entered.
... s
ince firefox 65, the keydown and keyup events are now fired dur
ing ime composition, to improve cross-browser compatibility for cjkt users (bug 354358, also see keydown and keyup events are now fired dur
ing ime composition for more useful details).
... to ignore all keydown events that are part of composition, do someth
ing like this (229 is a special value set for a keycode relat
ing to an event that has been processed by an ime): eventtarget.addeventlistener("keydown", event => { if (event.iscompos
ing || event.keycode === 229) { return; } // do someth
ing }); examples addeventlistener keydown example this example logs the keyboardevent.code value whenever you press down a key.
...by click
ing
in it), then try press
ing some keys.</p> <p id="log"></p> document.addeventlistener('keydown', logkey); function logkey(e) { log.textcontent += ` ${e.code}`; } onkeydown equivalent document.onkeydown = logkey; specifications specification status ui events work
ing draft ...
Document: paste event - Web APIs
the paste event is fired when the user has
initiated a "paste" action through the browser's user
interface.
... bubbles yes cancelable yes
interface clipboardevent event handler property onpaste the orig
inal target for this event is the element that was the
intended target of the paste action.
... you can listen for this event on the document
interface to handle it
in the capture or bubbl
ing phases.
... examples document.addeventlistener('paste', (event) => { console.log('paste action
initiated') }); specifications specification status clipboard api and events work
ing draft ...
Document.rootElement - Web APIs
it is deprecated
in favor of document.documentelement, which returns the root element for all documents.
... specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'svgdocument.rootelement'
in that specification.
... candidate recommendation deprecated scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'svgdocument.rootelement'
in that specification.
... recommendation
initial def
inition ...
Document.scripts - Web APIs
the scripts property of the document
interface returns a list of the <script> elements
in the document.
...you can use this just like an array to get all the elements
in the list.
... let scripts = document.scripts; if (scripts.length) { alert('this page has scripts!'); } specifications specification status comment html liv
ing standardthe def
inition of 'document.scripts'
in that specification.
... liv
ing standard ...
Element: DOMActivate event - Web APIs
the domactivate event is fired at an element when it becomes active, such as when it is clicked on us
ing the mouse or a keypress is used to navigate to it.
... bubbles yes cancelable yes
interface mouseevent examples <svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseprofile="t
iny" xmlns:ev="http://www.w3.org/2001/xml-events" width="6cm" height="5cm" viewbox="0 0 600 500"> <desc>example:
invoke an ecmascript function from a domactivate event</desc> <!-- ecmascript to change the radius --> <script type="application/ecmascript"><![cdata[ function change(evt) { var circle = evt.target; var currentradius = circle.getfloattrait("r"); if (currentradius == 100) circle.setfloattrait("r", currentradius * 2); else circle.setfloattrait("r", currentradius * 0.5); } ]]></script> <!-- act on each domactivate event --> <circle cx="300" cy=...
..."225" r="100" fill="red"> <handler type="application/ecmascript" ev:event="domactivate"> change(evt); </handler> </circle> <text x="300" y="480" font-family="verdana" font-size="35" text-anchor="middle"> activate the circle to change its size </text> </svg> specifications specification status ui eventsthe def
inition of 'domactivate'
in that specification.
... work
ing draft ...
Element: MSGestureTap event - Web APIs
the msgesturetap event is fired when the user "taps" the po
int
ing device (e.g., touches the touch surface with their f
inger, taps the touch surface with a pen device, clicks with a mouse).
... typically, it's preferable to listen for the click event
instead.
... it is a proprietary event specific to microsoft edge and
internet explorer.
... bubbles unknown cancelable unknown
interface msgestureevent event handler property unknown specifications not part of any specification.
Element: MozMousePixelScroll event - Web APIs
it's represented by the mousescrollevent
interface.
...
instead, you should always use the standard wheel event.
... bubbles yes cancelable yes
interface mousescrollevent gett
ing the distance scrolled the event's detail property
indicates the scroll distance
in terms of l
ines, with negative values
indicat
ing the scroll
ing movement is either toward the bottom or toward the right, and positive values
indicat
ing scroll
ing to the top or left.
... if the platform's native mouse wheel events
indicate the scroll distance
in terms of l
ines or pages, the value of detail is computed us
ing that value and the l
ine height or page width/height of the nearest ancestor scrollable element that conta
ins the target element.
Element: blur event - Web APIs
the ma
in difference between this event and focusout is that focusout bubbles while blur does not.
... bubbles no cancelable no
interface focusevent event handler property onblur sync / async sync composed yes examples simple example html <form id="form"> <
input type="text" placeholder="text
input"> <
input type="password" placeholder="password"> </form> javascript const password = document.queryselector('
input[type="password"]'); password.addeventlistener('focus', (event) => { event.target.style.background = 'p
ink'; }); password.addeventlistener('blur', (event) => { event.target.style.background = ''; }); result event delegation there are two ways of implement
ing event delegation for this event: by us
ing the focusout event, or by sett
ing the usecapture parameter...
... html <form id="form"> <
input type="text" placeholder="text
input"> <
input type="password" placeholder="password"> </form> javascript const form = document.getelementbyid('form'); form.addeventlistener('focus', (event) => { event.target.style.background = 'p
ink'; }, true); form.addeventlistener('blur', (event) => { event.target.style.background = ''; }, true); result specifications specification status comment ui events work
ing draft added
info that this event is composed.
... document object model (dom) level 3 events specification obsolete
initial def
inition ...
Element.createShadowRoot() - Web APIs
use element.createshadowroot to create an
instance of shadow dom.
... when shadow dom is created, it is always attached to an exist
ing element.
... this method has been deprecated
in favor of attachshadow().
... specifications this feature is no longer def
ined by any specifications.
Element: dblclick event - Web APIs
the dblclick event fires when a po
int
ing device button (such as a mouse's primary button) is double-clicked; that is, when it's rapidly clicked twice on a s
ingle element with
in a very short span of time.
... bubbles yes cancelable yes
interface mouseevent event handler property ondblclick examples this example toggles the size of a card when you double click on it.
... javascript const card = document.queryselector('aside'); card.addeventlistener('dblclick', function (e) { card.classlist.toggle('large'); }); html <aside> <h3>my card</h3> <p>double click to resize this object.</p> </aside> css aside { background: #fe9; border-radius: 1em; display:
inl
ine-block; padd
ing: 1em; transform: scale(.9); transform-orig
in: 0 0; transition: transform .6s; } .large { transform: scale(1.3); } result specifications specification status ui eventsthe def
inition of 'dblclick'
in that specification.
... work
ing draft document object model (dom) level 3 events specificationthe def
inition of 'dblclick'
in that specification.
Element: error event - Web APIs
for example, if a script has an execution error or an image can't be found or is
invalid.
... bubbles no cancelable no
interface event or uievent event handler property onerror the event object is a uievent
instance if it was generated from a user
interface element, or an event
instance otherwise.
...tarea readonly class="event-log-contents" rows="8" cols="30"></textarea> </div> css body { display: grid; grid-template-areas: "control log"; } .controls { grid-area: control; display: flex; align-items: center; justify-content: center; } .event-log { grid-area: log; } .event-log-contents { resize: none; } label, button { display: block; } button { height: 2rem; marg
in: .5rem; } img { width: 0; height: 0; } js const log = document.queryselector('.event-log-contents'); const badimg = document.queryselector('.bad-img'); badimg.addeventlistener('error', (event) => { log.textcontent = log.textcontent + `${event.type}: load
ing image\n`; console.log(event) }); const imgerror = document.queryselector('#img-error'); imgerror.addeventlistener('click',...
... () => { badimg.setattribute('src', 'i-dont-exist'); }); result specifications specification status ui events work
ing draft ...
Element: focus event - Web APIs
the ma
in difference between this event and focus
in is that focus
in bubbles while focus does not.
... bubbles no cancelable no
interface focusevent event handler property onfocus sync / async sync composed yes examples simple example html <form id="form"> <
input type="text" placeholder="text
input"> <
input type="password" placeholder="password"> </form> javascript const password = document.queryselector('
input[type="password"]'); password.addeventlistener('focus', (event) => { event.target.style.background = 'p
ink'; }); password.addeventlistener('blur', (event) => { event.target.style.background = ''; }); result event delegation there are two ways of implement
ing event delegation for this event: by us
ing the focus
in event, or by sett
ing the usecapture parameter...
... html <form id="form"> <
input type="text" placeholder="text
input"> <
input type="password" placeholder="password"> </form> javascript const form = document.getelementbyid('form'); form.addeventlistener('focus', (event) => { event.target.style.background = 'p
ink'; }, true); form.addeventlistener('blur', (event) => { event.target.style.background = ''; }, true); result specifications specification status comment ui events work
ing draft added
info that this event is composed.
... document object model (dom) level 3 events specification obsolete
initial def
inition ...
Element: focusout event - Web APIs
the ma
in difference between this event and blur is that focusout bubbles while blur does not.
... the opposite of focusout is focus
in.
... bubbles yes cancelable no
interface focusevent event handler property onfocusout sync / async sync composed yes examples live example html <form id="form"> <
input type="text" placeholder="text
input"> <
input type="password" placeholder="password"> </form> javascript const form = document.getelementbyid('form'); form.addeventlistener('focus
in', (event) => { event.target.style.background = 'p
ink'; }); form.addeventlistener('focusout', (event) => { event.target.style.background = ''; }); result specifications specification status comment ui events work
ing draft added
info that this event is composed.
... document object model (dom) level 3 events specification obsolete
initial def
inition ...
Element.getAttributeNames() - Web APIs
the getattributenames() method of the element
interface returns the attribute names of the element as an array of str
ings.
... us
ing getattributenames() along with getattribute(), is a memory-efficient and performant alternative to access
ing element.attributes.
... syntax let attributenames = element.getattributenames(); example // iterate over element's attributes for (let name of element.getattributenames()) { let value = element.getattribute(name); console.log(name, value); } polyfill if (element.prototype.getattributenames == undef
ined) { element.prototype.getattributenames = function () { var attributes = this.attributes; var length = attributes.length; var result = new array(length); for (var i = 0; i < length; i++) { result[i] = attributes[i].name; } return result; }; } specifications specification status comment domthe def
inition of 'element.getattributenames'
in that specification.
... liv
ing standard
initial def
inition ...
Element: keyup event - Web APIs
bubbles yes cancelable yes
interface keyboardevent event handler property onkeyup the keydown and keyup events provide a code
indicat
ing which key is pressed, while keypress
indicates which character was entered.
... s
ince firefox 65, the keyup and keydown events are now fired dur
ing ime composition, to improve cross-browser compatibility for cjkt users (bug 354358, also see keydown and keyup events are now fired dur
ing ime composition for more useful details).
... to ignore all keyup events that are part of composition, do someth
ing like this (229 is a special value set for a keycode relat
ing to an event that has been processed by an ime): eventtarget.addeventlistener("keyup", event => { if (event.iscompos
ing || event.keycode === 229) { return; } // do someth
ing }); examples addeventlistener keyup example this example logs the keyboardevent.code value whenever you release a key
inside the <
input> element.
... <
input placeholder="click here, then press and release a key." size="40"> <p id="log"></p> const
input = document.queryselector('
input'); const log = document.getelementbyid('log');
input.addeventlistener('keyup', logkey); function logkey(e) { log.textcontent += ` ${e.code}`; } onkeyup equivalent
input.onkeyup = logkey; specifications specification status ui events work
ing draft ...
Element: mouseover event - Web APIs
the mouseover event is fired at an element when a po
int
ing device (such as a mouse or trackpad) is used to move the cursor onto the element or one of its child elements.
... bubbles yes cancelable yes
interface mouseevent event handler property onmouseover examples the follow
ing example illustrates the difference between mouseover and mouseenter events.
... time the cursor // is moved over a different list item test.addeventlistener("mouseover", function( event ) { // highlight the mouseover target event.target.style.color = "orange"; // reset the color after a short delay settimeout(function() { event.target.style.color = ""; }, 500); }, false); result specifications specification status ui eventsthe def
inition of 'mouseover'
in that specification.
... work
ing draft document object model (dom) level 3 events specificationthe def
inition of 'mouseover'
in that specification.
Element.prefix - Web APIs
before dom4 this api was def
ined with
in the node
interface.
... syntax str
ing = element.prefix examples the follow
ing logs "x" to the console.
... specifications specification status comment domthe def
inition of 'element: prefix'
in that specification.
... liv
ing standard ...
Element.removeAttributeNode() - Web APIs
the replac
ing attribute has the same namespace uri and local name, as well as the orig
inal prefix, when applicable.
... dom methods deal
ing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for deal
ing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for deal
ing 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 - specifications specification status comment domthe def
inition of 'eleme...
...nt: removeattributenode'
in that specification.
... liv
ing standard ...
Element: select event - Web APIs
bubbles yes cancelable no
interface uievent if generated from a user
interface, event otherwise event handler property onselect the event is not available for all elements
in all languages.
... for example,
in html, select events can be dispatched only on form <
input type="text"> and <textarea> elements.
... examples selection logger <
input value="try select
ing some text
in this element."> <p id="log"></p> function logselection(event) { const log = document.getelementbyid('log'); const selection = event.target.value.substr
ing(event.target.selectionstart, event.target.selectionend); log.textcontent = `you selected: ${selection}`; } const
input = document.queryselector('
input');
input.addeventlistener('select', logselection); onselect equivalent you can also set up the event handler us
ing the onselect property:
input.onselect = logselection; specifications specification status ui eventsthe def
inition of 'select'
in that specification.
... work
ing draft ...
Event.isTrusted - Web APIs
the istrusted read-only property of the event
interface is a boolean that is true when the event was generated by a user action, and false when the event was created or modified by a script or dispatched via eventtarget.dispatchevent().
... syntax var eventistrusted = event.istrusted; value boolean example if (e.istrusted) { /* the event is trusted */ } else { /* the event is not trusted */ } specification specification status comment domthe def
inition of 'event.istrusted'
in that specification.
... liv
ing standard document object model (dom) level 3 events specificationthe def
inition of 'trusted events'
in that specification.
... obsolete adds requirements regard
ing trusted and untrusted events, though it does not itself def
ine the istrusted property.
EventSource.onerror - Web APIs
the onerror property of the eventsource
interface is an eventhandler called when an error occurs and the error event is dispatched on an eventsource object.
... syntax eventsource.onerror = function examples evtsource.onerror = function() { console.log("eventsource failed."); }; note: you can f
ind a full example on github — see simple sse demo us
ing php.
... specifications specification status comment html liv
ing standardthe def
inition of 'onerror'
in that specification.
... liv
ing standard
initial def
inition ...
EventSource.onmessage - Web APIs
the onmessage property of the eventsource
interface is an eventhandler called when a message event is received, that is when a message is com
ing from the source.
... syntax eventsource.onmessage = function examples evtsource.onmessage = function(e) { var newelement = document.createelement("li"); newelement.textcontent = "message: " + e.data; eventlist.appendchild(newelement); } note: you can f
ind a full example on github — see simple sse demo us
ing php.
... specifications specification status comment html liv
ing standardthe def
inition of 'onmessage'
in that specification.
... liv
ing standard
initial def
inition ...
EventSource.onopen - Web APIs
the onopen property of the eventsource
interface is an eventhandler called when an open event is received, that is when the connection was just opened.
... syntax eventsource.onopen = function examples evtsource.onopen = function() { console.log("connection to server opened."); }; note: you can f
ind a full example on github — see simple sse demo us
ing php.
... specifications specification status comment html liv
ing standardthe def
inition of 'onopen'
in that specification.
... liv
ing standard
initial def
inition ...
EventTarget() - Web APIs
the eventtarget() constructor creates a new eventtarget object
instance.
... return value an
instance of the eventtarget object.
...his._secret; } }; let myeventtarget = new myeventtarget(5); let value = myeventtarget.secret; // == 5 myeventtarget.addeventlistener("foo", function(e) { this._secret = e.detail; }); let event = new customevent("foo", { detail: 7 }); myeventtarget.dispatchevent(event); let newvalue = myeventtarget.secret; // == 7 specifications specification status comment domthe def
inition of 'eventtarget() constructor'
in that specification.
... liv
ing standard ...
ExtendableMessageEvent.data - Web APIs
the data read-only property of the extendablemessageevent
interface returns the event's data.
... examples when the follow
ing code is used
inside a service worker to respond to a push messages by send
ing the data received via pushmessagedata to the ma
in context via a channel message, the event object of onmessage will be a extendablemessageevent.
... var port; self.addeventlistener('push', function(e) { var obj = e.data.json(); if(obj.action === 'subscribe' || obj.action === 'unsubscribe') { port.postmessage(obj); } else if(obj.action === '
init' || obj.action === 'chatmsg') { port.postmessage(obj); } }); self.onmessage = function(e) { console.log(e.data); port = e.ports[0]; } specifications specification status comment service workersthe def
inition of 'extendablemessageevent.data'
in that specification.
... work
ing draft
initial def
inition.
HTMLCanvasElement.transferControlToOffscreen() - Web APIs
the htmlcanvaselement.transfercontroltooffscreen() method transfers control to an offscreencanvas object, either on the ma
in thread or on a worker.
...some draw
ing us
ing the gl context ...
... // push frames back to the orig
inal htmlcanvaselement gl.commit(); specifications specification status comment html liv
ing standardthe def
inition of 'htmlcanvaselement.transfercontroltooffscreen()'
in that specification.
... liv
ing standard ...
HTMLCanvasElement: webglcontextcreationerror event - Web APIs
the webglcontextcreationerror event of the webgl api is fired if the user agent is unable to create a webglrender
ingcontext context.
... this event has a webglcontextevent.statusmessage property, which can conta
in a platform dependent str
ing with more
information about the failure.
... bubbles yes cancelable yes
interface webglcontextevent event handler property none example var canvas = document.getelementbyid('canvas'); canvas.addeventlistener('webglcontextcreationerror', function(e) { console.log(e.statusmessage || 'unknown error'); }, false); var gl = canvas.getcontext('webgl'); // logs statusmessage or "unknown error" if unable to create webgl context specifications specification status comment webgl 1.0the def
inition of 'webglcontextcreationerror'
in that specification.
... recommendation
initial def
inition.
HTMLCanvasElement: webglcontextlost event - Web APIs
the webglcontextlost event of the webgl api is fired if the user agent detects that the draw
ing buffer associated with a webglrender
ingcontext object has been lost.
... bubbles yes cancelable yes
interface webglcontextevent event handler property none example with the help of the webgl_lose_context extension, you can simulate the webglcontextlost event: const canvas = document.getelementbyid('canvas'); const gl = canvas.getcontext('webgl'); canvas.addeventlistener('webglcontextlost', (event) => { console.log(event); }); gl.getextension('webgl_lose_context').losecontext(); // "webglcontextlost" event is logged.
... specifications specification status comment webgl 1.0the def
inition of 'webglcontextlost'
in that specification.
... recommendation
initial def
inition.
HTMLDataElement.value - Web APIs
the value property of the htmldataelement
interface returns a domstr
ing reflect
ing the value html attribute.
... syntax var avalue = htmldataelement.value htmldataelement.value = avalue value a domstr
ing.
... specifications specification status comment html liv
ing standardthe def
inition of 'htmldataelement.value'
in that specification.
... liv
ing standard html5the def
inition of 'value'
in that specification.
HTMLDialogElement: cancel event - Web APIs
the cancel event fires on a <dialog> when the user
instructs the browser that they wish to dismiss the current open dialog.
... bubbles no cancelable yes
interface event event handler oncancel examples live example html <dialog class="example-dialog"> <button class="close" type="reset">close</button> </dialog> <button class="open-dialog">open dialog</button> <div class="result"></div> css button, div { marg
in: .5rem; } js const result = document.queryselector('.result'); const dialog = document.queryselector('.example-dialog'); dialog.addeventlistener('cancel', (event) => { result.textcontent = 'dialog was canceled'; }); const opendialog = document.queryselector('.open-dialog'); opendialog...
...eof dialog.showmodal === 'function') { dialog.showmodal(); result.textcontent = ''; } else { result.textcontent = 'the dialog api is not supported by this browser'; } }); const closebutton = document.queryselector('.close'); closebutton.addeventlistener('click', () => { dialog.close(); }); result specifications specification status html liv
ing standardthe def
inition of 'cancel'
in that specification.
... liv
ing standard ...
HTMLElement: animationend event - Web APIs
if the animation aborts before reach
ing completion, such as if the element is removed from the dom or the animation is removed from the element, the animationend event is not fired.
... bubbles yes cancelable no
interface animationevent event handler property onanimationend examples this example gets an element that's be
ing animated and listens for the animationend event: const animated = document.queryselector('.animated'); animated.addeventlistener('animationend', () => { console.log('animation ended'); }); the same, but us
ing the onanimationend event handler property: const animated = document.queryselector('.animated'); animated.onanimationend = () => { console.log('animation ended'); }; live example html <div class="animation-example"> <div class="conta
iner"> <p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate...
... animation</button> <div class="event-log"></div> </div> css .conta
iner { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; marg
in: .2rem; padd
ing: .2rem; } .animation.active { animation-duration: 2s; animation-name: slide
in; animation-iteration-count: 2; } @keyframes slide
in { from { marg
in-left: 100%; width: 300%; } to { marg
in-left: 0%; width: 100%; } } js const animation = document.queryselector('p.animation'); const animationeventlog = document.queryselector('.animation-example>.event-log'); const applyanimation = document.queryselector('.animation-example>button.activate'); let iterationcount = 0; animation.addeventlistener('animationstart', () => { animationeventlog.textcontent = `${animationeve...
...'); applyanimation.textcontent = "activate animation"; }); animation.addeventlistener('animationcancel', () => { animationeventlog.textcontent = `${animationeventlog.textcontent}'animation canceled'`; }); applyanimation.addeventlistener('click', () => { animation.classlist.toggle('active'); animationeventlog.textcontent = ''; iterationcount = 0; let active = animation.classlist.conta
ins('active'); if (active) { applyanimation.textcontent = "cancel animation"; } else { applyanimation.textcontent = "activate animation"; } }); result specifications specification status comment css animations work
ing draft
initial def
inition ...
HTMLElement: animationiteration event - Web APIs
the animationiteration event is fired when an iteration of a css animation ends, and another one beg
ins.
... bubbles yes cancelable no
interface animationevent event handler property onanimationiteration examples this code uses animationiteration to keep track of the number of iterations an animation has completed: const animated = document.queryselector('.animated'); let iterationcount = 0; animated.addeventlistener('animationiteration', () => { iterationcount++; console.log(`animation iteration count: ${iterationcount}`); }); the same, but us
ing the onanimationiteration event handler property: const animated = document.queryselector('.animated'); let iterationcount = 0; anima...
...ted.onanimationiteration = () => { iterationcount++; console.log(`animation iteration count: ${iterationcount}`); }; live example html <div class="animation-example"> <div class="conta
iner"> <p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate animation</button> <div class="event-log"></div> </div> css .conta
iner { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; marg
in: 0.2rem; padd
ing: 0.2rem; } .animation.active { animation-duration: 2s; animation-name: slide
in; animation-iteration-count: 2; } @keyframes slide
in { from { transform: translatex(100%) scalex(3); } to { transform: translatex(0) scalex(1); } } js const...
...'); applyanimation.textcontent = "activate animation"; }); animation.addeventlistener('animationcancel', () => { animationeventlog.textcontent = `${animationeventlog.textcontent}'animation canceled'`; }); applyanimation.addeventlistener('click', () => { animation.classlist.toggle('active'); animationeventlog.textcontent = ''; iterationcount = 0; let active = animation.classlist.conta
ins('active'); if (active) { applyanimation.textcontent = "cancel animation"; } else { applyanimation.textcontent = "activate animation"; } }); result specifications specification status comment css animations work
ing draft
initial def
inition ...
HTMLElement: animationstart event - Web APIs
a negative delay will cause the event to fire with an elapsedtime equal to the absolute value of the delay (and, correspond
ingly, the animation will beg
in play
ing at that time
index
into the sequence).
... bubbles yes cancelable no
interface animationevent event handler property onanimationstart examples this listens for the animationstart event and logs a message when it is fired: const animated = document.queryselector('.animated'); animated.addeventlistener('animationstart', () => { console.log('animation started'); }); the same, but us
ing onanimationstart: const animated = document.queryselector('.animated'); animated.onanimationstart = () => { console.log('animation started'); }; live example html <div class="animation-example"> <div class="conta
iner"> <p class="animation">you chose a cold night to visit our planet.</p> </div> <button class="activate" type="button">activate animation</button> <...
...div class="event-log"></div> </div> css .conta
iner { height: 3rem; } .event-log { width: 25rem; height: 2rem; border: 1px solid black; marg
in: 0.2rem; padd
ing: 0.2rem; } .animation.active { animation-duration: 2s; animation-name: slide
in; animation-iteration-count: 2; } @keyframes slide
in { from { transform: translatex(100%) scalex(3); } to { transform: translatex(0) scalex(1); } } js const animation = document.queryselector('p.animation'); const animationeventlog = document.queryselector('.animation-example>.event-log'); const applyanimation = document.queryselector('.animation-example>button.activate'); let iterationcount = 0; animation.addeventlistener('animationstart', () => { animationeventlog.textcontent = `${animationeventlog.textcontent}'...
...'); applyanimation.textcontent = "activate animation"; }); animation.addeventlistener('animationcancel', () => { animationeventlog.textcontent = `${animationeventlog.textcontent}'animation canceled'`; }); applyanimation.addeventlistener('click', () => { animation.classlist.toggle('active'); animationeventlog.textcontent = ''; iterationcount = 0; let active = animation.classlist.conta
ins('active'); if (active) { applyanimation.textcontent = "cancel animation"; } else { applyanimation.textcontent = "activate animation"; } }); result specifications specification status comment css animations work
ing draft
initial def
inition ...
HTMLElement: transitionrun event - Web APIs
bubbles yes cancelable no
interface transitionevent event handler property ontransitionrun examples this code adds a listener to the transitionrun event: el.addeventlistener('transitionrun', () => { console.log('transition is runn
ing but hasn\'t necessarily started transition
ing yet'); }); the same, but us
ing the ontransitionrun property
instead of addeventlistener(): el.ontransitionrun = () => { console.log('transition started runn
ing, and will start transition
ing when the transition delay has expired'); }; live example
in the follow
ing example, we have a simple <div> element, styled with a transiti...
...on that
includes a delay: <div class="transition">hover over me</div> <div class="message"></div> .transition { width: 100px; height: 100px; background: rgba(255,0,0,1); transition-property: transform, background; transition-duration: 2s; transition-delay: 1s; } .transition:hover { transform: rotate(90deg); background: rgba(255,0,0,0); } to this, we'll add some javascript to
indicate where the transitionstart and transitionrun events fire.
... specifications specification status comment css transitionsthe def
inition of 'transitionrun'
in that specification.
... work
ing draft ...
HTMLElement: transitionstart event - Web APIs
bubbles yes cancelable no
interface transitionevent event handler property ontransitionstart examples this code adds a listener to the transitionstart event: element.addeventlistener('transitionstart', () => { console.log('started transition
ing'); }); the same, but us
ing the ontransitionstart property
instead of addeventlistener(): element.ontransitionrun = () => { console.log('started transition
ing'); }; live example
in the follow
ing example, we have a simple <div> element, styled with a transition that
includes a delay: <div class="transition">hover over me</div> <div class="message"></div> ...
....transition { width: 100px; height: 100px; background: rgba(255,0,0,1); transition-property: transform, background; transition-duration: 2s; transition-delay: 1s; } .transition:hover { transform: rotate(90deg); background: rgba(255,0,0,0); } to this, we'll add some javascript to
indicate where the transitionstart and transitionrun events fire.
... specifications specification status comment css transitionsthe def
inition of 'transitionstart'
in that specification.
... work
ing draft
initial def
inition.
HTMLFontElement.face - Web APIs
the obsolete htmlfontelement.face property is a domstr
ing that reflects the face html attribute, conta
ining a comma-separated list of one or more font names.
... the document text,
in the default style, is rendered as the first font face that the client's browser supports.
... if no font listed is
installed on the local system, the browser typically defaults to the proportional or fixed-width font for that system.
... the format of the str
ing must follow one of the follow
ing html microsyntax: microsyntax description examples list of one or more valid font family names a list of font names, that have to be present on the local system courier,verdana syntax facestr
ing = fontobj.face; fontobj.face = facestr
ing; examples // assumes there is <font id="f"> element
in the html var f = document.getelementbyid("f"); f.face = "arial"; specifications the <font> tag is not supported
in html5 and as a result neither is <font>.face .
HTMLFormElement: formdata event - Web APIs
the formdata event fires after the entry list represent
ing the form's data is constructed.
... this happens when the form is submitted, but can also be triggered by the
invocation of a formdata() constructor.
... general
info bubbles no cancelable no
interface formdataevent event handler property globaleventhandlers.onformdata examples // grab reference to form const formelem = document.queryselector('form'); // submit handler formelem.addeventlistener('submit', (e) => { // on form submission, prevent default e.preventdefault(); // construct a formdata object, which fires the formdata event new formdata(formelem); }); // formdata handler to retrieve data formelem.addeventlistener('formdata', (e) => { console.log('formdata fired'); // get the form data from the event object let data = e.formdata; for (var value of data.values()) { console.log(value); } // submit the data via xhr var request = new xmlhttpreques...
...data = (e) => { console.log('formdata fired'); // get the form data from the event object let data = e.formdata; for (var value of data.values()) { console.log(value); } // submit the data via xhr var request = new xmlhttprequest(); request.open("post", "/formhandler"); request.send(data); }; specifications specification status comment html liv
ing standardthe def
inition of 'formdata'
in that specification.
HTMLFormElement.reset() - Web APIs
this method does the same th
ing as click
ing the form's reset button.
...it does not reset other attributes
in the
input, such as disabled.
... syntax htmlformelement.reset() example document.getelementbyid('myform').reset(); specifications specification status comment html liv
ing standardthe def
inition of 'htmlformelement: reset'
in that specification.
... liv
ing standard ...
HTMLLabelElement.control - Web APIs
the read-only htmllabelelement.control property returns a reference to the control (
in the form of an object of type htmlelement or one of its derivatives) with which the <label> element is associated, or null if the label isn't associated with a control.
... syntax control = htmllabelelement.control value an htmlelement derived object represent
ing the control with which the <label> is associated, or null if the label stands alone.
... specifications specification status comment html liv
ing standardthe def
inition of 'control'
in that specification.
... liv
ing standard
initial def
inition ...
HTMLLabelElement.form - Web APIs
the read-only htmllabelelement.form property returns an htmlformelement object which represents the form of which the label's associated control is a part, or null if there is either no associated control, or if that control isn't
in a form.
...if control is null (mean
ing the label isn't associated with a control), or if the control isn't part of a form, this property returns null.
... specifications specification status comment html liv
ing standardthe def
inition of 'form'
in that specification.
... liv
ing standard
initial def
inition ...
HTMLMediaElement: canplay event - Web APIs
the canplay event is fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without hav
ing to stop for further buffer
ing of content.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.oncanplay specification html5 media examples these examples add an event listener for the htmlmediaelement's canplay event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('canplay', (event) => { console.log('video can start, but not sure it will play through.'); }); us
ing the oncanplay event handler property: const video = document.queryselector('video'); video.oncanplay = (event) => { console.log('video can start, but not sure it will play through.'); }; specifications specification status html liv
ing standardthe def
inition of 'canplay media event'
in that specification.
... liv
ing standard html5the def
inition of 'canplay media event'
in that specification.
HTMLMediaElement: canplaythrough event - Web APIs
the canplaythrough event is fired when the user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without hav
ing to stop for further buffer
ing of content.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.oncanplaythrough specification html5 media examples these examples add an event listener for the htmlmediaelement's canplaythrough event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('canplaythrough', (event) => { console.log('i th
ink i can play through the entire ' + ' video without ever hav
ing to stop to buffer.'); }); us
ing the oncanplaythrough event handler property: const video = document.queryselector('video'); video.oncanplaythrough = (event) => { console.log('i th
ink i can play thru the entire ' + ' video without ever hav
ing to stop to buffer.'); }; specifications specification status html liv
ing standardthe def
inition of 'canplaythrough media event'
in that specification.
... liv
ing standard html5the def
inition of 'canplaythrough media event'
in that specification.
HTMLMediaElement.controls - Web APIs
the htmlmediaelement.controls property reflects the controls html attribute, which controls whether user
interface controls for play
ing the media item will be displayed.
... example var obj = document.createelement('video'); obj.controls = true; specifications specification status comment html liv
ing standardthe def
inition of 'htmlmediaelement.controls'
in that specification.
... liv
ing standard no change from html5 html5the def
inition of 'htmlmediaelement.controls'
in that specification.
... recommendation
initial def
inition.
HTMLMediaElement.controlsList - Web APIs
the controlslist property of the htmlmediaelement
interface returns a domtokenlist that helps the user agent select what controls to show on the media element whenever the user agent shows its own set of controls.
... specifications specification status comment controls list api: solution outl
ine browser compatibility the compatibility table on this page is generated from structured data.
... desktopmobilechromeedgefirefox
internet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung
internetcontrolslistchrome full support 58edge full support ≤79firefox ?
... samsung
internet android full support 7.0legend full support full support compatibility unknown compatibility unknown ...
HTMLMediaElement.defaultMuted - Web APIs
the htmlmediaelement.defaultmuted property reflects the muted html attribute, which
indicates whether the media element's audio output should be muted by default.
... example var videoele = document.createelement('video'); videoele.defaultmuted = true; console.log(videoele.outerhtml); // <video muted=""></video> specifications specification status comment html liv
ing standardthe def
inition of 'htmlmediaelement.defaultmuted'
in that specification.
... liv
ing standard no change from html5 html5the def
inition of 'htmlmediaelement.defaultmuted'
in that specification.
... recommendation
initial def
inition.
HTMLMediaElement.disableRemotePlayback - Web APIs
the htmlmediaelement.disableremoteplayback property determ
ines whether the media element is allowed to have a remote playback ui.
... syntax var remoteplaybackdisabled = element.disableremoteplayback; value a boolean
indicat
ing whether the media element may have a remote playback ui.
... (false means "not disabled", which means "enabled") example var obj = document.createelement('audio'); obj.disableremoteplayback = true; specifications specification status comment remote playback apithe def
inition of 'disableremoteplayback'
in that specification.
... candidate recommendation
initial def
inition.
HTMLMediaElement.ended - Web APIs
the htmlmediaelement.ended
indicates whether the media element has ended playback.
... syntax var isended = htmlmediaelement.ended value a boolean which is true if the media conta
ined
in the element has f
inished play
ing.
... example var obj = document.createelement('video'); console.log(obj.ended); // false specifications specification status comment html liv
ing standardthe def
inition of 'htmlmediaelement.ended'
in that specification.
... liv
ing standard html5the def
inition of 'htmlmediaelement.ended'
in that specification.
HTMLMediaElement: ended event - Web APIs
the ended event is fired when playback or stream
ing has stopped because the end of the media was reached or because no further data is available.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onended specification html5 media this event is also def
ined
in media capture and streams and web audio api examples these examples add an event listener for the htmlmediaelement's ended event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('ended', (event) => { console.log('video stopped either because 1) it was over, ' + 'or 2) no further data is available.'); }); us
ing the onended event handler property: const video = document.queryselector('video'); video.onended = (event) => { console.log('video stopped either because 1) it was over, ' + 'or 2) no further data is available.'); }; specifications specification status html liv
ing standardthe def
inition of 'ended media event'
in that specification.
... liv
ing standard html5the def
inition of 'ended media event'
in that specification.
HTMLMediaElement.error - Web APIs
when an error event is received by the element, you can determ
ine details about what happened by exam
ining this object.
... syntax var myerror = htmlmediaelement.error; value a mediaerror object describ
ing the most recent error to occur on the media element or null if no errors have occurred.
... var videoelement = document.createelement('video'); videoelement.onerror = function() { console.log("error " + videoelement.error.code + "; details: " + videoelement.error.message); } videoelement.src = "https://example.com/bogusvideo.mp4"; specifications specification status comment html liv
ing standardthe def
inition of 'htmlmediaelement.error'
in that specification.
... liv
ing standard html5the def
inition of 'htmlmediaelement.error'
in that specification.
HTMLMediaElement.mediaGroup - Web APIs
the htmlmediaelement.mediagroup property reflects the mediagroup html attribute, which
indicates the name of the group of elements it belongs to.
... value a domstr
ing.
... specifications specification status comment html5the def
inition of 'htmlmediaelement.mediagroup'
in that specification.
... recommendation
initial def
inition.
msClearEffects - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... the mscleareffects method of the htmlmediaelement, is a proprietary method specific to
internet explorer and microsoft edge.
... mscleareffects clears all effects from the media pipel
ine.
HTMLMediaElement.playbackRate - Web APIs
the htmlmediaelement.playbackrate property sets the rate at which the media is be
ing played back.
...the normal playback rate is multiplied by this value to obta
in the current rate, so a value of 1.0
indicates normal speed.
...(default: 1.0) example var obj = document.createelement('video'); console.log(obj.playbackrate); // expected output: 1 specifications specification status comment html liv
ing standardthe def
inition of 'htmlmediaelement.playbackrate'
in that specification.
... liv
ing standard html5the def
inition of 'htmlmediaelement.playbackrate'
in that specification.
HTMLMediaElement: seeked event - Web APIs
the seeked event is fired when a seek operation completed, the current playback position has changed, and the boolean seek
ing attribute is changed to false.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onseeked specification html5 media examples these examples add an event listener for the htmlmediaelement's seeked event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('seeked', (event) => { console.log('video found the playback position it was look
ing for.'); }); us
ing the onseeked event handler property: const video = document.queryselector('video'); video.onseeked = (event) => { console.log('video found the playback position it was look
ing for.'); }; specifications specification status html liv
ing standardthe def
inition of 'seeked media event'
in that specification.
... liv
ing standard html5the def
inition of 'seeked media event'
in that specification.
HTMLMediaElement: stalled event - Web APIs
the stalled event is fired when the user agent is try
ing to fetch media data, but data is unexpectedly not forthcom
ing.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onstalled specification html5 media examples these examples add an event listener for the htmlmediaelement's stalled event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('stalled', (event) => { console.log('failed to fetch data, but try
ing.'); }); us
ing the onstalled event handler property: const video = document.queryselector('video'); video.onstalled = (event) => { console.log('failed to fetch data, but try
ing.'); }; specifications specification status html liv
ing standardthe def
inition of 'stalled media event'
in that specification.
... liv
ing standard html5the def
inition of 'stalled media event'
in that specification.
HTMLMediaElement: suspend event - Web APIs
the suspend event is fired when media data load
ing has been suspended.
... bubbles no cancelable no
interface event target element default action none event handler property globaleventhandlers.onsuspend specification html5 media examples these examples add an event listener for the htmlmediaelement's suspend event, then post a message when that event handler has reacted to the event fir
ing.
... us
ing addeventlistener(): const video = document.queryselector('video'); video.addeventlistener('suspend', (event) => { console.log('data load
ing has been suspended.'); }); us
ing the onsuspend event handler property: const video = document.queryselector('video'); video.onsuspend = (event) => { console.log('data load
ing has been suspended.'); }; specifications specification status html liv
ing standardthe def
inition of 'suspend media event'
in that specification.
... liv
ing standard html5the def
inition of 'suspend media event'
in that specification.
HTMLVideoElement.msIsStereo3D - Web APIs
msisstereo3d is a read-only property which determ
ines whether the system considers the loaded video source to be stereo 3-d or not.
... this proprietary property is specific to
internet explorer and microsoft edge.
... syntax htmlvideoelement.msisstereo3d: boolean; value boolean value set to true
indicates that the video source is stereo 3d.
... this uses metadata set
in mp4 or mpeg-2 file conta
iners and h.264 supplemental enhancement
information (sei) messages to determ
ine the stereo capability of the source.
msStereo3DRenderMode - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... this proprietary property is specific to
internet explorer and microsoft edge.
... syntax htmlvideoelement.msstereo3drendermode(mono, stereo); value the follow
ing values set the stereo display to mono or stereo.
onMSVideoFormatChanged - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... this proprietary property is specific to
internet explorer and microsoft edge.
... syntax value description event property object.onmsvideoformatchanged = handler; attachevent method object.attachevent("onmsvideoformatchanged", handler) addeventlistener method object.addeventlistener("", handler, usecapture) event handler parameters val[
in], type=function see also htmlvideoelement microsoft api extensions ...
onMSVideoFrameStepCompleted - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... this proprietary property is specific to
internet explorer and microsoft edge.
... syntax value description event property object.onmsvideoframestepcompleted = handler; attachevent method object.attachevent("onmsvideoframestepcompleted", handler) addeventlistener method object.addeventlistener("", handler, usecapture) event handler parameters val[
in], type=function see also htmlvideoelement microsoft api extensions ...
HashChangeEvent.newURL - Web APIs
the newurl read-only property of the hashchangeevent
interface returns the new url to which the w
indow is navigat
ing.
... syntax let neweventurl = event.newurl; value a domstr
ing.
... example w
indow.addeventlistener('hashchange', function(event) { console.log('hash changed to ' + event.newurl); }); specifications specification status comment html liv
ing standardthe def
inition of 'hashchangeevent: newurl'
in that specification.
... liv
ing standard ...
HashChangeEvent.oldURL - Web APIs
the oldurl read-only property of the hashchangeevent
interface returns the previous url from which the w
indow was navigated.
... syntax let oldeventurl = event.oldurl; value a domstr
ing.
... example w
indow.addeventlistener('hashchange', function(event) { console.log('hash changed from ' + event.oldurl); }); specifications specification status comment html liv
ing standardthe def
inition of 'hashchangeevent: oldurl'
in that specification.
... liv
ing standard ...
Headers.has() - Web APIs
the has() method of the headers
interface returns a boolean stat
ing whether a headers object conta
ins a certa
in header.
...these headers
include the forbidden header names and forbidden response header names.
... example creat
ing an empty headers object is simple: var myheaders = new headers(); // currently empty you could add a header to this us
ing headers.append, then test for the existence of it us
ing has(): myheaders.append('content-type', 'image/jpeg'); myheaders.has('content-type'); // returns true myheaders.has('accept-encod
ing'); // returns false specifications specification status comment fetchthe def
inition of 'has()'
in that specification.
... liv
ing standard ...
IDBDatabase: abort event - Web APIs
bubbles yes cancelable no
interface event event handler property onabort examples this example opens a database (creat
ing the database if it does not exist), then opens a transaction, adds a listener to the abort event, then aborts the transaction to trigger the event.
... // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.addeventlistener('abort', () => { console.log('...
...transaction aborted'); }); // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); // abort the transaction transaction.abort(); }; the same example, but assign
ing the event handler to the onabort property: // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day'...
..., 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; db.onabort = () => { console.log('transaction aborted'); }; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); // abort the transaction transaction.abort(); }; ...
IDBDatabase: error event - Web APIs
bubbles yes cancelable no
interface event event handler property onerror examples this example opens a database and tries to add a record, listen
ing for the error event for the add() operation (this will occur if, for example, a record with the given tasktitle already exists): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will con...
...ta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2020 }; const db = dbopenrequest.result; db.addeventlistener('error', () => { console.log(`error add
ing new item: ${newitem.tasktitle}`); }); // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); const objectstore = transaction.objectstore('todoli...
...st'); const objectstorerequest = objectstore.add(newitem); }; the same example, us
ing the onerror property
instead of addeventlistener(): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: fals...
...e }); }; dbopenrequest.onsuccess = (event) => { const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2020 }; const db = dbopenrequest.result; db.onerror = () => { console.log(`error add
ing new item: ${newitem.tasktitle}`); }; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); const objectstore = transaction.objectstore('todolist'); const objectstorerequest = objectstore.add(newitem); }; ...
FileHandle.onerror - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
...these events occur when someth
ing goes wrong.
... syntax
instanceoffilehandle.onerror = funcref; where funcref is a function to be called when the error event occurs.
FileHandle.open() - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... summary the open method returns a lockedfile object that allows to safely write
in the file.
... syntax var myfile =
instanceoffilehandle.open(mode); parameters mode a str
ing that specifies the writ
ing mode for the file.
IDBOpenDBRequest: blocked event - Web APIs
the blocked handler is executed when an open connection to a database is block
ing a versionchange transaction on the same database.
... bubbles no cancelable no
interface idbversionchangeevent event handler property onblocked examples us
ing addeventlistener(): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); object...
...store.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { // let's try to open the same database with a higher revision version const req2 =
indexeddb.open('todolist', 5); //
in this case the onblocked handler will be executed req2.addeventlistener('blocked', () => { console.log('request was blocked'); }); }; us
ing the onblocked property: // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypa...
...th: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { // let's try to open the same database with a higher revision version const req2 =
indexeddb.open('todolist', 5); //
in this case the onblocked handler will be executed req2.onblocked = () => { console.log('request was blocked'); }; }; ...
IDBRequest: error event - Web APIs
bubbles yes cancelable no
interface event event handler property onerror examples this example opens a database and tries to add a record, listen
ing for the error event for the add() operation (this will occur if, for example, a record with the given tasktitle already exists): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.addeventlistener('upgradeneeded', event => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what dat...
...a items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }); dbopenrequest.addeventlistener('success', event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); ...
... objectstorerequest.addeventlistener('error', () => { console.log(`error add
ing new item: ${newitem.tasktitle}`); }); }); the same example, us
ing the onerror property
instead of addeventlistener(): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { uniqu...
...e: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); objectstorerequest.onerror = () => { console.log(`error add
ing new item: ${newitem.tasktitle}`); }; }; ...
IDBTransaction: complete event - Web APIs
bubbles no cancelable no
interface event event handler property oncomplete examples us
ing addeventlistener(): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objects...
...tore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); // add a listener for `complete` transaction.addeventlistener('complete', event => { console.log('transaction was competed'); }); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2019 }; const objectstorerequest = objectstore.add(newitem); }; us
ing the oncomplete property: // open the datab...
...ase const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = dbopenrequest.result; // ope...
...n a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); // add a listener for `complete` transaction.oncomplete = event => { console.log('transaction was competed'); }; const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2019 }; const objectstorerequest = objectstore.add(newitem); }; ...
IDBTransaction: error event - Web APIs
bubbles yes cancelable no
interface event event handler property onerror examples this example opens a database and tries to add a record, listen
ing for the error event for the add() operation (this will occur if, for example, a record with the given tasktitle already exists): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will...
... conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); transaction.addeventlistener('error', () => { console.log(`error add
ing new item: ${newitem.tasktitle}`); }); const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'janu...
...ary', year: 2020 }; const objectstorerequest = objectstore.add(newitem); }; the same example, us
ing the onerror property
instead of addeventlistener(): // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = (event) => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year',...
... { unique: false }); }; dbopenrequest.onsuccess = (event) => { const db = dbopenrequest.result; // open a read/write db transaction, ready for add
ing the data const transaction = db.transaction(['todolist'], 'readwrite'); transaction.onerror = () => { console.log(`error add
ing new item: ${newitem.tasktitle}`); }; const objectstore = transaction.objectstore('todolist'); const newitem = { tasktitle: 'my task', hours: 10, m
inutes: 10, day: 10, month: 'january', year: 2020 }; const objectstorerequest = objectstore.add(newitem); }; ...
RTCIceCandidateStats.lastResponseTimestamp - Web APIs
the rtcicecandidatepairstats property lastresponsetimestamp
indicates the time at which the last stun response was received on the described candidate pair.
... syntax lastresponsetimestamp = rtcicecandidatepairstats.lastresponsetimestamp; value a domhighrestimestamp object
indicat
ing the timestamp at which the most recent stun response was received on the connection def
ined by the described pair of candidates.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcicecandidatepairstats.lastresponsetimestamp'
in that specification.
... candidate recommendation
initial specification.
RTCIceCandidateStats.localCandidateId - Web APIs
the rtcicecandidatepairstats property localcandidateid is a str
ing that uniquely identifies the local ice candidate which was analyzed to generate the rtcicecandidatestats used to compute the statistics for this pair of candidates.
... syntax localcandidateid = rtcicecandidatepairstats.localcandidateid; value a domstr
ing giv
ing a unique identifier for the local rtcicecandidate for the connection described by this rtcicecandidatepairstats object.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcicecandidatepairstats.localcandidateid'
in that specification.
... candidate recommendation
initial specification.
RTCIceCandidatePairStats.remoteCandidateId - Web APIs
the rtcicecandidatepairstats property remotecandidateid is a str
ing that uniquely identifies the remote ice candidate which was analyzed to generate the rtcicecandidatestats used to compute the statistics for this pair of candidates.
... syntax remotecandidateid = rtcicecandidatepairstats.remotecandidateid; value a domstr
ing uniquely identifies the remote ice candidate—that is, the candidate describ
ing a configuration for the remote peer—which is represented by the remote end of these statistics.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcicecandidatepairstats.remotecandidateid'
in that specification.
... candidate recommendation
initial specification.
RTCIceCandidatePairStats.responsesReceived - Web APIs
the responsesreceived property
in the rtcicecandidatepairstats dictionary
indicates the total number of stun connectivity check responses that have been received on the connection described by this pair of candidates.
... syntax responsesreceived = rtcicecandidatepairstats.responsesreceived; value an
integer value which specifies the number of stun connectivity request responses that have been received on the connection described by this pair of candidates so far.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcicecandidatepairstats.responsesreceived'
in that specification.
... candidate recommendation
initial specification.
RTCIceCandidatePairStats.transportId - Web APIs
the transportid property uniquely identifies the rtcicetransport that was
inspected to obta
in the transport-related statistics conta
ined
in the rtcicecandidatepairstats object.
... syntax transportid = rtcicecandidatepairstats.transportid; value a domstr
ing which uniquely identifies the rtcicetransport object from which the transport-related data was obta
ined for the statistics conta
ined
in this rtcicecandidatepairstats object.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcicecandidatepairstats.transportid'
in that specification.
... candidate recommendation
initial specification.
RTCIceCandidateStats.transportId - Web APIs
the rtcicecandidatestats dictionary's transportid property is a str
ing that uniquely identifies the transport that produced the rtctransportstats from which
information about this candidate was taken.
... syntax transportid = rtcicecandidatestats.transportid; value a domstr
ing whose value uniquely identifies the transport from which any transport-related
information accumulated
in the rtcicecandidatestats was taken.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcicecandidatestats.transportid'
in that specification.
... candidate recommendation
initial specification.
RTCIceServer.credential - Web APIs
the rtciceserver dictionary's credential property is a str
ing provid
ing the credential to use when connect
ing to the described server.
...logg
ing
into the turn server uses the username "webrtc" and the creative password "turnpassword".
... mypeerconnection = new rtcpeerconnection({ iceservers: [ { urls: "turn:turnserver.example.org", // a turn server username: "webrtc", credential: "turnpassword" } ] }); specifications specification status comment webrtc 1.0: real-time communication between browsersthe def
inition of 'rtciceserver.credential'
in that specification.
... candidate recommendation
initial specification.
RTCIceServer.username - Web APIs
the rtciceserver dictionary's username property is a str
ing which specifies the username to use when authenticat
ing with the ice server be
ing described.
...logg
ing
into the turn server will use the username "webrtc" and the creative password "turnpassword".
... mypeerconnection = new rtcpeerconnection({ iceservers: [ { urls: "turn:turnserver.example.org", // a turn server username: "webrtc", credential: "turnpassword" } ] }); specifications specification status comment webrtc 1.0: real-time communication between browsersthe def
inition of 'rtciceserver.username'
in that specification.
... candidate recommendation
initial specification.
RTCOutboundRtpStreamStats.framesEncoded - Web APIs
the framesencoded property of the rtcoutboundrtpstreamstats dictionary
indicates the total number of frames that have been encoded by this rtcrtpsender for this media source.
... syntax var framesencoded = rtcoutboundrtpstreamstats.framesencoded; value an
integer value
indicat
ing the total number of video frames that this sender has encoded so far for this stream.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcoutboundrtpstreamstats.framesencoded'
in that specification.
... candidate recommendation
initial def
inition.
RTCOutboundRtpStreamStats.remoteId - Web APIs
the remoteid property of the rtcoutboundrtpstreamstats dictionary specifies the id of the rtcremote
inboundrtpstreamstats object represent
ing the remote peer's rtcrtpreceiver which is send
ing the media to the local peer for this ssrc.
... syntax var remotestatsid = rtcoutboundrtpstreamstats.remoteid; value a domstr
ing conta
ining the id of the rtcremote
inboundrtpstreamstats object that represents the remote peer's rtcrtpreceiver for the synchronization source represented by this stats object.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcoutboundrtpstreamstats.remoteid'
in that specification.
... candidate recommendation
initial def
inition.
RTCOutboundRtpStreamStats.trackId - Web APIs
the trackid property of the rtcoutboundrtpstreamstats dictionary
indicates the id of the rtcsenderaudiotrackattachmentstats or rtcsendervideotrackattachmentstats object represent
ing the mediastreamtrack which is be
ing sent on this stream.
... syntax var trackstatsid = rtcoutboundrtpstreamstats.trackid; value a domstr
ing conta
ining the id of the rtcsenderaudiotrackattachmentstats or rtcsendervideotrackattachmentstats object represent
ing the track which is the source of the media be
ing sent on this stream.
... specifications specification status comment identifiers for webrtc's statistics apithe def
inition of 'rtcoutboundrtpstreamstats.trackid'
in that specification.
... candidate recommendation
initial def
inition.
RTCPeerConnection.getReceivers() - Web APIs
each rtp receiver manages the reception and decod
ing of data for a mediastreamtrack on an rtcpeerconnection syntax var receivers = rtcpeerconnection.getreceivers(); return value an array of rtcrtpreceiver objects, one for each track on the connection.
... the order of the returned rtcrtpreceiver
instances is not def
ined by the specification, and may change from one call to getreceivers() to the next.
... example tbd specifications specification status comment webrtc 1.0: real-time communication between browsersthe def
inition of 'rtcpeerconnection.getreceivers()'
in that specification.
... candidate recommendation
initial specification.
RTCPeerConnection: idpassertionerror event - Web APIs
an idpassertionerror event
informs the target, a rtcpeerconnection object, that the identity provider (idp) encountered an error when try
ing to generate an identity assertion.
... an event handler for this event can be added us
ing the rtcpeerconnection.onidpassertionerror property.
... bubbles no cancelable no
interface rtcidentityerrorevent event handler property onidpassertionerror warn
ing: this event is no longer used;
instead, you can detect an assertion error by detect
ing when the promise returned by rtcpeerconnection.peeridentity is rejected.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe def
inition of 'idpassertionerror'
in that specification.
RTCPeerConnection: idpvalidationerror event - Web APIs
an idpvalidationerror event
informs the target, a rtcpeerconnection object's onidpvalidationerror event handler, that the identity provider (idp) encountered an error while validat
ing an identity assertion.
... an event handler for this event can be added us
ing the rtcpeerconnection.onidpvalidationerror property.
... bubbles no cancelable no
interface rtcidentityerrorevent event handler property onidpvalidationerror warn
ing: this event is no longer used;
instead, you can detect a validation error by detect
ing when the promise returned by rtcpeerconnection.peeridentity is rejected.
... specifications specification status comment webrtc 1.0: real-time communication between browsersthe def
inition of 'idpvalidationerror'
in that specification.
RTCPeerConnection.onidentityresult - Web APIs
the rtcpeerconnection.onidentityresult event handler is a property conta
ining the code to execute when the identityresult event, of type rtcidentityevent, is received by this rtcpeerconnection.
... such an event is sent when an identity assertion is generated, via getidentityassertion() or dur
ing the creation of an offer or an answer.
... syntax peerconnection.onidentityresult = function; values function is the name of a user-def
ined function, without the () suffix or any parameters, or an anonymous function declaration, such as function(event) {...}.
... an event handler always has one s
ingle parameter, conta
ining the event, here of type rtcidentityevent.
ServiceWorker.scriptURL - Web APIs
returns the serviceworker serialized script url def
ined as part of serviceworkerregistration.
... must be on the same orig
in as the document that registers the serviceworker.
... syntax someurl = serviceworker.scripturl value a usvstr
ing (see the webidl def
inition of usvstr
ing.) examples tbd specifications specification status comment service workersthe def
inition of 'scripturl'
in that specification.
... work
ing draft
initial def
inition ...
ServiceWorkerGlobalScope: notificationclick event - Web APIs
the notificationclick event is fired to
indicate that a system notification spawned by serviceworkerregistration.shownotification() has been clicked.
... bubbles no cancelable no
interface notificationevent event handler onnotificationclick examples you can use the notificationclick event
in an addeventlistener method: self.addeventlistener('notificationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "w
indow" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus'
in client) return client.focus(); } if (clients.openw
indow) return clients.openw
indow('/'); })); }); ...
... or use the onnotificationclick event handler property: self.onnotificationclick = function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "w
indow" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus'
in client) return client.focus(); } if (clients.openw
indow) return clients.openw
indow('/'); })); }; specifications specification status notifications apithe def
inition of 'onnotificationclick'
in that specification.
... liv
ing standard ...
ServiceWorkerGlobalScope.oncontentdelete - Web APIs
the oncontentdelete property of the serviceworkerglobalscope
interface is an event handler fired when an item is removed from the
indexed content via the user agent.
...}; examples the follow
ing example uses a contentdelete event handler to remove cached content related to the deleted
index item.
... self.addeventlistener('contentdelete', event => { event.waituntil( caches.open('cache-name').then(cache => { return promise.all([ cache.delete(`/icon/${event.id}`), cache.delete(`/content/${event.id}`) ]) }) ); }); specifications specification status comment unknownthe def
inition of 'contentdelete'
in that specification.
... unknown
initial def
inition.
ServiceWorkerGlobalScope.onnotificationclick - Web APIs
notifications created on the ma
in thread or
in workers which aren't service workers us
ing the notification() constructor will
instead receive a click event on the notification object itself.
... note: try
ing to create a notification
inside the serviceworkerglobalscope us
ing the notification() constructor will throw an error.
...}; example self.onnotificationclick = function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "w
indow" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus'
in client) return client.focus(); } if (clients.openw
indow) return clients.openw
indow('/'); })); }; specifications specification status comment notifications apithe def
inition of 'onnotificationclick'
in that sp...
... liv
ing standard
initial def
inition.
ServiceWorkerGlobalScope: push event - Web APIs
the push event is sent to a service worker's global scope (represented by the serviceworkerglobalscope
interface) when the service worker has received a push message.
... bubbles no cancelable no
interface pushevent event handler property onpush example this example sets up a handler for push events that takes json data, parses it, and dispatches the message for handl
ing based on
information conta
ined with
in the message.
... self.addeventlistener("push", event => { let message = event.data.json(); switch(message.type) { case "
init": do
init(); break; case "shutdown": doshutdown(); break; } }, false); specifications specification status comment push apithe def
inition of 'push'
in that specification.
... work
ing draft
initial specification.
ServiceWorkerMessageEvent.source - Web APIs
important:
in modern browsers, this property has been deprecated.
... service worker messages will now use the messageevent
interface, for consistency with other web messag
ing features.
... syntax var mysource = serviceworkermessageevent
instance.source; value a serviceworker or messageport object.
... examples when the follow
ing code is used
inside the ma
in thread to set up a message channel between it and a service worker for send
ing messages between the two, the event object of onmessage will be a serviceworkermessageevent.
ServiceWorkerRegistration.onupdatefound - Web APIs
the onupdatefound property of the serviceworkerregistration
interface is an eventlistener property called whenever an event of type statechange is fired; it is fired any time the serviceworkerregistration.
install
ing property acquires a new service worker.
... note: this feature is available
in web workers.
...}; specifications specification status comment service workersthe def
inition of 'serviceworkerregistration.onupdatefound'
in that specification.
... work
ing draft
initial def
inition.
SharedWorker.port - Web APIs
the port property of the sharedworker
interface returns a messageport object used to communicate and control the shared worker.
... example the follow
ing code snippet shows creation of a sharedworker object us
ing the sharedworker() constructor.
... multiple scripts can then access the worker through a messageport object accessed us
ing the sharedworker.port property — the port is started us
ing its start() method: var myworker = new sharedworker('worker.js'); myworker.port.start(); for a full example, see our basic shared worker example (run shared worker.) specifications specification status comment html liv
ing standardthe def
inition of 'abstractworker.onerror'
in that specification.
... liv
ing standard ...
SourceBuffer.trackDefaults - Web APIs
the trackdefaults property of the sourcebuffer
interface specifies the default values to use if k
ind, label, and/or language
information is not available
in the
initialization segment of the media to be appended to the sourcebuffer.
... exceptions the follow
ing exceptions may be thrown when sett
ing a new value for this property.
... exception explanation
invalidstateerror one or more of the sourcebuffer objects
in mediasource.sourcebuffers are be
ing updated (i.e.
... their sourcebuffer.updat
ing property is currently true), or this sourcebuffer has been removed from the mediasource.
SpeechGrammarList.item() - Web APIs
the item getter of the speechgrammarlist
interface is a standard getter — it allows
individual speechgrammar objects to be retrieved from the speechgrammarlist us
ing array syntax.
... syntax var myfirstgrammar = speechgrammarlist
instance[0]; returns a speechgrammar object.
... examples var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; var myfirstgrammar = speechrecognitionlist[0]; // var should conta
in the speechgrammar object created
in l
ine 4.
... specifications specification status comment web speech apithe def
inition of 'item()'
in that specification.
SpeechGrammarList.length - Web APIs
the length read-only property of the speechgrammarlist
interface returns the number of speechgrammar objects conta
ined
in the speechgrammarlist.
... syntax var mylistlength = speechgrammarlist
instance.length; value a number
indicat
ing the number of speechgrammar objects conta
ined
in the speechgrammarlist.
... examples var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; speechrecognitionlist.length; // should return 1.
... specifications specification status comment web speech apithe def
inition of 'length'
in that specification.
SpeechRecognition() - Web APIs
the speechrecognition() constructor creates a new speechrecognition object
instance.
... var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist;...
... //recognition.cont
inuous = false; recognition.lang = 'en-us'; recognition.
interimresults = false; recognition.maxalternatives = 1; ...
... specifications specification status comment web speech apithe def
inition of 'speechrecognition()'
in that specification.
SpeechRecognition.onnomatch - Web APIs
the onnomatch property of the speechrecognition
interface represents an event handler that will run when the speech recognition service returns a f
inal result with no significant recognition (when the nomatch event fires.) this may
involve some degree of recognition, which doesn't meet or exceed the confidence threshold.
... note: the onnomatch handler does not yet work properly
in firefox — the speech recognition system always returns a positive match, and then guesses at what item
in the grammar it found.
... this is be
ing worked on.
...}; examples var recognition = new speechrecognition(); recognition.onnomatch = function() { console.log('speech not recognised'); } specifications specification status comment web speech apithe def
inition of 'onnomatch'
in that specification.
SpeechRecognition.onresult - Web APIs
the onresult property of the speechrecognition
interface represents an event handler that will run when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app (when the result event fires.) syntax myspeechrecognition.onresult = function() { ...
... recognition.onresult = function(event) { // the speechrecognitionevent results property returns a speechrecognitionresultlist object // the speechrecognitionresultlist object conta
ins speechrecognitionresult objects.
... // each speechrecognitionresult object conta
ins speechrecognitionalternative objects that conta
in individual results.
... // we then return the transcript property of the speechrecognitionalternative object var color = event.results[0][0].transcript; diagnostic.textcontent = 'result received: ' + color + '.'; bg.style.backgroundcolor = color; } specifications specification status comment web speech apithe def
inition of 'onresult'
in that specification.
SpeechRecognitionErrorEvent.message - Web APIs
the message read-only property of the speechrecognitionerrorevent
interface returns a message describ
ing the error
in more detail.
... syntax var myerrormsg = event.message; value a domstr
ing conta
ining more details about the error that was raised.
... note that the spec does not def
ine the exact word
ing of these messages — this is up to the implementors to decide upon.
... examples var recognition = new speechrecognition(); recognition.onerror = function(event) { console.log('speech recognition error detected: ' + event.error); console.log('additional
information: ' + event.message); } specifications specification status comment web speech apithe def
inition of 'message'
in that specification.
SpeechRecognitionErrorEvent - Web APIs
the speechrecognitionerrorevent
interface of the web speech api represents error messages from the recognition service.
... properties speechrecognitionerrorevent also
inherits properties from its parent
interface, event.
... speechrecognitionerrorevent.message read only returns a message describ
ing the error
in more detail.
... examples var recognition = new speechrecognition(); recognition.onerror = function(event) { console.log('speech recognition error detected: ' + event.error); console.log('additional
information: ' + event.message); } specifications specification status comment web speech apithe def
inition of 'speechrecognitionerrorevent'
in that specification.
SpeechRecognitionEvent.emma - Web APIs
the emma read-only property of the speechrecognitionevent
interface returns an extensible multimodal annotation markup language (emma) — xml — representation of the result.
... note: emma is def
ined
in the specification emma: extensible multimodal annotation markup language.
... you can see muliple emma examples
in the spec.
...the exact contents can vary across user agents and recognition eng
ines, but all support
ing implementations will expose a valid xml document complete with an emma namespace.
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 be
ing done on the server-side and the voices list is be
ing determ
ined asynchronously, or when client-side voices are
installed/un
installed while a speech synthesis application is runn
ing.
... syntax speechsynthesis
instance.onvoiceschanged = function() { ...
...with chrome however, you have to wait for the event to fire before populat
ing the list, hence the bottom if statement seen below.
...cument.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } populatevoicelist(); if (speechsynthesis.onvoiceschanged !== undef
ined) { speechsynthesis.onvoiceschanged = populatevoicelist; } specifications specification status comment web speech apithe def
inition of 'onvoiceschanged'
in that specification.
SpeechSynthesis.pause() - Web APIs
the pause() method of the speechsynthesis
interface puts the speechsynthesis object
into a paused state.
... syntax speechsynthesis
instance.pause(); returns void.
... examples var synth = w
indow.speechsynthesis; var utterance1 = new speechsynthesisutterance('how about we say this now?
... this is quite a long sentence to say.'); var utterance2 = new speechsynthesisutterance('we should say another sentence too, just to be on the safe side.'); synth.speak(utterance1); synth.speak(utterance2); synth.pause(); // pauses utterances be
ing spoken specifications specification status comment web speech apithe def
inition of 'pause()'
in that specification.
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.
... syntax speechsynthesis
instance.resume(); returns void.
... examples var synth = w
indow.speechsynthesis; var utterance1 = new speechsynthesisutterance('how about we say this now?
... this is quite a long sentence to say.'); var utterance2 = new speechsynthesisutterance('we should say another sentence too, just to be on the safe side.'); synth.speak(utterance1); synth.speak(utterance2); synth.pause(); // pauses utterances be
ing spoken synth.resume() // resumes speak
ing specifications specification status comment web speech apithe def
inition of 'resume()'
in that specification.
SpeechSynthesisUtterance.lang - Web APIs
the lang property of the speechsynthesisutterance
interface gets and sets the language of the utterance.
... syntax var mylang = speechsynthesisutterance
instance.lang; speechsynthesisutterance
instance.lang = 'en-us'; value a domstr
ing represent
ing a bcp 47 language tag.
... examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.lang = 'en-us'; synth.speak(utterthis);
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'lang'
in that specification.
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.
... syntax speechsynthesisutterance
instance.onpause = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onpause = function(event) { console.log('speech paused after ' + event.elapsedtime + ' milliseconds.'); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onpause'
in that specification.
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.
... syntax speechsynthesisutterance
instance.onresume = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onresume = function(event) { console.log('speech resumed after ' + event.elapsedtime + ' milliseconds.'); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onresume'
in that specification.
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.
... syntax speechsynthesisutterance
instance.onstart = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onstart = function(event) { console.log('we have started utter
ing this speech: ' + event.utterance.text); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onstart'
in that specification.
SpeechSynthesisUtterance.volume - Web APIs
the volume property of the speechsynthesisutterance
interface gets and sets the volume that the utterance will be spoken at.
... syntax var myvolume = speechsynthesisutterance
instance.volume; speechsynthesisutterance
instance.volume = 0.5; value a float that represents the volume value, between 0 (lowest) and 1 (highest.) if ssml is used, this value will be overridden by prosody tags
in the markup.
... examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } utterthis.volume = 0.5; synth.speak(utterthis);
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'volume'
in that specification.
SpeechSynthesisVoice.voiceURI - Web APIs
the voiceuri read-only property of the speechsynthesisvoice
interface returns the type of uri and location of the speech synthesis service for this voice.
... syntax var myvoiceuri = speechsynthesisvoice
instance.voiceuri; value a domstr
ing represent
ing the uri of the voice.
... this is a generic uri and can po
int to local or remote services, e.g.
...ontent += ' -- default'; } console.log(voices[i].voiceuri); // on mac, this returns urns, for example 'urn:moz-tts:osx:com.apple.speech.synthesis.voice.daniel' option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe def
inition of 'voiceuri'
in that specification.
StylePropertyMap.delete() - Web APIs
the delete() method of the stylepropertymap
interface removes the css declaration with the given property.
... syntax stylepropertymap.delete(property) parameters property an identifier
indicat
ing the stylistic feature (e.g.
... return value undef
ined example // tbd specifications specification status comment css typed om level 1the def
inition of 'delete()'
in that specification.
... work
ing draft
initial def
inition.
StylePropertyMap.set() - Web APIs
the set() method of the stylepropertymap
interface changes the css declaration with the given property.
... syntax stylepropertymap.set(property,value) parameters property an identifier
indicat
ing the stylistic feature (e.g.
... return value undef
ined example // tbd specifications specification status comment css typed om level 1the def
inition of 'set()'
in that specification.
... work
ing draft
initial def
inition.
StylePropertyMapReadOnly.size - Web APIs
the size read-only property of the stylepropertymapreadonly
interface returns an uns
inged long
integer conta
ining the size of the stylepropertymapreadonly object.
... syntax var size = stylepropertymapreadonly.size value an unsigned long
integer.
... example // tbd specifications specification status comment css typed om level 1the def
inition of 'size'
in that specification.
... work
ing draft
initial def
inition.
StyleSheet.media - Web APIs
the media property of the stylesheet
interface specifies the
intended dest
ination media for style
information.
... example <!doctype html> <html> <head> <l
ink rel="stylesheet" href="document.css" type="text/css" media="screen" /> <style rel="stylesheet" type="text/css" media="screen, pr
int"> body { background-color: snow; } </style> </head> <body> <script> for (var isheet
index = 0; isheet
index < document.stylesheets.length; isheet
index++) { console.log('document.stylesheets[' + str
ing(isheet
index) + '].media: ' + json.str
ingify(document.stylesheets[isheet
index].media)); if (isheet
index === 0) document.stylesheets[isheet
index].media.appendmedium('handheld'); if (isheet
index === 1) document.stylesheets[isheet
index].media.deletemedium('pr
int'); console.log('document.s...
...tylesheets[' + str
ing(isheet
index) + '].media: ' + json.str
ingify(document.stylesheets[isheet
index].media)); } /* will log: document.stylesheets[0].media: {"0":"screen"} document.stylesheets[0].media: {"0":"screen","1":"handheld"} document.stylesheets[1].media: {"0":"screen","1":"pr
int"} document.stylesheets[1].media: {"0":"screen"} */ </script> </body> </html> specifications specification status comment css object model (cssom)the def
inition of 'stylesheet: media'
in that specification.
... work
ing draft ...
WEBGL_debug_shaders.getTranslatedShaderSource() - Web APIs
return value a str
ing conta
ining the translated shader source.
... an empty str
ing is returned, if: no source has been def
ined or, webglrender
ingcontext.compileshader() has not yet been called or, the translation for the shader failed.
... examples var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var shader = gl.createshader(gl.fragment_shader); gl.shadersource(shader, 'void ma
in() { gl_fragcolor = vec4(gl_fragcoord.x, 0.0, 0.0, 1.0); }'); gl.compileshader(shader); var src = gl.getextension('webgl_debug_shaders').gettranslatedshadersource(shader); console.log(src); // "void ma
in(){ // (gl_fragcolor = vec4(gl_fragcoord.x, 0.0, 0.0, 1.0)); // }" specifications specification status comment webgl_debug_shadersthe def
inition of 'webgl_debug_shaders.gettranslatedshadersource'
in that specification.
... recommendation
initial def
inition.
WEBGL_lose_context.restoreContext() - Web APIs
the webgl_lose_context.restorecontext() method is part of the webgl api and allows you to simulate restor
ing the context of a webglrender
ingcontext object.
... syntax gl.getextension('webgl_lose_context').restorecontext(); errors thrown
invalid_operation if the context was not lost.
... with this method, you can simulate the webglcontextrestored event: var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); canvas.addeventlistener('webglcontextrestored', function(e) { console.log(e); }, false); gl.getextension('webgl_lose_context').restorecontext(); specifications specification status comment webgl_lose_contextthe def
inition of 'webgl_lose_context.losecontext'
in that specification.
... recommendation
initial def
inition.
WebGLBuffer - Web APIs
the webglbuffer
interface is part of the webgl api and represents an opaque buffer object stor
ing data such as vertices or colors.
... description the webglbuffer object does not def
ine any methods or properties of its own and its content is not directly accessible.
... when work
ing with webglbuffer objects, the follow
ing methods of the webglrender
ingcontext are useful: webglrender
ingcontext.b
indbuffer() webglrender
ingcontext.createbuffer() webglrender
ingcontext.deletebuffer() webglrender
ingcontext.isbuffer() examples creat
ing a buffer var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var buffer = gl.createbuffer(); specifications specification status comment webgl 1.0the def
inition of 'webglbuffer'
in that specification.
... recommendation
initial def
inition.
WebGLContextEvent.statusMessage - Web APIs
the read-only webglcontextevent.statusmessage property conta
ins additional event status
information, or is an empty str
ing if no additional
information is available.
... examples the statusmessage property can conta
in a platform dependent str
ing with details of an event.
... var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); canvas.addeventlistener('webglcontextcreationerror', function(e) { console.log('webgl context creation failed:' + e.statusmessage || 'unknown error'); }, false); specifications specification status comment webgl 1.0the def
inition of 'webglcontextevent.statusmessage'
in that specification.
... recommendation
initial def
inition.
WebGLFramebuffer - Web APIs
the webglframebuffer
interface is part of the webgl api and represents a collection of buffers that serve as a render
ing dest
ination.
... description the webglframebuffer object does not def
ine any methods or properties of its own and its content is not directly accessible.
... when work
ing with webglframebuffer objects, the follow
ing methods of the webglrender
ingcontext are useful: webglrender
ingcontext.b
indframebuffer() webglrender
ingcontext.createframebuffer() webglrender
ingcontext.deleteframebuffer() webglrender
ingcontext.isframebuffer() examples creat
ing a frame buffer var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var buffer = gl.createframebuffer(); specifications specification status comment webgl 1.0the def
inition of 'webglframebuffer'
in that specification.
... recommendation
initial def
inition.
WebGLRenderbuffer - Web APIs
the webglrenderbuffer
interface is part of the webgl api and represents a buffer that can conta
in an image, or can be source or target of an render
ing operation.
... description the webglrenderbuffer object does not def
ine any methods or properties of its own and its content is not directly accessible.
... when work
ing with webglrenderbuffer objects, the follow
ing methods of the webglrender
ingcontext are useful: webglrender
ingcontext.b
indrenderbuffer() webglrender
ingcontext.createrenderbuffer() webglrender
ingcontext.deleterenderbuffer() webglrender
ingcontext.isrenderbuffer() examples creat
ing a render buffer var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var buffer = gl.createrenderbuffer(); specifications specification status comment webgl 1.0the def
inition of 'webglrenderbuffer'
in that specification.
... recommendation
initial def
inition.
WebGLTexture - Web APIs
the webgltexture
interface is part of the webgl api and represents an opaque texture object provid
ing storage and state for textur
ing operations.
... description the webgltexture object does not def
ine any methods or properties of its own and its content is not directly accessible.
... when work
ing with webgltexture objects, the follow
ing methods of the webglrender
ingcontext are useful: webglrender
ingcontext.b
indtexture() webglrender
ingcontext.createtexture() webglrender
ingcontext.deletetexture() webglrender
ingcontext.istexture() examples creat
ing a texture var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var texture = gl.createtexture(); specifications specification status comment webgl 1.0the def
inition of 'webgltexture'
in that specification.
... recommendation
initial def
inition.
WebGLUniformLocation - Web APIs
the webgluniformlocation
interface is part of the webgl api and represents the location of a uniform variable
in a shader program.
... description the webgluniformlocation object does not def
ine any methods or properties of its own and its content is not directly accessible.
... when work
ing with webgluniformlocation objects, the follow
ing methods of the webglrender
ingcontext are useful: webglrender
ingcontext.getuniformlocation() webglrender
ingcontext.uniform() examples gett
ing an uniform location var canvas = document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); var location = gl.getuniformlocation(webglprogram, 'uniformname'); specifications specification status comment webgl 1.0the def
inition of 'webgluniformlocation'
in that specification.
... recommendation
initial def
inition.
High-level guides - Web APIs
webrtc (web real-time communications) is a broad, multi-component system for sett
ing up and operat
ing complex audio, video, and data channels across networks among two or more peers on the web.
... the high-level guides listed below
introduce webrtc technology from a top-down perspective, describ
ing the overall architecture, the life cycle of a webrtc connection, and basic security and technological issues you might run
into as you explore and build web content or apps us
ing the webrtc api.
...
in addition, you'll f
ind suggestions as to tools, libraries, and frameworks that might be helpful and compatibility
information so you know which parts of the overall suite of webrtc features can be safely used given your target audience.
... when you're ready to explore webrtc
in more depth, be sure to take a look at our low-level guide to webrtc.
WebSocket.bufferedAmount - Web APIs
the websocket.bufferedamount read-only property returns the number of bytes of data that have been queued us
ing calls to send() but not yet transmitted to the network.
...this value does not reset to zero when the connection is closed; if you keep call
ing send(), this will cont
inue to climb.
... specifications specification status comment html liv
ing standardthe def
inition of 'websocket: bufferedamount'
in that specification.
... liv
ing standard
initial def
inition ...
WebSocket.extensions - Web APIs
this is currently only the empty str
ing or a list of extensions as negotiated by the connection.
... syntax var extensions = awebsocket.extensions; value a domstr
ing.
... specifications specification status comment html liv
ing standardthe def
inition of 'websocket: extensions'
in that specification.
... liv
ing standard
initial def
inition ...
WebSocket.onerror - Web APIs
the websocket
interface's onerror event handler property is a function which gets called when an error occurs on the websocket.
... you can also add an error event handler us
ing addeventlistener().
... example websocket.onerror = function(event) { console.error("websocket error observed:", event); }; specifications specification status comment html liv
ing standardthe def
inition of 'websocket: onerror'
in that specification.
... liv
ing standard
initial def
inition ...
WebSocket.protocol - Web APIs
the websocket.protocol read-only property returns the name of the sub-protocol the server selected; this will be one of the str
ings specified
in the protocols parameter when creat
ing the websocket object, or the empty str
ing if no connection is established.
... syntax var protocol = awebsocket.protocol; value a domstr
ing.
... specifications specification status comment html liv
ing standardthe def
inition of 'websocket: protocol'
in that specification.
... liv
ing standard
initial def
inition ...
WebSocket.readyState - Web APIs
syntax var readystate = awebsocket.readystate; value one of the follow
ing unsigned short values: value state description 0 connect
ing socket has been created.
... 2 clos
ing the connection is
in the process of clos
ing.
... specifications specification status comment html liv
ing standardthe def
inition of 'websocket: readystate'
in that specification.
... liv
ing standard
initial def
inition ...
Web Budget API - Web APIs
concepts and usage tbd
interfaces budgetservice provides a programmatic
interface to the user agent’s budget service.
... it is available
in both document and worker environments.
... budgetstate provides the amount of the user agent's process
ing budget at a specific po
int
in time.
... specifications specification status comment web budget api draft
initial def
inition.
From - HTTP
the from request header conta
ins an
internet email address for a human user who controls the request
ing user agent.
... if you are runn
ing a robotic user agent (e.g.
... a crawler), the from header should be sent, so you can be contacted if problems occur on servers, such as if the robot is send
ing excessive, unwanted, or
invalid requests.
... header type request header forbidden header name no syntax from: <email> directives <email> a mach
ine-usable email address.
Pragma - HTTP
the pragma http/1.0 general header is an implementation-specific header that may have various effects along the request-response cha
in.
... note: pragma is not specified for http responses and is therefore not a reliable replacement for the general http/1.1 cache-control header, although it does behave the same as cache-control: no-cache, if the cache-control header field is omitted
in a request.
...forces caches to submit the request to the orig
in server for validation before releas
ing a cached copy.
... examples pragma: no-cache specifications specification title rfc 7234, section 5.4: pragma hypertext transfer protocol (http/1.1): cach
ing ...
Sec-Fetch-Site - HTTP
the sec-fetch-site fetch metadata header
indicates the relationship between a request
initiator's orig
in and the orig
in of the resource.
... header type fetch metadata request header forbidden header name yes, s
ince it has prefix sec- cors-safelisted response header cors-safelisted request header syntax sec-fetch-site: cross-site sec-fetch-site: same-orig
in sec-fetch-site: same-site sec-fetch-site: none values cross-site same-orig
in same-site none this request does not relate to any context like site, orig
in, or frame.
... this can happen when user had
initiated this request by, e.g.
... directly enter
ing a url
in the address bar, open
ing a bookmark, or drag
ing-and-dropp
ing a file
into the browser w
indow.
Sec-WebSocket-Accept - HTTP
the sec-websocket-accept header is used
in the websocket open
ing handshake.
... it would appear
in the response headers.
... that is, this is header is sent from server to client to
inform that server is will
ing to
initiate a websocket connection.
... header type response header forbidden header name no syntax sec-websocket-accept: <hashed key> directives <hashed key> the server takes the value of the sec-websocket-key sent
in the handshake request, appends 258eafa5-e914-47da-95ca-c5ab0dc85b11, takes sha-1 of the new value, and is then base64 encoded.
Via - HTTP
the via general header is added by proxies, both forward and reverse proxies, and can appear
in the request headers and the response headers.
... it is used for track
ing message forwards, avoid
ing request loops, and identify
ing the protocol capabilities of senders along the request/response cha
in.
... <pseudonym> name/alias of an
internal proxy.
... examples via: 1.1 vegur via: http/1.1 gwa via: 1.0 fred, 1.1 p.example.net specifications specification title rfc 7230, section 5.7.1: via hypertext transfer protocol (http/1.1): message syntax and rout
ing ...
PUT - HTTP
the difference between put and post is that put is idempotent: call
ing it once or several times successively has the same effect (that is no side effect), whereas successive identical post requests may have additional effects, ak
in to plac
ing an order several times.
... request has body yes successful response has body no safe no idempotent yes cacheable no allowed
in html forms no syntax put /new.html http/1.1 example request put /new.html http/1.1 host: example.com content-type: text/html content-length: 16 <p>new file</p> responses if the target resource does not have a current representation and the put request successfully creates one, then the orig
in server must
inform the user agent by send
ing a 201 (created) response.
... http/1.1 201 created content-location: /new.html if the target resource does have a current representation and that representation is successfully modified
in accordance with the state of the enclosed representation, then the orig
in server must send either a 200 (ok) or a 204 (no content) response to
indicate successful completion of the request.
... http/1.1 204 no content content-location: /exist
ing.html specifications specification title rfc 7231, section 4.3.4: put hypertext transfer protocol (http/1.1): semantics and content ...
TRACE - HTTP
the http trace method performs a message loop-back test along the path to the target resource, provid
ing a useful debugg
ing mechanism.
... the f
inal recipient of the request should reflect the message received, exclud
ing some fields described below, back to the client as the message body of a 200 (ok) response with a content-type of message/http.
... the f
inal recipient is either the orig
in server or the first server to receive a max-forwards value of 0
in the request.
... request has body no successful response has body no safe no idempotent yes cacheable no allowed
in html forms no syntax trace /
index.html specifications specification title rfc 7231, section 4.3.8: trace hypertext transfer protocol (http/1.1): semantics and content ...
202 Accepted - HTTP
the hypertext transfer protocol (http) 202 accepted response status code
indicates that the request has been accepted for process
ing, but the process
ing has not been completed;
in fact, process
ing may not have started yet.
... the request might or might not eventually be acted upon, as it might be disallowed when process
ing actually takes place.
... 202 is non-committal, mean
ing that there is no way for the http to later send an asynchronous response
indicat
ing the outcome of process
ing the request.
... it is
intended for cases where another process or server handles the request, or for batch process
ing.
304 Not Modified - HTTP
the http 304 not modified client redirection response code
indicates that there is no need to retransmit the requested resources.
...this happens when the request method is safe, like a get or a head request, or when the request is conditional and uses a if-none-match or a if-modified-s
ince header.
... the equivalent 200 ok response would have
included the headers cache-control, content-location, date, etag, expires, and vary.
... many developer tools' network panels of browsers create extraneous requests lead
ing to 304 responses, so that access to the local cache is visible to developers.
307 Temporary Redirect - HTTP
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.
... the method and the body of the orig
inal request are reused to perform the redirected request.
...
in the cases where you want the method used to be changed to get, use 303 see other
instead.
...with 302, some old clients were
incorrectly chang
ing the method to get: the behavior with non-get methods and 302 is then unpredictable on the web, whereas the behavior with 307 is predictable.
401 Unauthorized - HTTP
the http 401 unauthorized client error status response code
indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
... this status is sent with a www-authenticate header that conta
ins
information on how to authorize correctly.
... this status is similar to 403, but
in this case, authentication is possible.
... status 401 unauthorized example response http/1.1 401 unauthorized date: wed, 21 oct 2015 07:28:00 gmt www-authenticate: basic realm="access to stag
ing site" specifications specification title rfc 7235, section 3.1: 401 unauthorized http/1.1: authentication ...
406 Not Acceptable - HTTP
the hypertext transfer protocol (http) 406 not acceptable client error response code
indicates that the server cannot produce a response match
ing the list of acceptable values def
ined
in the request's proactive content negotiation headers, and that the server is unwill
ing to supply a default representation.
... proactive content negotiation headers
include: accept accept-charset accept-encod
ing accept-language
in practice, this error is very rarely used.
...
instead of respond
ing us
ing this error code, which would be cryptic for the end user and difficult to fix, servers ignore the relevant header and serve an actual page to the user.
... if a server returns such an error status, the body of the message should conta
in the list of the available representations of the resources, allow
ing the user to choose among them.
416 Range Not Satisfiable - HTTP
the hypertext transfer protocol (http) 416 range not satisfiable error response code
indicates that a server cannot serve the requested ranges.
... the most likely reason is that the document doesn't conta
in such ranges, or that the range header value, though syntactically correct, doesn't make sense.
... the 416 response message conta
ins a content-range
indicat
ing an unsatisfied range (that is a '*') followed by a '/' and the current length of the resource.
...content-range: bytes */12777 faced with this error, browsers usually either abort the operation (for example, a download will be considered as non-resumable) or ask for the whole document aga
in.
508 Loop Detected - HTTP
the hypertext transfer protocol (http) 508 loop detected response status code may be given
in the context of the web distributed author
ing and version
ing (webdav) protocol.
... it
indicates that the server term
inated an operation because it encountered an
inf
inite loop while process
ing a request with "depth:
inf
inity".
... this status
indicates that the entire operation failed.
... status 508 loop detected specifications specification title rfc 5842, section 7.2: 508 loop detected web distributed author
ing and version
ing ...
511 Network Authentication Required - HTTP
the http 511 network authentication required response status code
indicates that the client needs to authenticate to ga
in network access.
... this status is not generated by orig
in servers, but by
intercept
ing proxies that control access to the network.
... network operators sometimes require some authentication, acceptance of terms, or other user
interaction before grant
ing access (for example
in an
internet café or at an airport).
... they often identify clients who have not done so us
ing their media access control (mac) addresses.
JavaScript Guide - JavaScript
if you need exhaustive
information about a language feature, have a look at the javascript reference.
... chapters this guide is divided
into several chapters:
introduction about this guide about javascript javascript and java ecmascript tools hello world grammar and types basic syntax & comments declarations variable scope variable hoist
ing data structures and types literals control flow and error handl
ing if...else switch try/catch/throw error objects loops and iteration for while do...while break/cont
inue for..
in for..of functions def
ining functions call
ing functions function scope closures arguments & parameters arrow functions expressions and operators assignment & comparisons arithmetic operators bitwise & logical operators conditional (ternary) operator numbers and dates ...
...number literals number object math object date object text formatt
ing str
ing literals str
ing object template literals
internationalization regular expressions
indexed collections arrays typed arrays keyed collections map weakmap set weakset work
ing with objects objects and properties creat
ing objects def
ining methods getter and setter details of the object model prototype-based oop creat
ing object hierarchies
inheritance promises guarantees cha
ining error propagation composition tim
ing iterators and generators iterators iterables generators meta programm
ing proxy handlers and traps revocable proxy reflect javascript modules export
ing import
ing default exports ...
... renam
ing features aggregat
ing modules dynamic module load
ing next » ...
TypeError: "x" has no properties - JavaScript
the javascript exception "null (or undef
ined) has no properties" occurs when you attempt to access properties of null and undef
ined.
... message typeerror: unable to get property {x} of undef
ined or null reference (edge) typeerror: null has no properties (firefox) typeerror: undef
ined has no properties (firefox) error type typeerror.
... both, null and undef
ined, have no properties you could access.
... examples null and undef
ined have no properties null.foo; // typeerror: null has no properties undef
ined.bar; // typeerror: undef
ined has no properties ...
arguments.length - JavaScript
the arguments.length property conta
ins the number of arguments passed to the function.
...this can be more or less than the def
ined parameter's count (see function.length).
... examples us
ing arguments.length
in this example we def
ine a function that can add two or more numbers together.
...*/) { base = number(base); for (var i = 1; i < arguments.length; i++) { base += number(arguments[i]); } return base; } note the difference between function.length and arguments.length specifications specification ecmascript (ecma-262)the def
inition of 'arguments exotic objects'
in that specification.
AggregateError - JavaScript
the aggregateerror object represents an error when several errors need to be wrapped
in a s
ingle error.
...
instance properties aggregateerror.prototype.message error message, defaults to "".
... examples catch
ing an aggregateerror promise.any([ promise.reject(new error("some error")), ]).catch(e => { console.log(e
instanceof aggregateerror); // true console.log(e.message); // "all promises rejected" console.log(e.name); // "aggregateerror" console.log(e.errors); // [ error: "some error" ] }); creat
ing an aggregateerror try { throw new aggregateerror([ new error("some error"), ], 'hello'); } catch (e) { console.log(e
instanceof aggregateerror); // true console.log(e.message); // "hello" console.log(e.name); // "aggregateerror" console.log(e.errors); // [ error: "som...
...e error" ] } specifications specification promise.anythe def
inition of 'aggregateerror'
in that specification.
Array.prototype.entries() - JavaScript
the entries() method returns a new array iterator object that conta
ins the key/value pairs for each
index
in the array.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples iterat
ing with
index and element const a = ['a', 'b', 'c']; for (const [
index, element] of a.entries()) console.log(
index, element); // 0 'a' // 1 'b' // 2 'c' us
ing a for…of loop var a = ['a', 'b', 'c']; var iterator = a.entries(); for (let e of iterator) { console.log(e); } // [0, 'a'] // [1, 'b'] // [2, 'c'] specifications specification ecmascript (ecma-262)the def
inition of 'array.prototype.entries'
in that specification.
Array.prototype.keys() - JavaScript
the keys() method returns a new array iterator object that conta
ins the keys for each
index
in the array.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples key iterator doesn't ignore holes var arr = ['a', , 'c']; var sparsekeys = object.keys(arr); var densekeys = [...arr.keys()]; console.log(sparsekeys); // ['0', '2'] console.log(densekeys); // [0, 1, 2] specifications specification ecmascript (ecma-262)the def
inition of 'array.prototype.keys'
in that specification.
Boolean() constructor - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax new boolean([value]) parameters value optional the
initial value of the boolean object.
... examples creat
ing boolean objects with an
initial value of false var bnoparam = new boolean(); var bzero = new boolean(0); var bnull = new boolean(null); var bemptystr
ing = new boolean(''); var bfalse = new boolean(false); creat
ing boolean objects with an
initial value of true var btrue = new boolean(true); var btruestr
ing = new boolean('true'); var bfalsestr
ing = new boolean('false'); var bsul
in = new boolean('su l
in'); var barrayproto = new boolean([]); var bobjproto = new boolean({}); specifications specification ecmascript (ecma-262)the def
inition of 'boolean constructor'
in that specification.
Boolean.prototype.valueOf() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... this method is usually called
internally by javascript and not explicitly
in code.
... examples us
ing valueof() x = new boolean(); myvar = x.valueof(); // assigns false to myvar specifications specification ecmascript (ecma-262)the def
inition of 'boolean.prototype.valueof'
in that specification.
DataView.prototype.buffer - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... description the buffer property is an accessor property whose set accessor function is undef
ined, mean
ing that you can only read this property.
... examples us
ing the buffer property var buffer = new arraybuffer(8); var dataview = new dataview(buffer); dataview.buffer; // arraybuffer { bytelength: 8 } specifications specification ecmascript (ecma-262)the def
inition of 'dataview.prototype.buffer'
in that specification.
Date.prototype.getUTCDate() - JavaScript
the getutcdate() method returns the day (date) of the month
in the specified date accord
ing to universal time.
... syntax dateobj.getutcdate() return value an
integer number, between 1 and 31, represent
ing the day of the month
in the given date accord
ing to universal time.
... examples us
ing getutcdate() the follow
ing example assigns the day portion of the current date to the variable day.
... var today = new date(); var day = today.getutcdate(); specifications specification ecmascript (ecma-262)the def
inition of 'date.prototype.getutcdate'
in that specification.
Date.prototype.getUTCSeconds() - JavaScript
the getutcseconds() method returns the seconds
in the specified date accord
ing to universal time.
... syntax dateobj.getutcseconds() return value an
integer number, between 0 and 59, represent
ing the seconds
in the given date accord
ing to universal time.
... examples us
ing getutcseconds() the follow
ing example assigns the seconds portion of the current time to the variable seconds.
... var today = new date(); var seconds = today.getutcseconds(); specifications specification ecmascript (ecma-262)the def
inition of 'date.prototype.getutcseconds'
in that specification.
Error.prototype.message - JavaScript
description this property conta
ins a brief description of the error if one is available or has been set.
...the message property comb
ined with the name property is used by the error.prototype.tostr
ing() method to create a str
ing representation of the error.
... by default, the message property is an empty str
ing, but this behavior can be overridden for an
instance by specify
ing a message as the first argument to the error constructor.
... examples throw
ing a custom error var e = new error('could not parse
input'); // e.message is 'could not parse
input' throw e; specifications specification ecmascript (ecma-262)the def
inition of 'error.prototype.message'
in that specification.
Error.prototype.name - JavaScript
the
initial value is "error".
... description by default, error
instances are given the name "error".
... the name property,
in addition to the message property, is used by the error.prototype.tostr
ing() method to create a str
ing representation of the error.
... examples throw
ing a custom error var e = new error('malformed
input'); // e.name is 'error' e.name = 'parseerror'; throw e; // e.tostr
ing() would return 'parseerror: malformed
input' specifications specification ecmascript (ecma-262)the def
inition of 'error.prototype.name'
in that specification.
Generator.prototype.return() - JavaScript
the return() method returns the given value and f
inishes the generator.
... examples us
ing return() the follow
ing example shows a simple generator and the return method.
... function* gen() { yield 1; yield 2; yield 3; } const g = gen(); g.next(); // { value: 1, done: false } g.return('foo'); // { value: "foo", done: true } g.next(); // { value: undef
ined, done: true } if return(value) is called on a generator that is already
in "completed" state, the generator will rema
in in "completed" state.
... function* gen() { yield 1; yield 2; yield 3; } const g = gen(); g.next(); // { value: 1, done: false } g.next(); // { value: 2, done: false } g.next(); // { value: 3, done: false } g.next(); // { value: undef
ined, done: true } g.return(); // { value: undef
ined, done: true } g.return(1); // { value: 1, done: true } specifications specification ecmascript (ecma-262)the def
inition of 'generator.prototype.return'
in that specification.
Map.prototype.clear() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax mymap.clear(); return value undef
ined.
... examples us
ing clear() var mymap = new map(); mymap.set('bar', 'baz'); mymap.set(1, 'foo'); mymap.size; // 2 mymap.has('bar'); // true mymap.clear(); mymap.size; // 0 mymap.has('bar') // false specifications specification ecmascript (ecma-262)the def
inition of 'map.prototype.clear'
in that specification.
Map.prototype.entries() - JavaScript
the entries() method returns a new iterator object that conta
ins the [key, value] pairs for each element
in the map object
in insertion order.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing entries() let mymap = new map() mymap.set('0', 'foo') mymap.set(1, 'bar') mymap.set({}, 'baz') let mapiter = mymap.entries() console.log(mapiter.next().value) // ["0", "foo"] console.log(mapiter.next().value) // [1, "bar"] console.log(mapiter.next().value) // [object, "baz"] specifications specification ecmascript (ecma-262)the def
inition of 'map.prototype.entries'
in that specification.
Map.prototype.keys() - JavaScript
the keys() method returns a new iterator object that conta
ins the keys for each element
in the map object
in insertion order.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing keys() var mymap = new map(); mymap.set('0', 'foo'); mymap.set(1, 'bar'); mymap.set({}, 'baz'); var mapiter = mymap.keys(); console.log(mapiter.next().value); // "0" console.log(mapiter.next().value); // 1 console.log(mapiter.next().value); // object specifications specification ecmascript (ecma-262)the def
inition of 'map.prototype.keys'
in that specification.
Map.prototype.set() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing set() let mymap = new map() // add new elements to the map mymap.set('bar', 'foo') mymap.set(1, 'foobar') // update an element
in the map mymap.set('bar', 'baz') us
ing the set() with cha
ining s
ince the set() method returns back the same map object, you can cha
in the method call like below: // add new elements to the map with cha
ining.
... mymap.set('bar', 'foo') .set(1, 'foobar') .set(2, 'baz'); specifications specification ecmascript (ecma-262)the def
inition of 'map.prototype.set'
in that specification.
Map.prototype.values() - JavaScript
the values() method returns a new iterator object that conta
ins the values for each element
in the map object
in insertion order.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing values() var mymap = new map(); mymap.set('0', 'foo'); mymap.set(1, 'bar'); mymap.set({}, 'baz'); var mapiter = mymap.values(); console.log(mapiter.next().value); // "foo" console.log(mapiter.next().value); // "bar" console.log(mapiter.next().value); // "baz" specifications specification ecmascript (ecma-262)the def
inition of 'map.prototype.values'
in that specification.
Math.PI - JavaScript
the math.pi property represents the ratio of the circumference of a circle to its diameter, approximately 3.14159: math.pi=π≈3.14159\mathtt{\mi{math.pi}} = \pi \approx 3.14159 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.pi the follow
ing function uses math.pi to calculate the circumference of a circle with a passed radius.
... function calculatecircumference(radius) { return math.pi * (radius + radius); } calculatecircumference(1); // 6.283185307179586 specifications specification ecmascript (ecma-262)the def
inition of 'math.pi'
in that specification.
Math.atanh() - JavaScript
the math.atanh() function returns the hyperbolic arctangent of a number, that is ∀x∊(-1,1),math.atanh(x)=arctanh(x)= the unique ysuch thattanh(y)=x\forall x \
in \left( -1, 1 \right), \mathtt{\operatorname{math.atanh}(x)} = \operatorname{arctanh}(x) = \text{ the unique } \; y \; \text{such that} \; \tanh(y) = x the source for this
interactive example is stored
in a github repository.
... 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.
... polyfill for |x|<1\left|x\right| < 1, we have artanh(x)=12ln(1+x1-x)\operatorname {artanh} (x) = \frac{1}{2}\ln \left( \frac{1 + x}{1 - x} \right) so this can be emulated by the follow
ing function: math.atanh = math.atanh || function(x) { return math.log((1+x)/(1-x)) / 2; }; examples us
ing math.atanh() math.atanh(-2); // nan math.atanh(-1); // -
inf
inity math.atanh(0); // 0 math.atanh(0.5); // 0.5493061443340548 math.atanh(1); //
inf
inity math.atanh(2); // nan for values greater than 1 or less than -1, nan is returned.
... specifications specification ecmascript (ecma-262)the def
inition of 'math.atanh'
in that specification.
Math.cbrt() - JavaScript
the math.cbrt() function returns the cube root of a number, that is math.cbrt(x)=x3=the uniqueysuch thaty3=x\mathtt{math.cbrt(x)} = \sqrt[3]{x} = \text{the unique} \; y \; \text{such that} \; y^3 = x the source for this
interactive example is stored
in a github repository.
... 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.
... polyfill for all x≥0x \geq 0, have x3=x1/3\sqrt[3]{x} = x^{1/3} so this can be emulated by the follow
ing function: if (!math.cbrt) { math.cbrt = (function(pow) { return function cbrt(x){ // ensure negative numbers rema
in negative: return x < 0 ?
... -pow(-x, 1/3) : pow(x, 1/3); }; })(math.pow); // localize math.pow to
increase efficiency } examples us
ing math.cbrt() math.cbrt(nan); // nan math.cbrt(-1); // -1 math.cbrt(-0); // -0 math.cbrt(-
inf
inity); // -
inf
inity math.cbrt(0); // 0 math.cbrt(1); // 1 math.cbrt(
inf
inity); //
inf
inity math.cbrt(null); // 0 math.cbrt(2); // 1.2599210498948732 specifications specification ecmascript (ecma-262)the def
inition of 'math.cbrt'
in that specification.
Math.cosh() - JavaScript
the math.cosh() function returns the hyperbolic cos
ine of a number, that can be expressed us
ing the constant e: math.cosh(x)=ex+e-x2\mathtt{\operatorname{math.cosh(x)}} = \frac{e^x + e^{-x}}{2} the source for this
interactive example is stored
in a github repository.
... 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.
... return value the hyperbolic cos
ine of the given number.
... polyfill this can be emulated with the help of the math.exp() function: math.cosh = math.cosh || function(x) { return (math.exp(x) + math.exp(-x)) / 2; } or us
ing only one call to the math.exp() function: math.cosh = math.cosh || function(x) { var y = math.exp(x); return (y + 1 / y) / 2; }; examples us
ing math.cosh() math.cosh(0); // 1 math.cosh(1); // 1.5430806348152437 math.cosh(-1); // 1.5430806348152437 specifications specification ecmascript (ecma-262)the def
inition of 'math.cosh'
in that specification.
Math.exp() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... return value a number represent
ing ex, where e is euler's number and x is the argument.
... examples us
ing math.exp() math.exp(-1); // 0.36787944117144233 math.exp(0); // 1 math.exp(1); // 2.718281828459045 specifications specification ecmascript (ecma-262)the def
inition of 'math.exp'
in that specification.
Math.expm1() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... return value a number represent
ing ex - 1, where e is euler's number and x is the argument.
... polyfill this can be emulated with the help of the math.exp() function: math.expm1 = math.expm1 || function(x) { return math.exp(x) - 1; }; examples us
ing math.expm1() math.expm1(-1); // -0.6321205588285577 math.expm1(0); // 0 math.expm1(1); // 1.718281828459045 specifications specification ecmascript (ecma-262)the def
inition of 'math.expm1'
in that specification.
Math.log10() - JavaScript
the math.log10() function returns the base 10 logarithm of a number, that is ∀x>0,math.log10(x)=log10(x)=the uniqueysuch that10y=x\forall x > 0, \mathtt{\operatorname{math.log10}(x)} = \log_10(x) = \text{the unique} \; y \; \text{such that} \; 10^y = x the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.log10() math.log10(2); // 0.3010299956639812 math.log10(1); // 0 math.log10(0); // -
inf
inity math.log10(-2); // nan math.log10(100000); // 5 polyfill this can be emulated with the follow
ing function: math.log10 = math.log10 || function(x) { return math.log(x) * math.log10e; }; specifications specification ecmascript (ecma-262)the def
inition of ...
...'math.log10'
in that specification.
Math.log2() - JavaScript
the math.log2() function returns the base 2 logarithm of a number, that is ∀x>0,math.log2(x)=log2(x)=the uniqueysuch that2y=x\forall x > 0, \mathtt{\operatorname{math.log2}(x)} = \log_2(x) = \text{the unique} \; y \; \text{such that} \; 2^y = x the source for this
interactive example is stored
in a github repository.
... 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.
...note that it returns imprecise values on some
inputs (like 1 << 29), wrap
into math.round() if work
ing with bit masks.
... if (!math.log2) math.log2 = function(x) { return math.log(x) * math.log2e; }; examples us
ing math.log2() math.log2(3); // 1.584962500721156 math.log2(2); // 1 math.log2(1); // 0 math.log2(0); // -
inf
inity math.log2(-2); // nan math.log2(1024); // 10 specifications specification ecmascript (ecma-262)the def
inition of 'math.log2'
in that specification.
Math.tanh() - JavaScript
the math.tanh() function returns the hyperbolic tangent of a number, that is tanhx=s
inhxcoshx=ex-e-xex+e-x=e2x-1e2x+1\tanh x = \frac{\s
inh 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.
... polyfill this can be emulated with the help of the math.exp() function: math.tanh = math.tanh || function(x){ var a = math.exp(+x), b = math.exp(-x); return a ==
inf
inity ?
... 1 : b ==
inf
inity ?
... -1 : (a - b) / (a + b); } examples us
ing math.tanh() math.tanh(0); // 0 math.tanh(
inf
inity); // 1 math.tanh(1); // 0.7615941559557649 specifications specification ecmascript (ecma-262)the def
inition of 'math.tanh'
in that specification.
Number.EPSILON - JavaScript
the number.epsilon property represents the difference between 1 and the smallest float
ing po
int number greater than 1.
... the source for this
interactive example is stored
in a github repository.
... 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.
... polyfill if (number.epsilon === undef
ined) { number.epsilon = math.pow(2, -52); } examples test
ing equality x = 0.2; y = 0.3; z = 0.1; equal = (math.abs(x - y + z) < number.epsilon); specifications specification ecmascript (ecma-262)the def
inition of 'number.epsilon'
in that specification.
Number.prototype.toSource() - JavaScript
the tosource() method returns a str
ing represent
ing the source code of the object.
... syntax numobj.tosource() number.tosource() return value a str
ing represent
ing the source code of the object.
... examples native function for the built-
in number object, tosource() returns the follow
ing str
ing
indicat
ing that the source code is not available: function number() { [native code] } for
instances of number, tosource() returns a str
ing represent
ing the source code.
... this method is usually called
internally by javascript and not explicitly
in web code.
Promise.reject() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
...for debugg
ing purposes and selective error catch
ing, it is useful to make reason an
instanceof error.
... examples us
ing the static promise.reject() method promise.reject(new error('fail')).then(function() { // not called }, function(error) { console.error(error); // stacktrace }); specifications specification ecmascript (ecma-262)the def
inition of 'promise.reject'
in that specification.
RangeError() constructor - JavaScript
the rangeerror() constructor creates an error when a value is not
in the set or range of allowed values.
... syntax new rangeerror([message[, filename[, l
inenumber]]]) parameters message optional human-readable description of the error.
... filename optional the name of the file conta
ining the code that caused the exception l
inenumber optional the l
ine number of the code that caused the exception examples us
ing rangeerror (for numeric values) function check(n) { if( !(n >= -500 && n <= 500) ) { throw new rangeerror("the argument must be between -500 and 500.") } } try { check(2000) } catch(error) { if (error
instanceof rangeerror) { // handle the error } } us
ing rangeerror (for non-numeric values) function check(value) { if(["apple", "banana", "carrot"].
includes(value) === false) { throw new rangeerror('the argument must be an "apple", "banana", or "carrot".') } } try { check("cabbage") } catch(error) { if(error
instanceof rangeerror) { ...
... // handle the error } } specifications specification ecmascript (ecma-262)the def
inition of 'nativeerror constructors'
in that specification.
Reflect.ownKeys() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing reflect.ownkeys() reflect.ownkeys({z: 3, y: 2, x: 1}) // [ "z", "y", "x" ] reflect.ownkeys([]) // ["length"] let sym = symbol.for('comet') let sym2 = symbol.for('meteor') let obj = {[sym]: 0, 'str': 0, '773': 0, '0': 0, [sym2]: 0, '-1': 0, '8': 0, 'second str': 0} reflect.ownkeys(obj) // [ "0", "8", "773", "str", "-1", "second str", symbol(comet), symbol(meteor) ] ...
...//
indexes
in numeric order, // str
ings
in insertion order, // symbols
in insertion order specifications specification ecmascript (ecma-262)the def
inition of 'reflect.ownkeys'
in that specification.
get RegExp[@@species] - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples species
in ord
inary objects the species property returns the default constructor function, which is the regexp constructor for regexp objects: regexp[symbol.species]; // function regexp() species
in derived objects
in a derived collection object (e.g.
...however, you might want to overwrite this,
in order to return parent regexp objects
in your derived class methods: class myregexp extends regexp { // overwrite myregexp species to the parent regexp constructor static get [symbol.species]() { return regexp; } } specifications specification ecmascript (ecma-262)the def
inition of 'get regexp [ @@species ]'
in that specification.
RegExp.prototype.compile() - JavaScript
the deprecated compile() method is used to (re-)compile a regular expression dur
ing execution of a script.
... flags if specified, flags can have any comb
ination of the follow
ing values: g global match i ignore case m multil
ine; treat beg
inn
ing and end characters (^ and $) as work
ing over multiple l
ines (i.e., match the beg
inn
ing or end of each l
ine (delimited by \n or \r), not only the very beg
inn
ing or end of the whole
input str
ing) y sticky; matches only from the
index
indicated by the last
index property of this regular expression
in the target str
ing (and does not attempt to match from any later
indexes).
... examples us
ing compile() the follow
ing example shows how to recompile a regular expression with a new pattern and a new flag.
... var regexobj = new regexp('foo', 'gi'); regexobj.compile('new foo', 'g'); specifications specification ecmascript (ecma-262)the def
inition of 'regexp.prototype.compile'
in that specification.
RegExp.prototype.toSource() - JavaScript
the tosource() method returns a str
ing represent
ing the source code of the object.
... syntax regexobj.tosource() return value a str
ing represent
ing the source code of the given regexp object.
... examples native function for the built-
in regexp object, tosource() returns the follow
ing str
ing
indicat
ing that the source code is not available: function regexp() { [native code] } for
instances of regexp, tosource() returns a str
ing represent
ing the source code.
... this method is usually called
internally by javascript and not explicitly
in web code.
Set.prototype[@@iterator]() - JavaScript
the
initial value of the @@iterator property is the same function object as the
initial value of the values property.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing [@@iterator]() const myset = new set(); myset.add('0'); myset.add(1); myset.add({}); const setiter = myset[symbol.iterator](); console.log(setiter.next().value); // "0" console.log(setiter.next().value); // 1 console.log(setiter.next().value); // object us
ing [@@iterator]() with for..of const myset = new set(); myset.add('0'); myset.add(1); myset.add({}); for (const v of myset) { console.log(v); } specifications specification ecmascript (ecma-262)the def
inition of 'set.prototype[@@iterator]'
in that specification.
Set.prototype.clear() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax myset.clear(); return value undef
ined.
... examples us
ing the clear method var myset = new set(); myset.add(1); myset.add('foo'); myset.size; // 2 myset.has('foo'); // true myset.clear(); myset.size; // 0 myset.has('bar') // false specifications specification ecmascript (ecma-262)the def
inition of 'set.prototype.clear'
in that specification.
Symbol.prototype[@@toPrimitive] - JavaScript
syntax symbol()[symbol.toprimitive](h
int) return value the primitive value of the specified symbol object.
...the h
int argument is not used.
...you rarely need to
invoke the [@@toprimitive]() method yourself; javascript automatically
invokes it when encounter
ing an object where a primitive value is expected.
... examples us
ing @@toprimitive const sym = symbol("example"); sym === sym[symbol.toprimitive](); // true specifications specification ecmascript (ecma-262)the def
inition of 'symbol.prototype.@@toprimitive'
in that specification.
Symbol.prototype.toSource() - JavaScript
the tosource() method returns a str
ing represent
ing the source code of the object.
... this method is usually called
internally by javascript.
... syntax symbol.tosource() var sym = symbol() sym.tosource() return value a str
ing represent
ing the source code of the object.
... examples native function for the built-
in symbol object, tosource returns the follow
ing str
ing
indicat
ing that the source code is not available: "function symbol() { [native code] }" for
instances of symbol, tosource returns a str
ing represent
ing the source code.
TypeError() constructor - JavaScript
syntax new typeerror([message[, filename[, l
inenumber]]]) parameters message optional optional.
...the name of the file conta
ining the code that caused the exception l
inenumber optional optional.
... the l
ine number of the code that caused the exception examples catch
ing a typeerror try { null.f() } catch (e) { console.log(e
instanceof typeerror) // true console.log(e.message) // "null has no properties" console.log(e.name) // "typeerror" console.log(e.filename) // "scratchpad/1" console.log(e.l
inenumber) // 2 console.log(e.columnnumber) // 2 console.log(e.stack) // "@scratchpad/2:2:3\n" } creat
ing a typeerror try { throw new typeerror('hello', "somefile.js", 10) } catch (e) { console.log(e
instanceof typeerror) // true console.log(e.message) // "hello" console.log(e.name) // "typeerror" console.log(e.filename) // "somefile.js" ...
...console.log(e.l
inenumber) // 10 console.log(e.columnnumber) // 0 console.log(e.stack) // "@scratchpad/2:2:9\n" } specifications specification ecmascript (ecma-262)the def
inition of 'nativeerror constructor'
in that specification.
TypedArray.prototype.buffer - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... description the buffer property is an accessor property whose set accessor function is undef
ined, mean
ing that you can only read this property.
... examples us
ing the buffer property var buffer = new arraybuffer(8); var u
int16 = new u
int16array(buffer); u
int16.buffer; // arraybuffer { bytelength: 8 } specifications specification ecmascript (ecma-262)the def
inition of 'typedarray.prototype.buffer'
in that specification.
TypedArray.prototype.entries() - JavaScript
the entries() method returns a new array iterator object that conta
ins the key/value pairs for each
index
in the array.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples iteration us
ing for...of loop var arr = new u
int8array([10, 20, 30, 40, 50]); var earray = arr.entries(); // your browser must support for..of loop // and let-scoped variables
in for loops for (let n of earray) { console.log(n); } alternative iteration var arr = new u
int8array([10, 20, 30, 40, 50]); var earr = arr.entries(); console.log(earr.next().value); // [0, 10] console.log(earr.next().value); // [1, 20] console.log(earr.next().value); // [2, 30] console.log(earr.next().value); // [3, 40] console.log(earr.next().value); // [4, 50] specifications specification ecmascript (ecma-262)the def
inition of '%typedarray%.prototype.entries()'
in that specification.
TypedArray.prototype.keys() - JavaScript
the keys() method returns a new array iterator object that conta
ins the keys for each
index
in the array.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples iteration us
ing for...of loop var arr = new u
int8array([10, 20, 30, 40, 50]); var earray = arr.keys(); // your browser must support for..of loop // and let-scoped variables
in for loops for (let n of earray) { console.log(n); } alternative iteration var arr = new u
int8array([10, 20, 30, 40, 50]); var earr = arr.keys(); console.log(earr.next().value); // 0 console.log(earr.next().value); // 1 console.log(earr.next().value); // 2 console.log(earr.next().value); // 3 console.log(earr.next().value); // 4 specifications specification ecmascript (ecma-262)the def
inition of '%typedarray%.prototype.keys()'
in that specification.
TypedArray.prototype.reverse() - JavaScript
the reverse() method reverses a typed array
in place.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing reverse var u
int8 = new u
int8array([1, 2, 3]); u
int8.reverse(); console.log(u
int8); // u
int8array [3, 2, 1] specifications specification ecmascript (ecma-262)the def
inition of 'typedarray.prototype.reverse'
in that specification.
TypedArray.prototype.values() - JavaScript
the values() method returns a new array iterator object that conta
ins the values for each
index
in the array.
... the source for this
interactive example is stored
in a github repository.
... 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.
... examples iteration us
ing for...of loop var arr = new u
int8array([10, 20, 30, 40, 50]); var earray = arr.values(); // your browser must support for..of loop // and let-scoped variables
in for loops for (let n of earray) { console.log(n); } alternative iteration var arr = new u
int8array([10, 20, 30, 40, 50]); var earr = arr.values(); console.log(earr.next().value); // 10 console.log(earr.next().value); // 20 console.log(earr.next().value); // 30 console.log(earr.next().value); // 40 console.log(earr.next().value); // 50 specifications specification ecmascript (ecma-262)the def
inition of '%typedarray%.prototype.values()'
in that specification.
WeakRef.prototype.deref() - JavaScript
the deref method returns the weakref
instance's target object, or undef
ined if the target object has been garbage-collected.
... syntax obj = ref.deref(); return value the target object of the weakref, or undef
ined if the object has been garbage-collected.
... examples us
ing deref see the examples section of the weakref page for the complete example.
... const tick = () => { // get the element from the weak reference, if it still exists const element = this.ref.deref(); if (element) { element.textcontent = ++this.count; } else { // the element doesn't exist anymore console.log("the element is gone."); this.stop(); this.ref = null; } }; specifications specification weakrefsthe def
inition of 'weakref.prototype.deref()'
in that specification.
WeakSet() constructor - JavaScript
the weakset constructor lets you create weakset objects that store weakly held objects
in a collection.
...null is treated as undef
ined.
... examples us
ing the weakset object var ws = new weakset(); var foo = {}; var bar = {}; ws.add(foo); ws.add(bar); ws.has(foo); // true ws.has(bar); // true ws.delete(foo); // removes foo from the set ws.has(foo); // false, foo has been removed ws.has(bar); // true, bar is reta
ined note that foo !== bar.
... specifications specification ecmascript (ecma-262)the def
inition of 'weakset constructor'
in that specification.
Addition (+) - JavaScript
the addition operator (+) produces the sum of numeric operands or str
ing concatenation.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x + y examples numeric addition // number + number -> addition 1 + 2 // 3 // boolean + number -> addition true + 1 // 2 // boolean + boolean -> addition false + false // 0 str
ing concatenation // str
ing + str
ing -> concatenation 'foo' + 'bar' // "foobar" // number + str
ing -> concatenation 5 + 'foo' // "5foo" // str
ing + boolean -> concatenation 'foo' + false // "foofalse" specifications specification ecmascript (ecma-262)the def
inition of 'addition operator'
in that specification.
Addition assignment (+=) - JavaScript
the types of the two operands determ
ine the behavior of the addition assignment operator.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x += y mean
ing: x = x + y examples us
ing addition assignment // assum
ing the follow
ing variables // foo = 'foo' // bar = 5 // baz = true // number + number -> addition bar += 2 // 7 // boolean + number -> addition baz += 1 // 2 // boolean + boolean -> addition baz += false // 1 // number + str
ing -> concatenation bar += 'foo' // "5foo" // str
ing + boolean -> concatenation foo += false // "foofalse" // str
ing + str
ing -> concatenation foo += 'bar' // "foobar" specifications specification ecmascript (ecma-262)the def
inition of 'assignment operators'
in that specification.
Bitwise AND assignment (&=) - JavaScript
the bitwise and assignment operator (&=) uses the b
inary representation of both operands, does a bitwise and operation on them and assigns the result to the variable.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x &= y mean
ing: x = x & y examples us
ing bitwise and assignment let a = 5; // 5: 00000000000000000000000000000101 // 2: 00000000000000000000000000000010 a &= 2; // 0 specifications specification ecmascript (ecma-262)the def
inition of 'assignment operators'
in that specification.
Bitwise OR assignment (|=) - JavaScript
the bitwise or assignment operator (|=) uses the b
inary representation of both operands, does a bitwise or operation on them and assigns the result to the variable.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x |= y mean
ing: x = x | y examples us
ing bitwise or assignment let a = 5; a |= 2; // 7 // 5: 00000000000000000000000000000101 // 2: 00000000000000000000000000000010 // ----------------------------------- // 7: 00000000000000000000000000000111 specifications specification ecmascript (ecma-262)the def
inition of 'assignment operators'
in that specification.
Bitwise XOR assignment (^=) - JavaScript
the bitwise xor assignment operator (^=) uses the b
inary representation of both operands, does a bitwise xor operation on them and assigns the result to the variable.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x ^= y mean
ing: x = x ^ y examples us
ing bitwise xor assignment let a = 5; // 00000000000000000000000000000101 a ^= 3; // 00000000000000000000000000000011 console.log(a); // 00000000000000000000000000000110 // 6 let b = 5; // 00000000000000000000000000000101 b ^= 0; // 00000000000000000000000000000000 console.log(b); // 00000000000000000000000000000101 // 5 specifications specification ecmascript (ecma-262)the def
inition of 'assignment operators'
in that specification.
Logical AND assignment (&&=) - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax expr1 &&= expr2 description short-circuit evaluation the logical and operator is evaluated left to right, it is tested for possible short-circuit evaluation us
ing the follow
ing rule: (some falsy expression) && expr is short-circuit evaluated to the falsy expression; short circuit means that the expr part above is not evaluated, hence any side effects of do
ing so do not take effect (e.g., if expr is a function call, the call
ing never takes place).
... logical and assignment short-circuits as well mean
ing that x &&= y is equivalent to: x && (x = y); and not equivalent to the follow
ing which would always perform an assignment: x = x && y; examples us
ing logical and assignment let x = 0; let y = 1; x &&= 0; // 0 x &&= 1; // 0 y &&= 1; // 1 y &&= 0; // 0 specifications specification logical assignment operatorsthe def
inition of 'assignment operators'
in that specification.
Subtraction (-) - JavaScript
the subtraction operator (-) subtracts the two operands, produc
ing their difference.
... the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: x - y examples subtraction with numbers 5 - 3 // 2 3 - 5 // -2 subtraction with non-numbers 'foo' - 3 // nan specifications specification ecmascript (ecma-262)the def
inition of 'subtraction operator'
in that specification.
Unary negation (-) - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... syntax operator: -x examples negat
ing numbers const x = 3; const y = -x; // y = -3 // x = 3 negat
ing non-numbers the unary negation operator can convert a non-number
into a number.
... const x = "4"; const y = -x; // y = -4 specifications specification ecmascript (ecma-262)the def
inition of 'unary negation operator'
in that specification.
description - Web app manifests
type str
ing mandatory no the description member is a str
ing
in which developers can expla
in what the application does.
... examples simple description
in left-to-right language: "description": "awesome application that will help you achieve your dreams." description
in arabic, which will be displayed right-to-left: "dir": "rtl", "lang": "ar", "description": ".تطبيق رائع سيساعدك على تحقيق أحلامك" specification specification status comment feedback web app manifestthe def
inition of 'description'
in that specification.
... work
ing draft
initial def
inition.
... web app manifest work
ing group drafts ...
name - Web app manifests
type str
ing mandatory yes the name member is a str
ing that represents the name of the web application as it is usually displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).
... examples simple name
in left-to-right language: "name": "awesome application" right-to-left name
in arabic: "dir": "rtl", "lang": "ar", "name": "!أنا من التطبيق" specification specification status comment feedback web app manifestthe def
inition of 'name'
in that specification.
... work
ing draft
initial def
inition.
... web app manifest work
ing group drafts ...
serviceworker - Web app manifests
type object mandatory no the serviceworker member describes a service worker that the developer
intends to
install to control the pwa.
... examples "serviceworker": { "src": "./serviceworker.js", "scope": "/app", "type": "", "update_via_cache": "none" } values service worker conta
in the follow
ing values (only src is required): member description src the url to download the service worker script from.
... scope a str
ing represent
ing a url that def
ines a service worker's registration scope; that is, what range of urls a service worker can control.
... update_via_cache whether the user agent cache should be bypassed when fetch
ing the service worker.
short_name - Web app manifests
type str
ing mandatory no the short_name member is a str
ing that represents the name of the web application displayed to the user if there is not enough space to display name (e.g., as a label for an icon on the phone home screen).
... examples simple short_name
in left-to-right language: "name": "awesome application", "short_name": "awesome app" short_name
in arabic, which will be displayed right-to-left: "dir": "rtl", "lang": "ar", "name": "تطبيق رائع", "short_name": "رائع" specification specification status comment feedback web app manifestthe def
inition of 'short_name'
in that specification.
... work
ing draft
initial def
inition.
... web app manifest work
ing group drafts ...
theme_color - Web app manifests
type str
ing mandatory no the theme_color member is a str
ing that def
ines the default theme color for the application.
... examples "theme_color": "red" specification specification status comment feedback web app manifestthe def
inition of 'theme_color'
in that specification.
... work
ing draft
initial def
inition.
... web app manifest work
ing group drafts ...
<mphantom> - MathML
the mathml <mphantom> element is rendered
invisibly, but dimensions (such as height, width, and basel
ine position) are still kept.
... examples sample render
ing: render
ing
in your browser: x + y + z <math> <mrow> <mi> x </mi> <mo> + </mo> <mphantom> <mi> y </mi> <mo> + </mo> </mphantom> <mi> z </mi> </mrow> </math> specifications specification status comment mathml 3.0the def
inition of 'mphantom'
in that specification.
... recommendation current specification mathml 2.0the def
inition of 'mphantom'
in that specification.
... recommendation
initial specification ...
PWA developer guide - Progressive web apps (PWAs)
in the articles listed here, you'll f
ind guides about every aspect of development specific to the greation of progressive web applications (pwas).
... for all other documentation about web development, which generally perta
ins to pwas as well, see our primary web development documentation.
...<<<--- web app basics
introduction and gett
ing started with pwa development some description
install
ing and un
install
ing web apps an
introductory guide to how a web app can be
installed on the user's device...
... us
ing service workers to run offl
ine description alert
ing the user us
ing notifications description creat
ing a web app from an exist
ing site description advanced topics push
ing data from the server to your web application some description resource management description
integration with the host device description security and privacy description gam
ing topics for web app developers description polish
ing web apps web api equivalents for common native apis some description platform-specific tips and issues description web application performance guide description ensur
ing a good user experience description related topics some topic some description ...
SVG Event Attributes - SVG: Scalable Vector Graphics
event attributes always have their name start
ing with "on" followed by the name of the event for which they are
intended.
... for every event type that the browser supports, svg supports that as an event attribute, follow
ing the same requirements as for html event attributes.
... attributes animation event attributes onbeg
in, onend, onrepeat document event attributes onabort, onerror, onresize, onscroll, onunload document element event attributes oncopy, oncut, onpaste global event attributes oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncuechange, ondblclick, ondrag, ondragend, ondragenter, ondragexit, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, on
input, on
invalid, onkeydown, onkeypress, onkeyup, onload, onloadeddata, onloadedmetadata, onloadstart, onmousedown, onmouseenter, onmouseleave, onmous...
...emove, onmouseout, onmouseover, onmouseup, onmousewheel, onpause, onplay, onplay
ing, onprogress, onratechange, onreset, onresize, onscroll, onseeked, onseek
ing, onselect, onshow, onstalled, onsubmit, onsuspend, ontimeupdate, ontoggle, onvolumechange, onwait
ing graphical event attributes onactivate, onfocus
in, onfocusout ...
accent-height - SVG: Scalable Vector Graphics
the accent-height attribute def
ines the distance from the orig
in to the top of accent characters, measured by a distance with
in the font coord
inate system.
... only one element is us
ing this attribute: <font-face> font-face for <font-face>, accent-height def
ines the distance from the orig
in to the top of accent characters, measured by a distance with
in the font coord
inate system.
... value <number> default value value of ascent animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'accent-height'
in that specification.
... recommendation
initial def
inition ...
bbox - SVG: Scalable Vector Graphics
the bbox attribute def
ines the maximal bound
ing box of a font.
... only one element is us
ing this attribute: <font-face> usage notes value <str
ing> default value none animatable no <str
ing> a comma-separated list of exactly four numbers specify
ing,
in order, the lower left x, lower left y, upper right x, and upper right y of the bound
ing box for the complete font.
... specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'bbox'
in that specification.
... recommendation
initial def
inition ...
bias - SVG: Scalable Vector Graphics
after apply
ing the kernelmatrix of the <feconvolvematrix> element to the
input image to yield a number and applied the divisor attribute, the bias attribute is added to each component.
... specifications specification status comment filter effects module level 1the def
inition of 'bias'
in that specification.
... work
ing draft no change scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'bias'
in that specification.
... recommendation
initial def
inition ...
cap-height - SVG: Scalable Vector Graphics
the cap-height attribute def
ines the height of uppercase glyphs of the font with
in the font coord
inate system.
... note: it was specified to share the syntax and semantics of the obsolete cap-height descriptor of the @font-face at-rule def
ined
in an early version of css 2.
... only one element is us
ing this attribute: <font-face> usage notes value <number> default value none animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'cap-height'
in that specification.
... recommendation
initial def
inition ...
descent - SVG: Scalable Vector Graphics
the descent attribute def
ines the maximum unaccented depth of the font.
... note: it was specified to share the syntax and semantics of the obsolete descent descriptor of the @font-face at-rule def
ined
in an early version of css 2.
... only one element is us
ing this attribute: <font-face> usage notes value <number> default value value of vert-orig
in-y animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'descent'
in that specification.
... recommendation
initial def
inition ...
fr - SVG: Scalable Vector Graphics
the fr attribute def
ines the radius of the focal po
int for the radial gradient.
... only one element is us
ing this attribute: <radialgradient> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient1" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> <radialgradient id="gradient2" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="25%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage...
...ill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sans-serif" font-size="10pt">(cx,cy)</text> </svg> specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'fr'
in that specification.
... candidate recommendation
initial def
inition ...
glyphRef - SVG: Scalable Vector Graphics
two elements are us
ing this attribute: <altglyph> and <glyphref> usage notes value <str
ing> default value none animatable yes <str
ing> this value represents the glyph identifier.
... specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'glyphref for <glyphref>'
in that specification.
... recommendation
initial def
inition for <glyphref> scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'altglyph for <altglyph>'
in that specification.
... recommendation
initial def
inition for <altglyph> ...
onclick - SVG: Scalable Vector Graphics
thirty-seven elements are us
ing this attribute: <a>, <altglyph>, <animate>, <animatemotion>, <animatetransform>, <circle>, <defs>, <desc>, <ellipse>, <foreignobject>, <g>, <image>, <l
ine>, <l
ineargradient>, <marker>, <metadata>, <mpath>, <path>, <pattern>, <polygon>, <polyl
ine>, <radialgradient>, <rect>, <script>, <set>, <stop>, <style>, <svg>, <switch>, <symbol>, <text>, <textpath>, <title>, <tref>, <tspan>, <use>, <view> html, body, svg { height: 100%; marg
in: 0; } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"> <circle cx="100" cy="100" r="100" onclick="alert('you have clicked the circle.')" /> </svg> usage notes value <anyth
ing> default value none...
... animatable no specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'onclick'
in that specification.
... candidate recommendation no change scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'onclick'
in that specification.
... recommendation
initial def
inition ...
side - SVG: Scalable Vector Graphics
the side attribute determ
ines the side of a path the text is placed on (relative to the path direction).
... only one element is us
ing this attribute: <textpath> html, body, svg { height: 100%; } text { font: 25px arial, helvelica, sans-serif; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <text> <textpath href="#circle1" side="left">text left from the path</textpath> </text> <text> <textpath href="#circle2" side="right">text right from the path</textpath> </text> <circle id="circle1" cx="100" cy="100" r="70" fill="transparent" stroke="silver"/> <circle id="circle2" cx="320" cy="100" r="70" fill="transparent" stroke="silver"/> </svg> usage notes value left | right default value left animatable yes left this value places the text on the left side of the path (relative to the path direction).
... specifications specification status comment scalable vector graphics (svg) 2the def
inition of 'side'
in that specification.
... candidate recommendation
initial def
inition ...
slope - SVG: Scalable Vector Graphics
the slope attribute
indicates the vertical stroke angle of a font.
... only one element is us
ing this attribute: <font-face> usage notes value <number> default value 0 animatable no <number> this value
indicates the vertical stroke angle of the font.
... specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'slope'
in that specification.
... recommendation
initial def
inition ...
unicode-range - SVG: Scalable Vector Graphics
the unicode-range attribute def
ines the range of iso 10646 characters possibly covered by the glyphs
in a font.
... only one element is us
ing this attribute: <font-face> usage notes value <urange># default value none animatable no <urange># this value is a comma-separated list of iso 10646 characters possibly covered by the glyphs
in the font.
... specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the def
inition of 'unicode-range'
in that specification.
... recommendation
initial def
inition ...
emptyText - Archive of obsolete content
« xul reference emptytext deprecated s
ince gecko 2 type: str
ing gets and sets a str
ing that appears
in the textbox when it has no value.
... this is superseded by the placeholder property
in gecko 2.0.
... the old name is reta
ined for compatibility, but you should update your code.
firstPermanentChild - Archive of obsolete content
« xul reference firstpermanentchild not
in seamonkey 1.x type: element the first permanent child of the toolbar.
... a permanent child is one that is not customizable and rema
ins on the toolbar.
... items that are placed directly
inside the toolbar without be
ing
in the toolbarpalette are permanent.
lastPermanentChild - Archive of obsolete content
« xul reference lastpermanentchild not
in seamonkey 1.x type: element the last permanent child of the toolbar.
... a permanent child is one that is not customizable and rema
ins on the toolbar.
... items that are placed directly
inside the toolbar without be
ing
in the toolbarpalette are permanent.
maxWidth - Archive of obsolete content
« xul reference maxwidth type:
integer gets and sets the value of the maxwidth attribute.
... note: prior to gecko 6.0, you could use this on <
input> elements; this was never
intended, was a violation of the html specification, and has been fixed.
... use the size to set the maximum width of
input fields.
selectedItem - Archive of obsolete content
you can select an item by sett
ing this value.
... a select event will be sent to the controll
ing conta
iner (i.e.
... the listbox, richlistbox, radiogroup, etc., not the list item that was selected) when it is changed either via this property, the selected
index property, or changed by the user.
selectionStart - Archive of obsolete content
« xul reference selectionstart type:
integer get or set the beg
inn
ing of the selected portion of the field's text.
... use
in conjuction with the selectionend property.
... the value specifies the
index of the first selected character.
toolboxid - Archive of obsolete content
« xul reference toolboxid type: str
ing the id of the toolbox this toolbar is a member of.
... this will either be the toolbox's parent (if it's
in a toolbox), or, if the toolbar is an external toolbar (that is, one not conta
ined
in a toolbox), the id of the toolbox it should be considered to be part of.
... this makes it possible to have toolbars that are not conta
ined with
in toolboxes, such as the add-on bar.
Notes - Archive of obsolete content
implement
ing an nsicommandl
inehandler on w
indows may trigger a bug that causes an error message ("w
indows cannot f
ind the file specified") to be displayed when open
ing external l
inks (like from a shortcut or from an external application).
... delet
ing the "(default)" values
in the follow
ing registry keys will fix this: hkey_classes_root\http\shell\open\ddeexec hkey_classes_root\https\shell\open\ddeexec you can also do this from with
in your xpcom component us
ing w
indows registry
interface.
... some more l
inks on the matter: a mozillaz
ine post.
Template Guide - Archive of obsolete content
basics of xul templates
introduction rule compilation rdf template syntax result generation rdf query syntax actions recursive generation simple example b
ind
ings additional navigation filter
ing static content simple query syntax conta
inment properties xml template syntax xml templates xml assignments sql template syntax sqlite templates common template syntax attribute substitution multiple rules us
ing recursive templates build
ing menus with templates special condition tests multiple queries us
ing multiple queries to generate more results build
ing trees with templates build
ing trees build
ing hierarchical trees template modifications template builder
interface template and tree listeners rdf modifications additional topics sor...
...t
ing results additional template attributes template logg
ing xml namespaces alternative approaches javascript templates xuljsdatasource: a component for extensions, which br
ing a "javascript template syntax".
...
interwiki language l
inks ...
XUL and RDF - Archive of obsolete content
the first section of the document describes the motivation and reason
ing beh
ind us
ing rdf as the foundation of xul.
... this section makes a technical argument both for hav
ing xul
in the first place and for us
ing rdf as the underly
ing implementation of xul's content model.
... the second section describes the xul/rdf architecture itself and outl
ines enhancements to the xul language
in order to allow the markup language to reference local data and to
indicate how and when it would like to be annotatable with local data.
page - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] similar to a w
indow, except it should be used for xul files that are to be loaded
into an iframe.
... examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hi...
...dden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceur...
scrollcorner - Archive of obsolete content
examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width pr...
...operties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens()...
..., getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, lookupprefix, normalize(), queryselector(), queryselectorall(), removeattribute(), removeattributenode(), removeattributens(), removechild(), removeeventlistener(), replacechild(), setattribute(), setattributenode(), setattributenodens(), setattributens(), setuserdata ...
toolbarset - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] firefox only this element is used as a conta
iner for custom toolbars, which are added
in the custom toolbar dialog.
... examples (example needed) attributes
inherited from xul element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, conta
iner, conta
inment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id,
insertafter,
insertbefore, left, maxheight, maxwidth, menu, m
inheight, m
inwidth, mousethrough, observes, ord
inal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties
inherited properties align, , allowevents, , boxobject, builder, , , , classname, , , , , collapsed, contextmenu, controllers, database, datasources, dir, , , flex, height, hidden, ...
...id, , , left, , maxheight, maxwidth, menu, m
inheight, m
inwidth, , , , , , , observes, ord
inal, 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(), getbound
ingclientrect(), getclientrects(), getelementsbyattribute, getelementsbyattributens, getelementsbyclassname(), getelementsbytagname(), getelementsbytagnamens(), getfeature, getuserdata, hasattribute(), hasattributens(), hasattributes(), haschildnodes(),
insertbefore(), isdefaultnamespace(), isequalnode, issamenode, issupported(), lookupnamespaceuri, looku...
XULRunner/Old Releases - Archive of obsolete content
community contributed builds of xulrunner 1.8.1.3 these builds are contributed by the eclipse atf community and are
intended for embedd
ing.
... the w
indows and l
inux builds will run normal xulrunner applications, but the mac build uses cocoa widgets and will not run xulrunner applications.
...it has known security holes and should not be used
in applications that deal with public web content.
toolkit.defaultChromeURI - Archive of obsolete content
type: str
ing specified by: default prefs of xulrunner applications default: none example: pref("toolkit.defaultchromeuri", "chrome://myapp/content/"); the toolkit.defaultchromeuri preference allows simple xulrunner-based applications to open a new w
indow when the application is launched.
... the preference specifies the uri of a chrome w
indow to be opened.
... see also: xulrunner:specify
ing startup chrome w
indow, toolkit.defaultchromefeatures, toolkit.s
ingletonw
indowtype.
Element: keypress event - Web APIs
s
ince this event has been deprecated, you should look to use before
input or keydown
instead.
...
interface keyboardevent bubbles yes cancelable yes default action varies: keypress event; launch text composition system; blur and focus events; domactivate event; other event examples addeventlistener keypress example this example logs the keyboardevent.code value whenever you press a key after focuss
ing the <
input> element.
... <div> <label for="sample">focus the
input and type someth
ing:</label> <
input type="text" name="text" id="sample"> </div> <p id="log"></p> const log = document.getelementbyid('log'); const
input = document.queryselector('
input');
input.addeventlistener('keypress', logkey); function logkey(e) { log.textcontent += ` ${e.code}`; } onkeypress equivalent
input.onkeypress = logkey; specifications specification status ui events work
ing draft ...
Element.runtimeStyle - Web APIs
it is available
in old versions of microsoft
internet explorer.
... desktopmobilechromeedgefirefox
internet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung
internetruntimestyle non-standardchrome no support noedge no support nofirefox no support noie full support 6opera no support ...
... nowebview android no support nochrome android no support nofirefox android no support noopera android no support nosafari ios no support nosamsung
internet android no support nolegend full support full support no support no supportnon-standard.
Element.scrollBy() - Web APIs
the scrollby() method of the element
interface scrolls an element by the given amount.
... examples // scroll an element element.scrollby(300, 300); us
ing options: element.scrollby({ top: 100, left: 100, behavior: 'smooth' }); specification specification status comment css object model (cssom) view modulethe def
inition of 'element.scrollby()'
in that specification.
... work
ing draft
initial def
inition.
Element.scrollLeftMax - Web APIs
the element.scrollleftmax read-only property returns a number represent
ing the maximum left scroll offset possible for the element.
... desktopmobilechromeedgefirefox
internet exploreroperasafariandroid webviewchrome for androidfirefox for androidopera for androidsafari on iossamsung
internetscrollleftmax non-standardchrome no support noedge no support nofirefox full support 16ie no support noopera no supp...
... nowebview android no support nochrome android no support nofirefox android full support 16opera android no support nosafari ios no support nosamsung
internet android no support nolegend full support full support no support no supportnon-standard.
Element.setAttributeNode() - Web APIs
this method is seldom used, with element.setattribute() usually be
ing used to change element's attributes.
... dom methods deal
ing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for deal
ing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for deal
ing 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 - specifications specification status comment domthe def
inition of 'setattributenode()'
in that specification.
... liv
ing standard ...
Element.setAttributeNodeNS() - Web APIs
note that if you try to set without clon
ing the node, mozilla gives an ns_error_dom_
inuse_attribute_err "attribute already
in use" error, as the dom requires clon
ing for attr to be reused (unlike other nodes which can be moved).
... dom methods deal
ing with element's attributes: not namespace-aware, most commonly used methods namespace-aware variants (dom level 2) dom level 1 methods for deal
ing with attr nodes directly (seldom used) dom level 2 namespace-aware methods for deal
ing 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 - specifications specification status comment domthe def
inition of 'document.setattributenodens'
in that specification.
... liv
ing standard ...
Element.tabStop - Web APIs
the tabstop property of the element
interface returns a boolean
indicat
ing if the element can receive
input focus via the tab key.
...while with the exist
ing tab
index property, it is required to specify an order for the element to become tabbable.
... the tabstop property would decouple the tabbable property from the tab
index.
EventSource: message event - Web APIs
bubbles no cancelable no
interface messageevent event handler property eventsource.onmessage examples
in this basic example, an eventsource is created to receive events from the server; a page with the name sse.php is responsible for generat
ing the events.
... var newelement = document.createelement("li"); newelement.textcontent = "message: " + e.data; eventlist.appendchild(newelement); }); onmessage equivalent evtsource.onmessage = (e) => { var newelement = document.createelement("li"); newelement.textcontent = "message: " + e.data; eventlist.appendchild(newelement); }; specifications specification status html liv
ing standardthe def
inition of 'message event'
in that specification.
... liv
ing standard ...
FetchEvent.isReload - Web APIs
the isreload read-only property of the fetchevent
interface returns true if the event was dispatched by the user attempt
ing to reload the page, and false otherwise.
... press
ing the refresh button is a reload while click
ing a l
ink and press
ing the back button is not.
... example self.addeventlistener('fetch', function(event) { event.respondwith( if (event.isreload) { //return someth
ing } else { //return someth
ing else }; ); }); ...
File.fileSize - Web APIs
returns the size of a file
in bytes.
...use blob.size
instead.
... syntax var size =
instanceoffile.filesize; value a number.
File.name - Web APIs
syntax var name = file.name; value a str
ing, conta
ining the name of the file without path, such as "my resume.rtf".
... example <
input type="file" multiple onchange="processselectedfiles(this)"> function processselectedfiles(file
input) { var files = file
input.files; for (var i = 0; i < files.length; i++) { alert("filename " + files[i].name); } } try the results out below: specifications specification status comment file apithe def
inition of 'name'
in that specification.
... work
ing draft
initial def
inition.
FileReader.abort() - Web APIs
syntax
instanceoffilereader.abort(); exceptions dom_file_abort_err thrown when abort is called while no read operation is
in progress (that is, the state isn't load
ing).
... specifications specification status comment file apithe def
inition of 'abort()'
in that specification.
... work
ing draft
initial def
inition ...
FileReader: load event - Web APIs
bubbles no cancelable no
interface progressevent event handler property filereader.onload examples live example html <div class="example"> <div class="file-select"> <label for="avatar">choose a profile picture:</label> <
input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { marg
in: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; bo...
...rder: 1px solid black; marg
in: .2rem; padd
ing: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const file
input = document.queryselector('
input[type="file"]'); const preview = document.queryselector('img.preview'); const eventlog = document.queryselector('.event-log-contents'); const reader = new filereader(); function handleevent(event) { eventlog.textcontent = eventlog.textcontent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { preview.src = reader.result; } } func...
...ader.addeventlistener('loadstart', handleevent); reader.addeventlistener('load', handleevent); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = file
input.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } file
input.addeventlistener('change', handleselected); result specifications specification status file api work
ing draft ...
FileReader: loadend event - Web APIs
bubbles no cancelable no
interface progressevent event handler property filereader.onloadend examples live example html <div class="example"> <div class="file-select"> <label for="avatar">choose a profile picture:</label> <
input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { marg
in: 1rem 0; } .event-log-contents { width: 18rem; ...
... height: 5rem; border: 1px solid black; marg
in: .2rem; padd
ing: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const file
input = document.queryselector('
input[type="file"]'); const preview = document.queryselector('img.preview'); const eventlog = document.queryselector('.event-log-contents'); const reader = new filereader(); function handleevent(event) { eventlog.textcontent = eventlog.textcontent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { preview.src = reader.re...
...ader.addeventlistener('loadstart', handleevent); reader.addeventlistener('load', handleevent); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = file
input.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } file
input.addeventlistener('change', handleselected); result specifications specification status file api work
ing draft ...
FileReader: loadstart event - Web APIs
bubbles no cancelable no
interface progressevent event handler property filereader.onloadstart examples live example html <div class="example"> <div class="file-select"> <label for="avatar">choose a profile picture:</label> <
input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { marg
in: 1rem 0; } .event-log-contents { width: 18rem; height: 5r...
...em; border: 1px solid black; marg
in: .2rem; padd
ing: .2rem; } .example { display: grid; grid-template-areas: "select log" "preview log"; } .file-select { grid-area: select; } .preview { grid-area: preview; } .event-log { grid-area: log; } .event-log>label { display: block; } .event-log-contents { resize: none; } js const file
input = document.queryselector('
input[type="file"]'); const preview = document.queryselector('img.preview'); const eventlog = document.queryselector('.event-log-contents'); const reader = new filereader(); function handleevent(event) { eventlog.textcontent = eventlog.textcontent + `${event.type}: ${event.loaded} bytes transferred\n`; if (event.type === "load") { preview.src = reader.result; }...
...ader.addeventlistener('loadstart', handleevent); reader.addeventlistener('load', handleevent); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = file
input.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } file
input.addeventlistener('change', handleselected); result specifications specification status file api work
ing draft ...
onMSVideoOptimalLayoutChanged - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... this proprietary property is specific to
internet explorer and microsoft edge.
Headers.entries() - Web APIs
the headers.entries() method returns an iterator allow
ing to go through all key/value pairs conta
ined
in this object.
... the both the key and value of each pairs are bytestr
ing objects.
... note: this method is available
in web workers.
Headers.keys() - Web APIs
the headers.keys() method returns an iterator allow
ing to go through all keys conta
ined
in this object.
... the keys are bytestr
ing objects.
... note: this method is available
in web workers.
Headers.values() - Web APIs
the headers.values() method returns an iterator allow
ing to go through all values conta
ined
in this object.
... the values are bytestr
ing objects.
... note: this method is available
in web workers.
IDBDatabase: versionchange event - Web APIs
bubbles no cancelable no
interface event event handler property onversionchange examples this example opens a database and, on success, adds a listener to versionchange: // open the database const dbopenrequest = w
indow.
indexeddb.open('nonexistent', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectsto...
...re.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.addeventlistener('success', event => { const db = event.target.result; db.addeventlistener('versionchange', event => { console.log('the version of this database has changed'); }); }); the same example, us
ing the onversionchange event handler property: // open the database const dbopenrequest = w
indow.
indexeddb.open('nonexistent', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; // create an objectstore for this database const objectstore = db.createobjectstore('todolist', { keypath: 'ta...
...sktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; dbopenrequest.onsuccess = event => { const db = event.target.result; db.onversionchange = event => { console.log('the version of this database has changed'); }; }; ...
FileHandle.name - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... syntax var name =
instanceoffilehandle.name value a str
ing.
FileHandle.onabort - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... syntax
instanceoffilehandle.onabort = funcref; where funcref is a function to be called when the abort event occurs.
FileHandle.type - Web APIs
do not use it on production sites fac
ing the web: it will not work for every user.
... there may also be large
incompatibilities between implementations and the behavior may change
in the future.
... syntax var type =
instanceoffilehandle.type value a str
ing.
IDBOpenDBRequest: upgradeneeded event - Web APIs
bubbles no cancelable no
interface event event handler onupgradeneeded examples this example opens a database and handles the upgradeneeded event by mak
ing any necessary updates to the object store.
... // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.addeventlistener('upgradeneeded', event => { const db = event.target.result; console.log(`upgrad
ing to version ${db.version}`); // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }); this is the same example, but uses the onupgradeneeded event hand...
... // open the database const dbopenrequest = w
indow.
indexeddb.open('todolist', 4); dbopenrequest.onupgradeneeded = event => { const db = event.target.result; console.log(`upgrad
ing to version ${db.version}`); // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; ...
IDBRequest: success event - Web APIs
bubbles no cancelable no
interface event event handler property onsuccess examples this example tries to open a database and listens for the success event us
ing addeventlistener(): // open the database const openrequest = w
indow.
indexeddb.open('todolist', 4); openrequest.onupgradeneeded = (event) => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectstore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m...
...
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; openrequest.addeventlistener('success', (event) => { console.log('database opened successfully!'); }); the same example, but us
ing the onsuccess event handler property: // open the database const openrequest = w
indow.
indexeddb.open('todolist', 4); openrequest.onupgradeneeded = (event) => { const db = event.target.result; db.onerror = () => { console.log('error creat
ing database'); }; // create an objectstore for this database var objectstore = db.createobjectstore('todolist', { keypath: 'tasktitle' }); // def
ine what data items the objectst...
...ore will conta
in objectstore.create
index('hours', 'hours', { unique: false }); objectstore.create
index('m
inutes', 'm
inutes', { unique: false }); objectstore.create
index('day', 'day', { unique: false }); objectstore.create
index('month', 'month', { unique: false }); objectstore.create
index('year', 'year', { unique: false }); }; openrequest.onsuccess = (event) => { console.log('database opened successfully!'); }; ...
ImageBitmap.close() - Web APIs
some draw
ing us
ing the gl context ...
... var bitmap = offscreen.transfertoimagebitmap(); // imagebitmap { width: 256, height: 256 } bitmap.close(); // imagebitmap { width: 0, height: 0 } -- disposed specifications specification status comment html liv
ing standardthe def
inition of 'close()'
in that specification.
... liv
ing standard ...
ImageBitmap.height - Web APIs
the read-only imagebitmap.height property returns the imagebitmap object's height
in css pixels.
... specifications specification status comment html liv
ing standardthe def
inition of 'imagebitmap.height'
in that specification.
... liv
ing standard
initial def
inition.
ImageBitmap.width - Web APIs
the read-only imagebitmap.width property returns the imagebitmap object's width
in css pixels.
... specifications specification status comment html liv
ing standardthe def
inition of 'imagebitmap.height'
in that specification.
... liv
ing standard
initial def
inition.
ImageCapture.track - Web APIs
the track read-only property of the imagecapture
interface returns a reference to the mediastreamtrack passed to the imagecapture() constructor.
... specifications specification status comment mediastream image capturethe def
inition of 'track'
in that specification.
... work
ing draft
initial def
inition.
ImageData.height - Web APIs
the readonly imagedata.height property returns the number of rows
in the imagedata object.
... let imagedata = new imagedata(200, 100); console.log(imagedata.height); // 100 specification specification status comment html liv
ing standardthe def
inition of 'imagedata.height'
in that specification.
... liv
ing standard
initial def
inition.
SourceBuffer.videoTracks - Web APIs
the videotracks read-only property of the sourcebuffer
interface returns a list of the video tracks currently conta
ined
inside the sourcebuffer.
... example tbd specifications specification status comment media source extensionsthe def
inition of 'videotracks'
in that specification.
... recommendation
initial def
inition.
SourceBufferList.length - Web APIs
the length read-only property of the sourcebufferlist
interface returns the number of sourcebuffer objects
in the list.
... example tbd specifications specification status comment media source extensionsthe def
inition of 'length'
in that specification.
... recommendation
initial def
inition.
SpeechGrammar.SpeechGrammar() - Web APIs
the speechgrammar constructor of the speechgrammar
interface creates a new speechgrammar object
instance.
... examples var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; var newgrammar = new speechgrammar(); newgrammar.src = '#jsgf v...
...1.0; grammar names; public <name> = chris | kirsty | mike;' speechrecognitionlist[1] = newgrammar; // should add the new speechgrammar object to the list specifications specification status comment web speech apithe def
inition of 'speechgrammar()'
in that specification.
SpeechGrammarList.SpeechGrammarList() - Web APIs
the speechgrammarlist() constructor creates a new speechgrammarlist object
instance.
... examples
in our simple speech color changer example, we create a new speechrecognition object
instance us
ing the speechrecognition() constructor, create a new speechgrammarlist, add our grammar str
ing to it us
ing the speechgrammarlist.addfromstr
ing method, and set it to be the grammar that will be recognised by the speechrecognition
instance us
ing the speechrecognition.grammars property.
... var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; specifications specification status comment web speech apithe def
inition of 'speechgrammarlist'
in that specification.
SpeechRecognition.abort() - Web APIs
the abort() method of the web speech api stops the speech recognition service from listen
ing to
incom
ing audio, and doesn't attempt to return a speechrecognitionresult.
... examples var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; var diagnostic = document.queryselector('.output'); var bg = ...
...function() { recognition.start(); console.log('ready to receive a color command.'); } abortbtn.onclick = function() { recognition.abort(); console.log('speech recognition aborted.'); } recognition.onspeechend = function() { recognition.stop(); console.log('speech recognition has stopped.'); } specifications specification status comment web speech apithe def
inition of 'abort()'
in that specification.
SpeechRecognition: nomatch event - Web APIs
the nomatch event of the web speech api is fired when the speech recognition service returns a f
inal result with no significant recognition.
... this may
involve some degree of recognition, which doesn't meet or exceed the confidence threshold.
... bubbles no cancelable no
interface speechrecognitionevent event handler property onnomatch examples you can use the nomatch event
in an addeventlistener method: var recognition = new webkitspeechrecognition() || new speechrecognition(); recognition.addeventlistener('nomatch', function() { console.log('speech not recognized'); }); or use the onnomatch event handler property: recognition.onnomatch = function() { console.log('speech not recognized'); } specifications specification status comment web speech apithe def
inition of 'speech recognition events'
in that specification.
SpeechRecognition.start() - Web APIs
the start() method of the web speech api starts the speech recognition service listen
ing to
incom
ing audio with
intent to recognize grammars associated with the current speechrecognition.
... examples var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; var diagnostic = document.queryselector('.output'); var ...
...function() { recognition.start(); console.log('ready to receive a color command.'); } abortbtn.onclick = function() { recognition.abort(); console.log('speech recognition aborted.'); } recognition.onspeechend = function() { recognition.stop(); console.log('speech recognition has stopped.'); } specifications specification status comment web speech apithe def
inition of 'start()'
in that specification.
SpeechRecognition.stop() - Web APIs
the stop() method of the web speech api stops the speech recognition service from listen
ing to
incom
ing audio, and attempts to return a speechrecognitionresult us
ing the audio captured so far.
... examples var grammar = '#jsgf v1.0; grammar colors; public <color> = aqua | azure | beige | bisque | black | blue | brown | chocolate | coral | crimson | cyan | fuchsia | ghostwhite | gold | goldenrod | gray | green |
indigo | ivory | khaki | lavender | lime | l
inen | magenta | maroon | moccas
in | navy | olive | orange | orchid | peru | p
ink | plum | purple | red | salmon | sienna | silver | snow | tan | teal | thistle | tomato | turquoise | violet | white | yellow ;' var recognition = new speechrecognition(); var speechrecognitionlist = new speechgrammarlist(); speechrecognitionlist.addfromstr
ing(grammar, 1); recognition.grammars = speechrecognitionlist; var diagnostic = document.queryselector('.output'); var bg = d...
...function() { recognition.start(); console.log('ready to receive a color command.'); } abortbtn.onclick = function() { recognition.abort(); console.log('speech recognition aborted.'); } recognition.onspeechend = function() { recognition.stop(); console.log('speech recognition has stopped.'); } specifications specification status comment web speech apithe def
inition of 'stop()'
in that specification.
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.
... you can use the voiceschanged event
in an addeventlistener method: var synth = w
indow.speechsynthesis; synth.addeventlistener('voiceschanged', function() { var voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } }); or use the onvoiceschanged event handler property: synth.onvoiceschanged = function() { var voices = synth.getvoices(); for(i = 0; i < voices.length ; i++) { var option = document.createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; opti...
...on.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } } specifications specification status comment web speech apithe def
inition of 'speech synthesis events'
in that specification.
SpeechSynthesisEvent.name - Web APIs
the name read-only property of the speechsynthesisutterance
interface returns the name associated with certa
in types of events occur
ing as the speechsynthesisutterance.text is be
ing 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.
... syntax event.name; value a domstr
ing.
... examples utterthis.onboundary = function(event) { console.log(event.name + ' boundary reached after ' + event.elapsedtime + ' milliseconds.'); } specifications specification status comment web speech apithe def
inition of 'name'
in that specification.
SpeechSynthesisUtterance.onboundary - Web APIs
the onboundary property of the speechsynthesisutterance
interface represents an event handler that will run when the spoken utterance reaches a word or sentence boundary (when the boundary event fires.) syntax speechsynthesisutterance
instance.onboundary = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onboundary = function(event) { console.log(event.name + ' boundary reached after ' + event.elapsedtime + ' milliseconds.'); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onboundary'
in that specification.
SpeechSynthesisUtterance.onend - Web APIs
the onend property of the speechsynthesisutterance
interface represents an event handler that will run when the utterance has f
inished be
ing spoken (when the end event fires.) syntax speechsynthesisutterance
instance.onend = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onend = function(event) { console.log('utterance has f
inished be
ing spoken after ' + event.elapsedtime + ' milliseconds.'); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onend'
in that specification.
SpeechSynthesisUtterance.onerror - Web APIs
the onerror property of the speechsynthesisutterance
interface represents an event handler that will run when an error occurs that prevents the utterance from be
ing succesfully spoken (when the error event fires.) syntax speechsynthesisutterance
instance.onerror = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onerror = function(event) { console.log('an error has occurred with the speech synthesis: ' + event.error); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onerror'
in that specification.
SpeechSynthesisUtterance.onmark - Web APIs
the onmark property of the speechsynthesisutterance
interface represents an event handler that will run when the spoken utterance reaches a named ssml mark tag (when the mark event fires.) syntax speechsynthesisutterance
instance.onmark = function() { ...
... }; examples var synth = w
indow.speechsynthesis; var
inputform = document.queryselector('form'); var
inputtxt = document.queryselector('
input'); var voiceselect = document.queryselector('select'); var voices = synth.getvoices(); ...
...
inputform.onsubmit = function(event) { event.preventdefault(); var utterthis = new speechsynthesisutterance(
inputtxt.value); var selectedoption = voiceselect.selectedoptions[0].getattribute('data-name'); for(i = 0; i < voices.length ; i++) { if(voices[i].name === selectedoption) { utterthis.voice = voices[i]; } } synth.speak(utterthis); utterthis.onmark = function(event) { console.log('a mark was reached: ' + event.name); }
inputtxt.blur(); } specifications specification status comment web speech apithe def
inition of 'onmark'
in that specification.
SpeechSynthesisVoice.default - Web APIs
the default read-only property of the speechsynthesisvoice
interface returns a boolean
indicat
ing whether the voice is the default voice for the current app (true), or not (false.) note: for some devices, it might be the default voice for the voice's language.
... syntax var amidefault = speechsynthesisvoice
instance.default; value a boolean.
....createelement('option'); option.textcontent = voices[i].name + ' (' + voices[i].lang + ')'; if(voices[i].default) { option.textcontent += ' -- default'; } option.setattribute('data-lang', voices[i].lang); option.setattribute('data-name', voices[i].name); voiceselect.appendchild(option); } specifications specification status comment web speech apithe def
inition of 'default'
in that specification.
Math.LN10 - JavaScript
the math.ln10 property represents the natural logarithm of 10, approximately 2.302: math.ln10=ln(10)≈2.302\mathtt{\mi{math.ln10}} = \ln(10) \approx 2.302 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.ln10 the follow
ing function returns the natural log of 10: function getnatlog10() { return math.ln10; } getnatlog10(); // 2.302585092994046 specifications specification ecmascript (ecma-262)the def
inition of 'math.ln10'
in that specification.
Math.LN2 - JavaScript
the math.ln2 property represents the natural logarithm of 2, approximately 0.693: math.ln2=ln(2)≈0.693\mathtt{\mi{math.ln2}} = \ln(2) \approx 0.693 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.ln2 the follow
ing function returns the natural log of 2: function getnatlog2() { return math.ln2; } getnatlog2(); // 0.6931471805599453 specifications specification ecmascript (ecma-262)the def
inition of 'math.ln2'
in that specification.
Math.LOG10E - JavaScript
the math.log10e property represents the base 10 logarithm of e, approximately 0.434: math.log10e=log10(e)≈0.434\mathtt{\mi{math.log10e}} = \log_10(e) \approx 0.434 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.log10e the follow
ing function returns the base 10 logarithm of e: function getlog10e() { return math.log10e; } getlog10e(); // 0.4342944819032518 specifications specification ecmascript (ecma-262)the def
inition of 'math.log10e'
in that specification.
Math.LOG2E - JavaScript
the math.log2e property represents the base 2 logarithm of e, approximately 1.442: math.log2e=log2(e)≈1.442\mathtt{\mi{math.log2e}} = \log_2(e) \approx 1.442 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.log2e the follow
ing function returns the base 2 logarithm of e: function getlog2e() { return math.log2e; } getlog2e(); // 1.4426950408889634 specifications specification ecmascript (ecma-262)the def
inition of 'math.log2e'
in that specification.
Math.SQRT1_2 - JavaScript
the math.sqrt1_2 property represents the square root of 1/2 which is approximately 0.707: math.sqrt1_2=12=12≈0.707\mathtt{\mi{math.sqrt1_2}} = \sqrt{\frac{1}{2}} = \frac{1}{\sqrt{2}} \approx 0.707 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.sqrt1_2 the follow
ing function returns 1 over the square root of 2: function getroot1_2() { return math.sqrt1_2; } getroot1_2(); // 0.7071067811865476 specifications specification ecmascript (ecma-262)the def
inition of 'math.sqrt1_2'
in that specification.
Math.SQRT2 - JavaScript
the math.sqrt2 property represents the square root of 2, approximately 1.414: math.sqrt2=2≈1.414\mathtt{\mi{math.sqrt2}} = \sqrt{2} \approx 1.414 the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.sqrt2 the follow
ing function returns the square root of 2: function getroot2() { return math.sqrt2; } getroot2(); // 1.4142135623730951 specifications specification ecmascript (ecma-262)the def
inition of 'math.sqrt2'
in that specification.
Math.sqrt() - JavaScript
the math.sqrt() function returns the square root of a number, that is ∀x≥0,math.sqrt(x)=x=the uniquey≥0such thaty2=x\forall x \geq 0, \mathtt{math.sqrt(x)} = \sqrt{x} = \text{the unique} \; y \geq 0 \; \text{such that} \; y^2 = x the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing math.sqrt() math.sqrt(9); // 3 math.sqrt(2); // 1.414213562373095 math.sqrt(1); // 1 math.sqrt(0); // 0 math.sqrt(-1); // nan math.sqrt(-0); // -0 specifications specification ecmascript (ecma-262)the def
inition of 'math.sqrt'
in that specification.
Object() constructor - JavaScript
if the value is null or undef
ined, it will create and return an empty object.
... when called
in a non-constructor context, object behaves identically to new object().
... examples creat
ing a new object let o = new object() o.foo = 42 console.log(o) // object { foo: 42 } us
ing object given undef
ined and null types the follow
ing examples store an empty object object
in o: let o = new object() let o = new object(undef
ined) let o = new object(null) specifications specification ecmascript (ecma-262)the def
inition of 'object constructor'
in that specification.
Set() constructor - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing the set object let myset = new set() myset.add(1) // set [ 1 ] myset.add(5) // set [ 1, 5 ] myset.add(5) // set [ 1, 5 ] myset.add('some text') // set [ 1, 5, 'some text' ] let o = {a: 1, b: 2} myset.add(o) specifications specification ecmascript (ecma-262)the def
inition of 'set constructor'
in that specification.
Set.prototype.add() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing the add method var myset = new set(); myset.add(1); myset.add(5).add('some text'); // cha
inable console.log(myset); // set [1, 5, "some text"] specifications specification ecmascript (ecma-262)the def
inition of 'set.prototype.add'
in that specification.
SyntaxError() constructor - JavaScript
the syntaxerror constructor creates a new error object that represents an error when try
ing to
interpret syntactically
invalid code.
... syntax new syntaxerror([message[, filename[, l
inenumber]]]) parameters message optional human-readable description of the error filename optional the name of the file conta
ining the code that caused the exception l
inenumber optional the l
ine number of the code that caused the exception examples catch
ing a syntaxerror try { eval('hoo bar'); } catch (e) { console.error(e
instanceof syntaxerror); console.error(e.message); console.error(e.name); console.error(e.filename); console.error(e.l
inenumber); console.error(e.columnnumber); console.error(e.stack); } creat
ing a syntaxerror try { throw new syntaxerror('hello', 'somefile.js', 10); } catch (e) { console.error(e
instanceof syntaxerror); // true console.error(e.message); // hello conso...
...le.error(e.name); // syntaxerror console.error(e.filename); // somefile.js console.error(e.l
inenumber); // 10 console.error(e.columnnumber); // 0 console.error(e.stack); // @debugger eval code:3:9 } specifications specification ecmascript (ecma-262)the def
inition of 'nativeerror constructor'
in that specification.
TypedArray.prototype.byteOffset - JavaScript
the byteoffset accessor property represents the offset (
in bytes) of a typed array from the start of its arraybuffer.
... description the byteoffset property is an accessor property whose set accessor function is undef
ined, mean
ing that you can only read this property.
... examples us
ing the byteoffset property var buffer = new arraybuffer(8); var u
int8 = new u
int8array(buffer); u
int8.byteoffset; // 0 (no offset specified) var u
int8 = new u
int8array(buffer, 3); u
int8.byteoffset; // 3 (as specified when construct
ing u
int8array) specifications specification ecmascript (ecma-262)the def
inition of 'typedarray.prototype.byteoffset'
in that specification.
WeakMap.prototype.set() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing the set method var wm = new weakmap(); var obj = {}; // add new elements to the weakmap wm.set(obj, 'foo').set(w
indow, 'bar'); // cha
inable // update an element
in the weakmap wm.set(obj, 'baz'); specifications specification ecmascript (ecma-262)the def
inition of 'weakmap.prototype.set'
in that specification.
WeakRef() constructor - JavaScript
the weakref constructor creates a weakref object referr
ing to a given target object.
... examples creat
ing a new weakref object see the ma
in weakref page for a complete example.
... class counter { constructor(element) { // remember a weak reference to a dom element this.ref = new weakref(element); this.start(); } } specifications specification weakrefsthe def
inition of 'weakref constructor'
in that specification.
WeakSet.prototype.add() - JavaScript
the source for this
interactive example is stored
in a github repository.
... 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.
... examples us
ing add var ws = new weakset(); ws.add(w
indow); // add the w
indow object to the weakset ws.has(w
indow); // true // weakset only takes objects as arguments ws.add(1); // results
in "typeerror:
invalid value used
in weak set"
in chrome // and "typeerror: 1 is not a non-null object"
in firefox specifications specification ecmascript (ecma-262)the def
inition of 'weakset.prototype.add'
in that specification.