Search completed in 0.98 seconds.
Git and GitHub - Learn web development
the most popular vcs (at least among web developers) is
git, along with
github, a site that provides hosting for your repositories and several tools for working with them.
... different team members will commonly want to create their own separate versions of the code (called branches in
git), work on a new feature in that version, and then get it merged in a controlled manner (in
github we use pull requests) with the master version when they are done with it.
...
git is an example of a vcs, and
github is a web site + infrastructure that provides a
git server plus a number of really useful tools for working with
git repositories individually or in teams, such as reporting issues with the code, reviewing tools, project management features such as assigning tasks and task statuses, and more.
...And 19 more matches
How do I use GitHub Pages? - Learn web development
github is a "social coding" site.
... it allows you to upload code repositories for storage in the
git version control system.
... you can then collaborate on code projects, and the system is open-source by default, meaning that anyone in the world can find your
github code, use it, learn from it, and improve on it.
...And 22 more matches
Digital Signatures - Archive of obsolete content
the content of the hashed data cannot, for all practical purposes, be deduced from the hash-which is why it is called "one-way." similarly, in public key encryption, a key pair is generated for di
gital signing.
...the keys are related mathematically, but the parameters are chosen so that calculating the private key from the public key is either impossible or prohibitively expensive.the encrypted hash, along with other information, such as the hashing algorithm, is known as a di
gital signature.
... figure 1 shows a simplified view of the way a di
gital signature can be used to validate the integrity of signed data.
...And 6 more matches
Mozilla projects on GitHub
there are a number of tools and services whose code is hosted on
github.
... this article offers a quick guide for getting started with mozilla code on
github.
... it also lists some interesting
github repositories containing mozilla project code.
...And 6 more matches
Digital audio concepts - Web media technologies
representing audio in di
gital form involves a number of steps and processes, with multiple formats available both for the raw audio and the encoded or compressed audio which is actually used on the web.
... this guide is an overview examining how audio is represented di
gitally, and how codecs are used to encode and decode audio for use on the web.
... computers, however, are di
gital.
...And 6 more matches
GeolocationCoordinates.longitude - Web APIs
the geolocationcoordinates interface's read-only lon
gitude property is a double-precision floating point value which represents the lon
gitude of a geographical position, specified in decimal degrees.
... syntax let lon
gitude = geolocationcoordinatesinstance.lon
gitude value the value in lon
gitude is the geographical lon
gitude of the location on earth described by the coordinates object, in decimal degrees.
... let button = document.getelementbyid("get-location"); let lattext = document.getelementbyid("latitude"); let longtext = document.getelementbyid("lon
gitude"); button.addeventlistener("click", function() { navigator.geolocation.getcurrentposition(function(position) { let lat = position.coords.latitude; let long = position.coords.lon
gitude; lattext.innertext = lat.tofixed(2); longtext.innertext = long.tofixed(2); }); }); after setting up variables to more conveniently reference the button element and the two elements into whi...
...And 4 more matches
Digital certificate - MDN Web Docs Glossary: Definitions of Web-related terms
a di
gital certificate is a data file that binds a publicly known cryptographic key to an organization.
... a di
gital certificate contains information about an organization, such as the common name (e.g., mozilla.org), the organization unit (e.g., mozilla corporation), and the location (e.g., mountain view).
... di
gital certificates are most commonly signed by a certificate authority, attesting to the certificate's authenticity.
... learn more di
gital certificate on wikipedia ...
Digital video concepts - Web media technologies
the name "yuv" is generally used today to describe this color system, even though the term was originally used specifically for analog coding of color, while ycbcr was used for di
gital color.
... however, today both terms are used for di
gital color.
Deploying our app - Learn web development
we push the code to
github, deploy it using netlify, and even show you how to add a simple test into the process.
... although netlify offers a drag and drop deployment service, we are intending to trigger a new deployment to netlify each time we push to a
github repo.
...we can commit our code and push to
github and the updated code will automatically trigger the entire build routine.
...And 38 more matches
The "codecs" parameter in common media types - Web media technologies
av1 codec parameter string components component details p the one-di
git profile number: av1 profile numbers profile number description 0 "main" profile; supports yuv 4:2:0 or monochrome bitstreams with bit depth of 8 or 10 bits per component.
... ll the two-di
git level number, which is converted to the x.y format level format, where x = 2 + (ll >> 2) and y = ll & 3.
... dd the two-di
git component bit depth.
...And 32 more matches
Deployment and next steps - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/08-next-steps or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/08-next-steps remember to run npm install && npm run dev to start your app in development mode.
... a look behind the svelte compilation process by default, when you create a new app with npx de
git sveltejs/template my-svelte-project, svelte will use rollup as the module bundler.
... you can also import a svelte
git project into vercel from
github,
gitlab, or bitbucket.
...And 30 more matches
Introduction to Public-Key Cryptography - Archive of obsolete content
for an overview of ssl, see "introduction to ssl." for an overview of encryption and decryption, see "encryption and decryption." information on di
gital signatures is available from "di
gital signatures." public-key cryptography is a set of well-established techniques and standards for protecting communications from eavesdropping, tampering, and impersonation attacks.
...any attempt to modify data or substitute a false message for a le
gitimate one will be detected.
...most importantly, a certificate always includes the di
gital signature of the issuing ca.
...And 27 more matches
Index
in order to verify a di
gital signature, we have to look at the application data (e.g., a document that was signed), the signature data block (the di
gital signature), and a public key (as found in a certificate that is believed to be the signer, e.g., identified by metadata received together with the signature).
... modutil -dbdir sql:/home/mt"jar-install-filey/sharednssdb -jar install.jar -installdir sql:/home/my/sharednssdb this installation jar file was signed by: ---------------------------------------------- **subject name** c=us, st=california, l=mountain view, cn=cryptorific inc., ou=di
gital id class 3 - netscape object signing, ou="www.verisign.com/repository/cps incorp.
... filepermissions sets permissions on any referenced files in a string of octal di
gits, according to the standard unix format.
...And 18 more matches
Introducing a complete toolchain - Learn web development
github to manage our source code control.
...you will need to create accounts with each of
github and netlify if you wish to complete the tutorial.
... as mentioned previously,
github is a source code repository service that adds community features such as issue tracking, following project releases and much more.
...And 17 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
8 ascii glossary, infrastructure ascii (american standard code for information interchange) is one of the most popular coding method used by computers for converting letters, numbers, punctuation and control codes into di
gital form.
... 18 alpha (alpha channel) alpha, alpha channel, drawing, glossary, graphics, translucency, translucent, transparency, transparent, webgl, webxr, channel, color, pixel colors are represented in di
gital form as a collection of numbers, each representing the strength or intensity level of a given component of the color.
... 68 certificate authority cryptography, glossary, security a certificate authority (ca) is an organization that signs di
gital certificates and their associated public keys.
...And 16 more matches
Index - Web APIs
668 coordinates.accuracy api, coordinates, geolocation api, property, secure context, accuracy the coordinates.accuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the coordinates.latitude and coordinates.lon
gitude properties expressed in meters.
... 673 coordinates.lon
gitude api, coordinates, gps, geolocation, geolocation api, global positioning system, property, read-only, reference, secure context, lon
gitude the coordinates interface's read-only lon
gitude property is a double-precision floating point value which represents the lon
gitude of a geographical position, specified in decimal degrees.
...for touch, it is fired when physical contact is made with the di
gitizer.
...And 15 more matches
Getting started with Svelte - Learn web development
gitbash (which comes as part of the
git for windows toolset) or windows subsystem for linux (wsl) are both suitable.
...you can do that by visiting sveltejs/template on
github or you can avoid having to download and unzip it and just use de
git.
... to create your starter app template, run the following terminal commands: npx de
git sveltejs/template moz-todo-svelte cd moz-todo-svelte npm install npm run dev note: de
git doesn't do any kind of magic — it just lets you download and unzip the latest version of a
git repo's contents.
...And 14 more matches
Date and time formats used in HTML - HTML: Hypertext Markup Language
for the purposes of html dates, years are always at least four di
gits long; years prior to the year 1000 are padded with leading zeroes ("0"), so the year 72 is written as 0072.
...they are always represented by a two-di
git ascii string whose value ranges from 01 through 12.
...a valid week string consists of a valid year number, followed by a hyphen character ("-", or u+002d), then the capital letter "w" (u+0057), followed by a two-di
git week of the year value.
...And 13 more matches
Introduction to SSL - Archive of obsolete content
in the case of client authentication, the client encrypts some random data with the client's private key-that is, it creates a di
gital signature.
... the public key in the client's certificate can correctly validate the di
gital signature only if the corresponding private key was used.
... otherwise, the server cannot validate the di
gital signature and the session is terminated.
...And 12 more matches
NSS tools : signtool
name signtool — di
gitally sign objects and files.
...pression level] ] [[-d cert-dir] ] [[-i installer script] ] [[-m metafile] ] [[-x name] ] [[-f filename] ] [[-t|--token tokenname] ] [[-e extension] ] [[-o] ] [[-z] ] [[-x] ] [[--outfile] ] [[--verbose value] ] [[--norecurse] ] [[--leavearc] ] [[-j directory] ] [[-z jarfile] ] [[-o] ] [[-p password] ] [directory-tree] [archive] description the signing tool, signtool, creates di
gital signatures and uses a java archive (jar) file to associate the signatures with files in a directory.
...to help address some of these problems, you can associate di
gital signatures with the files in a jar archive.
...And 11 more matches
Publishing your website - Learn web development
using an online tool like
github or google app engine some tools let you publish your website online:
github is a "social coding" site.
... it allows you to upload code repositories for storage in the
git version control system.
... you can then collaborate on code projects, and the system is open-source by default, meaning that anyone in the world can find your
github code, use it, learn from it, and improve on it.
...And 8 more matches
Index - Learn web development
17 how do i use
github pages?
... beginner,
github, guide, web, gh-pages,
git, publish
github is a "social coding" site.
... it allows you to upload code repositories for storage in the
git version control system.
...And 8 more matches
Grammar and types - JavaScript
subsequent characters can also be di
gits (0–9).
... a decimal numeric literal is a sequence of di
gits without a leading 0 (zero).
...octal numerics can include only the di
gits 0–7.
...And 7 more matches
Character classes - JavaScript
character classes distinguish kinds of characters such as, for example, distinguishing between letters and di
gits.
... \d matches any di
git (arabic numeral).
... \d matches any character that is not a di
git (arabic numeral).
...And 7 more matches
Intl.NumberFormat() 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.
... the following properties fall into two groups: minimumintegerdi
gits, minimumfractiondi
gits, and maximumfractiondi
gits in one group, minimumsignificantdi
gits and maximumsignificantdi
gits in the other.
...And 7 more matches
Drawing graphics - Learn web development
at this point your example should look like this: note: the finished code is available on
github as 2_canvas_rectangles.html.
... that's it for now; your final example should look like this: note: the finished code is available on
github as 3_canvas_paths.html.
...the final example should look like so: note: the finished code is available on
github as 4_canvas_text.html.
...And 6 more matches
Date.prototype.toString() - 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.
..."sep" space date: 2 di
git day in month, e.g.
...And 6 more matches
Intl.DateTimeFormat() 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.
...possible values include: "full" "long" "medium" "short" fractionalseconddi
gits the number of fractional seconds to apply when calling format().
...And 6 more matches
Number.prototype.toExponential() - 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 numobj.toexponential([fractiondi
gits]) parameters fractiondi
gits optional.
...And 6 more matches
Release notes - Archive of obsolete content
details
github commits made between firefox 34 and firefox 35.
... details
github commits made between firefox 33 and firefox 34.
... details
github commits made between firefox 32 and firefox 33.
...And 5 more matches
PromiseWorker.jsm
here is a simple demo showing how to transfer the second argument to a worker:
github:: promiseworker transfer data line 23.
...eworker.meta(abuf, {transfers: [abuf]}); if you want to return an object or an array and transfer only certain parts of this data, it would all have to be return wrapped in this meta object like so: return new promiseworker.meta({ thebuf: abuf, othernontrans: 'this string is not transfered but copied' }, {transfers: [abuf]}); a simple demo showing this in live action can be found here:
github :: promiseworker transfer arraybuffer - worker side rejecting the promise to reject the promise from the worker, simply throw.
...this is seen in a simple demo
github :: promiseworker custom errors demo - main thread setup.
...And 5 more matches
<input type="password"> - 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.
...with a pattern, you can mandate case rules, require the use of some number of di
gits and/or punctuation characters, and so forth.
...And 5 more matches
Intl.PluralRules() constructor - JavaScript
the following properties fall into two groups: minimumintegerdi
gits, minimumfractiondi
gits, and maximumfractiondi
gits in one group, minimumsignificantdi
gits and maximumsignificantdi
gits in the other.
... minimumintegerdi
gits the minimum number of integer di
gits to use.
... minimumfractiondi
gits the minimum number of fraction di
gits to use.
...And 5 more matches
Lexical grammar - JavaScript
as described in es5.
github.com/#a.1, these are all identifiernames which do not exclude reservedwords.
... decimal 1234567890 42 // caution when using with a leading zero: 0888 // 888 parsed as decimal 0777 // parsed as octal, 511 in decimal note that decimal literals can start with a zero (0) followed by another decimal di
git, but if all di
gits after the leading 0 are smaller than 8, the number is interpreted as an octal number.
...if the di
gits after the 0b are not 0 or 1, the following syntaxerror is thrown: "missing binary di
gits after 0b".
...And 5 more matches
Understanding WebAssembly text format - WebAssembly
our binary into a typed array called addcode (as described in fetching webassembly bytecode), compile and instantiate it, and execute our add function in javascript (we can now find add() in the exports property of the instance): webassembly.instantiatestreaming(fetch('add.wasm')) .then(obj => { console.log(obj.instance.exports.add(1, 2)); // "3" }); note: you can find this example in
github as add.html (see it live also).
...let’s look at an example: (module (import "console" "log" (func $log (param i32))) (func (export "lo
git") i32.const 13 call $log)) webassembly has a two-level namespace so the import statement here is saying that we’re asking to import the log function from the console module.
... you can also see that the exported lo
git function calls the imported function using the call instruction we introduced above.
...And 5 more matches
Client-side form validation - Learn web development
find the source code on
github at fruit-start.html and a live example below.
...try out the new behavior in the example below: note: you can find this example live on
github as fruit-validation.html (see also the source code.) try submitting the form without a value.
...tern attribute like this: <form> <label for="choose">would you prefer a banana or a cherry?</label> <input id="choose" name="i_like" required pattern="[bb]anana|[cc]herry"> <button>submit</button> </form> input:invalid { border: 2px dashed red; } input:valid { border: 2px solid black; } this gives us the following update — try it out: note: you can find this example live on
github as fruit-pattern.html (see also the source code.) in this example, the <input> element accepts one of four possible values: the strings "banana", "banana", "cherry", or "cherry".
...And 4 more matches
TypeScript support in Svelte - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/07-typescript-support or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/07-typescript-support remember to run npm install && npm run dev to start your app in development mode...
...from last year's
github octoverse report we can see that typescript is the 7th most used and 5th fastest growing language used on
github.
...all you have to do is run the following terminal commands (run them somewhere where you are storing your svelte test projects — it creates a new directory): npx de
git sveltejs/template svelte-typescript-app cd svelte-typescript-app node scripts/setuptypescript.js this creates a starter project that includes typescript support, which you can then modify as you wish.
...And 4 more matches
Client-side tooling overview - Learn web development
git is the source code control system that most people use these days.
...with your code in a
git repository, you can push it to your own server instance, or use a hosted source control website such as
github,
gitlab, or bitbucket.
... we'll be using
github in this module.
...And 4 more matches
Using the CSS Painting API - Web APIs
in our example, the paintworklet is stored on
github.
... css.paintworklet.addmodule('https://mdn.
github.io/houdini-examples/csspaint/intro/01partone/header-highlight.js'); reference the paint worklet in css once we have a registered paint worklet, we can use it in css.
... css.paintworklet.addmodule('https://mdn.
github.io/houdini-examples/csspaint/intro/02parttwo/header-highlight.js'); .fancy { background-image: paint(headerhighlight); } .half { width: 50%; } <h1 class="fancy">largest header</h1> <h6 class="fancy">smallest header</h6> <h3 class="fancy half">50% width header</h3> while you can't play with the worklet's script, you can alter the element's font-size and width to change the size of th...
...And 4 more matches
Using the Geolocation API - Web APIs
navigator.geolocation.getcurrentposition((position) => { dosomething(position.coords.latitude, position.coords.lon
gitude); }); the above example will cause the dosomething() function to execute when the location is obtained.
... const watchid = navigator.geolocation.watchposition((position) => { dosomething(position.coords.latitude, position.coords.lon
gitude); }); the watchposition() method returns an id number that can be used to uniquely identify the requested position watcher; you use this value in tandem with the clearwatch() method to stop watching the user's location.
... a call to watchposition could look like: function success(position) { dosomething(position.coords.latitude, position.coords.lon
gitude); } function error() { alert('sorry, no position available.'); } const options = { enablehighaccuracy: true, maximumage: 30000, timeout: 27000 }; const watchid = navigator.geolocation.watchposition(success, error, options); describing a position the user's location is described using a geolocationposition object instance, which itself contains a geolocationcoordinates object insta...
...And 4 more matches
SubtleCrypto.sign() - Web APIs
the sign() method of the subtlecrypto interface generates a di
gital signature.
... ecdsa ecdsa (elliptic curve di
gital signature algorithm) is a variant of the di
gital signature algorithm, specified in fips-186, that uses elliptic curve cryptography (rfc 6090).
... examples note: you can try the working examples out on
github.
...And 4 more matches
all - 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.
...</blockquote> phasellus eget velit sa
gittis.
...And 4 more matches
text-combine-upright - CSS: Cascading Style Sheets
/* keyword values */ text-combine-upright: none; text-combine-upright: all; /* di
gits values */ text-combine-upright: di
gits; /* fits 2 consecutive di
gits horizontally inside vertical text */ text-combine-upright: di
gits 4; /* fits up to 4 consecutive di
gits horizontally inside vertical text */ /* global values */ text-combine-upright: inherit; text-combine-upright: initial; text-combine-upright: unset; syntax values none there is no special processing.
... di
gits <integer>?
... attempts to display a sequence of consecutive ascii di
gits (u+0030–u+0039) that has as many or fewer characters than the specified integer, such that it takes up the space of a single character within the vertical line box.
...And 4 more matches
Date - JavaScript
date.prototype.getfullyear() returns the year (4 di
gits for 4-di
git years) of the specified date according to local time.
... date.prototype.getutcfullyear() returns the year (4 di
gits for 4-di
git years) in the specified date according to universal time.
... date.prototype.getyear() returns the year (usually 2–3 di
gits) in the specified date according to local time.
...And 4 more matches
HTML table basics - Learn web development
table styling you can also have a look at the live example on
github!
... one thing you'll notice is that the table does look a bit more readable there — this is because the table you see above on this page has minimal styling, whereas the
github version has more significant css applied.
... note: you can also find this on
github as simple-table.html (see it live also).
...And 3 more matches
Looping code - Learn web development
e> </style> </head> <body> <p></p> <script> const cats = ['bill', 'jeff', 'pete', 'biggles', 'jasmin']; let info = 'my cats are called '; const para = document.queryselector('p'); for (let i = 0; i < cats.length; i++) { info += cats[i] + ', '; } para.textcontent = info; </script> </body> </html> note: you can find this example code on
github too (also see it running live).
...well, no problem — we can quite happily insert a conditional inside our for loop to handle this special case: for (let i = 0; i < cats.length; i++) { if (i === cats.length - 1) { info += 'and ' + cats[i] + '.'; } else { info += cats[i] + ', '; } } note: you can find this example code on
github too (also see it running live).
... note: you can view the full source code on
github too (also see it running live).
...And 3 more matches
Learn web development
getting our code examples the code examples you'll encounter in the learning area are all available on
github.
... if you prefer to copy the repo in a more flexible way that allows for automatic updates, you can follow the more complex instructions: install
git on your machine.
... this is the underlying version control system software that
github works on top of.
...And 3 more matches
PR_dtoa
syntax #include <prdtoa.h> prstatus pr_dtoa( prfloat64 d, printn mode, printn ndi
gits, printn *decpt, printn *sign, char **rve, char *buf, prsize bufsz); parameters the function has these parameters: d the floating point number to be converted to a string.
... ndi
gits the number of di
gits desired in the output string.
... 2 max(1, ndi
gits) significant di
gits.
...And 3 more matches
Enc Dec MAC Using Key Wrap CertReq PKCS10 CSR
(rv != secsuccess) { pr_fprintf(pr_stderr, "problem while sgn_end\n"); goto cleanup; } cleanup: if (infile) { pr_close(infile); } if (sgn) { sgn_destroycontext(sgn, pr_true); } return rv; } /* * verify the signature using public key */ secstatus verifydata(const char *infilename, seckeypublickey *pk, secitem *si
gitem, secupwdata *pwdata) { unsigned int nb; unsigned char ibuf[4096]; secstatus rv = secfailure; vfycontext *vfy = null; prfiledesc *infile = null; /* open the input file for reading */ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilen...
...ame); rv = secfailure; goto cleanup; } vfy = vfy_createcontext(pk, si
gitem, sec_oid_pkcs1_md5_with_rsa_encryption, pwdata); if (!vfy) { pr_fprintf(pr_stderr, "unable to create context for verifying signature\n"); rv = secfailure; goto cleanup; } rv = vfy_begin(vfy); if (rv != secsuccess) { pr_fprintf(pr_stderr, "problem while vfy_begin\n"); goto cleanup; } while ((nb = pr_read(infile, ibuf, sizeof(ibuf))) > 0) { rv = vfy_update(vfy, ibuf, nb); if (rv != secsuccess) { pr_fprintf(pr_stderr, "problem while vfy_update\n"); goto cleanup; } } rv = vfy_e...
... const char *headerfilename, const char *infilename) { secstatus rv; prfiledesc *headerfile = null; prfiledesc *infile = null; certcertificate *cert = null; unsigned int signaturelen = 0; seckeyprivatekey *privkey = null; secitem si
gitem; secoidtag hashoidtag; /* open the header file to write padding */ headerfile = pr_open(headerfilename, pr_create_file | pr_rdwr | pr_append, 00660); if (!headerfile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for writing.\n", headerfilename); rv = secfailure; goto cleanup; } /* get the certificate...
...And 3 more matches
Mozilla
adding a new word to the en-us dictionary occasionally bugs are filed pointing out situations where perfectly le
gitimate words are missing from the english spell check dictionary in firefox.
...changes to a document originate in the content tree (from dom modification by scripting, insertion of elements from the parser, etc.) and are propogated to the layout tree through magic that primarily resides in //
github.com/realityripple/uxp/blob/master/layout/base/nscssframeconstructor.cpp getting started with chat note that on 2nd march 2020, mozilla moved away from irc to matrix for its public channels, the irc server was shut down.
...
git moved here: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html hacking with bonsai bonsai was originally created to solve the problem of tree instability.
...And 3 more matches
SubtleCrypto.verify() - Web APIs
the verify() method of the subtlecrypto interface verifies a di
gital signature.
... examples note: you can try the working examples out on
github.
...see the complete code on
github.
...And 3 more matches
window.location - Web APIs
sis ultricies.</p> <p id="mybookmark2">[ <span class="intlink" onclick="showbookmark('#mybookmark1');">go to bookmark #1</span> | <span class="intlink" onclick="showbookmark('#mybookmark1', false);">go to bookmark #1 without using location.hash</span> | <span class="intlink" onclick="showbookmark('#mybookmark3');">go to bookmark #3</span> ]</p> <p>phasellus tempus fringilla nunc, eget sa
gittis orci molestie vel.
...pellentesque malesuada, est id sa
gittis consequat, libero mauris tincidunt tellus, eu sa
gittis arcu purus rutrum eros.
...proin faucibus luctus libero, sed ultrices lorem sa
gittis et.
...And 3 more matches
system - CSS: Cascading Style Sheets
alphabetic interprets the specified symbols as di
gits, to an alphabetic numbering system.
... numeric interprets the counter symbols as di
gits in a place-value numbering system.
... additive used to represent "sign-value" numbering systems, such as roman numerals, which rather than reuse di
gits in different positions to obtain different values, define additional di
gits for larger values.
...And 3 more matches
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.
...this effectively inhibits any "sticky" behavior (see the
github issue on w3c csswg).
...And 3 more matches
<input type="datetime-local"> - 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.
... some browsers may resort to a text-only input element that validates that the results are le
gitimate date/time values before letting them be delivered to the server, as well, but you shouldn't rely on this behavior since you can't easily predict it.
...And 3 more matches
Intl.Locale.prototype.numberingSystem - JavaScript
value description adlm adlam di
gits ahom ahom di
gits arab arabic-indic di
gits arabext extended arabic-indic di
gits armn armenian upper case numerals — algorithmic armnlow armenian lower case numerals — algorithmic bali balinese di
gits beng bengali di
gits bhks bhaiksuki di
gits brah brahmi di
gits cakm chakma di...
...
gits cham cham di
gits cyrl cyrillic numerals — algorithmic deva devanagari di
gits ethi ethiopic numerals — algorithmic finance financial numerals — may be algorithmic fullwide full width di
gits geor georgian numerals — algorithmic gong gunjala gondi di
gits gonm masaram gondi di
gits grek greek upper case numerals — algorithmic greklow greek lower case numerals — algorithmic gujr gujarati di
gits guru gurmukhi di
gits hanidays han-character day-of-month numbering for lunar/other traditional calendars hanidec positional decimal system using chinese number ideographs as di
gits hans simplified chine...
...se numerals — algorithmic hansfin simplified chinese financial numerals — algorithmic hant traditional chinese numerals — algorithmic hantfin traditional chinese financial numerals — algorithmic hebr hebrew numerals — algorithmic hmng pahawh hmong di
gits hmnp nyiakeng puachue hmong di
gits java javanese di
gits jpan japanese numerals — algorithmic jpanfin japanese financial numerals — algorithmic jpanyear japanese first-year gannen numbering for japanese calendar kali kayah li di
gits khmr khmer di
gits knda kannada di
gits lana tai tham hora (secular) di
gits lanatham tai tham tham (ecclesiastical) di
gits ...
...And 3 more matches
Intl.NumberFormat.prototype.resolvedOptions() - 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.
... only one of the following two groups of properties is included: minimumintegerdi
gits minimumfractiondi
gits maximumfractiondi
gits the values provided for these properties in the options argument or filled in as defaults.
...And 3 more matches
Math.log1p() - JavaScript
the math.log1p() function returns the natural logarithm (base e) of 1 + a number, that is ∀x>-1,math.log1p(x)=ln(1+x)\forall x > -1, \mathtt{\operatorname{math.log1p}(x)} = \ln(1 + x) the source for this interactive example is stored in a
github repository.
... 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.
... the double floats used in js give you about 15 di
gits of precision.
...And 3 more matches
Web audio codec guide - Web media technologies
for information about the fundamental concepts behind how di
gital audio works, see the article di
gital audio concepts.
... for each factor that affects the encoded audio, there is a simple rule that is nearly always true: because the fidelity of di
gital audio is determined by the granularity and precision of the samples taken to convert it into a data stream, the more data used to represent the di
gital version of the audio, the more closely the sampled sound will match the source material.
... for more information about these and other features of audio data, see audio data format and structure in di
gital audio concepts.
...And 3 more matches
2015 MDN Fellowship Program - Archive of obsolete content
github: jdm twitter: @lastontheboat service workers brief project description service workers essentially act as proxy servers that sit between web applications, the browser and (when available) the network.
...
github: brittanystoroz twitter: @brittanystoroz webgl brief project description webgl is the latest incarnation of the opengl family of real time rendering immediate mode graphics apis.
...
github: nickdesaulniers twitter: @lostoracle web app performance brief project description web performance is a feature that needs to be considered from serving content to rendering to interactivity.
...And 2 more matches
Index - Archive of obsolete content
300 signing an extension add-ons, administration, extensions, themes, xpinstall, enterprise this article describes how to di
gitally sign your extension for firefox and thunderbird, with a code signing certificate for object signing.
... 381 chromeless update [this project may not be active — check
github https://
github.com/mozilla/chromeless] 382 compiling the npruntime sample plugin in visual studio add-ons, plugins no summary!
...znerd 04 august 2009 2249 foreach ok, in the end i didn't remove the old code as it isn't hosted anywhere (i thought the
github reference contained the code) but inserted a faster implementation above while retaining the rest of the document.
...And 2 more matches
generateCRMFRequest() - Archive of obsolete content
(this will have di
gitalsignature, keyencipherment, and nonrepudiation set for keyusage.) "rsa-sign" - generate an rsa key for signing only.
... (this will have di
gitalsignature set for keyusage.) "rsa-nonrepudiation" - generate a single rsa key for nonrepudiation only.
...(this will have both di
gitalsignature and nonrepudiation set for keyusage.) "dsa-sign" - generate a single dsa key for signing only.
...And 2 more matches
HTTP Cache
//
github.com/realityripple/uxp/blob/master/netwerk/cache2/nsicachestorageservice.idl "@mozilla.org/netwerk/cache-storage-service;1" provides methods accessing “storage” objects – see nsicachestorage below – giving further access to cache entries – see nsicacheentry more below – per specific url.
... //
github.com/realityripple/uxp/blob/master/netwerk/base/public/nsiloadcontextinfo.idl it is a helper interface wrapping following four arguments into a single one: private-browsing boolean flag anonymous load boolean flag app id number (0 for no app) is-in-browser boolean flag helper functions to create nsiloadcontextinfo objects: ...
... nsicachestorage //
github.com/realityripple/uxp/blob/master/netwerk/cache2/nsicachestorage.idl obtained from call to one of the *storage methods on nsicachestorageservice.
...And 2 more matches
sample2
pr_stderr, "problem while sgn_update\n"); goto cleanup; } } rv = sgn_end(sgn, res); if (rv != secsuccess) { pr_fprintf(pr_stderr, "problem while sgn_end\n"); goto cleanup; } cleanup: if (infile) { pr_close(infile); } if (sgn) { sgn_destroycontext(sgn, pr_true); } return rv; } /* * verify the signature using public key */ secstatus verifydata(const char *infilename, seckeypublickey *pk, secitem *si
gitem, secupwdata *pwdata) { unsigned int nb; unsigned char ibuf[4096]; secstatus rv = secfailure; vfycontext *vfy = null; prfiledesc *infile = null; /* open the input file for reading */ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilename); rv = secfailure; goto cleanup; } vfy = vfy_createcontext(pk, si
gitem, sec_oid_pkc...
...of infilename and writes to signaturefilename */ secstatus findkeyandsign(pk11slotinfo *slot, certcertdbhandle* certhandle, secupwdata *pwdata, const char *nicknamestr, const char *headerfilename, const char *infilename) { secstatus rv; prfiledesc *headerfile = null; prfiledesc *infile = null; certcertificate *cert = null; unsigned int signaturelen = 0; seckeyprivatekey *privkey = null; secitem si
gitem; secoidtag hashoidtag; /* open the header file to write padding */ headerfile = pr_open(headerfilename, pr_create_file | pr_rdwr | pr_append, 00660); if (!headerfile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for writing.\n", headerfilename); rv = secfailure; goto cleanup; } /* get the certificate by nick name and write to header file */ cert = cert_findcertbynicknameoremailaddr(certhandle...
...namestr); rv = secfailure; goto cleanup; } writetoheaderfile(cert->dercert.data, cert->dercert.len, certvfy, headerfile); /* find private key from certificate */ privkey = pk11_findkeybyanycert(cert, null); if (privkey == null) { fprintf(stderr, "couldn't find private key for cert\n"); rv = secfailure; goto cleanup; } /* sign the contents of the input file */ rv = signdata(infilename, privkey, &si
gitem); if (rv != secsuccess) { pr_fprintf(pr_stderr, "could not sign the contents from file - %s \n", infilename); goto cleanup; } /* write signature to header file */ writetoheaderfile(si
gitem.data, si
gitem.len, sig, headerfile); cleanup: if (headerfile) { pr_close(headerfile); } if (privkey) { seckey_destroyprivatekey(privkey); } if (cert) { cert_destroycertificate(cert); } return rv; } /* * finds...
...And 2 more matches
Standard OS Libraries
}, { "y": ctypes.long } ]); /* declare the signature of the function we are going to call */ var getcursorpos = lib.declare('getcursorpos', ctypes.winapi_abi, ctypes.bool, point.ptr ); /* use it like this */ var point = point(); var ret = getcursorpos(point.address()); components.utils.reporterror(ret); components.utils.reporterror(point); lib.close(); resources for winapi
githubgists :: noitidart / search · winapi - winapi js-ctypes snippets that can be copied and pasted to scratchpad com see using com from js-ctypes.
...ctypes.int(); let mask = new ctypes.unsigned_int(); xquerypointer(display, rootwindow, root.address(), child.address(), rootx.address(), rooty.address(), windowx.address(), windowy.address(), mask.address() ); xclosedisplay(display); components.utils.reporterror(rootx.value + "," + rooty.value); x11.close(); resources for x11 extended window manager hints
githubgists :: noitidart / search · x11 - x11 js-ctypes snippets that can be copied and pasted to scratchpad xcb all the above methods, gdk, gtk, and x11/xlib are meant to be used on the main thread.
... resources for xcb
github :: noitidart - ostypes / ostypes_x11.jsm - some method and type signatures xcb freedesktop :: xproto.h mac os x mac os x has two categories of c-based api (carbon, core foundation) and objective-c based api (cocoa).
...And 2 more matches
Using the CSS Typed Object Model - Web APIs
<p> <a href="https://example.com">link</a> </p> <dl id="regur
gitation"></dl> we add javascript to grab our unstyled link and return back a definition list of all the default css property values impacting the link using computedstylemap().
... // get the element const myelement = document.queryselector('a'); // get the <dl> we'll be populating const styleslist = document.queryselector('#regur
gitation'); // retrieve all computed styles with computedstylemap() const defaultcomputedstyles = myelement.computedstylemap(); // iterate thru the map of all the properties and values, adding a <dt> and <dd> for each for (const [prop, val] of defaultcomputedstyles) { // properties const cssproperty = document.createelement('dt'); cssproperty.appendchild(document.createtextnode(prop)); styleslist.appendchild(cssproperty); // values const cssvalue = document.createelement('dd'); cssvalue.appendchild(document.createtextnode(val)); styleslist.appendchild(cssvalue); } the computedstylemap() method returns a stylepropertymapreadonly o...
...art by adding some css to our example, including a custom property and an inhertable property: p { font-weight: bold; } a { --color: red; color: var(--color); } instead of getting all the properties, we create an array of properties of interest and use the stylepropertymapreadonly.get() method to get each of their values: <p> <a href="https://example.com">link</a> </p> <dl id="regur
gitation"></dl> // get the element const myelement = document.queryselector('a'); // get the <dl> we'll be populating const styleslist = document.queryselector('#regur
gitation'); // retrieve all computed styles with computedstylemap() const allcomputedstyles = myelement.computedstylemap(); // array of properties we're interested in const ofinterest = ['font-weight', 'border-left-color', 'color',...
...And 2 more matches
Fullscreen API - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
...And 2 more matches
KeyboardEvent: code values - Web APIs
keyboardevent.code value code firefox chrome 0x0000 "unidentified" "" 0x0001 "escape" "escape" 0x0002 "di
git0" "di
git0" 0x0003 "di
git1" "di
git1" 0x0004 "di
git2" "di
git2" 0x0005 "di
git3" "di
git3" 0x0006 "di
git4" "di
git4" 0x0007 "di
git5" "di
git5" 0x0008 "di
git6" "di
git6" 0x0009 "di
git7" "di
git7" 0x000a "di
git8" "di
git8" 0x000b "di
git9" "di
git9" 0x000c "minus...
... "intlbackslash" "intlbackslash" kvk_ansi_b (0x0b) "keyb" "keyb" kvk_ansi_q (0x0c) "keyq" "keyq" kvk_ansi_w (0x0d) "keyw" "keyw" kvk_ansi_e (0x0e) "keye" "keye" kvk_ansi_r (0x0f) "keyr" "keyr" kvk_ansi_y (0x10) "keyy" "keyy" kvk_ansi_t (0x11) "keyt" "keyt" kvk_ansi_1 (0x12) "di
git1" "di
git1" kvk_ansi_2 (0x13) "di
git2" "di
git2" kvk_ansi_3 (0x14) "di
git3" "di
git3" kvk_ansi_4 (0x15) "di
git4" "di
git4" kvk_ansi_6 (0x16) "di
git6" "di
git6" kvk_ansi_5 (0x17) "di
git5" "di
git5" kvk_ansi_equal (0x18) "equal" "equal" kvk_ansi_9 (0x19) "di
git9" "di
git9" kvk_ansi_7 (0x1a)...
... "di
git7" "di
git7" kvk_ansi_minus (0x1b) "minus" "minus" kvk_ansi_8 (0x1c) "di
git8" "di
git8" kvk_ansi_0 (0x1d) "di
git0" "di
git0" kvk_ansi_rightbracket (0x1e) "bracketright" "bracketright" kvk_ansi_o (0x1f) "keyo" "keyo" kvk_ansi_u (0x20) "keyu" "keyu" kvk_ansi_leftbracket (0x21) "bracketleft" "bracketleft" kvk_ansi_i (0x22) "keyi" "keyi" kvk_ansi_p (0x23) "keyp" "keyp" kvk_return (0x24) "enter" "enter" kvk_ansi_l (0x25) "keyl" "keyl" kvk_ansi_j (0x26) "keyj" "keyj" kvk_ansi_quote (0x27) "quote" "quote" kvk_ansi_k (0x28) "keyk" "keyk" kvk_ansi_semicolon (0x29) "semicolo...
...And 2 more matches
SubtleCrypto.decrypt() - Web APIs
examples note: you can try the working examples on
github.
...see the complete code on
github.
...see the complete code on
github.
...And 2 more matches
SubtleCrypto.encrypt() - Web APIs
examples note: you can try the working examples out on
github.
...see the complete code on
github.
...see the complete code on
github.
...And 2 more matches
SubtleCrypto.exportKey() - Web APIs
examples note: you can try the working examples out on
github.
...see the complete code on
github.
...see the complete code on
github.
...And 2 more matches
SubtleCrypto.generateKey() - Web APIs
examples note: you can try the working examples on
github.
...see the complete code on
github.
...see the complete code on
github.
...And 2 more matches
SubtleCrypto.importKey() - Web APIs
thing like this (this is an ec private key): { "crv": "p-384", "d": "wouctu7nw4e8_7n5c1-xbjb4xqsb_lizhymsy8mggxuny6q8ncoh9xsiviwlffk_", "ext": true, "key_ops": ["sign"], "kty": "ec", "x": "szrrxmyi8vwfjg1dpunbfcc9jzvjzefh7ulki1ukxaltd7rgwrcffxqygpcwu6aq", "y": "hhuag3ovdzer0uuqnd4pxhqtxp5idgdyhjhl-wlkjngjqaw0rngy5v29-av-ysew" }; examples note: you can try the working examples on
github.
...see the complete code on
github.
...see the complete code on
github.
...And 2 more matches
SubtleCrypto.wrapKey() - Web APIs
examples note: you can try the working examples out on
github.
...see the complete code on
github.
...see the complete code on
github.
...And 2 more matches
Constraint validation - Developer guides
not only do most countries allow an optional prefix with the country code (like d- in germany, f- in france or switzerland), but some countries have postal codes with only a fixed number of di
gits; others, like the uk, have more complex structures, allowing letters at some specific positions.
...on> <option value="nl">the netherlands</option> </select> <input type="submit" value="validate"> </form> this displays the following form: first, we write a function checking the constraint itself: function checkzip() { // for each country, defines the pattern that the zip has to follow var constraints = { ch : [ '^(ch-)?\\d{4}$', "switzerland zips must have exactly 4 di
gits: e.g.
... ch-1950 or 1950" ], fr : [ '^(f-)?\\d{5}$' , "france zips must have exactly 5 di
gits: e.g.
...And 2 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
how to describe a color in order to represent a color in css, you have to find a way to translate the analog concept of "color" into a di
gital form that a computer can use.
... hexadecimal string notation hexadecimal string notation represents a color using hexadecimal di
gits to represent each of the color components (red, green, and blue).
...all components must be specified using the same number of di
gits.
...And 2 more matches
<input type="file"> - 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.
...e="file" accept="image/*,.pdf"> using file inputs a basic example <form method="post" enctype="multipart/form-data"> <div> <label for="file">choose file to upload</label> <input type="file" id="file" name="file" multiple> </div> <div> <button>submit</button> </div> </form> div { margin-bottom: 10px; } this produces the following output: note: you can find this example on
github too — see the source code, and also see it running live.
...And 2 more matches
Date - HTTP
<day> 2 di
git day number, e.g.
... <year> 4 di
git year number, e.g.
... <hour> 2 di
git hour number, e.g.
...And 2 more matches
If-Modified-Since - HTTP
<day> 2 di
git day number, e.g.
... <year> 4 di
git year number, e.g.
... <hour> 2 di
git hour number, e.g.
...And 2 more matches
If-Range - HTTP
<day> 2 di
git day number, e.g.
... <year> 4 di
git year number, e.g.
... <hour> 2 di
git hour number, e.g.
...And 2 more matches
If-Unmodified-Since - HTTP
<day> 2 di
git day number, e.g.
... <year> 4 di
git year number, e.g.
... <hour> 2 di
git hour number, e.g.
...And 2 more matches
Last-Modified - HTTP
<day> 2 di
git day number, e.g.
... <year> 4 di
git year number, e.g.
... <hour> 2 di
git hour number, e.g.
...And 2 more matches
Numbers and dates - JavaScript
decimal numbers 1234567890 42 // caution when using leading zeros: 0888 // 888 parsed as decimal 0777 // parsed as octal in non-strict mode (511 in decimal) note that decimal literals can start with a zero (0) followed by another decimal di
git, but if every di
git after the leading 0 is smaller than 8, the number gets parsed as an octal number.
...if the di
gits after the 0b are not 0 or 1, the following syntaxerror is thrown: "missing binary di
gits after 0b".
...if the di
gits after the 0 are outside the range 0 through 7, the number will be interpreted as a decimal number.
...And 2 more matches
Number.prototype.toFixed() - 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 numobj.tofixed([di
gits]) parameters di
gits optional the number of di
gits to appear after the decimal point; this may be a value between 0 and 20, inclusive, and implementations may optionally support a larger range of values.
...And 2 more matches
Progressive web app structure - Progressive web apps (PWAs)
you can <a href="https://
github.com/mdn/pwa-examples/blob/master/js13kpwa">fork js13kpwa on
github</a> to check its source code.</p> <button id="notifications">request dummy notifications</button> <section id="content"> // content inserted in here </section> </main> <footer> <p>© js13kgames 2012-2018, created and maintained by <a href="http://end3r.com">andrzej mazur</a> from <a href="http://enclavegames.com">enclave ...
...name</h3>\n\ <ul>\n\ <li><span>author:</span> <strong>author</strong></li>\n\ <li><span>twitter:</span> <a href='https://twitter.com/twitter'>@twitter</a></li>\n\ <li><span>website:</span> <a href='http://website/'>website</a></li>\n\ <li><span>
github:</span> <a href='https://
github'>
github</a></li>\n\ <li><span>more:</span> <a href='http://js13kgames.com/entries/slug'>js13kgames.com/entries/slug</a></li>\n\ </ul>\n\ </article>"; var content = ''; for(var i=0; i<games.length; i++) { var entry = template.replace(/pos/g,(i+1)) .replace(/slug/g,games[i].slug) .replace(/name/g,games[i].name) .replace(/author/...
...g,games[i].author) .replace(/twitter/g,games[i].twitter) .replace(/website/g,games[i].website) .replace(/
github/g,games[i].
github); entry = entry.replace('<a href=\'http:///\'></a>','-'); content += entry; }; document.getelementbyid('content').innerhtml = content; next, it registers a service worker: if('serviceworker' in navigator) { navigator.serviceworker.register('/pwa-examples/js13kpwa/sw.js'); }; the next code block requests permission for notifications when a button is clicked: var button = document.getelementbyid("notifications"); button.addeventlistener('click', function(e) { notification.requestpermission().then(function(result) { if(result === 'granted') { randomnotification(); } }); }); the last block cre...
...And 2 more matches
Structural overview of progressive web apps - Progressive web apps (PWAs)
you can <a href="https://
github.com/mdn/pwa-examples/blob/master/js13kpwa"> fork js13kpwa on
github</a> to check its source code.</p> <button id="notifications">request dummy notifications</button> <section id="content"> // content inserted in here </section> </main> <footer> <p>© js13kgames 2012-2018, created and maintained by <a href="http://end3r.com"> andrzej mazur</a> from <a href="http://enclavegam...
...name</h3>\n\ <ul>\n\ <li><span>author:</span> <strong>author</strong></li>\n\ <li><span>twitter:</span> <a href='https://twitter.com/twitter'> @twitter</a></li>\n\ <li><span>website:</span> <a href='http://website/'>website</a></li>\n\ <li><span>
github:</span> <a href='https://
github'>
github</a></li>\n\ <li><span>more:</span> <a href='http://js13kgames.com/entries/slug'> js13kgames.com/entries/slug</a></li>\n\ </ul>\n\ </article>"; var content = ''; for(var i=0; i<games.length; i++) { var entry = template.replace(/pos/g,(i+1)) .replace(/slug/g,games[i].slug) .replace(/name/g,games[i].name) .replace...
...(/author/g,games[i].author) .replace(/twitter/g,games[i].twitter) .replace(/website/g,games[i].website) .replace(/
github/g,games[i].
github); entry = entry.replace('<a href=\'http:///\'></a>','-'); content += entry; }; document.getelementbyid('content').innerhtml = content; then it registers a service worker: if ("serviceworker" in navigator) { navigator.serviceworker.register("/pwa-examples/js13kpwa/sw.js"); } after that, the app adds a handler for clicks on a button whose id is notifications; this handler requests permission to send notifications to the user, then generates and sends a random notification.
...And 2 more matches
Content type - SVG: Scalable Vector Graphics
metric ::= "h" | "min" | "s" | "ms" hours ::= di
git+; any positive number minutes ::= 2di
git; range from 00 to 59 seconds ::= 2di
git; range from 00 to 59 fraction ::= di
git+ timecount ::= di
git+ 2di
git ::= di
git di
git di
git ::= [0-9] for timecount values, the default metric suffix is "s" (for seconds).
...the three-di
git rgb notation (#rgb) is converted into six-di
git form (#rrggbb) by replicating di
gits, not by adding zeros.
... color ::= "#" hexdi
git hexdi
git hexdi
git (hexdi
git hexdi
git hexdi
git)?
...And 2 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
smartupdate involves a di
gitally signed jar file which contained the software components to be installed as well as a javascript install.js file (called the install script) as the installer logic.
...smartupdate differs from xpinstall in that: xpinstall uses zip files named xpi files (*.xpi) and smartupdate uses jar files (*.jar) unlike a smartupdate jar file, xpi packages do not have to be di
gitally signed with a code-signing certificate.
... a string representing the four di
git version of the software.
...it can therefore only be used to install files or deliver native code installers to the client, and if uninstall is a le
gitimate concern, it might be wise to write a native code (exe) uninstaller to remove the software.
How do you upload your files to a web server? - Learn web development
in this article we'll discuss how to do that, using various available options such as sftp clients, rsync and
github.
...
github
github allows you to publish websites via
github pages (gh-pages).
... however, it is worth knowing that you can also host a website on
github, but use a custom domain with it.
... see using a custom domain with
github pages for a detailed guide.
Document and website structure - Learn web development
active learning: exploring the code for our example our example seen above is represented by the following code (you can also find the example in our
github repository).
...ut turpis felis, pulvinar a semper sed, adipiscing id dolor.</p> <p>pelientesque auctor nisi id magna consequat sa
gittis.
...nunc diam velit, adipscing ut tristique vitae sa
gittis vel odio.
...curabitur ornare, ligula semper consectetur sa
gittis, nisi diam iaculis velit, is fringille sem nunc vet mi.</p> </article> <!-- the aside content can also be nested within the main content --> <aside> <h2>related</h2> <ul> <li><a href="#">oh i do like to be beside the seaside</a></li> <li><a href="#">oh i do like to be beside the sea</a></li> <li><a href="#">although in the north of england</a></li> <li><a href="#">it never stops raining</a></li> <li><a href="#">oh well...</a></li> </ul> </aside> </main> <!-- and here is our main footer that is used across all the pages of our website --> <footer> <p>©copyright 2050 by nobody.
From object to iframe — other embedding technologies - Learn web development
a quick example first though — try loading the previous example we showed above into your browser — you can find it live on
github (see the source code too.) you won't actually see anything displayed on the page, and if you look at the console in the browser developer tools, you'll see a message telling you why.
... note:
github pages allow content to be served via https by default, so is useful for hosting content.
... here's an example that uses the <embed> element to embed a flash movie (see this live on
github, and check the source code too): <embed src="whoosh.swf" quality="medium" bgcolor="#ffffff" width="550" height="400" name="whoosh" align="middle" allowscriptaccess="samedomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> pretty horrible, isn't it?
... </a> </p> </object> pdfs were a necessary stepping stone between paper and di
gital, but they pose many accessibility challenges and can be hard to read on small screens.
Making decisions in your code — conditionals - Learn web development
note: you can see a more complete version of this example on
github (also see it running live.) else if the last example provided us with two choices, or outcomes — but what if we want more than two?
... note: you can also find this example on
github (see it running live on there also.) a note on comparison operators comparison operators are used to test the conditions inside our conditional statements.
...best to stay in with a cup of hot chocolate, or go build a snowman.'; break; case 'overcast': para.textcontent = 'it isn\'t raining, but the sky is grey and gloomy; it could turn any minute, so take a rain coat just in case.'; break; default: para.textcontent = ''; } } note: you can also find this example on
github (see it running live on there also.) ternary operator there is one final bit of syntax we want to introduce you to before we get you to play with some examples.
... note: you can also find this example on
github (see it running live on there also.) active learning: a simple calendar in this example, you are going to help us finish a simple calendar application.
Website security - Learn web development
this technique might be used, for example, to display a le
gitimate bank site but capture the login credentials into an invisible <iframe> controlled by the attacker.
...dos is usually achieved by flooding a target site with fake requests so that access to a site is disrupted for le
gitimate users.
...dos defenses usually work by identifying and blocking "bad" traffic while allowing le
gitimate messages through.
...the most common pattern at this time is to only display the last 4 di
gits of a credit card number.
Command line crash course - Learn web development
better programs exist for providing a terminal experience on windows, such as powershell (see here to find installers), and
gitbash (which comes as part of the
git for windows toolset) however, the best option for windows in the modern day is the windows subsystem for linux (wsl) — a compatibility layer for running linux operating systems directly from inside windows 10, allowing you to run a “true terminal” directly on windows, without needing a virtual machine.
...s list of pros and cons for globally installing is far from exhaustive: pros of installing globally cons of installing globally accessible anywhere in your terminal may not be compatible with your project's codebase only install once other developers in your team won't have access to these tools, for example if you are sharing the codebase over a tool like
git.
...you can invoke prettier: before you commit your code into a
git repository using husky.
... as part of continuous integration checks using tools like
github actions.
Localizing XLIFF files for iOS
decide where on your local computer you will store your copy of the
github repo and navigate there in your terminal.
... enter the command
git clone https://
github.com/mozilla-l10n/firefoxios-l10n/your-locale-code/ you should now see the firefox-ios project in your selected directoy with the firefox-ios.xliff file in it.
... commiting your xliff file using this command, commit your translated xliff file into your locale's directory:
git commit -m "commit message here" .
... push your commit into the
github repo:
git push kick up your feet, pop open a cold beer (or soda), and pat yourself on the back for doing something new, different, and exciting!
Utilities for nss samples
* pw_external = 3 */ } source; char *data; /* depending on source this can be the actual * password or the file to read it from */ } secupwdata; /* * printasascii */ extern void printasascii(prfiledesc* out, const unsigned char *data, unsigned int len); /* * printashex */ extern void printashex(prfiledesc* out, const unsigned char *data, unsigned int len); /* * getdi
git */ extern int getdi
git(char c); /* * hextobuf */ extern int hextobuf(unsigned char *instring, secitem *outbuf, prbool ishexdata); /* * filetoitem */ extern secstatus filetoitem(secitem *dst, prfiledesc *src); /* * checkpassword */ extern prbool checkpassword(char *cp); /* * getpassword */ extern char * getpassword(file *input, file *output, char *prompt,...
... pr_fprintf(out, "%02x:", data[i]); column += 3; } else { pr_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 76 || (i % 16 == limit)) { newline(out); column = level; limit = i % 16; } } if (column != level) { newline(out); } } /* * getdi
git */ int getdi
git(char c) { if (c == 0) { return -1; } if (c <= '9' && c >= '0') { return c - '0'; } if (c <= 'f' && c >= 'a') { return c - 'a' + 0xa; } if (c <= 'f' && c >= 'a') { return c - 'a' + 0xa; } return -1; } /* * hextobuf */ int hextobuf(unsigned char *instring, secitem *outbuf, prbool ishexdata) { int len = strle...
...n((const char *)instring); int outlen = len+1/2; int truelen = 0; int di
git1, di
git2; outbuf->data = ishexdata ?
... port_alloc(outlen) : port_alloc(len); if (!outbuf->data) { return -1; } if (ishexdata) { while (*instring) { if ((*instring == '\n') || (*instring == ':')) { instring++; continue; } di
git1 = getdi
git(*instring++); di
git2 = getdi
git(*instring++); if ((di
git1 == -1) || (di
git2 == -1)) { port_free(outbuf->data); outbuf->data = null; return -1; } outbuf->data[truelen++] = di
git1 << 4 | di
git2; } } else { while (*instring) { if (*instring == '\n') { instring++; continue; } outbuf->data[truelen++] = *in...
sslfnc.html
description nss_init opens the certn.db, keyn.db, and secmod.db files (wheren is a numeric di
git) in the specified directory.
... description nss_initreadwrite opens the certn.db, keyn.db, and secmod.db files (wheren is a numeric di
git) with both read and write permission in the specified directory.
...if the checksig parameter is set to pr_true, the callback function also verifies the di
gital signature.
...if the checksig parameter is set to pr_true (which is normally the case), the function also verifies the di
gital signature and the certificate chain.
Shumway
it can be run locally through a web server or you can use the version hosted on mozilla's
github.
...there are two places where shumway bugs are tracked:
github (via issues and pull requests) manages problems relating to shumway, itself.
... performance and compatibility issues with flash content should be reported through
github.
... from the main page for shumway at
github, click on "issues" and browse the outstanding issues for similar bugs to contribute to.
Making cross-thread calls using runnables
for example, let's say we have a function, calculatepi(int di
gits), which will calculate π to an arbitrary number of di
gits: void calculatepi(int di
gits, nscstring& result); // this is synchronous this can take a while, so we don't want to run this on the main thread.
...so we declare an asynchronous version of the same function: typedef void (*picallback)(const nscstring& result); // callback function void calculatepiasynchronously(int di
gits, picallback callback); creating a runnable nsrunnable is a helper class: it already implements threadsafe refcounting, so all you need to do is override the run() function.
... mworkerthread->shutdown(); } private: picallback mcallback; nscstring mresult; nscomptr<nsithread> mworkerthread; }; class picalculatetask : public nsrunnable { public: picalculatetask(picallback callback, int di
gits) : mcallback(callback) , mdi
gits(di
gits) { } ns_imethod run() { nscstring result; calculatepi(mdi
gits, result); nscomptr<nsirunnable> resultrunnable = new piresulttask(mcallback, result); ns_dispatchtomainthread(resultrunnable); } private: picallback mcallback; int mdi
gits; }; putting it all together to start a new thread, create it using the thread manager: ...
...#include "nsxpcomcidinternal.h" void calculatepiasynchronously(int di
gits, picallback callback) { // to create a new thread, get the thread manager nscomptr<nsithreadmanager> tm = do_getservice(ns_threadmanager_contractid); nscomptr<nsithread> mythread; nsresult rv = tm->newthread(0, 0, getter_addrefs(mythread)); if (ns_failed(rv)) { // in case of failure, call back immediately with an empty string which indicates failure callback(emptycstring()); return; } nscomptr<nsirunnable> r = new picalculatetask(callback, di
gits); mythread->dispatch(r, nsieventtarget::dispatch_normal); // the result callback will shut down the worker thread, we can let it go here...
Virtualenv
the
github virtualenv repository is maintained by the python packaging authority (including mozilla's tarek ziade and ian bicking).
... if you have
git installed, you can clone the latest version of virtualenv:
git clone
git://
github.com/pypa/virtualenv.
git if you have pip or easy_install, you can install virtualenv directly from the web: pip install virtualenv # -or- easy_install virtualenv this will fetch virtualenv from pypi and install it in your site-packages.
...if you do not have pip or easy_install, you will need to download from pypi or clone from the
github virtualenv repository, extract from the tarball (in the pypi case), and run python setup.py install.
... it will require it to be part of a clone of the
github repository or have internet access to fetch setuptools.
Using the Gamepad API - Web APIs
this is not strictly specified, but in firefox it will contain three pieces of information separated by dashes (-): two 4-di
git hexadecimal strings containing the usb vendor and product id of the controller, and the name of the controller as provided by the driver.
...you can view the demo live, and find the source code on
github.
...you can find a working demo and look at the full source code on
github.
...child(e); } d.appendchild(b); var a = document.createelement("div"); a.classname = "axes"; for (var i = 0; i < gamepad.axes.length; i++) { var p = document.createelement("progress"); p.classname = "axis"; //p.id = "a" + i; p.setattribute("max", "2"); p.setattribute("value", "1"); p.innerhtml = i; a.appendchild(p); } d.appendchild(a); // see https://
github.com/luser/gamepadtest/blob/master/index.html var start = document.getelementbyid("start"); if (start) { start.style.display = "none"; } document.body.appendchild(d); requestanimationframe(updatestatus); } function disconnecthandler(e) { removegamepad(e.gamepad); } function removegamepad(gamepad) { var d = document.getelementbyid("controller" + gamepad.index); document.bo...
Key Values - Web APIs
keycode_tv_terrestrial_analog (235) "tvterrestrialdi
gital" selects di
gital terrestrial television service (di
gital cable or antenna receiption).
... keycode_tv_terrestrial_di
gital (236) "tvtimer" timer programming button.
... vk_display_swap "dvr" switches the input source to the di
gital video recorder (dvr).
... (in the united states this is a comma, but elsewhere it is frequently a period.) vk_separator (0x6c) kvk_jis_keypadcomma (0x5f) gdk_key_kp_separator (0xffac) keycode_numpad_comma (159) "0" through "9" the actual di
git keys on the numeric keypad.
PointerEvent - Web APIs
for touch, it is fired when physical contact is made with the di
gitizer.
... for pen, it is fired when the stylus makes physical contact with the di
gitizer.
... pointerout this event is fired for several reasons including: pointing device is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the di
gitizer.
...for pen devices, this event is fired when the stylus leaves the hover range detectable by the di
gitizer.
Pointer events - Web APIs
for example, in the case of a pen, when the pen has physical contact with the di
gitizer, or at least one button is depressed while hovering.
... di
gitizer a sensing device with a surface that can detect contact.
... pointerout onpointerout fired for several reasons including: pointer is moved out of the hit test boundaries of an element; firing the pointerup event for a device that does not support hover (see pointerup); after firing the pointercancel event (see pointercancel); when a pen stylus leaves the hover range detectable by the di
gitizer.
...for pen devices, this event is fired when the stylus leaves the hover range detectable by the di
gitizer.
WebGL best practices - Web APIs
take advantage of universally supported webgl 1 extensions these webgl 1 extensions are universally supported: angle_instanced_arrays ext_blend_minmax oes_element_index_uint oes_standard_derivatives oes_vertex_array_object webgl_debug_renderer_info webgl_lose_context (see also: https://jdashg.
github.io/misc/webgl/webgl-feature-levels.html) consider polyfilling these into webglrenderingcontext, like: https://
github.com/jdashg/misc/blob/master/webgl/webgl-v1.1.js universally supported limits the minimum requirements for webgl are quite low.
... https://
github.com/binomialllc/basis_universal/blob/master/webgl/readme.md memory usage of depth and stencil formats depth and stencil attachments and formats are actually inseparable on many devices.
... non-blocking async data download/readback the approach in webgl 2 is analogous to the approach in opengl: https://jdashg.
github.io/misc/async-gpu-downloads.html function clientwaitasync(gl, sync, flags, interval_ms) { return new promise((resolve, reject) => { function test() { const res = gl.clientwaitsync(sync, flags, 0); if (res == gl.wait_failed) { reject(); return; } if (res == gl.timeout_expired) { settimeout(test, interval_ms); return; } r...
... demo: https://jdashg.
github.io/misc/webgl/device-pixel-presnap.html resizeobserver and 'device-pixel-content-box' on supporting browsers (chromium?), resizeobserver can be used with 'device-pixel-content-box' to request a callback that includes the true device pixel size of an element.
Fundamentals of WebXR - Web APIs
field of view the term field of view (fov) is one which applies to any visual technology, from old film cameras to modern di
gital video cameras, including the cameras in computers and mobile devices.
... virtual reality in a vr environment, the entire image is di
gitally created by your app or site, from foreground objects all the way to the background or skybox.
...the user is, thus, directly viewing the real world instead of a series of di
gital photos of it.
...this is done without di
gitally reproducing the world, as would be necessary with a full headset.
:where() - CSS: Cascading Style Sheets
</aside> <footer class="is-styling"> <p>this is my footer, also containing <a href="https://
github.com/mdn">a link</a>.
... </aside> <footer class="where-styling"> <p>this is my footer, also containing <a href="https://
github.com/mdn">a link</a>.
... note: you can also find this example on
github; see is-where.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
<custom-ident> - CSS: Cascading Style Sheets
it consists of one or more characters, where characters can be any of the following: any alphabetical character (a to z, or a to z), any decimal di
git (0 to 9), a hyphen (-), an underscore (_), an escaped character (preceded by a backslash, \), a unicode character (in the format of a backslash, \, followed by one to six hexadecimal di
gits, representing its unicode code point) note that id1, id1, id1 and id1 are all different identifiers as they are case-sensitive.
...moreover, the first character must not be a decimal di
git, nor a hyphen (-) followed by a decimal di
git or another hyphen.
...ground-level a mix of alphanumeric characters and a dash -test a dash followed by alphanumeric characters _internal an underscore followed by alphanumeric characters \22 toto a unicode character followed by a sequence of alphanumeric characters bili\.bob a correctly escaped period invalid identifiers 34rem it must not start with a decimal di
git.
... -12rad it must not start with a dash followed by a decimal di
git.
<dfn>: The Definition 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.
...aperiendum est i
gitur, quid sit voluptas; quid enim?
... non est i
gitur voluptas bonum.
<input type="email"> - 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.
...when you create an email input with the proper type value, email, you get automatic validation that the entered text is at least in the correct form to potentially be a le
gitimate e-mail address.
...if the text in the input box isn't an e-mail address, you'll get an error message that looks something like this: if we left things at that, we would at least be validating on le
gitimate e-mail addresses.
<input type="month"> - HTML: Hypertext Markup Language
the value is a string whose value is in the format "yyyy-mm", where yyyy is the four-di
git year and mm is the month number.
... 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.
... value a domstring representing the value of the month and year entered into the input, in the form yyyy-mm (four or more di
git year, then a hyphen ("-"), followed by the two-di
git month).
<input type="number"> - 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.
... for example, to adjust the width of the input to be only as wide as is needed to enter a three-di
git number, we can change our html to include an id and to shorten our placeholder since the field will be too narrow for the text we have been using so far: <input type="number" placeholder="x10" step="10" min="0" max="100" id="number"> then we add some css to narrow the width of the element with the id selector #number: #number { width: 3em; } the result looks like this: offering suggested...
... the rationale for this is that number inputs won't be valid if they contain anything except numbers, and you can constrain the minimum and maximum number of valid di
gits using the min and max attributes (as explained above).
<input type="url"> - 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.
... using url inputs when you create a url input with the proper type value, url, you get automatic validation that the entered text is at least in the correct form to potentially be a le
gitimate url.
... you can also find our pattern validation example on
github (see it running live also).
Unicode property escapes - JavaScript
e.g.: ascii, alpha, math, diacritic, emoji, hex_di
git, math, white_space, etc.
...the value decimal_number for the general_category property may be written nd, di
git, or decimal_number).
... // ٢ is the di
git 2 in arabic-indic notation // while it is predominantly written within the arabic script // it can also be written in the thaana script "٢".match(/\p{script=thaana}/u); // null as thaana is not the predominant script super() "٢".match(/\p{script_extensions=thaana}/u); // ["٢", index: 0, input: "٢", groups: undefined] unicode property escapes vs.
... character classes with javascript regular expressions, it is also possible to use character classes and especially \w or \d to match letters or di
gits.
Array.prototype.map() - 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.
... // production steps of ecma-262, edition 5, 15.4.4.19 // reference: http://es5.
github.io/#x15.4.4.19 if (!array.prototype.map) { array.prototype.map = function(callback/*, thisarg*/) { var t, a, k; if (this == null) { throw new typeerror('this is null or not defined'); } // 1.
... // see: http://es5.
github.com/#x9.11 if (typeof callback !== 'function') { throw new typeerror(callback + ' is not a function'); } // 5.
BigInt.prototype.toLocaleString() - 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.
... to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: var bigint = 123456789123456789n; // german uses period for thousands console.log(bigint.tolocalestring('de-de')); // → 123.456.789.123.456.789 // arabic in most arabic speaking countries uses eastern arabic di
gits console.log(bigint.tolocalestring('ar-eg')); // → ١٢٣٬٤٥٦٬٧٨٩٬١٢٣٬٤٥٦٬٧٨٩ // india uses thousands/lakh/crore separators console.log(bigint.tolocalestring('en-in')); // → 1,23,45,67,89,12,34,56,789 // the nu extension key requests a numbering system, e.g.
...ions argument: var bigint = 123456789123456789n; // request a currency format console.log(bigint.tolocalestring('de-de', { style: 'currency', currency: 'eur' })); // → 123.456.789.123.456.789,00 € // the japanese yen doesn't use a minor unit console.log(bigint.tolocalestring('ja-jp', { style: 'currency', currency: 'jpy' })) // → ¥123,456,789,123,456,789 // limit to three significant di
gits console.log(bigint.tolocalestring('en-in', { maximumsignificantdi
gits: 3 })); // → 1,23,00,00,00,00,00,00,000 specifications specification ecmascript (ecma-262)the definition of 'bigint.prototype.tolocalestring()' in that specification.
Date.prototype.getFullYear() - 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 dates between the years 1000 and 9999, getfullyear() returns a four-di
git number, for example, 1995.
... examples using getfullyear() the following example assigns the four-di
git value of the current year to the variable year.
Date.prototype.toLocaleTimeString() - 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.
...us english uses 12-hour time with am/pm console.log(date.tolocaletimestring('en-us')); // → "7:00:00 pm" // british english uses 24-hour time without am/pm console.log(date.tolocaletimestring('en-gb')); // → "03:00:00" // korean uses 12-hour time with am/pm console.log(date.tolocaletimestring('ko-kr')); // → "오후 12:00:00" // arabic in most arabic speaking countries uses real arabic di
gits console.log(date.tolocaletimestring('ar-eg')); // → "٧:٠٠:٠٠ م" // when requesting a language that may not be supported, such as // balinese, include a fallback language, in this case indonesian console.log(date.tolocaletimestring(['ban', 'id'])); // → "11.00.00" using options the results provided by tolocaletimestring() can be customized using the options argument: var date = new...
...s = { timezone: 'utc', timezonename: 'short' }; console.log(date.tolocaletimestring('en-us', options)); // → "3:00:00 am gmt" // sometimes even the us needs 24-hour time console.log(date.tolocaletimestring('en-us', { hour12: false })); // → "19:00:00" // show only hours and minutes, use options with the default locale - use an empty array console.log(date.tolocaletimestring([], { hour: '2-di
git', minute: '2-di
git' })); // → "20:01" specifications specification ecmascript (ecma-262)the definition of 'date.prototype.tolocaletimestring' in that specification.
Date.prototype.toUTCString() - JavaScript
based on rfc7231 and modified according to ecma-262 toutcstring, it can have negative values in the 2021 version 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.
...sun, mon, ...) dd day of month, as two di
gits with leading zero if required mmm month, as three letters (e.g.
... jan, feb, ...) yyyy year, as four or more di
gits with leading zeroes if required hh hour, as two di
gits with leading zero if required mm minute, as two di
gits with leading zero if required ss seconds, as two di
gits with leading zero if required prior to ecmascript 2018, the format of the return value varied according to the platform.
Intl.DateTimeFormat - 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.
...19." // arabic in most arabic speaking countries uses real arabic di
gits console.log(new intl.datetimeformat('ar-eg').format(date)); // → "١٩/١٢/٢٠١٢" // for japanese, applications may want to use the japanese calendar, // where 2012 was the year 24 of the heisei era console.log(new intl.datetimeformat('ja-jp-u-ca-japanese').format(date)); // → "24/12/19" // when requesting a language that may not be supported, such as // balinese, include a fallb...
..., options).format(date)); // → "thursday, december 20, 2012, gmt" // sometimes you want to be more precise options = { hour: 'numeric', minute: 'numeric', second: 'numeric', timezone: 'australia/sydney', timezonename: 'short' }; console.log(new intl.datetimeformat('en-au', options).format(date)); // → "2:00:00 pm aedt" // sometimes you want to be very precise options.fractionalseconddi
gits = 3; console.log(new intl.datetimeformat('en-au', options).format(date)); // → "2:00:00.200 pm aedt" // sometimes even the us needs 24-hour time options = { year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: false, timezone: 'america/los_angeles' }; console.log(new intl.datetimeformat('en-us', options).format(date)); // �...
Intl.NumberFormat - 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.
...the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: var number = 123456.789; // german uses comma as decimal separator and period for thousands console.log(new intl.numberformat('de-de').format(number)); // → 123.456,789 // arabic in most arabic speaking countries uses real arabic di
gits console.log(new intl.numberformat('ar-eg').format(number)); // → ١٢٣٤٥٦٫٧٨٩ // india uses thousands/lakh/crore separators console.log(new intl.numberformat('en-in').format(number)); // → 1,23,456.789 // the nu extension key requests a numbering system, e.g.
...ng the options argument: var number = 123456.789; // request a currency format console.log(new intl.numberformat('de-de', { style: 'currency', currency: 'eur' }).format(number)); // → 123.456,79 € // the japanese yen doesn't use a minor unit console.log(new intl.numberformat('ja-jp', { style: 'currency', currency: 'jpy' }).format(number)); // → ¥123,457 // limit to three significant di
gits console.log(new intl.numberformat('en-in', { maximumsignificantdi
gits: 3 }).format(number)); // → 1,23,000 using style and unit console.log(new intl.numberformat("pt-pt", { style: 'unit', unit: "mile-per-hour" }).format(50)); // → 50 mi/h console.log((16).tolocalestring('en-gb', { style: "unit", unit: "liter", unitdisplay: "long" })); // → 16 litres specification...
Intl.PluralRules.prototype.resolvedOptions() - JavaScript
only one of the following two groups of properties is included: minimumintegerdi
gits minimumfractiondi
gits maximumfractiondi
gits the values provided for these properties in the options argument or filled in as defaults.
... these properties are present only if neither minimumsignificantdi
gits nor maximumsignificantdi
gits was provided in the options argument.
... minimumsignificantdi
gits maximumsignificantdi
gits the values provided for these properties in the options argument or filled in as defaults.
... examples using the resolvedoptions method var de = new intl.pluralrules('de-de'); var usedoptions = de.resolvedoptions(); usedoptions.locale; // "de-de" usedoptions.maximumfractiondi
gits; // 3 usedoptions.minimumfractiondi
gits; // 0 usedoptions.minimumintegerdi
gits; // 1 usedoptions.pluralcategories; // array [ "one", "other" ] usedoptions.type; // "cardinal" specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.pluralrules.prototype.resolvedoptions' in that specification.
Math.trunc() - JavaScript
the math.trunc() function returns the integer part of a number by removing any fractional di
gits.
... 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.
...it truncates (cuts off) the dot and the di
gits to the right of it, no matter whether the argument is a positive or negative number.
Number.prototype.toLocaleString() - 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.
...e format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) using the locales argument: var number = 123456.789; // german uses comma as decimal separator and period for thousands console.log(number.tolocalestring('de-de')); // → 123.456,789 // arabic in most arabic speaking countries uses eastern arabic di
gits console.log(number.tolocalestring('ar-eg')); // → ١٢٣٤٥٦٫٧٨٩ // india uses thousands/lakh/crore separators console.log(number.tolocalestring('en-in')); // → 1,23,456.789 // the nu extension key requests a numbering system, e.g.
...alestring can be customized using the options argument: var number = 123456.789; // request a currency format console.log(number.tolocalestring('de-de', { style: 'currency', currency: 'eur' })); // → 123.456,79 € // the japanese yen doesn't use a minor unit console.log(number.tolocalestring('ja-jp', { style: 'currency', currency: 'jpy' })) // → ¥123,457 // limit to three significant di
gits console.log(number.tolocalestring('en-in', { maximumsignificantdi
gits: 3 })); // → 1,23,000 // use the host default language with options for number formatting var num = 30000.65; console.log(num.tolocalestring(undefined, {minimumfractiondi
gits: 2, maximumfractiondi
gits: 2})); // → "30,000.65" where english is the default language, or // → "30.000,65" where german is the default language,...
parseInt() - 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.
... parseint('0e0') // 0 parseint('08') // 0, because '8' is not an octal di
git.
...rseint('f', 16) parseint('17', 8) parseint(021, 8) parseint('015', 10) // but `parseint(015, 10)` will return 13 parseint(15.99, 10) parseint('15,123', 10) parseint('fxx123', 16) parseint('1111', 2) parseint('15 * 3', 10) parseint('15e2', 10) parseint('15px', 10) parseint('12', 13) the following examples all return nan: parseint('hello', 8) // not a number at all parseint('546', 2) // di
gits other than 0 or 1 are invalid for binary radix the following examples all return -15: parseint('-f', 16) parseint('-0f', 16) parseint('-0xf', 16) parseint(-15.1, 10) parseint('-17', 8) parseint('-15', 10) parseint('-1111', 2) parseint('-15e1', 10) parseint('-12', 13) the following examples all return 4.
Authoring MathML - MathML
to use it, just insert one line in your document header: <script src="https://fred-wang.
github.io/mathml.css/mspace.js"></script> if you need more complex constructions, you might instead consider using the heavier mathjax library as a mathml polyfill: <script src="https://fred-wang.
github.io/mathjax.js/mpadded-min.js"></script> note that these two scripts perform feature detection of the mspace or mpadded elements (see the browser compatibility table on these pages).
... there is also a similar script to display a warning at the top of the page for browsers without good mathml support and let the users choose between one of the fallback above: <script src="https://fred-wang.
github.io/mathml-warning.js/mpadded-min.js"></script> if you don't want to use this link to
github but instead to integrate these polyfills or others in your own project, you might need the detection scripts to verify the level of mathml support.
...see this
github repository to get woff fonts and sample css stylesheets to use on your web site and check its test page.
...tex file, you can use these simple commands: latexmlc --dest foo.html foo.tex # generate a html5 document foo.html latexmlc --dest foo.epub foo.tex # generate an epub document foo.epub to handle the case of browsers without mathml support, you can use the --javascript parameter to tell latexml to include one of the fallback scripts: latexmlc --dest foo.html --javascript=https://fred-wang.
github.io/mathml.css/mspace.js foo.tex # add the css fallback latexmlc --dest foo.html --javascript=https://fred-wang.
github.io/mathjax.js/mpadded-min.js foo.tex # add the mathjax fallback if your latex document is big, you might want to split it into several small pages rather than putting everything in a single large page.
jpm - Archive of obsolete content
add the following line to the end of the file $home/.profile to add it to your path permanently (as the file .profile is executed every time a new terminal is opened): export path="$home/node_modules/.bin/:$path" installing jpm from
git alternatively, you can also get the latest version of jpm using
git:
git clone https://
github.com/mozilla-jetpack/jpm.
git cd jpm npm install npm link after installing jpm after installation, at the command prompt, type: jpm you should see a screen summarizing the available jpm commands.
... using .jpmignore to ignore files using .jpmignore is similar to using .
gitignore with
git, .hgignore with mercurial, or .npmignore with npm.
...in this case you need to: get a local copy of the sdk modules that you want: this usually means checking out the sdk from its
github repo set the jetpack_root environment variable to your local copy pass the -o option to jpm run or jpm xpi: jpm run -o this instructs jpm to use the local copies of the sdk modules, not the ones in firefox.
Creating Reusable Modules - Archive of obsolete content
we can adapt it like this: var {cc, ci} = require("chrome"); // return the two-di
git hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var istream = cc["@mozilla.org/network/file-input-stream;1"] .createinstance(ci.nsifileinputstream); // open for reading istream...
... var s = array.from(hash, (c, i) => tohexstring(hash.charcodeat(i))).join(""); return s; } putting it together the complete add-on adds a button to firefox: when the user clicks the button, we ask them to select a file, compute the hash, and log the hash to the console: var {cc, ci} = require("chrome"); // return the two-di
git hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var istream = cc["@mozilla.org/network/file-input-stream;1"] .createinstance(ci.nsifileinputstream); // open for reading istream...
...copy the hashing code there, and add this line at the end: exports.hashfile = md5file; the complete file looks like this: var {cc, ci} = require("chrome"); // return the two-di
git hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } function md5file(path) { var f = cc["@mozilla.org/file/local;1"] .createinstance(ci.nsilocalfile); f.initwithpath(path); var istream = cc["@mozilla.org/network/file-input-stream;1"] .createinstance(ci.nsifileinputstream); // open for reading istream...
Bootstrapped extensions - Archive of obsolete content
for example if you had a subfolder of en-us in locale folder your chrome.manifest file will have to contain: locale name_of_your_addon en-us locale/ here is an example:
github :: l10n-properties - on startup of this add-on it will show a prompt saying usa or great britain, which ever it deems closest to your locale.
... must include a definition for content for example: content name_of_your_addon ./ the chrome.manifest file must also include a line pointing to the locale, just like in the above property section, if you had a folder named en-us in locale, the chrome.manifest file should contain: locale name_of_your_addon en-us locale/ here is an example add-on that opens an html page and a xul page on install:
github :: l10n-xhtml-xul.
... here is an example showing how to use a localized html page as an options page:
github :: l10n-html-options.
Extension Versioning, Update and Compatibility - Archive of obsolete content
as a rough overview this is a version string split by periods, some examples: 2.0 1.0b1 3.0pre1 5.0.1.2 note: before firefox 1.5 the more basic firefox version format was used: major.minor.release.build[+] where only di
gits were allowed.
... when you specify an updatekey in the install.rdf, you must include a di
gital signature in the update manifest or the information will be rejected.
... and all popular (scripting) languages offer support, for examples: python, perl: cpan digest, php signing update manifests if you wish to serve your update rdf over regular http, gecko 1.9 based applications will require that you di
gitally sign the update manifest to ensure that it's information isn't tampered with between you creating it and applications retrieving it.
New Security Model for Web Services - Archive of obsolete content
these scripts may le
gitimately require access to external resources, but permitting them to access internal resources permits the compromise of these resources that would normally not be available to applications outside of the firewall.
... also, this technique prevents the script from accessing many le
gitimate external resources not provided in the same domain as the script.
... signed scripts a certain degree of additional trust may be lent to a script by having the author di
gitally sign it.
XULRunner Hall of Fame - Archive of obsolete content
github bluegriffon the next-generation web editor based on the rendering engine of firefox.
... songbird songbird™ is a desktop web player, a di
gital jukebox and web browser mashup.
...an updated version of "mybrowser" that works with firefox 25.0.1+ is available in matthew kastor's xulrunner examples at https://
github.com/matthewkastor/xulrunner-examples/ exch a currency conversion tool using updated data from http://finance.yahoo.com/currency.
application/http-index-format specification - Archive of obsolete content
syntax every line in the file must conform to the following generic syntax: number: data where number is at least a three di
git number (note that more di
gits are possible in the future) and data is separated from number by a colon and a space.
... content-length base 10 di
gits representing the size of the file in bytes.
... only di
gits are legal.
Building up a basic demo with A-Frame - Game development
save a copy of the latest a-frame javascript library file inside your directory (check the
github repository for latest stable a dev builds).
...add the following html before the <a-cube> element: <a-sky color="#dddddd"></a-sky> at this point, if you save the code and refresh your browser you can already see the cube on the screen with our custom background: here's the code we have created so far: you can also check it out on
github.
... note: you can also check it out on
github.
2D maze game with device orientation - Game development
you can check it out on
github where it’s open sourced, read the online documentation and go through the big collection of examples.
... starting with the project you can see cyber orb source code on
github.
...you can play the demo game cyber orb and check out its source code on
github.
Certificate authority - MDN Web Docs Glossary: Definitions of Web-related terms
a certificate authority (ca) is an organization that signs di
gital certificates and their associated public keys.
... this certifies that an organization that requested a di
gital certificate (e.g., mozilla corporation) is authorized to request a certificate for the subject named in the certificate (e.g., mozilla.org).
... web browsers come preloaded with a list of certificate authorities trusted to issue di
gital certificates.
Signature (security) - MDN Web Docs Glossary: Definitions of Web-related terms
a signature, or di
gital signature, is a protocol showing that a message is authentic.
... from the hash of a given message, the signing process first generates a di
gital signature linked to the signing entity, using the entity's private key.
... learn more general knowledge di
gital signature on wikipedia see digest, encryption ...
MDN Web Docs Glossary: Definitions of Web-related terms
cryptographic hash function cryptography csp csrf css css object model (cssom) css pixel css preprocessor d data structure decryption delta denial of service descriptor (css) deserialization developer tools dhtml digest di
gital certificate distributed denial of service dmz dns doctype document directive document environment dom (document object model) domain domain name domain sharding dominator dos attack dtls (datagram transport layer security) dtmf (dual-tone multi-frequency signaling) ...
... flex flex container flex item flexbox forbidden header name forbidden response header name fork fragmentainer frame rate (fps) ftp ftu function fuzz testing g gaia garbage collection gecko general header gif gij
git global object global scope global variable glyph gonk google chrome gpl gpu graceful degradation grid grid areas grid axis grid cell grid column grid container grid lines grid row grid tracks guard gutters gzip...
... wrapper x xforms xhr (xmlhttprequest) xhtml xinclude xlink xml xpath xquery xslt other 404 502 alpn at-rule attack byte-order mark character set client cryptosystem debug di
gital signature execution flex-direction glsl interface library memory management routers self-executing anonymous function stylesheet vector image ...
Basic native form controls - Learn web development
note: you can find examples of all the single line text field types on
github at single-line-text-fields.html (see it live also).
... note: you can find the examples from this section on
github as checkable-items.html (see it live also).
... note: you can find the examples from this section on
github as button-examples.html (see it live also).
UI pseudo-classes - Learn web development
sed some javascript to toggle the disabling of the billing address fields: // wait for the page to finish loading document.addeventlistener('domcontentloaded', function () { // attach `change` event listener to checkbox document.getelementbyid('billing-checkbox').addeventlistener('change', togglebilling); }, false); function togglebilling() { // select the billing text fields let billin
gitems = document.queryselectorall('#billing input[type="text"]'); // select the billing text labels let billinglabels = document.queryselectorall('.billing-label'); // toggle the billing text fields and labels for (let i = 0; i < billin
gitems.length; i++) { billin
gitems[i].disabled = !billin
gitems[i].disabled; if(billinglabels[i].getattribute('class') === 'billing-label disabled-la...
... see the live result below: note: you can also find the example live on
github at radios-checked-default.html (also see the source code.) for the :indeterminate example, we've got no default selected radio button — this is important — if there was, then there would be no indeterminate state to style.
... see the live result below: note: you can also find the example live on
github at radios-checked-indeterminate.html (also see the source code.) note: you can find an interesting example involving indeterminate states on the <input type="checkbox"> reference page.
Video and audio content - Learn web development
preload used for buffering large files; it can take one of three values: "none" does not buffer the file "auto" buffers the media file "metadata" buffers only the metadata for the file you can find the above example available to play live on
github (also see the source code.) note that we haven't included the autoplay attribute in the live version — if the video starts to play as soon as the page loads, you don't get to see the poster!
...here is a <a href="viper.mp3">link to the audio</a> instead.</p> </audio> this produces something like the following in a browser: note: you can run the audio demo live on
github (also see the audio player source code.) this takes up less space than a video player, as there is no visual component — you just need to display controls to play the audio.
...you can find the example that goes along with this article on
github, written by ian devlin (see the source code too.) this example uses some javascript to allow users to choose between different subtitles.
Graceful asynchronous programming with Promises - Learn web development
you need to run it through a local testing server, or use an online solution such as glitch or
github pages.
...the above code could also be written like this (see also simple-fetch-chained.html on
github): fetch('coffee.jpg') .then(response => { if (!response.ok) { throw new error(`http error!
... note: you can find our version of this example on
github as custom-promise2.html (see also the source code).
Introduction to events - Learn web development
inline event handlers — don't use these you might also see a pattern like this in your code: <button onclick="bgchange()">press me</button> function bgchange() { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; } note: you can find the full source code for this example on
github (also see it running live).
...we could rewrite our random color example to look like this: const btn = document.queryselector('button'); function bgchange() { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; document.body.style.backgroundcolor = rndcol; } btn.addeventlistener('click', bgchange); note: you can find the full source code for this example on
github (also see it running live).
...for example, let's rewrite our random color example again slightly: function bgchange(e) { const rndcol = 'rgb(' + random(255) + ',' + random(255) + ',' + random(255) + ')'; e.target.style.backgroundcolor = rndcol; console.log(e); } btn.addeventlistener('click', bgchange); note: you can find the full source code for this example on
github (also see it running live).
Client-side storage - Learn web development
basic syntax let's show you how: first, go to our web storage blank template on
github (open this in a new tab).
...the service worker is at https://mdn.
github.io/learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/sw.js.
... the origin is https://mdn.
github.io, and therefore the given path has to be /learning-area/javascript/apis/client-side-storage/cache-sw/video-store-offline/sw.js.
What is JavaScript? - Learn web development
inter; } and finally, we can add some javascript to implement dynamic behaviour: const para = document.queryselector('p'); para.addeventlistener('click', updatename); function updatename() { let name = prompt('enter a new name'); para.textcontent = 'player 1: ' + name; } try clicking on this last version of the text label to see what happens (note also that you can find this demo on
github — see the source code, or run it live)!
... note: you can see this version on
github as apply-javascript-internal.html (see it live too).
... note: you can see this version on
github as apply-javascript-external.html and script.js (see it live too).
Getting started with React - Learn web development
gitbash (which comes as part of the
git for windows toolset) or windows subsystem for linux (wsl) are both suitable.
... initializes the directory as a
git repository, if you have
git installed on your computer.
...its initial file structure looks like this: moz-todo-react ├── readme.md ├── node_modules ├── package.json ├── package-lock.json ├── .
gitignore ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json └── src ├── app.css ├── app.js ├── app.test.js ├── index.css ├── index.js ├── logo.svg └── serviceworker.js the src directory is where we'll spend most of our time, as it's where the source code for our application...
Starting our Svelte Todo list app - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/02-starting-our-todo-app or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/02-starting-our-todo-app remember to run npm install && npm run dev to start your app in developmen...
...on
github you can see which accessibility checks are still missing.
...tent-box; content: ""; position: absolute; top: 11px; left: 9px; width: 18px; height: 7px; transform: rotate(-45deg); border: solid; border-width: 0 0 5px 5px; border-top-color: transparent; opacity: 0; background: transparent; } .c-cb > input[type="checkbox"]:checked + label::after { opacity: 1; } with our markup styled, everything now looks better: the code so far
git to see the state of the code as it should be at the end of this article, access your copy of our repo like this: cd mdn-svelte-tutorial/03-adding-dynamic-behavior or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/03-adding-dynamic-behavior remember to run npm install && npm run dev to start your app in development mode.
Working with Svelte stores - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/06-stores or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/06-stores remember to run npm install && npm run dev to start your app in development mode.
...in order to follow this section you'll have to clone the repo and go to the mdn-svelte-tutorial/06-stores folder or you can directly download the folder's content with npx de
git opensas/mdn-svelte-tutorial/06-stores.
... the code so far
git to see the state of the code as it should be at the end of this article, access your copy of our repo like this: cd mdn-svelte-tutorial/07-next-steps or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/07-next-steps remember to run npm install && npm run dev to start your app in development mode.
Understanding client-side JavaScript frameworks - Learn web development
for a running live version, see https://mdn.
github.io/todo-react-build/.
...for a running live version, see https://nullvoxpopuli.
github.io/ember-todomvc-tutorial/ (this also includes a few additional features not covered in the tutorial).
...for a running live version, see https://mdn.
github.io/todo-vue/dist/.
Handling common HTML and CSS problems - Learn web development
github's atom code editor for example has a rich plugin ecosystem available, with many linting options.
...margin: 10px; } body { width: 400px; margin: 0 auto; } <form> <div> <label for="date">enter a date:</label> <input id="date" type="date"> </div> <div> <label for="time">enter a time:</label> <input id="time" type="time"> </div> </form> note: you can also see this running live as forms-test.html on
github (see the source code also).
... let's look at an example — a simple box styled with css, which has some styling provided by various css3 features: note: you can also see this example running live on
github as button-with-fallback.html (also see the source code).
Handling common JavaScript problems - Learn web development
many code editors have linter plugins, for example
github's atom code editor has a jshint plugin available.
...this is supposed to be fetched from an external .json file using the following xmlhttprequest call: let requesturl = 'https://mdn.
github.io/learning-area/javascript/oojs/json/superheroes.json'; let request = new xmlhttprequest(); request.open('get', requesturl); request.send(); let superheroes = request.response; populateheader(superheroes); showheroes(superheroes); but this fails.
...talk to other developers to find out what they recommend, see how much activity and how many contributors the library has on
github (or wherever else it is stored), etc.
Setting up your own test automation environment - Learn web development
you can use any url to point to your resource, including a file:// url to test a local document: driver.get('file:///users/chrismills/
git/learning-area/tools-testing/cross-browser-testing/accessibility/fake-div-buttons.html'); or driver.get('http://localhost:8888/fake-div-buttons.html'); but it is better to use a remote server location so the code is more flexible — when you start using a remote server to run your tests (see later on), your code will break if you try to use local paths.
... add this line to the bottom of quick_test.js now: driver.get('http://mdn.
github.io/learning-area/tools-testing/cross-browser-testing/accessibility/native-keyboard-accessibility.html'); interacting with the document now we've got a document to test, we need to interact with it in some way, which usually involves first selecting a specific element to test something about.
... it is out of scope to look at this area in detail in this article, but we'd suggest getting started with travis ci — this is probably the easiest ci tool to get started with and has good integration with web tools like
github and node.
ChromeWorker
examples of chromeworker's using js-ctypes are availabe on
github and are linked to from the see also section below.
... see also using web workers using workers in javascript code modules worker sharedworker web workers specification workerglobalscope
github :: chromeworker - a fully working demo addon using js-ctypes from a chrome worker.
... promiseworker
github :: promiseworker - shows how to uses promises as an twist on postmessage feature of chromeworker ...
Phishing: a short definition
earlier responses by affected banks, and payment providers, was to attempt educating users to not click links in emails, along with requesting to verify email le
gitimacy through checking for relevant personal information.
...after verifying username and password, the user is prompted to open the otp app and enter the corresponding 6-di
git code, representing a hashed version of the secret key and a nonce - potentially time-based.
...unfortunately, some users still feel it's too tedious unlocking a phone, opening the otp app, and manually typing a few di
gits each time a provider requests a new token.
Optimizing Applications For NSPR
di
gital unix di
gital unix (aka, osf1) requires the latest patches for the pthreads library.
... di
gital unix is the main platform used for nspr's prototype use of ipv6.
...the ipv6 kit needs to be applied on a baseline configuration of di
gital unix v4.0b.
NSS Sample Code Utilities_1
pr_fprintf(out, "%02x:", data[i]); column += 3; } else { pr_fprintf(out, "%02x", data[i]); column += 2; break; } if (column > 76 || (i % 16 == limit)) { newline(out); column = level; limit = i % 16; } } if (column != level) { newline(out); } } /* * getdi
git */ int getdi
git(char c) { if (c == 0) { return -1; } if (c <= '9' && c >= '0') { return c - '0'; } if (c <= 'f' && c >= 'a') { return c - 'a' + 0xa; } if (c <= 'f' && c >= 'a') { return c - 'a' + 0xa; } return -1; } /* * hextobuf */ int hextobuf(unsigned char *instring, secitem *outbuf, prbool ishexdata) { int len = strle...
...n(instring); int outlen = len+1/2; int truelen = 0; int di
git1, di
git2; outbuf->data = ishexdata ?
... port_alloc(outlen) : port_alloc(len); if (!outbuf->data) { return -1; } if (ishexdata) { while (*instring) { if ((*instring == '\n') || (*instring == ':')) { instring++; continue; } di
git1 = getdi
git(*instring++); di
git2 = getdi
git(*instring++); if ((di
git1 == -1) || (di
git2 == -1)) { port_free(outbuf->data); outbuf->data = null; return -1; } outbuf->data[truelen++] = di
git1 << 4 | di
git2; } } else { while (*instring) { if (*instring == '\n') { instring++; continue; } outbuf->data[truelen++] = *in...
nss tech note3
there are 8 key usages: cert_sign crl_sign data_encipherment di
gital_signature govt_approved key_agreement key_encipherment non_repudiation there are 9 cert types: email email_ca object_signing object_signing_ca ssl_ca ssl_client ssl_server status_responder time_stamp for the cert being checked, the requirements are: cert usage requried key usage required cert type -------------------- -------------------- ----------------------- sslclie...
...nt: di
gital_signature; ssl_client; sslserver: key_agreement or key_encipherment; ssl_server; sslserverwithstepup: govt_approved and ssl_server key_agreement or key_encipherment sslca: cert_sign; ssl_ca; emailsigner: di
gital_signature; email; emailrecipient: key_agreement or key_encipherment; email; objectsigner: di
gital_signature; object_signing; statusresponder: di
gital_signature; status_responder; verifyca cert_sign ssl_ca or email_ca or object_signing_ca or status_responder for ca certs in the cert chain, the requirements are: cert usage requried key usage required cert type -------------------- -------------------- ----------------------- sslserverwithstepup: govt_approved and cert_sign; ssl_ca; sslclient: cert_sign;...
... /* x.509 v3 key usage extension flags */ #define ku_di
gital_signature (0x80) /* bit 0 */ #define ku_non_repudiation (0x40) /* bit 1 */ #define ku_key_encipherment (0x20) /* bit 2 */ #define ku_data_encipherment (0x10) /* bit 3 */ #define ku_key_agreement (0x08) /* bit 4 */ #define ku_key_cert_sign (0x04) /* bit 5 */ #define ku_crl_sign (0x02) /* bit 6...
NSS tools : signver
synopsis signtool -a | -v -d directory [-a] [-i input_file] [-o output_file] [-s signature_file] [-v] description the signature verification tool, signver, is a simple command-line utility that unpacks a base-64-encoded pkcs#7 signed object and verifies the di
gital signature using standard cryptographic techniques.
... -v verifies the di
gital signature.
... -s signature_file gives the input file for the di
gital signature.
Getting SpiderMonkey source code
getting the latest spidermonkey source code from
git the following command line downloads the entire mozilla repository, including the full change history and a lot of gecko and firefox source code that isn't part of spidermonkey.
...
git clone https://
github.com/mozilla/gecko-dev.
git cd gecko-dev/js/src if you want a faster (about 5 times as of january 2015) download, try doing a shallow clone (no version control history).
...
git clone --depth 1 https://
github.com/mozilla/gecko-dev.
git if you have any problems check the https://wiki.mozilla.org/
github page.
Mork
hex = [0-9a-fa-f]+ name = [a-za-z_?:] [a-za-z_?:+-]* value is a string terminated by ')' (not consumed) where '\' quotes the next metacharacter and '$' quotes the next two hexadecimal di
gits as a value (e.g., $20 is a space) the first line in the file is the header.
...next is the status column (s), which is defined as a single di
git that is the priority (which appears to be unused), a 'u' if it is unique (i.e., the only table of its kind), and a 'v' if it is verbose (which also appears to be unused).
...the '$' character quotes the next two characters (which must be valid hexadecimal di
gits) and these three in total represent an octet with the value of the di
gits.
nsDependentCSubstring
methods constructors void nsdependentcsubstring(const nsacstring_internal&, pruint32, pruint32) - source parameters nsacstring_internal& str pruint32 startpos pruint32 length void nsdependentcsubstring(const char*, const char*) - source parameters char* start char* end void nsdependentcsubstring(const nsreadin
giterator<char>&, const nsreadin
giterator<char>&) - source parameters nsreadin
giterator<char>& start nsreadin
giterator<char>& end void nsdependentcsubstring() - source rebind void rebind(const nsacstring_internal&, pruint32, pruint32) - source parameters nsacstring_internal& <anonymous> pruint32 startpos pruint32 length void rebind(const char*, const char*) - source parameters c...
...har* start char* end beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter char*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter c...
...har*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool isterminated() const - source charat char charat(pruint32) const - source parameters pruint32 i operator[] char operator[](pruint32) const - source parameters pruint32 i first char first() const - source last char last() const - source countchar pruint32 ...
nsDependentSubstring
methods constructors void nsdependentsubstring(const nsastring_internal&, pruint32, pruint32) - source parameters nsastring_internal& str pruint32 startpos pruint32 length void nsdependentsubstring(const prunichar*, const prunichar*) - source parameters prunichar* start prunichar* end void nsdependentsubstring(const nsreadin
giterator<short unsigned int>&, const nsreadin
giterator<short unsigned int>&) - source parameters nsreadin
giterator<short unsigned int>& start nsreadin
giterator<short unsigned int>& end void nsdependentsubstring() - source rebind void rebind(const nsastring_internal&, pruint32, pruint32) - source parameters nsastring_internal& <anonymous> pruint32 startpos pruint32 length void rebi...
...nd(const prunichar*, const prunichar*) - source parameters prunichar* start prunichar* end beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
giterator<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting pruni...
...char* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parameters prunichar*& iter data prunichar* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - sour...
Working with ArrayBuffers
this feature is based on the following work: //
github.com/realityripple/uxp/blob/master/js/src/ctypes/ctypes.cpp#3080 //
github.com/realityripple/uxp/blob/master/js/src/vm/arraybufferobject.cpp#1301 example 1 - image data the following example illustrates how to transfer a byte array pointed by ctypes.uint8_t.ptr to imagedata of canvas.
...passing an arraybuffer object to pointer type will pass the pointer to buffer (based on //
github.com/realityripple/uxp/blob/master/js/src/ctypes/ctypes.cpp#3080).
... further, it returns datapointer, and there is no extra allocation (based on //
github.com/realityripple/uxp/blob/master/js/src/vm/arraybufferobject.cpp#1301).
AudioListener - Web APIs
audiolistener.positionz represents the lon
gitudinal (back and forth) position of the listener in a right-hand cartesian coordinate sytem.
... audiolistener.forwardz represents the lon
gitudinal (back and forth) position of the listener's forward direction in the same cartesian coordinate sytem as the position (positionx, positiony, and positionz) values.
... audiolistener.upz represents the lon
gitudinal (back and forth) position of the top of the listener's head in the same cartesian coordinate sytem as the position (positionx, positiony, and positionz) values.
ChildNode.after() - Web APIs
with(node) { after("foo"); } // referenceerror: after is not defined polyfill you can polyfill the after() method in internet explorer 9 and higher with the following code: // from: https://
github.com/jserz/js_piece/blob/master/dom/childnode/after()/after().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('after')) { return; } object.defineproperty(item, 'after', { configurable: true, enumerable: true, writable: true, value: function after() { var argarr = array.prototype.slice.call(arguments), docfr...
...ag = document.createdocumentfragment(); argarr.foreach(function (ar
gitem) { var isnode = ar
gitem instanceof node; docfrag.appendchild(isnode ?
... ar
gitem : document.createtextnode(string(ar
gitem))); }); this.parentnode.insertbefore(docfrag, this.nextsibling); } }); }); })([element.prototype, characterdata.prototype, documenttype.prototype]); another polyfill // from: https://
github.com/fabiovergani/js-polyfill_element.prototype.after/blob/master/after.js (function(x){ var o=x.prototype,p='after'; if(!o[p]){ o[p]=function(){ var e, m=arguments, l=m.length, i=0, t=this, p=t.parentnode, n=node, s=string, d=document; if(p!==null){ while(i<l){ e=m[i]; if(e instanceof n){ t=t.nextsibling; if(t!==null){ p.insertbefore(e,t); }else{ p.appendchild(e); }; }else{ p.appendchi...
ChildNode.before() - Web APIs
with(node) { before("foo"); } // referenceerror: before is not defined polyfill you can polyfill the before() method in internet explorer 9 and higher with the following code: // from: https://
github.com/jserz/js_piece/blob/master/dom/childnode/before()/before().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('before')) { return; } object.defineproperty(item, 'before', { configurable: true, enumerable: true, writable: true, value: function before() { var argarr = array.prototype.slice.call(arguments), ...
...docfrag = document.createdocumentfragment(); argarr.foreach(function (ar
gitem) { var isnode = ar
gitem instanceof node; docfrag.appendchild(isnode ?
... ar
gitem : document.createtextnode(string(ar
gitem))); }); this.parentnode.insertbefore(docfrag, this); } }); }); })([element.prototype, characterdata.prototype, documenttype.prototype]); specification specification status comment domthe definition of 'childnode.before()' in that specification.
Geolocation API - Web APIs
geolocationcoordinates represents the coordinates of a user's position; a geolocationcoordinates instance contains latitude, lon
gitude, and other important related information.
... examples in the following example the geolocation api is used to retrieve the user's latitude and lon
gitude.
...ton id = "find-me">show my location</button><br/> <p id = "status"></p> <a id = "map-link" target="_blank"></a> javascript function geofindme() { const status = document.queryselector('#status'); const maplink = document.queryselector('#map-link'); maplink.href = ''; maplink.textcontent = ''; function success(position) { const latitude = position.coords.latitude; const lon
gitude = position.coords.lon
gitude; status.textcontent = ''; maplink.href = `https://www.openstreetmap.org/#map=18/${latitude}/${lon
gitude}`; maplink.textcontent = `latitude: ${latitude} °, lon
gitude: ${lon
gitude} °`; } function error() { status.textcontent = 'unable to retrieve your location'; } if(!navigator.geolocation) { status.textcontent = 'geolocation is not su...
GestureEvent - Web APIs
initial value: 0.0 gestureevent.scale read only distance between two di
gits since the event's beginning.
... expressed as a floating-point multiple of the initial distance between the di
gits at the beginning of the gesture.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
HTMLImageElement.useMap - Web APIs
example 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
NonDocumentTypeChildNode.nextElementSibling - Web APIs
entsibling; console.log('siblings of div-01:'); while (el) { console.log(el.nodename); el = el.nextelementsibling; } </script> this example outputs the following into the console when it loads: siblings of div-01: div script polyfill for internet explorer 8 this property is unsupported prior to ie9, so the following snippet can be used to add support to ie8: // source: https://
github.com/alhadis/snippets/blob/master/js/polyfills/ie8-child-elements.js if(!("nextelementsibling" in document.documentelement)){ object.defineproperty(element.prototype, "nextelementsibling", { get: function(){ var e = this.nextsibling; while(e && 1 !== e.nodetype) e = e.nextsibling; return e; } }); } polyfill for interne...
...t explorer 9+ and safari // source: https://
github.com/jserz/js_piece/blob/master/dom/nondocumenttypechildnode/nextelementsibling/nextelementsibling.md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('nextelementsibling')) { return; } object.defineproperty(item, 'nextelementsibling', { configurable: true, enumerable: true, get: function () { var el = this; while (el = el.nextsibling) { if (el.nodetype === 1) { return el; } } return null; }, set: undefined }); }); })([element.prototype, characterdata.prototype]); specifications specification status comment domthe definition of 'childnodenextelementsibling' in that specifica...
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
ParentNode.append() - Web APIs
let parent = document.createelement("div") with(parent) { append("foo") } // referenceerror: append is not defined polyfill you can polyfill the append() method in internet explorer 9 and higher with the following code: // source: https://
github.com/jserz/js_piece/blob/master/dom/parentnode/append()/append().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('append')) { return; } object.defineproperty(item, 'append', { configurable: true, enumerable: true, writable: true, value: function append() { var argarr = array.prototype.slice.call(arguments), ...
... docfrag = document.createdocumentfragment(); argarr.foreach(function (ar
gitem) { var isnode = ar
gitem instanceof node; docfrag.appendchild(isnode ?
... ar
gitem : document.createtextnode(string(ar
gitem))); }); this.appendchild(docfrag); } }); }); })([element.prototype, document.prototype, documentfragment.prototype]); specification specification status comment domthe definition of 'parentnode.append()' in that specification.
ParentNode.prepend() - Web APIs
var parent = document.createelement("div"); with(parent) { prepend("foo"); } // referenceerror: prepend is not defined polyfill you can polyfill the prepend() method if it's not available: // source: https://
github.com/jserz/js_piece/blob/master/dom/parentnode/prepend()/prepend().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('prepend')) { return; } object.defineproperty(item, 'prepend', { configurable: true, enumerable: true, writable: true, value: function prepend() { var argarr = array.prototype.slice.call(arguments), ...
... docfrag = document.createdocumentfragment(); argarr.foreach(function (ar
gitem) { var isnode = ar
gitem instanceof node; docfrag.appendchild(isnode ?
... ar
gitem : document.createtextnode(string(ar
gitem))); }); this.insertbefore(docfrag, this.firstchild); } }); }); })([element.prototype, document.prototype, documentfragment.prototype]); specification specification status comment domthe definition of 'parentnode.prepend()' in that specification.
Using Pointer Events - Web APIs
a live version of this application is available on
github.
... the source code is available on
github and pull requests and bug reports are welcome.
... function colorfortouch(touch) { var r = touch.pointerid % 16; var g = math.floor(touch.pointerid / 3) % 16; var b = math.floor(touch.pointerid / 7) % 16; r = r.tostring(16); // make it a hex di
git g = g.tostring(16); // make it a hex di
git b = b.tostring(16); // make it a hex di
git var color = "#" + r + g + b; log("color for touch with identifier " + touch.pointerid + " = " + color); return color; } the result from this function is a string that can be used when calling <canvas> functions to set drawing colors.
Using Service Workers - Web APIs
github is therefore a good place to host experiments, as it supports https.
... you can see the source code on
github, and view the example live.
...in our example, the worker is at https://mdn.
github.io/sw-test/sw.js, and the app’s root is https://mdn.
github.io/sw-test/.
ValidityState.patternMismatch - Web APIs
examples given the following: <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-di
git area code" size="2"/>)- <input name="tel2" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-di
git prefix" size="2"/> - <input name="tel3" type="tel" pattern="[0-9]{4}" placeholder="####" aria-label="4-di
git number" size="3"/> </label> </p> here we have 3 sections for a north american phone number with an implicit label encompassing all three components of the phone number, ex...
...pecting 3-di
gits, 3-di
gits and 4-di
gits respectively, as defined by the pattern attribute set on each.
... if the values are too long or too short, or contain characters that aren't di
gits, patternmismatch will be true.
Signaling and video calling - Web APIs
you can also look at the full project on
github.
...we'll skip layout detail in this guide, but take a look at the css on
github to see how we handled it.
...open the web console on both devices and look at the logged output—although you don't see it in the code as shown above, the code on the server (and on
github) has a lot of console output so you can see the signaling and connection processes at work.
WebXR performance guide - Web APIs
can probably also include stuff from https://
github.com/immersive-web/webxr/blob/master/explainer.md#changing-the-field-of-view-for-inline-sessions managing rendering quality ...
... this section will come in part from https://
github.com/immersive-web/webxr/blob/master/explainer.md#controlling-rendering-quality managing frame rate ...
... this section will combine information from https://
github.com/immersive-web/webxr/blob/master/explainer.md#controlling-depth-precision and https://
github.com/immersive-web/webxr/blob/master/explainer.md#preventing-the-compositor-from-using-the-depth-buffer optimizing memory use when using libraries that perform things such as matrix mathematics, you typically have a number of working variables through which various vectors, matrices, and quaternions pass over time.
Using IIR filters - Web APIs
also see the source code on
github.
...it's one of two primary types of filters used in audio and di
gital signal processing.
...musicdsp.org is also a great resource if you want to read more about different filters and how they are implemented di
gitally.
XREnvironmentBlendMode - Web APIs
additive primarily used by ar devices with transparent lenses which directly allow reality to pass through to the user's eyes, the additive blending mode is designed to be used in a situation in which the device has no control over the background and its brightness, since that isn't being di
gitally controlled.
... alpha-blend used by headsets or goggles which use cameras to capture the real world and display it di
gitally on the screen or screens used to render the content for the user to see, this offers a way to create an ar presentation using a vr device.
...since the real world is being di
gitally presented, the brightness of each pixel can be controlled, whether it's reality or the rendered xr image, the user's environment can be blended with the virtual environment with each pixel having its color and brightness precisely controlled.
XRSession.environmentBlendMode - Web APIs
additive primarily used by ar devices with transparent lenses which directly allow reality to pass through to the user's eyes, the additive blending mode is designed to be used in a situation in which the device has no control over the background and its brightness, since that isn't being di
gitally controlled.
... alpha-blend used by headsets or goggles which use cameras to capture the real world and display it di
gitally on the screen or screens used to render the content for the user to see, this offers a way to create an ar presentation using a vr device.
...since the real world is being di
gitally presented, the brightness of each pixel can be controlled, whether it's reality or the rendered xr image, the user's environment can be blended with the virtual environment with each pixel having its color and brightness precisely controlled.
Web Accessibility: Understanding Colors and Luminance - Accessibility
for di
gital concerns, much of the technology has historically resided in the rgb color space.
... this is because the companies behind the evolution of di
gital technology set the standards, and these standards still retain a powerful presence today.
... looking at how the rgb color space is used to describe a color "red", you can see that the same color may be expressed in a shorthand, three-di
git hex number that converts to a rgb value, as a full six-di
git hex number that also converts to the same rgb value, or as a rgba value, expressed in percentages.
@media - CSS: Cascading Style Sheets
css working group drafts
github issues css conditional rules module level 3the definition of '@media' in that specification.
... css working group drafts
github issues media queries level 4the definition of '@media' in that specification.
... css working group drafts
github issues media queriesthe definition of '@media' in that specification.
Variable fonts guide - CSS: Cascading Style Sheets
optical size this is something new to di
gital fonts and css, but is actually a centuries-old technique in designing and creating metal type.
... while this was originally done to compensate for the ink and paper printing process (very thin lines at small sizes often didn’t print, giving the letterforms a broken appearance), it translates well to di
gital displays when compensating for screen quality and physical size rendering.
... resources w3c css fonts module 4 specification (editor’s draft) w3c
github issue queue microsoft open type variations introduction microsoft opentype design-variation axis tag registry wakamai fondue (a site that will tell you what your font can do via a simple drag-and-drop inspection interface) axis praxis (the original variable fonts playground site) v-fonts.com (a catalog of variable fonts and where to get them) font playground (another playground for varia...
CSS values and units - CSS: Cascading Style Sheets
area named content we would use it without quotes: .item { grid-area: content; } in comparison, a data type that is a <string>, such as a string value of the content property, must be quoted: .item::after { content: "this is my content."; } while you can generally create any name you want, including using emojis, the identifier can't be none, unset, initial, or inherit, start with a di
git or two dashes, and generally you don't want it to be any other pre-defined css keyword.
... numeric data types <integer> <number> <dimension> <percentage> integers an integer is one or more decimal di
gits, 0 through 9, such as 1024 or -55.
... adds 4- and 8-di
git hex color values, where the last di
git(s) represents the alpha value.
animation-delay - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
animation-direction - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
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.
... though technically removing the transparent keyword, this doesn't change anything as it has been incorporated as a true <color> backgrounds level 3
github issues css level 2 (revision 1)the definition of 'background-color' in that specification.
background-position-x - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
background-position-y - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
background-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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
background-size - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border-bottom-width - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border-left-style - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border-left - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border-right-style - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border-right - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border-top - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
border - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
caption-side - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
clamp() - CSS: Cascading Style Sheets
clamp(min, val, max) is resolved as max(min, min(val, max)) 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.
... you find this example live on
github, if you want to play around with it.
clear - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
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.
... adds 4- and 8-di
git hex color values, where the last di
git(s) represents the alpha value.
<color> - CSS: Cascading Style Sheets
the three-di
git notation (#rgb) is a shorter version of the six-di
git form (#rrggbb).
...likewise, the four-di
git rgb notation (#rgba) is a shorter version of the eight-di
git form (#rrggbbaa).
...aque blue */ hsla(240, 100%, 50%, 1) /* full opaque blue */ /* whitespace syntax */ hsla(240 100% 50% / .05) /* 5% opaque blue */ /* percentage value for alpha */ hsla(240 100% 50% / 5%) /* 5% opaque blue */ specifications specification status comment css color module level 4 working draft adds rebeccapurple, four- (#rgba) and eight-di
git (#rrggbbaa) hexadecimal notations, rgba() and hsla() as aliases of rgb() and hsl() (both with identical parameter syntax), space-separated function parameters as an alternative to commas, percentages for alpha values, and angles for the hue component in hsl() colors.
column-count - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
direction - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
empty-cells - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
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.
...this means that punctuation characters and di
gits at the start of each token must be escaped in unquoted font family names.
font-optical-sizing - 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.
...you can download it on
github.
font-style - 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.
... html <header> <input type="range" id="slant" name="slant" min="-90" max="90" /> <label for="slant">slant</label> </header> <div class="container"> <p class="sample">...it would not be wonderful to meet a megalosaurus, forty feet long or so, waddling like an elephantine lizard up holborn hill.</p> </div> css /* amstelvaralpha-vf is created by david berlow (https://
github.com/typenetwork/amstelvar) and is used here under the terms of its license: https://
github.com/typenetwork/amstelvar/blob/master/ofl.txt */ @font-face { src: url('https://mdn.mozillademos.org/files/16044/amstelvaralpha-vf.ttf'); font-family:'amstelvaralpha'; font-style: normal; } label { font: 1rem monospace; } .container { max-height: 150px; overflow: scroll; } .sample { fon...
font-variant-caps - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
font-variant - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
font-weight - 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.
... html <header> <input type="range" id="weight" name="weight" min="1" max="1000" /> <label for="weight">weight</label> </header> <div class="container"> <p class="sample">...it would not be wonderful to meet a megalosaurus, forty feet long or so, waddling like an elephantine lizard up holborn hill.</p> </div> css /* mutator sans is created by letterror (https://
github.com/letterror/mutatorsans) and is used here under the terms of its license: https://
github.com/letterror/mutatorsans/blob/master/license */ @font-face { src: url('https://mdn.mozillademos.org/files/16011/mutatorsans.ttf'); font-family:'mutatorsans'; font-style: normal; } label { font: 1rem monospace; white-space: nowrap; } .container { max-height: 150px; overflow-y: auto; } .
ident - CSS: Cascading Style Sheets
it consists of one or more characters, where characters can be any of the following: any alphabetical character (a to z, or a to z), any decimal di
git (0 to 9), a hyphen (-), an underscore (_), an escaped character (preceded by a backslash, \), a unicode character (in the format of a backslash, \, followed by one to six hexadecimal di
gits, representing its unicode code point) note that id1, id1, id1 and id1 are all different identifiers as they are case-sensitive.
...a mix of alphanumeric characters and a dash -test a dash followed by alphanumeric characters --toto a custom-property like identifier _internal an underscore followed by alphanumeric characters \22 toto a unicode character followed by a sequence of alphanumeric characters bili\.bob a correctly escaped period invalid identifiers 34rem it must not start with a decimal di
git.
... -12rad it must not start with a dash followed by a decimal di
git.
letter-spacing - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
max-height - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
max-width - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
min-width - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
mix-blend-mode - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
object-fit - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
object-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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
outline-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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
outline-offset - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
pointer-events - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
quotes - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
right - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
HTML attribute: pattern - HTML: Hypertext Markup Language
examples given the following: <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-di
git area code" size="2"/>)- <input name="tel2" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-di
git prefix" size="2"/> - <input name="tel3" type="tel" pattern="[0-9]{4}" placeholder="####" aria-label="4-di
git number" size="3"/> </label> </p> here we have 3 sections for a north american phone number with an implicit label encompassing all three components of the phone number, ex...
...pecting 3-di
gits, 3-di
gits and 4-di
gits respectively, as defined by the pattern attribute set on each.
... if the values are too long or too short, or contain characters that aren't di
gits, the patternmismatch will be true.
<col> - 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.
...it is a 6-di
git hexadecimal rgb code, prefixed by a '#'.
<colgroup> - 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.
...it is a 6-di
git hexadecimal rgb code, prefixed by a '#'.
<input type="color"> - 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.
...the value must be in seven-character hexadecimal notation, meaning the "#" character followed by two di
gits each representing red, green, and blue, like this: #rrggbb.
<input type="date"> - 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.
...ing browser: <form> <label for="bday">enter your birthday: <input type="date" name="bday" required pattern="\d{4}-\d{2}-\d{2}"> <span class="validity"></span> </label> <p> <button>submit</button> </p> </form> if you submit it, you'll see that the browser displays an error and highlights the input as invalid if your entry doesn't match the pattern ####-##-## (where # is a di
git from 0 to 9).
<input>: The Input (Form Input) 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.
...> <option>32</option> <option>64</option> </datalist> <datalist id="fruitsxx"> <option>cherry</option> <option>banana</option> <option>mango</option> <option>orange</option> <option>blueberry</option> </datalist> <datalist id="urlsxx"> <option>https://developer.mozilla.org</option> <option>https://caniuse.com/</option> <option>https://mozilla.com</option> <option>https://mdn.
github.io</option> <option>https://www.youtube.com/user/firefoxchannel</option> </datalist> <p><label for="textx">text</label> <input type="text" list="fruitsxx" id="textx"/></p> <p><label for="colorx">color</label> <input type="color" list="colorsxx" id="colorx"/></p> <p><label for="rangex">range</label> <input type="range" min="0" max="64" list="numbersxx" id="rangex"/></p> <p><label for="number...
<kbd>: The Keyboard Input 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.
... <p>if a syntax error occurs, the tool will output the initial command you typed for your review:</p> <blockquote> <samp><kbd>custom-
git ad my-new-file.cpp</kbd></samp> </blockquote> representing onscreen input options nesting a <samp> element inside a <kbd> element represents input which is based on text presented by the system, such as the names of menus and menu items, or the names of buttons displayed on the screen.
<style>: The Style Information 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.
... this attribute may be re-introduced in the future per https://
github.com/w3c/csswg-drafts/issues/3547.
<table>: The Table 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.
...it is a 6-di
git hexadecimal rgb code, prefixed by a '#'.
<tbody>: The Table Body 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.
...it is a 6-di
git hexadecimal rgb code, prefixed by a '#'.
<td>: The Table Data Cell 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.
...it is a 6-di
git hexadecimal rgb code, prefixed by a '#'.
<textarea> - 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.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
<tfoot>: The Table Foot 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.
...it is one of the 6-di
git hexadecimal code as defined in srgb, prefixed by a '#'.
<th> - 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.
...it consists of a 6-di
git hexadecimal code as defined in srgb and is prefixed by '#'.
<thead>: The Table Head 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.
...it is one of the 6-di
git hexadecimal code as defined in srgb, prefixed by a '#'.
id - 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.
... note: using characters except ascii letters, di
gits, '_', '-' and '.' may cause compatibility problems, as they weren't allowed in html 4.
inputmode - HTML: Hypertext Markup Language
decimal fractional numeric input keyboard containing the di
gits and decimal separator for the user's locale (typically .
... numeric numeric input keyboard, but only requires the di
gits 0–9.
... tel a telephone keypad input, including the di
gits 0–9, the asterisk (*), and the pound (#) key.
Firefox user agent string reference - HTTP
firefox os has a four-di
git version number: x.x.x.y.
... the first two di
gits are owned by the mozilla product team and denote versions with new features (eg: v1.1, 1.2, etc).
... the third di
git is incremented with regular version tags (about every 6 weeks) for security updates, and the fourth is owned by the oem.
Warning - HTTP
note: the warning header is soon to be deprecated; see warning (https://
github.com/httpwg/http-core/issues/139) and warning: header & stale-while-revalidate (https://
github.com/whatwg/fetch/issues/913) for more details.
... header type general header forbidden header name no syntax warning: <warn-code> <warn-agent> <warn-text> [<warn-date>] directives <warn-code> a three-di
git warning number.
... the first di
git indicates whether the warning is required to be deleted from a stored response after validation.
HTTP Index - HTTP
if one or several keys are pinned and none of them are used by the server, the browser will not accept the response as le
gitimate, and will not display it.
... 188 trailer http, reference, header the trailer response header allows the sender to include additional fields at the end of chunked messages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, di
gital signature, or post-processing status.
... 263 502 bad gateway http, server error, status code the information shown below has been pulled from mdn's
github (https://
github.com/mdn/browser-compat-data).
JavaScript modules - JavaScript
introducing an example to demonstrate usage of modules, we've created a simple set of examples that you can find on
github.
...servers that already serve .mjs files correctly include
github pages and http-server for node.js.
...
github pages is ideal as it also serves .js files with the correct mime type.
Text formatting - JavaScript
'\xa9' // "©" unicode escape sequences the unicode escape sequences require at least four hexadecimal di
gits following \u.
...const july172014 = new date(msperday * (44 * 365 + 11 + 197)); const options = { year: '2-di
git', month: '2-di
git', day: '2-di
git', hour: '2-di
git', minute: '2-di
git', timezonename: 'short' }; const americandatetime = new intl.datetimeformat('en-us', options).format; console.log(americandatetime(july172014)); // 07/16/14, 5:00 pm pdt number formatting the numberformat object is useful for formatting numbers, for example currencies.
... const gasprice = new intl.numberformat('en-us', { style: 'currency', currency: 'usd', minimumfractiondi
gits: 3 }); console.log(gasprice.format(5.259)); // $5.259 const handecimalrmbinchina = new intl.numberformat('zh-cn-u-nu-hanidec', { style: 'currency', currency: 'cny' }); console.log(handecimalrmbinchina.format(1314.25)); // ¥ 一,三一四.二五 collation the collator object is useful for comparing and sorting strings.
SyntaxError: JSON.parse: bad parsing - JavaScript
axerror: json.parse: unterminated string literal syntaxerror: json.parse: bad control character in string literal syntaxerror: json.parse: bad character in string literal syntaxerror: json.parse: bad unicode escape syntaxerror: json.parse: bad escape character syntaxerror: json.parse: unterminated string syntaxerror: json.parse: no number after minus sign syntaxerror: json.parse: unexpected non-di
git syntaxerror: json.parse: missing di
gits after decimal point syntaxerror: json.parse: unterminated fractional number syntaxerror: json.parse: missing di
gits after exponent indicator syntaxerror: json.parse: missing di
gits after exponent sign syntaxerror: json.parse: exponent part is missing a number syntaxerror: json.parse: unexpected end of data syntaxerror: json.parse: unexpected keyword syntaxe...
... json.parse("{'foo': 1}"); // syntaxerror: json.parse: expected property name or '}' // at line 1 column 2 of the json data instead write "foo": json.parse('{"foo": 1}'); leading zeros and decimal points you cannot use leading zeros, like 01, and decimal points must be followed by at least one di
git.
... json.parse('{"foo": 01}'); // syntaxerror: json.parse: expected ',' or '}' after property value // in object at line 1 column 2 of the json data json.parse('{"foo": 1.}'); // syntaxerror: json.parse: unterminated fractional number // at line 1 column 2 of the json data instead write just 1 without a zero and use at least one di
git after a decimal point: json.parse('{"foo": 1}'); json.parse('{"foo": 1.0}'); ...
Array.prototype.reduce() - 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.
... polyfill // production steps of ecma-262, edition 5, 15.4.4.21 // reference: http://es5.
github.io/#x15.4.4.21 // https://tc39.
github.io/ecma262/#sec-array.prototype.reduce if (!array.prototype.reduce) { object.defineproperty(array.prototype, 'reduce', { value: function(callback /*, initialvalue*/) { if (this === null) { throw new typeerror( 'array.prototype.reduce ' + 'called on null or undefined' ); } if (typeof callback !== 'function') { ...
Array.prototype.reduceRight() - 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.
... // production steps of ecma-262, edition 5, 15.4.4.22 // reference: http://es5.
github.io/#x15.4.4.22 if ('function' !== typeof array.prototype.reduceright) { array.prototype.reduceright = function(callback /*, initialvalue*/) { 'use strict'; if (null === this || 'undefined' === typeof this) { throw new typeerror('array.prototype.reduce called on null or undefined'); } if ('function' !== typeof callback) { throw new typeerror(callback + ' is not a f...
Array.prototype.find() - 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.
...however, you can polyfill array.prototype.find with the following snippet: // https://tc39.
github.io/ecma262/#sec-array.prototype.find if (!array.prototype.find) { object.defineproperty(array.prototype, 'find', { value: function(predicate) { // 1.
Array.prototype.findIndex() - 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.
... polyfill // https://tc39.
github.io/ecma262/#sec-array.prototype.findindex if (!array.prototype.findindex) { object.defineproperty(array.prototype, 'findindex', { value: function(predicate) { // 1.
Array.prototype.indexOf() - 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.
... // production steps of ecma-262, edition 5, 15.4.4.14 // reference: http://es5.
github.io/#x15.4.4.14 if (!array.prototype.indexof) { array.prototype.indexof = function(searchelement, fromindex) { "use strict"; var k; // 1.
Array.prototype.lastIndexOf() - 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.
... // production steps of ecma-262, edition 5, 15.4.4.15 // reference: http://es5.
github.io/#x15.4.4.15 if (!array.prototype.lastindexof) { array.prototype.lastindexof = function(searchelement /*, fromindex*/) { 'use strict'; if (this === void 0 || this === null) { throw new typeerror(); } var n, k, t = object(this), len = t.length >>> 0; if (len === 0) { return -1; } n = len - 1; if (arguments.length > 1) { n = nu...
Array.prototype.some() - 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.
... // production steps of ecma-262, edition 5, 15.4.4.17 // reference: http://es5.
github.io/#x15.4.4.17 if (!array.prototype.some) { array.prototype.some = function(fun, thisarg) { 'use strict'; if (this == null) { throw new typeerror('array.prototype.some called on null or undefined'); } if (typeof fun !== 'function') { throw new typeerror(); } var t = object(this); var len = t.length >>> 0; for (var i = 0; i < len; i++) { i...
Date.prototype.getUTCFullYear() - 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 using getutcfullyear() the following example assigns the four-di
git value of the current year to the variable year.
Date.prototype.toDateString() - JavaScript
the todatestring() method returns the date portion of a date object in english in the following format separated by spaces: first three letters of the week day name first three letters of the month name two di
git day of the month, padded on the left a zero if necessary four di
git year (at least), padded on the left with zeros if necessary e.g.
... 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.
Date.prototype.toLocaleDateString() - 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.
...20." // event for persian, it's hard to manually convert date to solar hijri console.log(date.tolocaledatestring('fa-ir')); // → "۱۳۹۱/۹/۳۰" // arabic in most arabic speaking countries uses real arabic di
gits console.log(date.tolocaledatestring('ar-eg')); // → "٢٠/١٢/٢٠١٢" // for japanese, applications may want to use the japanese calendar, // where 2012 was the year 24 of the heisei era console.log(date.tolocaledatestring('ja-jp-u-ca-japanese')); // → "24/12/20" // when requesting a language that may not be supported, such as // balinese, include a fallback language, in this case...
Date.prototype.toLocaleString() - 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.
...오후 12:00:00" // arabic in most arabic speaking countries uses real arabic di
gits console.log(date.tolocalestring('ar-eg')); // → "٢٠/١٢/٢٠١٢ ٥:٠٠:٠٠ ص" // for japanese, applications may want to use the japanese calendar, // where 2012 was the year 24 of the heisei era console.log(date.tolocalestring('ja-jp-u-ca-japanese')); // → "24/12/20 12:00:00" // when requesting a language that may not be supported, such as // balinese, include a fallback langu...
Function.prototype.bind() - 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.
... if it's absolutely necessary and performance is not a concern, a far slower (but more specification-compliant solution) can be found at https://
github.com/raynos/function-bind.
Intl.DateTimeFormat.prototype.formatRange() - 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.
... let date1 = new date(date.utc(2007, 0, 10, 10, 0, 0)); let date2 = new date(date.utc(2007, 0, 10, 11, 0, 0)); let date3 = new date(date.utc(2007, 0, 20, 10, 0, 0)); // > 'wed, 10 jan 2007 10:00:00 gmt' // > 'wed, 10 jan 2007 11:00:00 gmt' // > 'sat, 20 jan 2007 10:00:00 gmt' let fmt1 = new intl.datetimeformat("en", { year: '2-di
git', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric' }); console.log(fmt1.format(date1)); console.log(fmt1.formatrange(date1, date2)); console.log(fmt1.formatrange(date1, date3)); // > '1/10/07, 10:00 am' // > '1/10/07, 10:00 – 11:00 am' // > '1/10/07, 10:00 am – 1/20/07, 10:00 am' let fmt2 = new intl.datetimeformat("en", { year: 'numeric', month: 's...
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
relatedyear the string used for the related 4-di
git gregorian year, in the event that the calendar's representation would be a yearname instead of a year, for example "2019".
... examples datetimeformat outputs localized, opaque strings that cannot be manipulated directly: var date = date.utc(2012, 11, 17, 3, 0, 42); var formatter = new intl.datetimeformat('en-us', { weekday: 'long', year: 'numeric', month: 'numeric', day: 'numeric', hour: 'numeric', minute: 'numeric', second: 'numeric', fractionalseconddi
gits: 3, hour12: true, timezone: 'utc' }); formatter.format(date); // "monday, 12/17/2012, 3:00:42.000 am" however, in many user interfaces there is a desire to customize the formatting of this string.
... when this is the case, the result of formattoparts() will contain an entry for relatedyear when a year would normally be present, containing the 4-di
git gregorian year, instead of an entry for year.
Intl.DisplayNames.prototype.of() - 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 displaynames.of(code); parameters code the code to provide depends on the type: if the type is "region", code should be either an iso-3166 two letters region code, or a three di
gits un m49 geographic regions.
Intl - JavaScript
bcp 47 also allows for extensions, each consisting of a single di
git or letter (other than "x") and one or more two- to eight-letter or di
git tags, all separated by hyphens.
... "th-th-u-nu-thai": use thai di
gits (๐, ๑, ๒, ๓, ๔, ๕, ๖, ๗, ๘, ๙) in number formatting.
... finally, an extension using the letter "x" may appear, followed by one or one- to eight-letter or di
git tags.
JSON.parse() - 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.
... polyfill // from https://
github.com/douglascrockford/json-js/blob/master/json2.js if (typeof json.parse !== "function") { var rx_one = /^[\],:{}\s]*$/; var rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fa-f]{4})/g; var rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[ee][+\-]?\d+)?/g; var rx_four = /(?:^|:|,)(?:\s*\[)+/g; var rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028...
JSON - JavaScript
a decimal point must be followed by at least one di
git.
...di
gits or decimalnumber .
... di
gits exponentpart or decimalnumber exponentpart decimalnumber = 0 or onetonine di
gits exponentpart = e exponent or e exponent exponent = di
gits or + di
gits or - di
gits di
gits = di
git or di
gits di
git di
git = 0 through 9 onetonine = 1 through 9 jsonstring = "" or " stringcharacters " stringcharacters = stringcharacter or stringcharacters stringcharacter stringcharacter = any character except " or \ or u+0000 through u+001f or escapesequence escapesequence = \" or \/ or \\ or \b or \f or \n or \r or \t or \u hexdi
git hexdi
git hexdi
git hexdi
git hexdi
git = 0 through 9 or a through f or a through f jsonobject = { } or { members } member...
Math.fround() - 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.
... var exp = math.floor(math.log(arg) / math.ln2); var powexp = math.pow(2, math.max(-126, math.min(exp, 127))); // handle subnormals: leading di
git is zero if exponent bits are all zero.
Number.prototype.toPrecision() - JavaScript
syntax numobj.toprecision([precision]) parameters precision optional an integer specifying the number of significant di
gits.
... return value a string representing a number object in fixed-point or exponential notation rounded to precision significant di
gits.
...ecma-262 only requires a precision of up to 21 significant di
gits.
String.fromCharCode() - 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 using fromcharcode() bmp characters, in utf-16, use a single code unit: string.fromcharcode(65, 66, 67); // returns "abc" string.fromcharcode(0x2014); // returns "—" string.fromcharcode(0x12014); // also returns "—"; the di
git 1 is truncated and ignored string.fromcharcode(8212); // also returns "—"; 8212 is the decimal form of 0x2014 complete utf 16 table.
String.prototype.replace() - 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.
... (the exact number of arguments depends on whether the first argument is a regexp object—and, if so, how many parenthesized submatches it specifies.) the following example will set newstring to 'abc - 12345 - #$*%': function replacer(match, p1, p2, p3, offset, string) { // p1 is nondi
gits, p2 di
gits, and p3 non-alphanumerics return [p1, p2, p3].join(' - '); } let newstring = 'abc12345#$*%'.replace(/([^\d]*)(\d*)([^\w]*)/, replacer); console.log(newstring); // abc - 12345 - #$*% examples defining the regular expression in replace() in the following example, the regular expression is defined in replace() and includes the ignore case flag.
String.prototype.split() - 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.
...sentence number ", "2", "." ] note: \d matches the character class for di
gits between 0 and 9.
String.prototype.startsWith() - 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.
...rawpos|0 : 0; return this.substring(pos, pos + search.length) === search; } }); } a more robust (fully es2015 specification compliant), but less performant and compact, polyfill is available on
github by mathias bynens.
String.prototype.trimStart() - 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.
...in some engines this means: string.prototype.trimleft.name === "trimstart"; polyfill //https://
github.com/fabiovergani/js-polyfill_string-trimstart (function(w){ var string=w.string, proto=string.prototype; (function(o,p){ if(p in o?o[p]?false:true:true){ var r=/^\s+/; o[p]=o.trimleft||function(){ return this.replace(r,'') } } })(proto,'trimstart'); })(window); /* es6: (w=>{ const string=w.string, proto=st...
TypedArray.prototype.fill() - 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.
... // https://tc39.
github.io/ecma262/#sec-%typedarray%.prototype.fill if (!uint8array.prototype.fill) { uint8array.prototype.fill = array.prototype.fill; } examples using fill new uint8array([1, 2, 3]).fill(4); // uint8array [4, 4, 4] new uint8array([1, 2, 3]).fill(4, 1); // uint8array [1, 4, 4] new uint8array([1, 2, 3]).fill(4, 1, 2); // uint8array [1, 4, 3] new uint8array([1, 2, 3]).fill(4, 1, 1)...
TypedArray.prototype.join() - 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.
... // https://tc39.
github.io/ecma262/#sec-%typedarray%.prototype.join if (!uint8array.prototype.join) { object.defineproperty(uint8array.prototype, 'join', { value: array.prototype.join }); } if you need to support truly obsolete javascript engines that don't support object.defineproperty, it's best not to polyfill array.prototype methods at all, as you can't make them non-enumerable.
TypedArray.prototype.some() - 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.
... // https://tc39.
github.io/ecma262/#sec-%typedarray%.prototype.some if (!uint8array.prototype.some) { object.defineproperty(uint8array.prototype, 'some', { value: array.prototype.some }); } if you need to support truly obsolete javascript engines that don't support object.defineproperty, it's best not to polyfill array.prototype methods at all, as you can't make them non-enumerable.
TypedArray - 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.
... 0 to 65535 2 16-bit unsigned integer unsigned short uint16_t int32array -2147483648 to 2147483647 4 32-bit two's complement signed integer long int32_t uint32array 0 to 4294967295 4 32-bit unsigned integer unsigned long uint32_t float32array 1.2×10-38 to 3.4×1038 4 32-bit ieee floating point number (7 significant di
gits e.g., 1.1234567) unrestricted float float float64array 5.0×10-324 to 1.8×10308 8 64-bit ieee floating point number (16 significant di
gits e.g., 1.123...15) unrestricted double double bigint64array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) biguint64array 0 to 264-1 8 64-bit uns...
WebAssembly.instantiate() - JavaScript
var importobject = { imports: { imported_func: function(arg) { console.log(arg); } } }; fetch('simple.wasm').then(response => response.arraybuffer() ).then(bytes => webassembly.instantiate(bytes, importobject) ).then(result => result.instance.exports.exported_func() ); note: you can also find this example at index.html on
github (view it live also).
... second overload example the following example (see our index-compile.html demo on
github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compilestreaming() method and then sends it to a worker using postmessage().
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
escape() - JavaScript
(hh are two hexadecimal di
gits, and the form \xhh\xhh is used for higher-plane unicode characters.) escaped characters in string literals can be expanded by replacing the \x with %, then using the decodeuricomponent() function.
...special characters are encoded with the exception of: @*_+-./ the hexadecimal form for characters, whose code unit value is 0xff or less, is a two-di
git escape sequence: %xx.
... for characters with a greater code unit, the four-di
git format %uxxxx is used.
parseFloat() - 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 parsefloat returning a number the following examples all return 3.14: parsefloat(3.14); parsefloat('3.14'); parsefloat(' 3.14 '); parsefloat('314e-2'); parsefloat('0.0314e+2'); parsefloat('3.14some non-di
git characters'); parsefloat({ tostring: function() { return "3.14" } }); parsefloat returning nan the following example returns nan: parsefloat('ff2'); parsefloat and bigint the following examples both return 900719925474099300, losing precision as the integer is too large to be represented as a float: parsefloat(900719925474099267n); parsefloat('900719925474099267n'); specifications ...
Media container formats (file types) - Web media technologies
on the internet, perhaps the most common use of the mpeg file format is to contain layer_iii/mp3 sound data; the resulting files are the wildly popular mp3 file used by di
gital music devices around the world.
... 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.
<xsl:decimal-format> - XSLT: Extensible Stylesheet Language Transformations
syntax <xsl:decimal-format name=name decimal-separator=character grouping-separator=character infinity=string minus-sign=character nan=string percent=character per-mille=charater zero-di
git=character di
git=character pattern-separator=character /> required attributes none.
... zero-di
git specifies the di
git zero character.
... di
git specifies the character used in the format pattern to stand for a di
git.
Using the WebAssembly JavaScript API - WebAssembly
note: you can find the sample code in our webassembly-examples
github repo.
... this example (see our instantiate-streaming.html demo on
github, and view it live also) shows how to use instantiatestreaming() to fetch a wasm module, import a javascript function into it, compile and instantiate it, and access its exported function — all in one step.
....wasm'), { js: { global } }) .then(({instance}) => { asserteq("getting initial value from wasm", instance.exports.getglobal(), 0); global.value = 42; asserteq("getting js-updated value from wasm", instance.exports.getglobal(), 42); instance.exports.incglobal(); asserteq("getting wasm-updated value from js", global.value, 43); }); note: you can see the example running live on
github; see also the source code.
Module structure of the SDK - Archive of obsolete content
although the sdk repository in
github includes copies of these modules, they are built into firefox and by default, when you run or build an add-on using jpm run or jpm xpi, it is the versions of the modules in firefox that are used.
... there's a list of these "community-developed modules" in the sdk's
github wiki, and to learn how to use them, see the tutorial on using external modules to add menu items to firefox.
ui/button/action - Archive of obsolete content
the badge can contain as many characters (or di
gits) as you like, but only the first four will be displayed.
... the badge can contain as many characters (or di
gits) as you like, but only the first four will be displayed.
ui/button/toggle - Archive of obsolete content
the badge can contain as many characters (or di
gits) as you like, but only the first four will be displayed.
... the badge can contain as many characters (or di
gits) as you like, but only the first four will be displayed.
StringView - Archive of obsolete content
nction isinteger (nval) { return typeof nval === "number" && isfinite(nval) && nval > -9007199254740992 && nval < 9007199254740992 && math.floor(nval) === nval; }; } /*\ |*| |*| stringview mdndeveloper network |*| |*| revision #12, march 21st, 2017 |*| |*| https://developer.mozilla.org/add-ons/code_snippets/stringview |*| https://developer.mozilla.org/docs/user:fusionchess |*| https://
github.com/madmurphy/stringview.js |*| |*| this framework is released under the gnu lesser general public license, version 3 or later.
...gview.loadutf8charcode; } else if (this.encoding === "utf-16") { fgetincr = stringview.getutf16charlength; fgetcode = stringview.loadutf16charcode; } for (var nchr, nlen = this.rawdata.length, nidx = 0; nidx < nlen; nidx += fgetincr(nchr)) { nchr = fgetcode(this.rawdata, nidx); sview += string.fromcharcode(nchr); } return sview; }; the code above is also available on
github.
Install Manifests - Archive of obsolete content
<em:optionstype>3</em:optionstype> <em:optionsurl>chrome://myaddon/content/options.html</em:optionsurl> this section here contains an example of localized html page as an option panel in a new tab: bootstrapped extensions :: localization (l10n) (example linked to is:
github :: l10n-html-options).
...</description> updatekey to ensure the security of update rdf data that is retrieved over plain http you must use a di
gital signature to verify the contents of the data.
JXON - Archive of obsolete content
the following code is also available on
github.
... "use strict"; /*\ |*| |*| jxon framework - copyleft 2011 by mozilla developer network |*| |*| revision #3 - october 31th, 2016 |*| |*| https://developer.mozilla.org/docs/jxon |*| https://developer.mozilla.org/user:fusionchess |*| https://
github.com/madmurphy/jxon.js |*| |*| this framework is released under the gnu public license, version 3 or later.
List of Mozilla-Based Applications - Archive of obsolete content
font management tool firecast di
gital signage and interactive kiosk tools also used in firecast easystart mozilla firefox web browser web browser usage stats from global stats fossamail email client for windows platform, based on mozilla thunderbird developed by moonchild productions, creator of the pale moon web browser flickr uploadr image upload tool see flickr uploadr: open source...
...sed on xul liaison groupware client for novell’s email and collaboration server previously called mozngw linbox kiosk browser (fr) web browser dedicated browser for french prefecture and town hall litl internet computer for home uses spidermonkey and gecko lizilayers gis application 3liz also creates some gis firefox add-ons lo
gitech harmony remote software software for remote control device uses gre or xulrunner longman dictionary of contemporary english cd-rom lotus notes / sametime groupware the latest version of ibm lotus notes and sametime can embed xul applications lucidor e-book reader lx-office accounting tool looks like it makes at least some use ...
Mozilla Crypto FAQ - Archive of obsolete content
psm 1.3 will also provide support for mozilla users to obtain personal di
gital certificates and perform other pki-related functions.
...an earlier (circa 1995) collection of essays and public documents, with a concentration on the clipper chip controversy and the di
gital telephony act.
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
, "replace bookmark"); button.setattribute("class", "toolbarbutton-1 chromeclass-toolbar-additional"); button.setattribute("tooltiptext", "replace an existing bookmark"); button.style.liststyleimage = "url(" + icon + ")"; button.addeventlistener("command", main.action, false); toolbox.palette.appendchild(button); this code is thanks to dgutov and is seen in full context at his repository here at
github: dgutov / bmreplace / bootstrap.js.
... watch for a snippet that you can copy and paste into scratchpad, and then run on gists@
github here: _ff-addon-snippet-addtoolbarbuttontopalette.js .
Encryption and Decryption - Archive of obsolete content
nevertheless, private-key encryption is useful, because it means you can use your private key to sign data with your di
gital signature-an important requirement for electronic commerce and other commercial applications of cryptography.
..."di
gital signatures" describes how this confirmation process works.
Threats - Archive of obsolete content
for example, site can be infected with a malware redirect hack in which a le
gitimate redirects to spam site or a phishing page.
...the attacks often comes in form of instant messages or phishing emails which appear to be le
gitimate but they are used to obtain personal information.
Security - Archive of obsolete content
di
gital signaturesencryption and decryption address the problem of eavesdropping, one of the three internet security issues mentioned at the beginning of this document.
...for an overview of ssl, see "introduction to ssl." for an overview of encryption and decryption, see "encryption and decryption." information on di
gital signatures is available from "di
gital signatures." introduction to sslthis document introduces the secure sockets layer (ssl) protocol.
The Business Benefits of Web Standards - Archive of obsolete content
by ensuring that all of the di
gital content owned by the operator is marked up in a consistent and standards compliant way, the content base becomes a perennially reusable asset without any additional costs in the future.
...customers, developers, di
gital media creators, can be freed from the tyranny of graphics led development, code generators, and incomprehensible markup.
Game distribution - Game development
you don't even have to worry about looking for a hosting provider as it's possible to host games on
github pages.
... electron — known as atom shell — is an open-sourced and cross-platform tool from
github.
Building up a basic demo with Babylon.js - Game development
here's how it should look: and here's the code we have created so far: you can also check it out on
github.
... conclusion here's the final code listing, along with a viewable live example: you can also see it on
github and fork the repository if you want to play with it yourself locally.
Building up a basic demo with the PlayCanvas engine - Game development
here's how it should look: and here's the code we have created so far: you can also check it out on
github.
... conclusion here's the final code listing, along with a viewable live example: you can also see it on
github and fork the repository if you want to play with it yourself locally.
Building up a basic demo with Three.js - Game development
here's how it should look: and here's the code we have created so far: you can also check it out on
github.
... conclusion here's the final code: you can also see it on
github and fork the repository, if you want to play with it locally.
GLSL Shaders - Game development
go to the cube.html file on
github, copy all the javascript code from inside the second <script> element, and paste it into the third <script> element of the current example.
... final code html <script src="https://end3r.
github.io/mdn-games-3d/shaders/js/three.min.js"></script> <script id="vertexshader" type="x-shader/x-vertex"> void main() { gl_position = projectionmatrix * modelviewmatrix * vec4(position.x+10.0, position.y, position.z+5.0, 1.0); } </script> <script id="fragmentshader" type="x-shader/x-fragment"> void main() { gl_fragcolor = vec4(0.0, 0.58, 0.86, 1.0); } </script> j...
3D games on the Web - Game development
building up a basic demo with playcanvas playcanvas is a popular 3d webgl game engine open-sourced on
github, with an editor available online and good documentation.
... source code you can find all the source code for this series demos on
github.
Unconventional controls - Game development
be sure to visit the leapjs repository on
github to learn about the javascript client for the leap motion controller and read the documentation there.
...var cylon = require('cylon'); cylon.robot({ connections: { arduino: { adaptor: 'firmata', port: '/dev/ttyacm0' } }, devices: { makey: { driver: 'makey-button', pin: 2 } }, work: function(my) { my.makey.on('push', function() { console.log("button pushed!"); }); } }).start(); as the description says: this gpio driver allows you to connect a 10 mohm resistor to a di
gital pin on your arduino or raspberry pi to control your robots with bananas, clay, or drawable circuitry.
Implementing controls using the Gamepad API - Game development
case study: hungry fridge the
github game off ii competition ran in november 2013 and enclave games decided to take part in it.
...it's part of the gamepad api content kit available on
github where you can dive deep into the code and study exactly how it works.
Visual-js game engine - Game development
new link is : https://
github.com/zlatnaspirala/visual-ts-game-engine basic licence rules : 1) each file in this project has its own license , be careful , do not violate the basic rules.
...icles/javascript-motion-detection.html webrtc - webcam communication is under : creator muaz khan www.muazkhan.com mit license - www.webrtc-experiment.com/licence socket.io.js - http://socket.io/download/ ( also implemented intro build.js ) webgl2 based on : copyright (c) 2014 tappali ekanathan keestu (keestu@gmail.com) gnu general public license obj loader : https://
github.com/frenchtoast747/webgl-obj-loader textures download from http://textures.com more texture downloads http://www.textures4photoshop.com/ female body v3.blend this file has been released by andrescuccaro under the following license: creative commons attribution 3.0 about gui for windows (canvas2d part only) : windows gui application version 1.0 (using visual-js 0.9 li...
Visual typescript game engine - Game development
i use one
git repo but consider '/server' represent the standalone application.
... code format : npm run fix npm run tslint or use : tslint -c tslint.json 'src/**/*.ts' --fix tslint -c tslint.json 'src/**/*.ts' the external licence in this project : - networking based on : muaz khan mit license www.webrtc-experiment.com/licence - base physics based on : original source: matter.js https://
github.com/liabru/matter-js matter.ts used because typescript orientation.
Alpha (alpha channel) - MDN Web Docs Glossary: Definitions of Web-related terms
colors are represented in di
gital form as a collection of numbers, each representing the strength or intensity level of a given component of the color.
... learn more general knowledge alpha compositing on wikipedia rgba color model on wikipedia channel (di
gital image) on wikipedia technical reference css color ...
DoS attack - MDN Web Docs Glossary: Definitions of Web-related terms
dos (denial of service) is a network attack that prevents le
gitimate use of server resources by flooding the server with requests.
...a dos attack consists of various techniques to exhaust these resources and make a server or a network unavailable to le
gitimate users, or at least make the server perform sluggishly.
Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
dos (denial of service) is a network attack that prevents le
gitimate use of server resources by flooding the server with requests.
...a dos attack consists of various techniques to exhaust these resources and make a server or a network unavailable to le
gitimate users, or at least make the server perform sluggishly.
Distributed Denial of Service - MDN Web Docs Glossary: Definitions of Web-related terms
a distributed denial-of-service (ddos) is an attack in which many compromised systems are made to attack a single target, in order to swamp server resources and block le
gitimate users.
...the overflow of data to the target causes saturation in the target machine so that it cannot respond or responds very slowly to le
gitimate traffic (hence the name "denial of service").
Legacy layout methods - Learn web development
note: if you are having trouble getting the above example to work, try comparing it against our finished version on
github (see it running live also).
... note: if you are having trouble getting the above example to work, try comparing it against our finished version on
github (see it running live also).
Practical positioning examples - Learn web development
as a starting point, you can use your completed example from the first section of the article, or make a local copy of info-box.html from our
github repo.
... as a starting point, make a local copy of hidden-info-panel-start.html from our
github repo.
Styling lists - Learn web development
the unstyled example is available on
github (check out the source code too.) the html for our list example looks like so: <h2>shopping (unordered) list</h2> <p>paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference, paragraph for reference.</p> <ul> <li>hummus</li> <li>pita</li> <li>green salad</li> <li>halloumi</li> </ul> <h2>recipe (ordered) list</h2> <...
... handling list spacing when styling lists, you need to adjust their styles so they keep the same vertical spacing as their surrounding elements (such as paragraphs and images; sometimes called vertical rhythm), and the same horizontal spacing as each other (you can see the finished styled example on
github, and find the source code too.) the css used for the text styling and spacing is as follows: /* general styles */ html { font-family: helvetica, arial, sans-serif; font-size: 10px; } h2 { font-size: 2rem; } ul,ol,dl,p { font-size: 1.5rem; } li, p { line-height: 1.5; } /* description list styles */ dd, dt { line-height: 1.5; } dt { font-weight: bold; } the first rule...
How to structure a web form - Learn web development
note: you can find this example on
github as required-labels.html (see it live also).
...add this to the bottom of your form now: <p> <button type="submit">validate the payment</button> </p> you can see the finished form in action below (also find it on
github — see our payment-form.html source and running live): test your skills!
Other form controls - Learn web development
note: you can find examples of all the drop-down box types on
github at drop-down-content.html (see it live also).
... note: you can find the examples from this section on
github as other-examples.html (see it live also).
Sending form data - Learn web development
in this case we are passing two pieces of data to the server: say, which has a value of hi to, which has a value of mom the http request looks like this: get /?say=hi&to=mom http/2.0 host: foo.com note: you can find this example on
github — see get-method.html (see it live also).
... note: you can find this example on
github — see post-method.html (see it live also).
Installing basic software - Learn web development
right now,
git is the most popular version control system along with the
github or
gitlab hosting service.
... an ftp program, used on older web hosting accounts to manage files on servers (
git is increasingly replacing ftp for this purpose).
What’s in the head? Metadata in HTML - Learn web development
— generally this should be used once per page, to mark up the title of your page content (the story title, or news headline, or whatever is appropriate to your usage.) the <title> element is metadata that represents the title of the overall html document (not the document's content.) active learning: inspecting a simple example to start off this active learning, we'd like you to go to our
github repo and download a copy of our title-example.html page.
... press the "raw" button on the
github page, which causes the raw code to appear (possibly in a new browser tab).
Mozilla splash page - Learn web development
starting point to start off this assessment, you need to grab the html and all the images available in the mdn-splash-page-start directory on
github.
... note: to properly test the srcset/sizes examples, you'll need to upload your site to a server (using
github pages is an easy and free solution), then from there you can test whether they are working properly using browser developer tools such as the firefox network monitor.
Responsive images - Learn web development
here's a simple example: this works well on a wide screen device, such as a laptop or desktop (you can see the example live and find the source code on
github.) we won't discuss the css much in this lesson, except to say that: the body content has been set to a maximum width of 1200 pixels — in viewports above that width, the body remains at 1200px and centers itself in the available space.
...you can see an example of this in our responsive.html example on
github (see also the source code): <img srcset="elva-fairy-480w.jpg 480w, elva-fairy-800w.jpg 800w" sizes="(max-width: 600px) 480px, 800px" src="elva-fairy-800w.jpg" alt="elva dressed as a fairy"> the srcset and sizes attributes look complicated, but they're not too hard to understand if you format them as shown above, with a different part of the attribute v...
HTML table advanced features and accessibility - Learn web development
note: you can find our version on
github — see timetable-caption.html (see it live also).
...td>shoes</td> <td>shoeshop</td> <td>13/09</td> <td>big regrets</td> <td>65</td> </tr> <tr> <td>toothpaste</td> <td>supermarket</td> <td>13/09</td> <td>good</td> <td>5</td> </tr> </tbody> </table> </body> </html> note: you can also find it on
github as spending-record-finished.html (see it live also).
Choosing the right approach - Learn web development
we then run it once per second using setinterval(), creating the effect of a di
gital clock that updates once per second (see this live, and also see the source): function displaytime() { let date = new date(); let time = date.tolocaletimestring(); document.getelementbyid('demo').textcontent = time; } const createclock = setinterval(displaytime, 1000); pitfalls the frame rate isn't optimized for the system the animation is running on, and can be somewhat inefficie...
... single delayed operation repeating operation multiple sequential operations multiple simultaneous operations no yes no (unless it is the same one) no code example a simple animated spinner; you can find this example live on
github (see the source code also): const spinner = document.queryselector('div'); let rotatecount = 0; let starttime = null; let raf; function draw(timestamp) { if(!starttime) { starttime = timestamp; } rotatecount = (timestamp - starttime) / 3; if(rotatecount > 359) { rotatecount %= 360; } spinner.style.transform = 'rotate(' + rotatecount + 'deg)'; r...
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
it then runs the function once per second using setinterval(), creating the effect of a di
gital clock that updates once per second (see this live, and also see the source): function displaytime() { let date = new date(); let time = date.tolocaletimestring(); document.getelementbyid('demo').textcontent = time; } const createclock = setinterval(displaytime, 1000); just like settimeout(), setinterval() returns an identifying value you can use later when you need to clear the inte...
... draw(); note: you can find the finished example live on
github.
Build your own function - Learn web development
first of all, download the icons needed for this exercise (warning and chat) from
github.
... note: if you have trouble getting the example to work, feel free to check your code against the finished version on
github (see it running live also), or ask us for help.
Function return values - Learn web development
first of all, make a local copy of the function-library.html file from
github.
... note: if you have trouble getting the example to work, feel free to check your code against the finished version on
github (see it running live also), or ask us for help.
Fetching data from the server - Learn web development
you can find this example live on
github, and see the source code.
... note: if you have trouble with this, feel free to check your code against the finished version on
github (see the source here, and also see it running live).
Introduction to web APIs - Learn web development
the following code provides a simple example of how this would be used: let requesturl = 'https://mdn.
github.io/learning-area/javascript/oojs/json/superheroes.json'; let request = new xmlhttprequest(); request.open('get', requesturl); request.responsetype = 'json'; request.send(); request.onload = function() { const superheroes = request.response; populateheader(superheroes); showheroes(superheroes); } note: you can see this code in action in our ajax.html example (see it live also).
...at the time of writing, our web audio api example wouldn't work locally on google chrome — we had to upload it to
github before it would work.
Video and Audio APIs - Learn web development
the outer timer wrapper <div>, the di
gital timer readout <span>, and the inner <div> that gets wider as the time elapses.
...if so, they add a leading zero to the values, in the same way that a di
gital clock display works.
Inheritance in JavaScript - Learn web development
note: you can find this example on
github as es2015-class-inheritance.html (see it live also).
... the example below shows the two features in action: // check the default value console.log(snape.subject) // returns "dark arts" // change the value snape.subject = "balloon animals" // sets _subject to "balloon animals" // check it again and see if it matches the new value console.log(snape.subject) // returns "balloon animals" note: you can find this example on
github as es2015-getters-setters.html (see it live also).
Working with JSON - Learn web development
at the moment it only contains two lines, which grab references to the <header> and <section> elements and store them in variables: const header = document.queryselector('header'); const section = document.queryselector('section'); we have made our json data available on our
github, at https://mdn.
github.io/learning-area/javascript/oojs/json/superheroes.json.
...add the following at the bottom of your javascript code: let requesturl = 'https://mdn.
github.io/learning-area/javascript/oojs/json/superheroes.json'; to create a request, we need to create a new request object instance from the xmlhttprequest constructor, using the new keyword.
HTML performance features - Learn web development
elements & attributes impacting performance the <picture> element the <video> element the <source> element the <img> srcset attribute responsive images preloading content with rel="preload" - (https://w3c.
github.io/preload/ ) async / defer attributes <iframe> <object> <script> rel attribute conclusion previous overview: performance next in this module the "why" of web performance what is web performance?
... html performance features css performance features fonts and performance mobile performance focusing on performance see also the <picture> element the <video> element the <source> element the <img> srcset attribute responsive images preloading content with rel="preload" - (https://w3c.
github.io/preload/ ) ...
Getting started with Ember - Learn web development
for more information on the technical aspects of the glimmer vm, the
github repository has some documentation — specifically, references and validators may be of interest.
...there are a couple of
github issues open about this on the todomvc family of projects: add keyboard access to demos re-enable outline on focusable elements ember has a strong commitment to being accessible by default and there is an entire section of the ember guides on accessibility on what it means for website / app design.
Introduction to client-side frameworks - Learn web development
you can check a project's number of
github stars or weekly npm downloads to get an idea of its popularity, but sometimes the best thing to do is search a few forums or talk to other developers.
...the publishing host could be a
github pages branch, a netlify instance, or any private server of your choosing, for example.
Componentizing our Svelte app - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/04-componentizing-our-app or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/04-componentizing-our-app remember to run npm install && npm run dev to start your app in developm...
... the code so far
git to see the state of the code as it should be at the end of this article, access your copy of our repo like this: cd mdn-svelte-tutorial/05-advanced-concepts or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/05-advanced-concepts remember to run npm install && npm run dev to start your app in development mode.
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/05-advanced-concepts or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/05-advanced-concepts remember to run npm install && npm run dev to start your app in development mode.
... the code so far
git to see the state of the code as it should be at the end of this article, access your copy of our repo like this: cd mdn-svelte-tutorial/06-stores or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/06-stores remember to run npm install && npm run dev to start your app in development mode.
Dynamic behavior in Svelte: working with variables and props - Learn web development
code along with us
git clone the
github repo (if you haven't already done it) with:
git clone https://
github.com/opensas/mdn-svelte-tutorial.
git then to get to the current app state, run cd mdn-svelte-tutorial/03-adding-dynamic-behavior or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/03-adding-dynamic-behavior remember to run npm install && npm run dev to start your app in develo...
... the code so far
git to see the state of the code as it should be at the end of this article, access your copy of our repo like this: cd mdn-svelte-tutorial/04-componentizing-our-app or directly download the folder's content: npx de
git opensas/mdn-svelte-tutorial/04-componentizing-our-app remember to run npm install && npm run dev to start your app in development mode.
Package management basics - Learn web development
you could manage your own package registry — products like microsoft azure allow you to create proxies to the npm registry (so you can override or lock certain packages),
github also offers a package registry service, and there will be likely more options appearing as time goes on.
... test command,
git repository, and keywords: press return to leave each of these blank for now.
Tools and testing - Learn web development
git and
github all developers will use some kind of version control system (vcs), a tool to allow them to collaborate with other developers on a project without danger of them overwriting each other's work, and roll back to previous versions of the code base if a problem is discovered later on.
... the most popular vcs (at least among web developers) is
git, along with
github, a site that provides hosting for your repositories and several tools for working with them.
Testopia
the good news is that the current code in the
git repository already works with bugzilla 5.0, and so if you upgraded to 5.0 already, and if you don't mind having a work-in-progress extension on your machine, you can decide to pull the code from the
git repository.
... if you find bugs in the code available from the
git repository, please report it to us so that we can fix most critical ones on time for testopia 3.0.
Reviewer Checklist
trailing whitespace (
git diff and splinter view both highlight this, as does hg with the color extension enabled).
...in
git, you can use
git rebase --whitespace=fix.
Profiling with the Firefox Profiler
the (now obsolete) profiler add-on repository can be found here: https://
github.com/firefox-devtools/gecko-profiler-addon.
... the profiler.firefox.com code and issue repository can be found here: https://
github.com/firefox-devtools/profiler/.
Localization Use Cases
first, there is devicestoragehelper.showformatedsize (sic): function showformatedsize(element, l10nid, size) { if (size === undefined || isnan(size)) { element.textcontent = ''; return; } // kb - 3 kb (nearest ones), mb, gb - 1.2 mb (nearest tenth) var fixeddi
gits = (size < 1024 * 1024) ?
... 0 : 1; var sizeinfo = filesizeformatter.getreadablefilesize(size, fixeddi
gits); var _ = navigator.mozl10n.get; element.textcontent = _(l10nid, { size: sizeinfo.size, unit: _('byteunit-' + sizeinfo.unit) }); } the function is used like so: // application storage updateappfreespace: function storage_updateappfreespace() { var self = this; this.getfreespace(this.appstorage, function(freespace) { devicestoragehelper.showformatedsize(self.appstoragedesc, 'availablesize', freespace); }); }, problem definition for all values of freespace, the following string is enough to construct a grammatically-correct sentence in english: availablesize = {{$size}} {{$unit}} available however, other languages might need to pluralize this string with different forms of th...
L20n
note: this document is in draft form/out-of-date — for current documentation please see our documentation on
github.
...
github where the main code for the l20n infrastructure and design spec lives.
JSS
as of april 6, 2018, jss has been migrated from mercurial on mozilla to
git on
github.
... jss source should now be checked out from the
github:
git clone
git@
github.com:dogtagpki/jss.
git -- or --
git clone https://
github.com/dogtagpki/jss.
git all future upstream enquiries to jss should now use the pagure issue tracker system: https://pagure.io/jss/issues documentation regarding the jss project should now be viewed at: http://www.dogtagpki.org/wiki/jss note: as much of the jss documentation is sorely out-of-date, updated information will be a work in progress, and many portions of any legacy documentation will be re-written over the course of time.
NSS 3.21 release notes
er universal ca iii sha1 fingerprint: 96:56:cd:7b:57:96:98:95:d0:e1:41:46:68:06:fb:b8:c6:11:06:87 cn = a-trust-nqual-03 sha-1 fingerprint: d3:c0:63:f2:19:ed:07:3e:34:ad:5d:75:0b:32:76:29:ff:d5:9a:f2 cn = usertrust legacy secure server ca sha-1 fingerprint: 7c:2f:91:e2:bb:96:68:a9:c6:f6:bd:10:19:2c:6b:52:5a:1b:ba:48 friendly name: di
gital signature trust co.
... global ca 1 sha-1 fingerprint: 81:96:8b:3a:ef:1c:dc:70:f5:fa:32:69:c2:92:a3:63:5b:d1:23:d3 friendly name: di
gital signature trust co.
NSS tools : modutil
modutil -dbdir sql:/home/mt"jar-install-filey/sharednssdb -jar install.jar -installdir sql:/home/my/sharednssdb this installation jar file was signed by: ---------------------------------------------- **subject name** c=us, st=california, l=mountain view, cn=cryptorific inc., ou=di
gital id class 3 - netscape object signing, ou="www.verisign.com/repository/cps incorp.
... filepermissions sets permissions on any referenced files in a string of octal di
gits, according to the standard unix format.
NSS Tools
source, documentation, tasks/plans signtool 1.3 create di
gitally-signed jar archives containing files and/or code.
... source, documentation, signver 1.1 verify signatures on di
gitally-signed objects.
NSS Tools modutil
filepermissions interpreted as a string of octal di
gits, according to the standard unix format.
...this installation jar file was signed by: ---------------------------------------------- **subject name** c=us, st=california, l=mountain view, cn=cryptorific inc., ou=di
gital idclass 3 - netscape object signing, ou="www.verisign.com/repository/cpsincorp.
NSS tools : modutil
modutil -dbdir sql:/home/mt"jar-install-filey/sharednssdb -jar install.jar -installdir sql:/home/my/sharednssdb this installation jar file was signed by: ---------------------------------------------- **subject name** c=us, st=california, l=mountain view, cn=cryptorific inc., ou=di
gital id class 3 - netscape object signing, ou="www.verisign.com/repository/cps incorp.
... filepermissions sets permissions on any referenced files in a string of octal di
gits, according to the standard unix format.
Download Rhino
source in addition to getting the source from the zip files above, the source code for rhino can be found in
github at https://
github.com/mozilla/rhino.
... to get the source, use the command
git clone https://
github.com/mozilla/rhino.
git rhino uses gradle as its build system.
Hacking Tips
on https://
github.com/h4writer/tracelogger you can find the instructions to create the graph (tools v2 > 1.
...this can be done with the reduce.py script in https://
github.com/haytjes/tracelogger/tree/master/tools_v2.
Redis Tips
node.js redis client: https://
github.com/mranney/node_redis npm install redis python redis client: https://
github.com/andymccurdy/redis-py there are some gotchas with the python api: https://
github.com/andymccurdy/redis-py#api-reference select statement not implemented del is 'delete' in python zadd argument order is wrong setex argument order is wrong the default redis port is 6379.
... (this is, for instance, how tj holowaychuk's implemented kue: https://
github.com/learnboost/kue.) memory usage in redis is important to think about.
Handling Mozilla Security Bugs
the applicant should have a le
gitimate purpose for wishing to join the group.
... please try to be understanding and accommodating if a mozilla distributor has a le
gitimate need to keep a bug in the security-sensitive category for some reasonable additional time period, e.g., to get a new release distributed to users.
A Web PKI x509 certificate primer
examples of key usages are: di
gitalsignature, keyencipherment, dataencipherment, keycertsign, and crlsign.
...the root certificates included by default have their "trust bits" set to indicate if the ca's root certificates may be used to verify certificates for ssl servers, s/mime email users, and/or di
gitally-signed code objects without having to ask users for further permission or information.
XPCshell Test Manifest Expressions
integers: a series of contiguous di
gits.
... variables variables are supported as a series of letters, di
gits or underscores beginning with a letter or an underscore.
NS_ConvertASCIItoUTF16
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
NS_ConvertUTF16toUTF8
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
NS_ConvertUTF8toUTF16
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
NS_LossyConvertUTF16toASCII
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsACString_internal
parameters nscsubstringtuple& tuple void nsacstring_internal(char*, pruint32, pruint32) - source parameters char* data pruint32 length pruint32 flags beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsAString_internal
parameters nssubstringtuple& tuple void nsastring_internal(prunichar*, pruint32, pruint32) - source parameters prunichar* data pruint32 length pruint32 flags beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsAdoptingCString
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsAdoptingString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsAutoString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsCAutoString
aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
git...
...erator<char>& iter char*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - sou...
nsCString
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsDependentCString
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsDependentString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsFixedCString
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsFixedString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsPromiseFlatCString
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsPromiseFlatString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsXPIDLCString
meters pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading char* beginreading() const - source reading iterators nsreadin
giterator<char>& beginreading(nsreadin
giterator<char>&) const - source deprecated reading iterators parameters nsreadin
giterator<char>& iter char*& beginreading(const char*&) const - source parameters char*& iter endreading char* endreading() const - source nsreadin
giterator<char>& endreading(nsreadin
giterator<char>&) const - source parameters nsreadin
giterator<char>& iter ch...
...ar*& endreading(const char*&) const - source parameters char*& iter beginwriting char* beginwriting() - source writing iterators nswritin
giterator<char>& beginwriting(nswritin
giterator<char>&) - source deprecated writing iterators parameters nswritin
giterator<char>& iter char*& beginwriting(char*&) - source parameters char*& iter endwriting char* endwriting() - source nswritin
giterator<char>& endwriting(nswritin
giterator<char>&) - source parameters nswritin
giterator<char>& iter char*& endwriting(char*&) - source parameters char*& iter data char* data() const - source accessors length pruint32 length() const - source isempty prbool isempty() const - source isvoid prbool isvoid() const - source isterminated prbool ist...
nsXPIDLString
s pruint32 ainteger print32 aradix void appendint(print64, print32) - source parameters print64 ainteger print32 aradix appendfloat void appendfloat(float) - source append the given float to this string parameters float afloat void appendfloat(double) - source parameters double afloat beginreading prunichar* beginreading() const - source reading iterators nsreadin
giterator<short unsigned int>& beginreading(nsreadin
giterator<short unsigned int>&) const - source deprecated reading iterators parameters nsreadin
giterator<short unsigned int>& iter prunichar*& beginreading(const prunichar*&) const - source parameters prunichar*& iter endreading prunichar* endreading() const - source nsreadin
giterator<short unsigned int>& endreading(nsreadin
gitera...
...tor<short unsigned int>&) const - source parameters nsreadin
giterator<short unsigned int>& iter prunichar*& endreading(const prunichar*&) const - source parameters prunichar*& iter beginwriting prunichar* beginwriting() - source writing iterators nswritin
giterator<short unsigned int>& beginwriting(nswritin
giterator<short unsigned int>&) - source deprecated writing iterators parameters nswritin
giterator<short unsigned int>& iter prunichar*& beginwriting(prunichar*&) - source parameters prunichar*& iter endwriting prunichar* endwriting() - source nswritin
giterator<short unsigned int>& endwriting(nswritin
giterator<short unsigned int>&) - source parameters nswritin
giterator<short unsigned int>& iter prunichar*& endwriting(prunichar*&) - source parame...
nsICryptoHash
.classes["@mozilla.org/security/hash;1"] .createinstance(components.interfaces.nsicryptohash); // we want to use the sha256 algorithm ch.init(ch.sha256); // this tells updatefromstream to read the entire file const pr_uint32_max = 0xffffffff; ch.updatefromstream(istream, pr_uint32_max); // pass false here to get binary data back var hash = ch.finish(false); // return the two-di
git hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } // convert the binary hash data to a hex string.
...is an out parameter, // result.value will contain the array length var result = {}; // data is an array of bytes var data = converter.converttobytearray(str, result); var ch = components.classes["@mozilla.org/security/hash;1"] .createinstance(components.interfaces.nsicryptohash); ch.init(ch.sha256); ch.update(data, data.length); var hash = ch.finish(false); // return the two-di
git hexadecimal code for a byte function tohexstring(charcode) { return ("0" + charcode.tostring(16)).slice(-2); } // convert the binary hash data to a hex string.
Xptcall Porting Status
i am not sure how much of the code can be used for openvms alpha and/or di
gital unix.
... <font color="white">help!</font> beos ppc - - <font color="white">done</font> compaq tru64 unix (di
gital unix) steve streeter <streeter@zk3.dec.com> code passes the tests and is checked in.
WebIDL bindings
example interface for a single value iterator: interface lon
giterable { iterable<long>; getter long(unsigned long index); readonly attribute unsigned long length; }; for single value iterator interfaces, we treat the interface as an indexed getter, as required by the spec.
... example interface for a pair value iterator: interface stringandlon
giterable { iterable<domstring, long>; }; the bindings for this pair value iterator interface require the following methods be implemented in the c++ object: class stringandlon
giterable { public: // returns the number of items in the iterable storage size_t getiterablelength(); // returns key of pair at aindex in iterable storage nsastring& getkeyatindex(uint32_t aindex); // returns value of pair at aindex in iterable storage uint32_t& getvalueatindex(uint32_t aindex); } stringifiers named stringifiers operations in webidl will just invoke the corresponding c++ method.
Using Objective-C from js-ctypes
*/ // apple docs :: working with blocks - https://developer.apple.com/library/ios/documentation/cocoa/conceptual/programmingwithobjectivec/workingwithblocks/workingwithblocks.html var _nsconcreteglobalblock = ctypes.open(ctypes.libraryname('objc')).declare('_nsconcreteglobalblock', ctypes.voidptr_t); // //
github.com/realityripple/uxp/blob/master/js/src/ctypes/library.cpp?offset=0#271 /** * the "block descriptor" is a static singleton struct.
...ck_literal_1', [ { isa: ctypes.voidptr_t }, { flags: ctypes.int32_t }, { reserved: ctypes.int32_t }, { invoke: ctypes.voidptr_t }, { descriptor: block_descriptor_1.ptr } ]); var block_const = { block_has_copy_dispose: 1 << 25, block_has_ctor: 1 << 26, block_is_global: 1 << 28, block_has_stret: 1 << 29, block_has_signature: 1 << 30 }; // based on work from here: https://
github.com/trueinteractions/tint2/blob/f6ce18b16ada165b98b07869314dad1d7bee0252/modules/bridge/core.js#l370-l394 var bl = block_literal_1(); // set the class of the instance bl.isa = _nsconcreteglobalblock; // global flags bl.flags = block_const.block_has_stret; bl.reserved = 0; bl.invoke = afunctypeptr; // create descriptor var desc = block_descriptor_1(); desc.reserved = 0; desc.size =...
Deprecated tools - Firefox Developer Tools
more details about the web audio editor alternatives alternatives include audion and https://
github.com/spite/webaudioextension web extensions.
... more details about the shader editor alternatives an alternative to this panel is this extension: https://
github.com/spite/shadereditorextension, or spector.js also supports a shader editor that requires a library to use a shader reloader hook.
BasicCardResponse.expiryMonth - Web APIs
syntax "expirymonth" : "number" value a domstring representing the card expiry month as a two-di
git number in the range 01 to 12.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
BasicCardResponse.expiryYear - Web APIs
syntax "expiryyear" : "number" value a domstring representing the card expiry year as a four-di
git number in the range 0000 to 9999.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Document: pointerdown event - Web APIs
for touch, it is fired when physical contact is made with the di
gitizer.
... for pen, it is fired when the stylus makes physical contact with the di
gitizer.
Element.computedStyleMap() - Web APIs
<p> <a href="https://example.com">link</a> </p> <dl id="regur
gitation"></dl> we add a little bit of css a { --colour: red; color: var(--colour); } we add javascript to grab our link and return back a definition list of all the css property values using computedstylemap().
... // get the element const myelement = document.queryselector('a'); // get the <dl> we'll be populating const styleslist = document.queryselector('#regur
gitation'); // retrieve all computed styles with computedstylemap() const allcomputedstyles = myelement.computedstylemap(); // iterate thru the map of all the properties and values, adding a <dt> and <dd> for each for (const [prop, val] of allcomputedstyles) { // properties const cssproperty = document.createelement('dt'); cssproperty.appendchild(document.createtextnode(prop)); styleslist.appendchild(cssproperty); // values const cssvalue = document.createelement('dd'); cssvalue.appendchild(document.createtextnode(val)); styleslist.appendchild(cssvalue); } in browsers that support computedstylemap(), you'll see a list of all the ...
Guide to the Fullscreen API - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
GeolocationCoordinates.accuracy - Web APIs
the geolocationcoordinates.accuracy read-only property is a strictly positive double representing the accuracy, with a 95% confidence level, of the geolocationcoordinates.latitude and geolocationcoordinates.lon
gitude properties expressed in meters.
... syntax let acc = geolocationcoordinatesinstance.accuracy value a positive double representing the accuracy, with a 95% confidence level, of the geolocationcoordinates.latitude and geolocationcoordinates.lon
gitude properties expressed in meters.
GeolocationCoordinates - Web APIs
geolocationcoordinates.lon
gitude read only secure context returns a double representing the position's lon
gitude in decimal degrees.
... geolocationcoordinates.accuracy read only secure context returns a double representing the accuracy of the latitude and lon
gitude properties, expressed in meters.
Checking when a deadline is due - Web APIs
you can download the to-do list notifications app from
github and play around with the source code, or view the app running live.
...the days are recorded as numerical days of the month, the months are recorded as full month names, and the years are recorded as full four di
git year numbers.
NonDocumentTypeChildNode.previousElementSibling - Web APIs
div polyfills polyfill for internet explorer 8 this property is unsupported prior to ie9, so the following snippet can be used to add support to ie8: // source: https://
github.com/alhadis/snippets/blob/master/js/polyfills/ie8-child-elements.js if(!("previouselementsibling" in document.documentelement)){ object.defineproperty(element.prototype, "previouselementsibling", { get: function(){ var e = this.previoussibling; while(e && 1 !== e.nodetype) e = e.previoussibling; return e; } }); } polyfill for internet explorer 9+ and safa...
...ri // source: https://
github.com/jserz/js_piece/blob/master/dom/nondocumenttypechildnode/previouselementsibling/previouselementsibling.md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('previouselementsibling')) { return; } object.defineproperty(item, 'previouselementsibling', { configurable: true, enumerable: true, get: function () { let el = this; while (el = el.previoussibling) { if (el.nodetype === 1) { return el; } } return null; }, set: undefined }); }); })([element.prototype, characterdata.prototype]); specifications specification status comment domthe definition of 'nondocumenttypechildnode.previouselementsibling' i...
PannerNode - Web APIs
pannernode.orientationz represents the lon
gitudinal (back and forth) position of the audio source's vector in a right-hand cartesian coordinate system.
... pannernode.positionz represents the lon
gitudinal (back and forth) position of the audio in a right-hand cartesian coordinate system.
PaymentCurrencyAmount.value - Web APIs
the contents of this string must be a valid decimal number; that is, some number of di
gits between 0 and 9 with up to one optional decimal point.
...this must be a valid decimal number, with an optional leading minus sign ("-"), then one or more decimal di
gits 0 through 9, optionally with a decimal point (".") with at least one di
git following it to represent fractional units.
Multi-touch interaction - Web APIs
a live version of this application is available on
github.
... the source code is available on
github; pull requests and bug reports are welcome.
Pinch zoom gestures - Web APIs
a live version of this application is available on
github.
... the source code is available on
github; pull requests and bug reports are welcome.
PushSubscription.options - Web APIs
this value is part of a signing key pair generated by your application server, and usable with elliptic curve di
gital signature (ecdsa), over the p-256 curve.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
RTCDTMFSender.toneBuffer - Web APIs
dtmf tone characters the di
gits 0-9 these characters represent the di
git keys on a telephone keypad.
...these are not interpreted as di
gits.
RTCIceCandidateStats.address - Web APIs
if the value of address is comprised entirely of di
gits from 0-9 with periods as separators, the value is interpreted as an ipv4 address.
... if the value is entirely comprised of hexadecimal di
gits and colon (":") characters, it is interpreted as an ipv6 address.
StylePropertyMapReadOnly.get() - Web APIs
let's start by creating a link inside a paragraph in our html, and adding a definition list which we will populate with javascript: <p> <a href="https://example.com">link</a> </p> <dl id="regur
gitation"></dl> we add a bit of css, including a custom property and an inhertable property: p { font-weight: bold; } a { --colour: red; color: var(--colour); } we use the element's computedstylemap() to return a stylepropertymapreadonly object.
... // get the element const myelement = document.queryselector('a'); // get the <dl> we'll be populating const styleslist = document.queryselector('#regur
gitation'); // retrieve all computed styles with computedstylemap() const stylemap = myelement.computedstylemap(); // array of properties we're interested in const ofinterest = ['font-weight', 'border-left-color', 'color', '--colour']; // iterate thru our properties of interest for ( let i = 0; i < ofinterest.length; i++ ) { // properties const cssproperty = document.createelement('dt'); cssproperty.appendchild(document.createtextnode(ofinterest[i])); styleslist.appendchild(cssproperty); // values const ...
TextEncoder - Web APIs
note: there is a polyfill implementation to support non-utf-8 text encodings on
github.
...(textencoder.prototype,"encoding",{ get:function(){if(textencoder.prototype.isprototypeof(this)) return"utf-8"; else throw typeerror("illegal invocation");} }); } catch(e) { /*ie6-8 fallback*/ textencoder.prototype.encoding = "utf-8"; } if(typeof symbol!=="undefined")textencoder.prototype[symbol.tostringtag]="textencoder"; } source: https://
github.com/anonyco/fastestsmallesttextencoderdecoder specifications specification status comment encodingthe definition of 'textencoder' in that specification.
TouchEvent - Web APIs
initial value: 0.0 touchevent.scale read only distance between two di
gits since the event's beginning.
... expressed as a floating-point multiple of the initial distance between the di
gits at the beginning of the event.
Multi-touch interaction - Web APIs
a live version of this application is available on
github.
... the source code is available on
github and pull requests and bug reports are welcome.
A simple RTCDataChannel sample - Web APIs
<div class="messagebox" id="receivebox"> <p>messages received:</p> </div> the javascript code while you can just look at the code itself on
github, below we'll review the parts of the code that do the heavy lifting.
... next steps you should try out this example and take a look at the webrtc-simple-datachannel source code, available on
github.
Improving compatibility using WebRTC adapter.js - Web APIs
the webrtc organization provides on
github the webrtc adapter to work around compatibility issues in different browsers' webrtc implementations.
... using adapter.js in order to use adapter.js, you need to include adapter.js on any page that uses webrtc apis: download a copy of the latest version of adapter.js from
github.
Advanced techniques: Creating and sequencing audio - Web APIs
note: you can find the source code on
github as step-sequencer; see the step-sequencer running live also.
... playing the audio in time a common problem with di
gital audio applications is getting the sounds to play in time so that the beat remains consistent, and things do not slip out of time.
Web Audio API - Web APIs
there's also a basic concepts behind web audio api article, to help you understand the way di
gital audio works, specifically in the realm of the api.
... examples you can find a number of examples at our webaudio-example repo on
github.
Using the Web Speech API - Web APIs
to run the demo, you can clone (or directly download) the
github repo it is part of, open the html index file in a supporting desktop browser, or navigate to the live demo url in a supporting mobile browser like chrome.
... to run the demo, you can clone (or directly download) the
github repo it is part of, open the html index file in a supporting desktop browser, or navigate to the live demo url in a supporting mobile browser like chrome, or firefox os.
WindowOrWorkerGlobalScope.setInterval() - Web APIs
the following code is also available on
github.
... minidaemon.js /*\ |*| |*| :: minidaemon :: |*| |*| revision #2 - september 26, 2014 |*| |*| /docs/web/api/window.setinterval |*| https://developer.mozilla.org/user:fusionchess |*| https://
github.com/madmurphy/minidaemon.js |*| |*| this framework is released under the gnu lesser general public license, version 3 or later.
ARIA: textbox role - Accessibility
<!-- simple text input field --> <div id="txtboxlabel">enter your five-di
git zipcode</div> <div role="textbox" contenteditable="true" aria-placeholder="5-di
git zipcode" aria-labelledby="txtboxlabel"></div> <!-- multi-line text area --> <div id="txtboxmultilinelabel">enter the tags for the article</div> <div role="textbox" contenteditable="true" aria-multiline="true" aria-labelledby="txtboxmultilinelabel" aria-required="true"></div> semantic elements are more concise...
... <label for="txtbox">enter your five-di
git zipcode</label> <input type="text" placeholder="5-di
git zipcode" id="txtbox"/> <!-- multi-line text area --> <label for="txtboxmultiline">enter the tags for the article</label> <textarea id="txtboxmultiline" required></textarea> where a text field is read-only, indicated this by setting aria-readonly="true" on the element.
Operable - Accessibility
the conformance criteria under this guideline ensures that users are able to interact with di
gital technology using different input methods beyond a keyboard or mouse (including touchscreen, voice, device motion, or alternative input devices.
... understanding target size 2.5.6 concurrent input mechanisms (aaa) added in 2.1 make sure people can use and switch between different modes of input when interacting with di
gital content including touchscreen, keyboard, mouse, voice commands, or alternative input devices.
:hover - CSS: Cascading Style Sheets
whatwg html
github issues selectors level 4the definition of ':hover' in that specification.
... css working group drafts
github issues selectors level 3the definition of ':hover' in that specification.
CSS Overflow - 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.
align-content - 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.
align-items - 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.
align-self - 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.
<angle> - 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.
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.
animation-fill-mode - 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.
animation-iteration-count - 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.
animation-name - 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.
animation-play-state - 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.
animation-timing-function - 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.
animation - 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.
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.
background-attachment - 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.
background-blend-mode - 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.
background-clip - 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.
background-image - 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.
background-origin - 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.
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.
background - 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.
<basic-shape> - 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.
block-size - 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.
border-block-end-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.
border-block-end-style - 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.
border-block-end-width - 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.
border-block-end - 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.
border-block-start-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.
border-block-start-style - 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.
border-block-start-width - 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.
border-block-start - 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.
border-bottom-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.
border-bottom-left-radius - 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.
border-bottom-right-radius - 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.
border-bottom-style - 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.
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.
border-collapse - 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.
border-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.
border-image-outset - 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.
border-image-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.
border-image-slice - 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.
border-image-source - 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.
border-image-width - 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.
border-image - 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.
border-inline-end-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.
border-inline-end-style - 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.
border-inline-end-width - 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.
border-inline-end - 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.
border-inline-start-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.
border-inline-start-style - 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.
border-inline-start-width - 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.
border-inline-start - 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.
border-left-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.
border-left-width - 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.
border-radius - 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.
border-right-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.
border-right-width - 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.
border-spacing - 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.
border-style - 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.
border-top-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.
border-top-left-radius - 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.
border-top-right-radius - 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.
border-top-style - 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.
border-top-width - 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.
border-width - 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.
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.
box-decoration-break - 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.
box-shadow - 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.
box-sizing - 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.
calc() - 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.
caret-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.
clip-path - 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.
column-fill - 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.
column-rule-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.
column-rule-style - 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.
column-rule-width - 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.
column-rule - 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.
column-width - 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.
columns - 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.
conic-gradient() - 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.
counter-increment - 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.
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.
cursor - 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.
blur() - 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.
brightness() - 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.
contrast() - 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.
drop-shadow() - 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.
grayscale() - 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.
hue-rotate() - 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.
invert() - 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.
opacity() - 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.
saturate() - 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.
sepia() - 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.
filter - 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.
fit-content() - 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.
flex-basis - 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.
flex-direction - 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.
flex-flow - 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.
flex-grow - 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.
flex-shrink - 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.
flex-wrap - 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.
flex - 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.
float - 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.
font-feature-settings - 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.
font-kerning - 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.
font-size - 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.
font-synthesis - 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.
font-variant-ligatures - 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.
font-variant-numeric - 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.
font-variation-settings - 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.
font - 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.
gap (grid-gap) - 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.
<gradient> - 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.
grid-area - 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.
grid-auto-columns - 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.
grid-auto-flow - 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.
grid-auto-rows - 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.
grid-column-end - 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.
grid-column-start - 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.
grid-column - 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.
grid-row-end - 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.
grid-row-start - 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.
grid-row - 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.
grid-template-areas - 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.
grid-template-columns - 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.
grid-template-rows - 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.
grid-template - 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.
grid - 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.
height - 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.
hyphens - 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.
inline-size - 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.
<integer> - CSS: Cascading Style Sheets
syntax the <integer> data type consists of one or several decimal di
gits, 0 through 9 inclusive, optionally preceded by a single + or - sign.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
isolation - 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.
justify-content - 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.
justify-items - 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.
justify-self - 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.
left - 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.
line-height - 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.
linear-gradient() - 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.
list-style-image - 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.
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.
list-style-type - 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.
list-style - 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.
margin-block-end - 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.
margin-block-start - 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.
margin-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.
margin-inline-end - 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.
margin-inline-start - 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.
margin-left - 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.
margin-right - 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.
margin-top - 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.
margin - 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.
max-block-size - 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.
max-inline-size - 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.
max() - 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.
min-block-size - 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.
min-height - 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.
min-inline-size - 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.
min() - 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.
minmax() - 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.
opacity - 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.
order - 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.
outline-style - 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.
outline-width - 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.
outline - 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.
overflow-wrap - 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.
overflow-x - 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.
overflow-y - 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.
overflow - 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.
padding-block-end - 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.
padding-block-start - 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.
padding-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.
padding-inline-end - 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.
padding-inline-start - 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.
padding-left - 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.
padding-right - 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.
padding-top - 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.
padding - 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.
paint() - CSS: Cascading Style Sheets
<li>item 4</li> <li>item 5</li> <li>item 6</li> <li>item 7</li> <li>item 8</li> <li>item 9</li> <li>item 10</li> <li>item 11</li> <li>item 12</li> <li>item 13</li> <li>item 14</li> <li>item 15</li> <li>item 16</li> <li>item 17</li> <li>item 18</li> <li>item 19</li> <li>item 20</li> </ul> css.paintworklet.addmodule('https://mdn.
github.io/houdini-examples/csspaint/intro/worklets/hilite.js'); li { --boxcolor: hsla(55, 90%, 60%, 1.0); background-image: paint(hollowhighlights, stroke, 2px); } li:nth-of-type(3n) { --boxcolor: hsla(155, 90%, 60%, 1.0); background-image: paint(hollowhighlights, filled, 3px); } li:nth-of-type(3n+1) { --boxcolor: hsla(255, 90%, 60%, 1.0); background-image: paint(hollowhighligh...
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
perspective-origin - 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.
perspective - 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.
place-content - 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.
place-items - 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.
place-self - 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.
radial-gradient() - 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.
repeating-conic-gradient() - CSS: Cascading Style Sheets
{{embedinteractiveexample("pages/css/function-repeating-conic-gradient.html")}} 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.
repeating-linear-gradient() - 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.
repeating-radial-gradient() - 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.
resize - 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.
row-gap (grid-row-gap) - 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.
scroll-behavior - 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.
scroll-margin-block-end - 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.
scroll-margin-block-start - 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.
scroll-margin-block - 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.
scroll-margin-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.
scroll-margin-inline-end - 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.
scroll-margin-inline-start - 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.
scroll-margin-left - 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.
scroll-margin-right - 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.
scroll-margin-top - 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.
scroll-margin - 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.
scroll-padding-block-end - 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.
scroll-padding-block-start - 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.
scroll-padding-block - 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.
scroll-padding-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.
scroll-padding-inline-end - 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.
scroll-padding-inline-start - 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.
scroll-padding-inline - 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.
scroll-padding-left - 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.
scroll-padding-right - 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.
scroll-padding-top - 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.
scroll-padding - 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.
scroll-snap-type - 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.
shape-image-threshold - 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.
shape-margin - 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.
shape-outside - 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.
<string> - CSS: Cascading Style Sheets
recommendation explicit definition; allows 6-di
git unicode escaped characters.
... recommendation implicit definition; allows 4-di
git unicode escaped characters.
table-layout - 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.
text-align-last - 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.
text-align - 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.
text-decoration-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.
text-decoration-line - 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.
text-decoration-skip-ink - 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.
text-decoration-style - 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.
text-decoration - 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.
text-emphasis - 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.
text-indent - 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.
text-orientation - 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.
text-overflow - 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.
text-shadow - 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.
text-transform - 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.
text-underline-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.
top - 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.
perspective() - 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.
rotate3d() - 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.
rotateX() - 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.
rotateY() - 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.
rotateZ() - 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.
scale3d() - 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.
scaleZ() - 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.
skew() - 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.
skewX() - 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.
skewY() - 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.
translate3d() - 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.
translateZ() - 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.
transform-origin - 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.
transform-style - 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.
transform - 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.
transition-delay - 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.
transition-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.
transition-property - 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.
transition-timing-function - 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.
transition - 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.
var() - 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.
vertical-align - 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.
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.
white-space - 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.
width - 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.
word-break - 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.
word-spacing - 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.
writing-mode - 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.
z-index - 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.
Audio and video manipulation - Developer guides
note: you can find the source code of this demo on
github (see it live also).
...context.listener.setposition(0, 0, 0); note: you can find an example on our
github repository (see it live also).
A hybrid approach - Developer guides
feel free to check out the source code on
github.
... so far there is not much to see for mobile, since things are still in the formative stages of development, but you can always watch the new mozilla.org grow up on
github.
<a>: The Anchor 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.
<area> - 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.
<data> - 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.
<footer> - 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.
<form> - 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.
<header> - 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.
<hgroup> - 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.
<input type="button"> - 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.
<input type="checkbox"> - 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.
<input type="image"> - 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.
<input type="radio"> - 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.
<input type="range"> - 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.
<input type="reset"> - 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.
<input type="search"> - 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.
<input type="tel"> - 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.
<input type="text"> - 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.
<input type="time"> - 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.
<input type="week"> - 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.
<ins> - 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.
<label> - 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.
<legend> - 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.
<li> - 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.
<main> - 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.
<map> - 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.
<object> - 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.
<optgroup> - 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.
<rb>: The Ruby Base element - HTML: Hypertext Markup Language
{{embedinteractiveexample("pages/tabbed/rb.html", "tabbed-standard")}} 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.
<ruby> - 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.
<s> - 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.
<select>: The HTML Select element - HTML: Hypertext Markup Language
the html <select> element represents a control that provides a menu of options: 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.
<span> - 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.
<time> - 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.
<wbr> - 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.
accesskey - 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.
class - 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.
contenteditable - 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.
data-* - 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.
dir - 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.
hidden - 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.
lang - 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.
spellcheck - 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.
style - 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.
tabindex - 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.
title - 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.
Preloading content with rel="preload" - HTML: Hypertext Markup Language
you can see the full example source code on
github (also see it live): <head> <meta charset="utf-8"> <title>web font example</title> <link rel="preload" href="fonts/cicle_fina-webfont.woff2" as="font" type="font/woff2" crossorigin> <link rel="preload" href="fonts/zantroke-webfont.woff2" as="font" type="font/woff2" crossorigin> <link href="style.css" rel="stylesheet"> </head> <body> … </body> not only are we providing the mime...
... let's look at an example (see it on
github — source code, live example): <head> <meta charset="utf-8"> <title>responsive preload example</title> <link rel="preload" href="bg-image-narrow.png" as="image" media="(max-width: 600px)"> <link rel="preload" href="bg-image-wide.png" as="image" media="(min-width: 601px)"> <link rel="stylesheet" href="main.css"> </head> <body> <header> <h1>my site</h1> </header> <script> var mediaquerylist = window.matchmedia("(max...
Microformats - HTML: Hypertext Markup Language
><br> <div class="p-location h-card"> <div> <span class="p-name">mozilla</span> </div> <div> <span class="p-street-address">1120 nw couch st</span>, <span class="p-locality">portland</span>, <span class="p-region">oregon</span>, <span class="p-country">us</span> </div> <data class="p-latitude" value="45.52345"></data> <data class="p-lon
gitude" value="-122.682677"></data> </div> <div class="e-content">come join us </div> <div> <span class="p-author h-card"><a class="u-url p-name" href="https://aaronparecki.com">aaron parecki</a></span> published this <a href="https://aaronparecki.com/2019/06/29/1/" class="u-url">event </a>on <time class="dt published" datetime="2019-05-25t18:00:00-07:00">may 5th, 2019</time> ...
... "lang": "en" } ], "location": [ { "type": [ "h-card" ], "properties": { "name": [ "mozilla" ], p-street-address: [ "1120 nw couch st" ] "locality": [ "portland" ], "region": [ "oregon" ], "country": [ "us" ], "latitude": [ "45.52345" ], "lon
gitude": [ "-122.682677" ] }, "lang": "en", "value": "mozilla" } ] }, "lang": "en" } ], ...
Index - HTTP
if one or several keys are pinned and none of them are used by the server, the browser will not accept the response as le
gitimate, and will not display it.
... 107 trailer http, reference, header the trailer response header allows the sender to include additional fields at the end of chunked messages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, di
gital signature, or post-processing status.
Regular expressions - JavaScript
for example, distinguishing between letters and di
gits.
... within non-capturing parentheses (?: , the regular expression looks for three numeric characters \d{3} or | a left parenthesis \( followed by three di
gits \d{3}, followed by a close parenthesis \), (end non-capturing parenthesis )), followed by one dash, forward slash, or decimal point and when found, remember the character ([-\/\.]), followed by three di
gits \d{3}, followed by the remembered match of a dash, forward slash, or decimal point \1, followed by four di
gits \d{4}.
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.
extends - 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.
static - 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.
Default parameters - 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.
Method definitions - 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.
The arguments object - 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.
getter - 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.
Rest parameters - 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.
setter - 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.
Array.prototype[@@iterator]() - JavaScript
function lo
giterable(it) { if (!(symbol.iterator in object.getprototypeof(it) /* or "symbol.iterator in object.__proto__" or "it[symbol.iterator]" */)) { console.log(it, ' is not an iterable object...'); return; } var iterator = it[symbol.iterator](); // your browser must support for..of loop // and let-scoped variables in for loops // const and var could also be used for (let letter of i...
...terator) { console.log(letter); } } // array lo
giterable(['a', 'b', 'c']); // a // b // c // string lo
giterable('abc'); // a // b // c lo
giterable(123); // 123 " is not an iterable object..." specifications specification ecmascript (ecma-262)the definition of 'array.prototype[@@iterator]()' in that specification.
Array.prototype.concat() - 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.
Array.prototype.copyWithin() - 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.
Array.prototype.entries() - 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.
Array.prototype.every() - 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.
Array.prototype.fill() - 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.
Array.prototype.filter() - 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.
Array.prototype.flat() - 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.
Array.prototype.flatMap() - 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.
Array.prototype.forEach() - 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.
Array.from() - 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.
Array.prototype.includes() - 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.
Array.prototype.join() - 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.
Array.prototype.keys() - 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.
Array.prototype.length - 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.
Array.prototype.pop() - 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.
Array.prototype.push() - 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.
Array.prototype.reverse() - 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.
Array.prototype.shift() - 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.
Array.prototype.slice() - JavaScript
the source for this interactive demo is stored in a
github repository.
... if you'd like to contribute to the interactive demo project, please clone https://
github.com/mdn/interactive-examples and send us a pull request.
Array.prototype.sort() - 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.
Array.prototype.splice() - 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.
Array - JavaScript
javascript properties that begin with a di
git cannot be referenced with dot notation and must be accessed using bracket notation.
... let years = [1950, 1960, 1970, 1980, 1990, 2000, 2010] console.log(years.0) // a syntax error console.log(years[0]) // works properly renderer.3d.settexture(model, 'character.png') // a syntax error renderer['3d'].settexture(model, 'character.png') // works properly in the 3d example, '3d' had to be quoted (because it begins with a di
git).
ArrayBuffer() 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.
ArrayBuffer.prototype.byteLength - 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.
ArrayBuffer.isView() - 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.
ArrayBuffer.prototype.slice() - 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.
Atomics.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.
Atomics.and() - 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.
Atomics.compareExchange() - 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.
Atomics.exchange() - 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.
Atomics.isLockFree() - 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.
Atomics.load() - 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.
Atomics.or() - 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.
Atomics.store() - 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.
Atomics.sub() - 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.
Atomics.xor() - 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.
BigInt.asIntN() - 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.
BigInt.asUintN() - 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.
BigInt.prototype.toString() - 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.
BigInt.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.
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.
Boolean.prototype.toString() - 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.
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.
DataView() 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.
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.
DataView.prototype.byteLength - 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.
DataView.prototype.byteOffset - 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.
DataView.prototype.getBigInt64() - 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.
DataView.prototype.getBigUint64() - 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.
DataView.prototype.getFloat32() - 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.
DataView.prototype.getFloat64() - 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.
DataView.prototype.getInt16() - 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.
DataView.prototype.getInt32() - 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.
DataView.prototype.getInt8() - 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.
DataView.prototype.getUint16() - 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.
DataView.prototype.getUint32() - 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.
DataView.prototype.getUint8() - 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.
DataView.prototype.setBigInt64() - 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.
DataView.prototype.setBigUint64() - 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.
DataView.prototype.setFloat32() - 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.
DataView.prototype.setFloat64() - 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.
DataView.prototype.setInt16() - 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.
DataView.prototype.setInt32() - 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.
DataView.prototype.setInt8() - 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.
DataView.prototype.setUint16() - 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.
DataView.prototype.setUint32() - 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.
DataView.prototype.setUint8() - 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.
Date() 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.
Date.UTC() - 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.
Date.prototype.getDate() - 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.
Date.prototype.getDay() - 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.
Date.prototype.getHours() - 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.
Date.prototype.getMilliseconds() - 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.
Date.prototype.getMonth() - 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.
Date.prototype.getSeconds() - 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.
Date.prototype.getTime() - 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.
Date.prototype.getTimezoneOffset() - 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.
Date.prototype.getUTCDay() - 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.
Date.prototype.getUTCHours() - 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.
Date.prototype.getUTCMonth() - 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.
Date.prototype.getYear() - JavaScript
backward compatibility behavior in javascript 1.2 and earlier the getyear() method returns either a 2-di
git or 4-di
git year: for years between and including 1900 and 1999, the value returned by getyear() is the year minus 1900.
... for years less than 1900 or greater than 1999, the value returned by getyear() is the four-di
git year.
Date.parse() - 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.
Date.prototype.setDate() - 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.
Date.prototype.setFullYear() - 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.
Date.prototype.setHours() - 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.
Date.prototype.setMilliseconds() - 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.
Date.prototype.setMinutes() - 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.
Date.prototype.setSeconds() - 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.
Date.prototype.setTime() - 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.
Date.prototype.setUTCDate() - 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.
Date.prototype.setUTCFullYear() - 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.
Date.prototype.setUTCHours() - 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.
Date.prototype.setUTCMilliseconds() - 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.
Date.prototype.setUTCMinutes() - 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.
Date.prototype.setUTCMonth() - 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.
Date.prototype.setUTCSeconds() - 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.
Date.prototype.toISOString() - 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.
Date.prototype.toJSON() - 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.
Date.prototype.toTimeString() - 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.
Function() 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.
Function.prototype.apply() - 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.
Function.prototype.call() - 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.
Function.length - 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.
Function.name - 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.
Function.prototype.toString() - 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.
Infinity - JavaScript
property attributes of infinity writable no enumerable no configurable no 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.
Intl.Collator() 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.
Intl.Collator.prototype.compare() - 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.
Intl.Collator.prototype.resolvedOptions() - 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.
Intl.Collator.supportedLocalesOf() - 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.
Intl.Collator - 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.
Intl.DateTimeFormat.prototype.format() - 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.
Intl.DateTimeFormat.supportedLocalesOf() - 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.
Intl.DisplayNames() 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.
Intl.DisplayNames - 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.
Intl.ListFormat() 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.
Intl.ListFormat - 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.
Intl.Locale.prototype.maximize() - 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.
Intl.Locale.prototype.minimize() - 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.
Intl.Locale.prototype.toString() - 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.
Intl.NumberFormat.prototype.format() - 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.
Intl.NumberFormat.supportedLocalesOf() - 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.
Intl.RelativeTimeFormat.prototype.format() - 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.
Intl.RelativeTimeFormat.supportedLocalesOf() - 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.
Intl.RelativeTimeFormat - 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.
Intl.getCanonicalLocales() - 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.
JSON.stringify() - 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.
Map.prototype[@@iterator]() - 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.
Map.prototype[@@toStringTag] - 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.
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.
Map.prototype.delete() - 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.
Map.prototype.entries() - 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.
Map.prototype.forEach() - 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.
Map.prototype.get() - 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.
Map.prototype.has() - 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.
Map.prototype.keys() - 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.
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.
Map.prototype.size - 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.
Map.prototype.values() - 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.
Math.E - JavaScript
math.e=e≈2.718\mathtt{\mi{math.e}} = e \approx 2.718 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.
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.
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.
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.
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.
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.
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.
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.
Math.abs() - JavaScript
the math.abs() function returns the absolute value of a number, that is math.abs(x)=|x|={xifx>00ifx=0-xifx<0{\mathtt{\operatorname{math.abs}(z)}} = {|z|} = \begin{cases} x & \text{if} \quad x \geq 0 \\ x & \text{if} \quad x < 0 \end{cases} the source for this interactive example is stored in a
github repository.
... 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.
Math.acos() - JavaScript
the math.acos() function returns the arccosine (in radians) of a number, that is ∀x∊[-1;1],math.acos(x)=arccos(x)= the unique y∊[0;π]such thatcos(y)=x\forall x \in [{-1};1],\;\mathtt{\operatorname{math.acos}(x)} = \arccos(x) = \text{ the unique } \; y \in [0; \pi] \, \text{such that} \; \cos(y) = x the source for this interactive example is stored in a
github repository.
... 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.
Math.acosh() - JavaScript
the math.acosh() function returns the hyperbolic arc-cosine of a number, that is ∀x≥1,math.acosh(x)=arcosh(x)= the unique y≥0such thatcosh(y)=x\forall x \geq 1, \mathtt{\operatorname{math.acosh}(x)} = \operatorname{arcosh}(x) = \text{ the unique } \; y \geq 0 \; \text{such that} \; \cosh(y) = x the source for this interactive example is stored in a
github repository.
... 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.
Math.asin() - JavaScript
e math.asin() function returns the arcsine (in radians) of a number, that is ∀x∊[-1;1],math.asin(x)=arcsin(x)= the unique y∊[-π2;π2]such thatsin(y)=x\forall x \in [{-1};1],\;\mathtt{\operatorname{math.asin}(x)} = \arcsin(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \sin(y) = x the source for this interactive example is stored in a
github repository.
... 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.
Math.asinh() - JavaScript
the math.asinh() function returns the hyperbolic arcsine of a number, that is math.asinh(x)=arsinh(x)= the unique ysuch thatsinh(y)=x\mathtt{\operatorname{math.asinh}(x)} = \operatorname{arsinh}(x) = \text{ the unique } \; y \; \text{such that} \; \sinh(y) = x the source for this interactive example is stored in a
github repository.
... 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.
Math.atan() - JavaScript
the math.atan() function returns the arctangent (in radians) of a number, that is math.atan(x)=arctan(x)= the unique y∊[-π2;π2]such thattan(y)=x\mathtt{\operatorname{math.atan}(x)} = \arctan(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \tan(y) = x the source for this interactive example is stored in a
github repository.
... 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.
Math.atan2() - 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.
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.
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.
Math.ceil() - 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.
Math.clz32() - 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.
Math.cos() - 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.
Math.cosh() - JavaScript
the math.cosh() function returns the hyperbolic cosine of a number, that can be expressed using the constant e: math.cosh(x)=ex+e-x2\mathtt{\operatorname{math.cosh(x)}} = \frac{e^x + e^{-x}}{2} the source for this interactive example is stored in a
github repository.
... 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.
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.
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.
Math.floor() - 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.
Math.hypot() - JavaScript
the math.hypot() function returns the square root of the sum of squares of its arguments, that is: math.hypot(v1,v2,…,vn)=∑i=1nvi2=v12+v22+…+vn2\mathtt{\operatorname{math.hypot}(v_1, v_2, \dots, v_n)} = \sqrt{\sum_{i=1}^n v_i^2} = \sqrt{v_1^2 + v_2^2 + \dots + v_n^2} the source for this interactive example is stored in a
github repository.
... 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.
Math.imul() - 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.
Math.log() - 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.
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.
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.
Math.max() - 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.
Math.min() - 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.
Math.pow() - 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.
Math.round() - 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.
Math.sign() - 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.
Math.sin() - 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.
Math.sinh() - JavaScript
the math.sinh() function returns the hyperbolic sine of a number, that can be expressed using the constant e: math.sinh(x)=ex-e-x2\mathtt{\operatorname{math.sinh(x)}} = \frac{e^x - e^{-x}}{2} the source for this interactive example is stored in a
github repository.
... 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.
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.
Math.tan() - 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.
NaN - JavaScript
property attributes of nan writable no enumerable no configurable no 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.
Number.EPSILON - 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.
Number.MAX_SAFE_INTEGER - 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.
Number.MAX_VALUE - 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.
Number.MIN_SAFE_INTEGER - 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.
Number.MIN_VALUE - 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.
Number.NEGATIVE_INFINITY - 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.
Number.POSITIVE_INFINITY - 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.
Number.isFinite() - 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.
Number.isInteger() - 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.
Number.isNaN() - 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.
Number.isSafeInteger() - 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.
Number.parseFloat() - 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.
Number.parseInt() - 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.
Number.prototype.toString() - 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.
Number.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.
Number - JavaScript
instance methods number.prototype.toexponential(fractiondi
gits) returns a string representing the number in exponential notation.
... number.prototype.tofixed(di
gits) returns a string representing the number in fixed-point notation.
Object.assign() - 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.
Object.create() - 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.
Object.defineProperties() - 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.
Object.defineProperty() - 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.
Object.entries() - 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.
Object.freeze() - 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.
Object.fromEntries() - 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.
Object.getOwnPropertyDescriptor() - 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.
Object.getOwnPropertySymbols() - 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.
Object.getPrototypeOf() - 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.
Object.prototype.hasOwnProperty() - 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.
Object.isExtensible() - 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.
Object.isFrozen() - 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.
Object.prototype.isPrototypeOf() - 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.
Object.isSealed() - 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.
Object.keys() - 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.
Object.preventExtensions() - 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.
Object.prototype.propertyIsEnumerable() - 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.
Object.seal() - 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.
Object.prototype.toLocaleString() - 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.
Object.prototype.toString() - 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.
Object.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.
Object.values() - JavaScript
(the only difference is that a for...in loop enumerates properties in the prototype chain as well.) 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.
Promise() constructor - JavaScript
the source for this interactive demo is stored in a
github repository.
... if you'd like to contribute to the interactive demo project, please clone https://
github.com/mdn/interactive-examples and send us a pull request.
Promise.all() - JavaScript
the source for this interactive demo is stored in a
github repository.
... if you'd like to contribute to the interactive demo project, please clone https://
github.com/mdn/interactive-examples and send us a pull request.
Promise.prototype.catch() - 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.
Promise.race() - JavaScript
the source for this interactive demo is stored in a
github repository.
... if you'd like to contribute to the interactive demo project, please clone https://
github.com/mdn/interactive-examples and send us a pull request.
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.
Promise.prototype.then() - JavaScript
the source for this interactive demo is stored in a
github repository.
... if you'd like to contribute to the interactive demo project, please clone https://
github.com/mdn/interactive-examples and send us a pull request.
handler.apply() - 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.
handler.construct() - 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.
handler.defineProperty() - 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.
handler.deleteProperty() - 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.
handler.get() - 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.
handler.getOwnPropertyDescriptor() - 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.
handler.getPrototypeOf() - 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.
handler.has() - 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.
handler.isExtensible() - 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.
handler.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.
handler.preventExtensions() - 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.
handler.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.
handler.setPrototypeOf() - 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.
Reflect.apply() - 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.
Reflect.construct() - 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.
Reflect.defineProperty() - 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.
Reflect.deleteProperty() - 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.
Reflect.get() - 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.
Reflect.getOwnPropertyDescriptor() - 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.
Reflect.getPrototypeOf() - 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.
Reflect.has() - 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.
Reflect.isExtensible() - 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.
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.
Reflect.preventExtensions() - 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.
Reflect.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.
Reflect.setPrototypeOf() - 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.
RegExp.prototype[@@match]() - 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.
RegExp.prototype[@@matchAll]() - 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.
RegExp.prototype[@@replace]() - 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.
RegExp.prototype[@@search]() - 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.
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.
RegExp.prototype[@@split]() - 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.
RegExp() 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.
RegExp.prototype.exec() - 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.
RegExp.prototype.flags - 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.
RegExp.prototype.global - 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.
RegExp.prototype.ignoreCase - 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.
RegExp.prototype.multiline - 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.
RegExp.prototype.source - 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.
RegExp.prototype.sticky - 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.
RegExp.prototype.test() - 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.
RegExp.prototype.toString() - 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.
RegExp.prototype.unicode - 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.
Set.prototype[@@iterator]() - 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.
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.
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.
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.
Set.prototype.delete() - 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.
Set.prototype.entries() - 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.
Set.prototype.forEach() - 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.
Set.prototype.has() - 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.
Set.prototype.size - 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.
Set.prototype.values() - 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.
SharedArrayBuffer() 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.
SharedArrayBuffer.prototype.byteLength - 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.
SharedArrayBuffer.prototype.slice() - 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.
String.prototype[@@iterator]() - 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.
String.prototype.charAt() - 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.
String.prototype.charCodeAt() - 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.
String.prototype.codePointAt() - 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.
String.prototype.concat() - 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.
String.prototype.endsWith() - 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.
String.fromCodePoint() - 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.
String.prototype.includes() - 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.
String.prototype.indexOf() - 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.
String.prototype.lastIndexOf() - 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.
String.prototype.localeCompare() - 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.
String.prototype.match() - 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.
String.prototype.matchAll() - 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.
String.prototype.normalize() - 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.
String.prototype.padEnd() - 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.
String.prototype.padStart() - 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.
String.prototype.repeat() - 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.
String.prototype.replaceAll() - 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.
String.prototype.search() - 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.
String.prototype.slice() - 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.
String.prototype.substr() - 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.
String.prototype.substring() - 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.
String.prototype.toLocaleLowerCase() - 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.
String.prototype.toLocaleUpperCase() - 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.
String.prototype.toLowerCase() - 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.
String.prototype.toUpperCase() - 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.
String.prototype.trim() - 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.
String.prototype.trimEnd() - 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.
String - JavaScript
console.log(eval(s2.valueof())) // returns the number 4 escape notation special characters can be encoded using escape notation: code output \xxx (where xxx is 1–3 octal di
gits; range of 0–377) iso-8859-1 character / unicode code point between u+0000 and u+00ff \' single quote \" double quote \\ backslash \n new line \r carriage return \v vertical tab \t tab \b backspace \f form feed \uxxxx (where xxxx is 4 hex di
gits; range of 0x0000–0xffff) u...
...\u{xxxxxx} (where x…xxxxxx is 1–6 hex di
gits; range of 0x0–0x10ffff) utf-32 code unit / unicode code point between u+0000 and u+10ffff \xxx (where xx is 2 hex di
gits; range of 0x00–0xff) iso-8859-1 character / unicode code point between u+0000 and u+00ff long literal strings sometimes, your code will include strings which are very long.
Symbol() 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.
Symbol.asyncIterator - 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.
Symbol.prototype.description - 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.
Symbol.for() - 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.
Symbol.hasInstance - 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.
Symbol.isConcatSpreadable - 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.
Symbol.iterator - 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.
Symbol.keyFor() - 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.
Symbol.match - 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.
Symbol.matchAll - 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.
Symbol.replace - 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.
Symbol.search - 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.
Symbol.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.
Symbol.split - 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.
Symbol.toPrimitive - 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.
Symbol.prototype.toString() - 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.
Symbol.toStringTag - 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.
Symbol.unscopables - 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.
TypedArray.BYTES_PER_ELEMENT - 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.
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.
TypedArray.prototype.byteLength - 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.
TypedArray.prototype.copyWithin() - 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.
TypedArray.prototype.entries() - 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.
TypedArray.prototype.every() - 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.
TypedArray.prototype.filter() - 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.
TypedArray.prototype.find() - 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.
TypedArray.prototype.findIndex() - 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.
TypedArray.from() - 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.
TypedArray.prototype.includes() - 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.
TypedArray.prototype.indexOf() - 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.
TypedArray.prototype.keys() - 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.
TypedArray.prototype.lastIndexOf() - 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.
TypedArray.prototype.length - 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.
TypedArray.prototype.map() - 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.
TypedArray.name - 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.
TypedArray.of() - 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.
TypedArray.prototype.reduce() - 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.
TypedArray.prototype.reverse() - 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.
TypedArray.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.
TypedArray.prototype.slice() - 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.
TypedArray.prototype.sort() - 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.
TypedArray.prototype.subarray() - 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.
TypedArray.prototype.toString() - 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.
TypedArray.prototype.values() - 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.
WeakMap.prototype.delete() - 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.
WeakMap.prototype.get() - 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.
WeakMap.prototype.has() - 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.
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.
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.
WeakSet.prototype.delete() - 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.
WeakSet.prototype.has() - 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.
WebAssembly.Global() constructor - JavaScript
.wasm'), { js: { global } }) .then(({instance}) => { asserteq("getting initial value from wasm", instance.exports.getglobal(), 0); global.value = 42; asserteq("getting js-updated value from wasm", instance.exports.getglobal(), 42); instance.exports.incglobal(); asserteq("getting wasm-updated value from js", global.value, 43); }); note: you can see the example running live on
github; see also the source code.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Global - JavaScript
.wasm'), { js: { global } }) .then(({instance}) => { asserteq("getting initial value from wasm", instance.exports.getglobal(), 0); global.value = 42; asserteq("getting js-updated value from wasm", instance.exports.getglobal(), 42); instance.exports.incglobal(); asserteq("getting wasm-updated value from js", global.value, 43); }); note: you can see the example running live on
github; see also the source code.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Instance.prototype.exports - JavaScript
var importobject = { imports: { imported_func: function(arg) { console.log(arg); } } }; webassembly.instantiatestreaming(fetch('simple.wasm'), importobject) .then(obj => obj.instance.exports.exported_func()); note: you can also find this example as instantiate-streaming.html on
github (view it live also).
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Memory() constructor - JavaScript
the following example (see memory.html on
github, and view it live also) fetches and instantiates the loaded memory.wasm byte code using the webassembly.instantiatestreaming() method, while importing the memory created in the line above.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Memory.prototype.buffer - JavaScript
examples using buffer the following example (see memory.html on
github, and view it live also) fetches and instantiates the loaded memory.wasm byte code using the webassembly.instantiatestreaming() method, while importing the memory created in the line above.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Memory - JavaScript
the following example (see memory.html on
github, and view it live also) fetches and instantiates the loaded memory.wasm byte code using the webassembly.instantiatestreaming() method, while importing the memory created in the line above.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Module.exports() - JavaScript
examples using exports the following example (see our index-compile.html demo on
github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compilestreaming() method and then sends it to a worker using postmessage().
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Module - JavaScript
examples sending a compiled module to a worker the following example (see our index-compile.html demo on
github, and view it live also) compiles the loaded simple.wasm byte code using the webassembly.compilestreaming() method and then sends the resulting module instance to a worker using postmessage().
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.Table.prototype.get() - JavaScript
examples using get the following example (see table.html on
github, and view it live also) compiles and instantiates the loaded table.wasm byte code using the webassembly.instantiatestreaming() method.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.compileStreaming() - JavaScript
examples compile streaming the following example (see our compile-streaming.html demo on
github, and view it live also) directly streams a .wasm module from an underlying source then compiles it to a webassembly.module object.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly.instantiateStreaming() - JavaScript
examples instantiating streaming the following example (see our instantiate-streaming.html demo on
github, and view it live also) directly streams a .wasm module from an underlying source then compiles and instantiates it, the promise fulfilling with a resultobject.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
WebAssembly - JavaScript
examples stream a .wasm module then compile and instantiate it the following example (see our instantiate-streaming.html demo on
github, and view it live also) directly streams a .wasm module from an underlying source then compiles and instantiates it, the promise fulfilling with a resultobject.
...if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
decodeURI() - 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.
decodeURIComponent() - 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.
encodeURI() - 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.
encodeURIComponent() - 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.
eval() - 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.
globalThis - 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.
isFinite() - 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.
null - 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.
undefined - JavaScript
property attributes of undefined writable no enumerable no configurable no 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.
Addition (+) - 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.
Addition 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.
Assignment (=) - JavaScript
chaining the assignment operator is possible in order to assign a single value to multiple variables 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.
Bitwise AND (&) - 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.
Bitwise 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.
Bitwise NOT (~) - 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.
Bitwise OR (|) - 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.
Bitwise OR 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.
Bitwise XOR (^) - 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.
Bitwise XOR 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.
Comma operator (,) - 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.
Conditional (ternary) operator - 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.
Decrement (--) - 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.
Destructuring 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.
Division (/) - 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.
Division 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.
Equality (==) - 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.
Exponentiation (**) - 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.
Exponentiation 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.
Greater than (>) - 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.
Greater than or equal (>=) - 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.
Grouping operator ( ) - 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.
Increment (++) - 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.
Inequality (!=) - 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.
Left shift (<<) - 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.
Left shift 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.
Less than (<) - 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.
Less than or equal (<=) - 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.
Logical AND (&&) - 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.
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.
Logical NOT (!) - 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.
Logical OR (||) - 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.
Logical OR 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.
Logical nullish 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.
Multiplication (*) - 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.
Multiplication 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.
Nullish coalescing operator (??) - 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.
Object initializer - 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.
Operator precedence - 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.
Optional chaining (?.) - 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.
Property accessors - 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.
Remainder (%) - 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.
Remainder 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.
Right shift (>>) - 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.
Right shift 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.
Spread syntax (...) - 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.
Strict equality (===) - 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.
Strict inequality (!==) - 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.
Subtraction (-) - 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.
Subtraction 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.
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.
Unary plus (+) - 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.
Unsigned right shift (>>>) - 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.
Unsigned right shift 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.
class expression - 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.
delete operator - 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.
function* expression - 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.
Function expression - 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.
in operator - 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.
instanceof - 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.
new.target - 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 - 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.
typeof - 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.
void operator - 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.
yield* - 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.
yield - 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.
empty - 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.
async function - JavaScript
the source for this interactive demo is stored in a
github repository.
... if you'd like to contribute to the interactive demo project, please clone https://
github.com/mdn/interactive-examples and send us a pull request.
block - JavaScript
the block is delimited by a pair of braces ("curly brackets") and may optionally be labelled: 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.
break - 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.
class - 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.
const - 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.
continue - 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.
do...while - 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...in - 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...of - 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 - 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.
function* - 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.
function declaration - 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.
if...else - 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.
label - 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.
let - 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 - 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.
switch - 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.
throw - 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.
try...catch - 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.
var - 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.
while - 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.
Web video codec guide - Web media technologies
firefox internet explorer opera safari av1 support 70 75 67 no 57 no container support isobmff[1], mpeg-ts, mp4, webm rtp / webrtc compatible yes supporting/maintaining organization alliance for open media specification https://aomediacodec.
github.io/av1-spec/av1-spec.pdf licensing royalty-free, open standard [1] iso base media file format [2] see the av1 specification's tables of levels, which describe the maximum resolutions and rates at each level.
... avc is highly flexible, with a number of profiles with varying capabilities; for example, the constrained baseline profile is designed for use in videoconferencing and mobile scenarios, using less bandwidth than the main profile (which is used for standard definition di
gital tv in some regions) or the high profile (used for blu-ray disc video).
Media type and format guide: image, audio, and video content - Web media technologies
guides concepts di
gital audio concepts an introduction to how audio is converted into di
gital form and stored for use by computers.
... di
gital video concepts a guide to fundamental concepts involved with di
gital video as used on the web, including basics about color formats, chroma subsampling, how human perception influences video coding, and so forth.
Mobile first - Progressive web apps (PWAs)
you can see my mobile first example running live, or grab the code to play with it on
github.
...in this sample app, i have used a couple of the built-in features to: include an install button that works for firefox os, firefox aurora, chrome and ios app installs (as explained on the install
github page).
Web security
weak signature algorithms the strength of the hash algorithm used in signing a di
gital certificate is a critical element of the security of the certificate.
...ossary terms block cipher mode of operation certificate authority challenge-response authentication cipher cipher suite ciphertext cors cors-safelisted request header cors-safelisted response header cross-site scripting cryptanalysis cryptographic hash function cryptography csp csrf decryption di
gital certificate dtls encryption forbidden header name forbidden response header name hash hmac hpkp hsts https key mitm owasp preflight request public-key cryptography reporting directive robots.txt same-origin policy session hijacking sql injection symmetric-key cryptography ...
Compiling an Existing C Module to WebAssembly - WebAssembly
the source for the webp codec is written in c and available on
github as well as some extensive api documentation.
... $
git clone https://
github.com/webmproject/libwebp to start off simple, expose webpgetencoderversion() from encode.h to javascript by writing a c file called webp.c: #include "emscripten.h" #include "src/webp/encode.h" emscripten_keepalive int version() { return webpgetencoderversion(); } this is a good simple program to test whether you can get the source code of libwebp to compile, as it doesn't require any parameters or complex data structures to invoke this function.
Input Controls - Archive of obsolete content
seamonkey or waterfox and remote-xul-manager from https://
github.com/jvillalobos/remote-xul-manager find files example so far : source view in the next section, we will look at some elements for entering and selecting numbers.
window - Archive of obsolete content
tributes accelerated, chromemargin, disablechrome, disablefastfind, drawintitlebar, fullscreenbutton, height, hidechrome, id, lightweightthemes, lightweightthemesfooter, screenx, screeny, sizemode, title, width, windowtype examples <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <!-- run this example using copy & paste in this live xul editor: https://
github.com/km-200/xul --> <!-- extremely recommended to keep this css include!!
Mozprocess - Archive of obsolete content
basic usage: process = processhandler(['command', '-line', 'arguments'], cwd=none, # working directory for cmd; defaults to none env={}, # environment to use for the process; defaults to os.environ ) exit_code = process.waitforfinish(timeout=60) # seconds see an example in https://
github.com/mozilla/mozbase/b...profilepath.py processhandler may be subclassed to handle process timeouts (by overriding the ontimeout() method), process completion (by overriding onfinish()), and to process the command output (by overriding processoutputline()).
Mozilla release FAQ - Archive of obsolete content
this list will be updated with time, but (according to netscape.public.mozilla.general) the following platforms have been built successfully: solaris 2.4, 2.5, 2.6 freebsd 2.2, 3.0 linux/intel and alpha 2.0, 2.1 macos winnt 4.0 irix 5.3, 6.2, 6.3, 6.4 win95, win98 di
gital unix 4.0 netbsd openbsd bsdi hp/ux 9.05, 10.20, 11.0 (see 2.7) hurd .03 dg/ux mac os x i'm *still* having problems getting mozilla to build on my platform!
The First Install Problem - Archive of obsolete content
example: [hkey_local_machine\software\mozillaplugins\]\@mycompany.com/myapplication,version=5.01\mimetypes\application/x-myapp] suffixes=app suffixes -- a subkey containing string values (reg_sz) representing all the suffixes (3 di
git extensions) supported by this module.
Accessible multimedia - Learn web development
you can find the example that goes along with this article on
github, written by ian devlin (see the source code too.) this example uses some javascript to allow users to choose between different subtitles.
Cascade and inheritance - Learn web development
the amount of specificity a selector has is measured using four different values (or components), which can be thought of as thousands, hundreds, tens and ones — four single di
gits in four columns: thousands: score one in this column if the declaration is inside a style attribute, aka inline styles.
Flexbox - Learn web development
to get started, you should make a local copy of the first starter file — flexbox0.html from our
github repo — load it in a modern browser (like firefox or chrome), and have a look at the code in your code editor.
Positioning - Learn web development
we'd like you to follow along with the exercises on your local computer, if possible — grab a copy of 0_basic-flow.html from our
github repo (source code here) and use that as a starting point.
Responsive design - Learn web development
on narrow screens the layout displays the boxes stacked on top of one another: on wider screens they move to two columns: note: you can find the live example and source code for this example on
github.
Fundamental text and font styling - Learn web development
but it was a rare occasion such as this that he did.</p> you can find the finished example on
github (see also the source code.) color the color property sets the color of the foreground content of the selected elements (which is usually the text, but can also include a couple of other things, such as an underline or overline placed on text using the text-decoration property).
What text editors are available? - Learn web development
extensible atom mit/bsd free windows, mac, linux forum online manual yes bluefish gpl 3 free windows, mac, linux mailing list, wiki online manual yes brackets mit/bsd free windows, mac, linux forum, irc
github wiki yes coda closed source $99 mac twitter, forum, e-mail ebook yes codelobster closed source free windows, mac, linux forum, e-mail no end user doc yes emacs gpl 3 free windows, mac, linux faq, mailing list, news group online manual yes espresso closed source $75 mac faq, e-mail no end...
What is a Domain Name? - Learn web development
a label is a case-insensitive character sequence anywhere from one to sixty-three characters in length, containing only the letters a through z, di
gits 0 through 9, and the - character (which may not be the first or last character in the label).
Creating a Firefox sidebar
see also bootstrap addon demo which adds a sidebar with browser for html content: https://gist.
github.com/noitidart/8728393 ...
Configuring Build Options
for information on installing and configuring mozconfigwrapper, see https://
github.com/ahal/mozconfigwrapper.
ESLint
vcs hooks hooks are available for mercurial &
git, see using a vcs hook for more details.
Gecko Logging
subsequent characters may be any of those, or an ascii di
git.
SVG Guidelines
however, there are some utilities that cover parts of this document: mostly complete command line tool: https://
github.com/svg/svgo alternatives to svgo: https://
github.com/razrfalcon/svgcleaner https://
github.com/scour-project/scour gui for command line tool (use with "prettify code" and "remove <title>" options on): https://jakearchibald.
github.io/svgomg/ good alternative to svgo/svgomg: https://petercollingridge.appspot.com/svg-editor fixes the excessive number precision: https://simon.htm...
Linux compatibility matrix
the table is generated with the script and data in https://
github.com/glandium/firefox-linux-compat-matrix ...
Using the Browser API
to run the demo, the best approach is to clone the
github repo locally (or just download it directly if you don't do
github), open webide, open the repo as a packaged app, then run it either on a simulator or a real device if you have one.
Chrome-only API reference
examples of chromeworker's using js-ctypes are availabe on
github and are linked to from the see also section below.
Getting from Content to Layout
changes to a document originate in the content tree (from dom modification by scripting, insertion of elements from the parser, etc.) and are propogated to the layout tree through magic that primarily resides in //
github.com/realityripple/uxp/blob/master/layout/base/nscssframeconstructor.cpp the frame constructor implements nsimutationobserver which allows it to "watch" the content tree.
How test harnesses work
tentially sets up an http server for test data (mozhttpd) invokes the binary (mozrunner) it is the job of the shim extension to shut down the browser logging (mozlog, in theory) (run tests, accrue results) cleanup: shutdown the browser check for crashes (mozcrash) reporting (moztest) marionette tests list of testing extensions pageloader (talos) mochitest: //
github.com/realityripple/uxp/blob/master/testing/mochitest/install.rdf (mochitest) ...
CustomizableUI.jsm
it can be found summarized at this gist: https://gist.
github.com/noitidart/10902477 ...
Using JavaScript code modules
examples a template to download and edit is seen here on
github - gists - _template-bootstrapjsm.xpi extending resource: urls prior to gecko 2.0, the most common way to load code modules was using resource: urls.
Application Translation with Mercurial
paste the following content into the file: [ui] username = firstname lastname <mynick@example.com> merge = internal:merge [alias] qexport = export -g -r qtip qexportall = diff -r qparent [defaults] commit = -v diff = -p -u 8 qdiff = -p -u 8 qnew = -u [diff]
git = 1 showfunc = 1 unified = 8 [extensions] hgext.mq = progress = [hooks] put in your name and email address which later will be public on the internet after your translation patch got accepted and uploaded.
NSS API Guidelines
there can be le
gitimate exceptions to this 'make everything opaque' rule.
Overview of NSS
rsa standard that governs the application of cryptography to data, for example di
gital signatures and di
gital envelopes.
Python binding for NSS
de nss.set_ocsp_timeout nss.clear_ocsp_cache nss.set_ocsp_default_responder nss.enable_ocsp_default_responder nss.disable_ocsp_default_responder the following files were added: src/py_traceback.h doc/examples/verify_cert.py test/test_misc.py the following constants were added: nss.ku_di
gital_signature nss.ku_non_repudiation nss.ku_key_encipherment nss.ku_data_encipherment nss.ku_key_agreement nss.ku_key_cert_sign nss.ku_crl_sign nss.ku_encipher_only nss.ku_all nss.ku_di
gital_signature_or_non_repudiation nss.ku_key_agreement_or_encipherment nss.ku_ns_govt_approved nss.pk11certlistunique nss.pk...
NSS tools : certutil
there are several available keywords: + di
gital signature + nonrepudiation + keyencipherment + dataencipherment + keyagreement + certsigning + crlsigning + critical -2 add a basic constraint extension to a certificate that is being created or added to a database.
NSS reference
tificate cert_destroycertificate sec_deletepermcertificate __cert_closepermcertdb getting certificate information cert_findcertbyname cert_getcertnicknames cert_freenicknames cert_getdefaultcertdb nss_findcertkeatype comparing secitem objects secitem_compareitem key functions key functions seckey_getdefaultkeydb seckey_destroyprivatekey di
gital signatures this api consists of the routines used to perform signature generation and the routines used to perform signature verification.
sslerr.html
(certain of these error codes have more specific meanings, as described.) ssl_error_generate_random_failure -12223 "ssl experienced a failure of its random number generator." ssl_error_sign_hashes_failure -12222 "unable to di
gitally sign data required to verify your certificate." ssl_error_extract_public_key_failure -12221 "ssl was unable to extract the public key from the peer's certificate." ssl_error_server_key_exchange_failure -12220 "unspecified failure while processing ssl server key exchange handshake." ssl_error_client_key_exchange_failure -12219 "unspecified failure w...
NSS_3.12.3_release_notes.html
ile system bug 468279: softoken crash importing email cert into newly upgraded db bug 468532: trusted ca trust flags not being honored in cert_verifycert bug 469583: coverity: uninitialized variable used in sec_pkcs5createalgorithmid bug 469944: when built with microsoft compilers bug 470351: crlutil build fails on windows because it calls undeclared isatty bug 471539: stop honoring di
gital signatures in certificates and crls based on weak hashes bug 471665: nss reports incorrect sizes for (aes) symmetric keys bug 471715: add cert to nssckbi to override rogue md5-collision ca cert bug 472291: crash in libpkix object leak tests due to null pointer dereferencing in pkix_build.c:3218.
certutil
there are several available keywords: o di
gital signature o nonrepudiation o keyencipherment o dataencipherment o keyagreement o certsigning o crlsigning o critical -2 add a basic constraint extension to a certificate that is being created or added to a database.
Rhino community
bug system the best way to enter rhino bugs to enter an issue in
github.
Rhino Examples
all the examples are in the
git tree at mozilla/js/rhino/examples.
Creating JavaScript jstest reftests
if you are contributing directly to test262, you must submit the tests in the test262 format, which you can see in the test262
git repository and read about here.
FOSS
http://javalikescript.free.fr/ - a general-purpose javascript platform that aims to provide an extensible tooling framework http://www.synchro.net/ - a telnet/ssh bulletin board system (bbs) and internet server (http/smtp/ftp) with extra internet services written in javascript (irc, imap, gopher, and many more) https://
github.com/mindbit/libjssql/wiki - a library that aims to provide a generic sql api for javascript that is as similar as possible to jdbc miscellaneous serverjs, a standardization effort for the fragmented server-side javascript world 0 a.d., historical rts game with javascript scripting http://soubok.googlepages.com/javascript malzilla - tool for hunting malware by deobfuscating javascript...
TPS Tests
steps get the source code clone mozilla-central (choose your flavor): hg clone hg.mozilla.org/mozilla-central or
git clone
github.com/mozilla/gecko-dev cd into the tps folder cd testing/tps create the environment i suggest the path to be outside of the mc source tree python create_venv.py --username=%email% --password=%password% %path% note: if you are updating the tps environment and want to keep your existing config (eg, the existing username and password), you should instead ex...
Zest runtimes
the following runtimes are available: java https://
github.com/mozilla/zest - this is the reference implementation the following 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.
Zest
more details https://
github.com/mozilla/zest - the code on
github http://groups.google.com/group/mozilla-zest - the group used for discussing zest ...
Mozilla Projects
specifically, it focuses on the process of di
gitally signing update manifests so the applications can verify the integrity of a manifest retrieved over normally insecure channels.
Generating GUIDs
canonical form the common form of a guid is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, where each x stands for a hexadecimal di
git.
Index
see //
github.com/realityripple/uxp/blob/master//mailnews/addrbook/public/nsiabcard.idl for more details.
imgICache
use the following snippet to obtain a relevant image cache for a given document or channel (where relevantdocument is a document object that contains images you care about, or relevantchannel is an nsichannel that is used for fetching images): var tools = components.classes["@mozilla.org/image/tools;1"].getservice(components.interfaces.im
gitools); 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.
mozIStorageConnection
void createtable( in string atablename, in string atableschema ); parameters atablename the name of the table to create; table names may consist of the letters a-z in either upper or lower case, the underscore, and the di
gits 0-9.
nsIAbCard
see //
github.com/realityripple/uxp/blob/master//mailnews/addrbook/public/nsiabcard.idl for more details.
nsIHttpServer
an example : https://
github.com/laurentj/slimerjs/blob/master/src/modules/webserver.jsm var exported_symbols = ["create"]; components.utils.import("resource://gre/modules/services.jsm"); function create() { var server = components.classes["@mozilla.org/server/jshttp;1"] .createinstance(components.interfaces.nsihttpserver); return { get objectname () { return "webserver"; }, /** * @param integer|string port port or "host:port" * @param object opt optional options.
nsIMsgAccountManagerExtension
//
github.com/realityripple/uxp/blob/master/mailnews/base/public/nsimsgaccountmanager.idlscriptable please add a summary to this article.
nsIMsgFolder
check //
github.com/realityripple/uxp/blob/master/mailnews/base/public/nsimsgfolder.idl for the newer methods (esp.
nsIPropertyBag
to do this use nsipropertybag: services.sysinfo.getproperty("version"); //output 5.1 services.sysinfo.getproperty("name"); //output windows_nt services.sysinfo.getproperty("arch"); //output x86 services.sysinfo.getproperty("haswindowstouchinterface"); //outputs false or true if windows touch is there consult the uxp repo (//
github.com/realityripple/uxp/blob/master/xpcom/base/nssysteminfo.cpp) for the properties supported.
nsIXMLHttpRequest
the interface definition: //
github.com/realityripple/uxp/blob/master/dom/xhr/nsixmlhttprequest.idl elevated privileges as mentioned in the "non-standard properties" the property of channel was read-only.
Thunderbird extensions
an overview of thunderbird components developer reference docs: folder classes db views (message list) message summary database mailnews protocols mailnews filters error reporting tools steel library (obsolete as of thunderbird 52, use https://
github.com/protz/thunderbird-stdlib) developing new account types useful newsgroup discussions (anything that's very old should be regarded suspiciously, because there has been significant api rewrite over the past years making most techniques considerably easier) thunderbird api docs (mostly a collection of out-of-date pages, relevance is rather dubious) ge...
Working with data
ptr).contents; mycasted.tostring(); // this outputs to browser console: `"ctypes.int.array(4)([1, 2, 3, 4])"` mycasted.addressofelement(1).contents; // this outputs `2` mycasted.addressofelement(1).contents.tostring(); // outputs: `"2"` source of this, and to see wrong ways of casting, and explanation on why this is the right way to cast an array (explained by matching constructor's) see here:
githubgist :: _ff-addon-tutorial-jsctypes_castingarrays data and pointers a cdata object represents a c value in memory.
ctypes.open
var lib = ctypes.open(filepath_mylib); var add_with_c = lib.declare("add", ctypes.default_abi, ctypes.int, // return type ctypes.int, // a ctypes.int // b ); var rez = add_with_c(2, 5); // rez is 7 lib.close(); references heather's paragraphs: playing around with js-ctypes on linux - credits for basis of this article
github :: diegocr - fx-sapi-test - creating a native file for windows (dll) and use in a simple bootstrap add-on standard os libraries see standard os libraries ...
Element.currentStyle - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Element.insertAdjacentElement() - Web APIs
activeelem.insertadjacentelement('beforebegin',tempdiv); } setlistener(tempdiv); }); afterbtn.addeventlistener('click', function() { var tempdiv = document.createelement('div'); tempdiv.style.backgroundcolor = randomcolor(); if (activeelem) { activeelem.insertadjacentelement('afterend',tempdiv); } setlistener(tempdiv); }); have a look at our insertadjacentelement.html demo on
github (see the source code too.) here we have a sequence of <div> elements inside a container.
Element.insertAdjacentText() - Web APIs
example beforebtn.addeventlistener('click', function() { para.insertadjacenttext('afterbegin',textinput.value); }); afterbtn.addeventlistener('click', function() { para.insertadjacenttext('beforeend',textinput.value); }); have a look at our insertadjacenttext.html demo on
github (see the source code too.) here we have a simple paragraph.
Element.runtimeStyle - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Element.scroll() - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Element.scrollLeftMax - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Element.scrollTo() - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Element.slot - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
Event.composed - Web APIs
the <open-shadow> element's composed path is this: array [ p, shadowroot, open-shadow, body, html, htmldocument https://mdn.
github.io/web-components-examples/composed-composed-path/, window ] whereas the <closed-shadow> element's composed path is a follows: array [ closed-shadow, body, html, htmldocument https://mdn.
github.io/web-components-examples/composed-composed-path/, window ] in the second case, the event listeners only propagate as far as the <closed-shadow> element itself, but not to the nodes inside the shado...
Event.composedPath() - Web APIs
the <open-shadow> element's composed path is this: array [ p, shadowroot, open-shadow, body, html, htmldocument https://mdn.
github.io/web-components-examples/composed-composed-path/, window ] whereas the <closed-shadow> element's composed path is a follows: array [ closed-shadow, body, html, htmldocument https://mdn.
github.io/web-components-examples/composed-composed-path/, window ] in the second case, the event listeners only propagate as far as the <closed-shadow> element itself, but not to the nodes inside the shado...
Event.initEvent() - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
EventSource() - Web APIs
examples var evtsource = new eventsource('sse.php'); var eventlist = document.queryselector('ul'); evtsource.onmessage = function(e) { var newelement = document.createelement("li"); newelement.textcontent = "message: " + e.data; eventlist.appendchild(newelement); } note: you can find a full example on
github — see simple sse demo using php.
GamepadButton - Web APIs
example the following code is taken from my gamepad api button demo (you can view the demo live, and find the source code on
github.) note the code fork — in chrome navigator.getgamepads needs a webkit prefix and the button values are stored as an array of double values, whereas in firefox navigator.getgamepads doesn't need a prefix, and the button values are stored as an array of gamepadbutton objects; it is the gamepadbutton.value or gamepadbutton.pressed properties of these we need to access, depending on what type of...
Geolocation.clearWatch() - Web APIs
example var id, target, option; function success(pos) { var crd = pos.coords; if (target.latitude === crd.latitude && target.lon
gitude === crd.lon
gitude) { console.log('congratulation, you reach the target'); navigator.geolocation.clearwatch(id); } }; function error(err) { console.warn('error(' + err.code + '): ' + err.message); }; target = { latitude : 0, lon
gitude: 0, } options = { enablehighaccuracy: false, timeout: 5000, maximumage: 0 }; id = navigator.geolocation.watchposition(success, error, op...
Geolocation.getCurrentPosition() - Web APIs
enablehighaccuracy: false | true examples var options = { enablehighaccuracy: true, timeout: 5000, maximumage: 0 }; function success(pos) { var crd = pos.coords; console.log('your current position is:'); console.log(`latitude : ${crd.latitude}`); console.log(`lon
gitude: ${crd.lon
gitude}`); console.log(`more or less ${crd.accuracy} meters.`); } function error(err) { console.warn(`error(${err.code}): ${err.message}`); } navigator.geolocation.getcurrentposition(success, error, options); specifications specification status comment geolocation api recommendation initial specification.
Geolocation.watchPosition() - Web APIs
examples var id, target, options; function success(pos) { var crd = pos.coords; if (target.latitude === crd.latitude && target.lon
gitude === crd.lon
gitude) { console.log('congratulations, you reached the target'); navigator.geolocation.clearwatch(id); } } function error(err) { console.warn('error(' + err.code + '): ' + err.message); } target = { latitude : 0, lon
gitude: 0 }; options = { enablehighaccuracy: false, timeout: 5000, maximumage: 0 }; id = navigator.geolocation.watchposition(success, error, o...
GeolocationPosition.coords - Web APIs
it contains the location, that is lon
gitude and latitude on the earth, the altitude, and the speed of the object concerned, regrouped inside the returned value.
GlobalEventHandlers.onkeypress - Web APIs
*/ alert("yesss!!!"); location.assign("https://developer.mozilla.org/"); } return true; }; })(); note: a more complete framework for capturing the typing of hidden words is available on
github.
HTMLDetailsElement: toggle event - Web APIs
</details> </section> css body { display: flex; flex-direction: row-reverse; } #log { flex-shrink: 0; padding-left: 3em; } #summaries { flex-grow: 1; } javascript function lo
gitem(e) { const item = document.queryselector(`[data-id=${e.target.id}]`); item.toggleattribute('hidden'); } const chapters = document.queryselectorall('details'); chapters.foreach((chapter) => { chapter.addeventlistener('toggle', lo
gitem); }); result specifications specification status comment html living standardthe definition of 'toggle event' in that speci...
HTMLDialogElement.close() - Web APIs
e button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> note: you can find this example on
github as htmldialogelement-basic (see it live also).
HTMLDialogElement.open - Web APIs
e button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> note: you can find this example on
github as htmldialogelement-basic (see it live also).
HTMLDialogElement.returnValue - Web APIs
urnvalue === 'confirm') { // user chose a favorite animal, do something with it } } // “update details” button opens the <dialog> modally updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); handleuserinput(dialog.returnvalue); }); })(); </script> note: you can find this example on
github as htmldialogelement-basic (see it live also).
HTMLDialogElement.showModal() - Web APIs
e button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> note: you can find this example on
github as htmldialogelement-basic (see it live also).
HTMLDialogElement - Web APIs
e button opens a modal dialog updatebutton.addeventlistener('click', function() { dialog.showmodal(); opencheck(dialog); }); // form cancel button closes the dialog box cancelbutton.addeventlistener('click', function() { dialog.close('animalnotchosen'); opencheck(dialog); }); })(); </script> note: you can find this example on
github as htmldialogelement-basic (see it live also).
MediaMetadata.title - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
MediaMetadata - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
MediaQueryList - Web APIs
ara.textcontent = 'this is a narrow screen — less than 600px wide.'; document.body.style.backgroundcolor = 'red'; } else { /* the viewport is more than than 600 pixels wide */ para.textcontent = 'this is a wide screen — more than 600px wide.'; document.body.style.backgroundcolor = 'blue'; } } mql.addeventlistener('change', screentest); note: you can find this example on
github (see the source code, and also see it running live).
MediaStream.id - Web APIs
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
MediaTrackSettings.sampleRate - Web APIs
common values include 44,100 (standard cd audio), 48,000 (standard di
gital audio), 96,000 (commonly used in audio mastering and post-production), and 192,000 (used for high-resolution audio in professional recording and mastering sessions).
MessageChannel() - Web APIs
ocument.queryselector('iframe'); var otherwindow = ifr.contentwindow; ifr.addeventlistener("load", iframeloaded, false); function iframeloaded() { otherwindow.postmessage('hello from the main page!', '*', [channel.port2]); } channel.port1.onmessage = handlemessage; function handlemessage(e) { para.innerhtml = e.data; } for a full working example, see our channel messaging basic demo on
github (run it live too).
MessageChannel.port2 - Web APIs
ocument.queryselector('iframe'); var otherwindow = ifr.contentwindow; ifr.addeventlistener("load", iframeloaded, false); function iframeloaded() { otherwindow.postmessage('hello from the main page!', '*', [channel.port2]); } channel.port1.onmessage = handlemessage; function handlemessage(e) { para.innerhtml = e.data; } for a full working example, see our channel messaging basic demo on
github (run it live too).
MessageChannel - Web APIs
("load", onload); function onload() { // listen for messages on port1 channel.port1.onmessage = onmessage; // transfer port2 to the iframe iframe.contentwindow.postmessage('hello from the main page!', '*', [channel.port2]); } // handle messages received on port1 function onmessage(e) { output.innerhtml = e.data; } for a full working example, see our channel messaging basic demo on
github (run it live too).
MessagePort.onmessage - Web APIs
ocument.queryselector('iframe'); var otherwindow = ifr.contentwindow; ifr.addeventlistener("load", iframeloaded, false); function iframeloaded() { otherwindow.postmessage('hello from the main page!', '*', [channel.port2]); } channel.port1.onmessage = handlemessage; function handlemessage(e) { para.innerhtml = e.data; } for a full working example, see our channel messaging basic demo on
github (run it live too).
MessagePort.postMessage() - Web APIs
ocument.queryselector('iframe'); var otherwindow = ifr.contentwindow; ifr.addeventlistener("load", iframeloaded, false); function iframeloaded() { otherwindow.postmessage('hello from the main page!', '*', [channel.port2]); } channel.port1.onmessage = handlemessage; function handlemessage(e) { para.innerhtml = e.data; } for a full working example, see our channel messaging basic demo on
github (run it live too).
Color masking - Web APIs
off"; gl.colormask(mask[0], mask[1], mask[2], true); drawanimation(); }; function drawanimation () { var color = getrandomcolor(); gl.clearcolor(color[0], color[1], color[2], 1.0); gl.clear(gl.color_buffer_bit); } function getrandomcolor() { return [math.random(), math.random(), math.random()]; } }, false); the source code of this example is also available on
github.
Detect WebGL - Web APIs
" + "your browser or device may not support webgl."; } } }, false); the source code of this example is also available on
github.
Hello GLSL - Web APIs
paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on
github.
Hello vertex attributes - Web APIs
paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on
github.
Raining rectangles - Web APIs
paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on
github.
Scissor animation - Web APIs
paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on
github.
Simple color animation - Web APIs
function getrandomcolor() { return [math.random(), math.random(), math.random()]; } }, false); the source code of this example is also available on
github.
Textures from code - Web APIs
paragraph = document.queryselector("p"); paragraph.innerhtml = "failed to get webgl context." + "your browser or device may not support webgl."; return null; } gl.viewport(0, 0, gl.drawingbufferwidth, gl.drawingbufferheight); gl.clearcolor(0.0, 0.0, 0.0, 1.0); gl.clear(gl.color_buffer_bit); return gl; } })(); the source code of this example is also available on
github.
Using DTMF with WebRTC - Web APIs
if you'd like to know more about how this works, read rfc 3550: rtp: a transport protocol for real-time applications and rfc 4733: rtp payload for dtmf di
gits, telephony tones, and telephony signals.
WebRTC API - Web APIs
tutorials improving compatibility using webrtc adapter.js the webrtc organization provides on
github the webrtc adapter to work around compatibility issues in different browsers' webrtc implementations.
Geometry and reference spaces in WebXR - Web APIs
the article spatial tracking in webxr builds upon the information provided here to cover how the physical position and orientation of the user's head, as well as potentially other parts of their body such as the hands, are mapped into the di
gital world, as well as how the relative positions of both physical and virtual objects are tracked as they move around, so that the scene can be properly rendered and composited.
:disabled - CSS: Cascading Style Sheets
</fieldset> </form> css input[type="text"]:disabled { background: #ccc; } javascript // wait for the page to finish loading document.addeventlistener('domcontentloaded', function () { // attach `change` event listener to checkbox document.getelementbyid('billing-checkbox').onchange = togglebilling; }, false); function togglebilling() { // select the billing text fields var billin
gitems = document.queryselectorall('#billing input[type="text"]'); // toggle the billing text fields for (var i = 0; i < billin
gitems.length; i++) { billin
gitems[i].disabled = !billin
gitems[i].disabled; } } result specifications specification status comment html living standardthe definition of ':disabled' in that specification.
:placeholder-shown - CSS: Cascading Style Sheets
html <form id="test"> <p> <label for="name">enter student name:</label> <input id="name" placeholder="student name"/> </p> <p> <label for="branch">enter student branch:</label> <input id="branch" placeholder="student branch"/> </p> <p> <label for="sid">enter student id:</label> <input type="number" pattern="[0-9]{8}" title="8 di
git id" id="sid" class="studentid" placeholder="8 di
git id"/> </p> <input type="submit"/> </form> css input { background-color: #e8e8e8; color: black; } input.studentid:placeholder-shown { background-color: yellow; color: red; font-style: italic; } result specifications specification status comment selectors level 4the definition of ':placeholder-show...
Identifying resources on the Web - HTTP
examples https://developer.mozilla.org/docs/learn tel:+1-816-555-1212
git@
github.com:mdn/browser-compat-data.
git ftp://example.org/resource.txt urn:isbn:9780141036144 mailto:help@supercyberhelpdesk.info specifications specification title rfc 7230, section 2.7: uniform resource identifiers hypertext transfer protocol (http/1.1): message syntax and routing ...
Common MIME types - HTTP
pecifications: https://html.spec.whatwg.org/multipage/#scriptinglanguages https://html.spec.whatwg.org/multipage/#dependencies:willful-violation https://datatracker.ietf.org/doc/draft-ietf-dispatch-javascript-mjs/ .json json format application/json .jsonld json-ld format application/ld+json .mid .midi musical instrument di
gital interface (midi) audio/midi audio/x-midi .mjs javascript module text/javascript .mp3 mp3 audio audio/mpeg .mpeg mpeg video video/mpeg .mpkg apple installer package application/vnd.apple.installer+xml .odp opendocument presentation document application/vnd.oasis.opendocument.presentation .ods opendocument s...
Content negotiation - HTTP
the user-agent header though there are le
gitimate uses of this header for selecting content, it is considered bad practice to rely on it to define what features are supported by the user agent.
Using HTTP cookies - HTTP
while this was le
gitimate when they were the only way to store data on the client, it is now recommended to use modern storage apis.
CSP: connect-src - HTTP
note: connect-src 'self' does not resolve to websocket schemas in all browsers, more info: https://
github.com/w3c/webappsec-csp/issues/7 csp version 1 directive type fetch directive default-src fallback yes.
CSP: trusted-types - HTTP
'allow-duplicates' allows for creating policies with a name that was already used examples todo polyfill a polyfill for trusted types is available on
github.
Referrer-Policy - HTTP
there is effort from browsers in moving to a stricter default value, namely strict-origin-when-cross-origin (see https://
github.com/whatwg/fetch/pull/952), consider using this value (or a stricter one), if possible, when changing the referrer-policy.
Set-Cookie - HTTP
header type response header forbidden header name no forbidden response-header name yes syntax set-cookie: <cookie-name>=<cookie-value> set-cookie: <cookie-name>=<cookie-value>; expires=<date> set-cookie: <cookie-name>=<cookie-value>; max-age=<non-zero-di
git> set-cookie: <cookie-name>=<cookie-value>; domain=<domain-value> set-cookie: <cookie-name>=<cookie-value>; path=<path-value> set-cookie: <cookie-name>=<cookie-value>; secure set-cookie: <cookie-name>=<cookie-value>; httponly set-cookie: <cookie-name>=<cookie-value>; samesite=strict set-cookie: <cookie-name>=<cookie-value>; samesite=lax set-cookie: <cookie-name>=<cookie-value>; samesite=none // ...
Set-Cookie2 - HTTP
er forbidden header name no syntax set-cookie2: <cookie-name>=<cookie-value> set-cookie2: <cookie-name>=<cookie-value>; comment=<value> set-cookie2: <cookie-name>=<cookie-value>; commenturl=<http-url> set-cookie2: <cookie-name>=<cookie-value>; discard set-cookie2: <cookie-name>=<cookie-value>; domain=<domain-value> set-cookie2: <cookie-name>=<cookie-value>; max-age=<non-zero-di
git> set-cookie2: <cookie-name>=<cookie-value>; path=<path-value> set-cookie2: <cookie-name>=<cookie-value>; port=<port-number> set-cookie2: <cookie-name>=<cookie-value>; secure set-cookie2: <cookie-name>=<cookie-value>; version=<version-number> // multiple directives are also possible, for example: set-cookie2: <cookie-name>=<cookie-value>; domain=<domain-value>; secure // multiple cookies are sep...
Trailer - HTTP
the trailer response header allows the sender to include additional fields at the end of chunked messages in order to supply metadata that might be dynamically generated while the message body is sent, such as a message integrity check, di
gital signature, or post-processing status.
103 Early Hints - HTTP
if you'd like to contribute to the data, please check out https://
github.com/mdn/browser-compat-data and send us a pull request.
402 Payment Required - HTTP
originally it was created to enable di
gital cash or (micro) payment systems and would indicate that the requested content is not available until the client makes a payment.
HTTP response status codes - HTTP
the initial aim for creating this code was using it for di
gital payment systems, however this status code is used very rarely and no standard convention exists.
JavaScript data types and data structures - JavaScript
0 to 65535 2 16-bit unsigned integer unsigned short uint16_t int32array -2147483648 to 2147483647 4 32-bit two's complement signed integer long int32_t uint32array 0 to 4294967295 4 32-bit unsigned integer unsigned long uint32_t float32array 1.2×10-38 to 3.4×1038 4 32-bit ieee floating point number (7 significant di
gits e.g., 1.1234567) unrestricted float float float64array 5.0×10-324 to 1.8×10308 8 64-bit ieee floating point number (16 significant di
gits e.g., 1.123...15) unrestricted double double bigint64array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) biguint64array 0 to 264-1 8 64-bit uns...
Indexed collections - JavaScript
0 to 65535 2 16-bit unsigned integer unsigned short uint16_t int32array -2147483648 to 2147483647 4 32-bit two's complement signed integer long int32_t uint32array 0 to 4294967295 4 32-bit unsigned integer unsigned long uint32_t float32array 1.2×10-38 to 3.4×1038 4 32-bit ieee floating point number (7 significant di
gits e.g., 1.1234567) unrestricted float float float64array 5.0×10-324 to 1.8×10308 8 64-bit ieee floating point number (16 significant di
gits e.g., 1.123...15) unrestricted double double bigint64array -263 to 263-1 8 64-bit two's complement signed integer bigint int64_t (signed long long) biguint64array 0 to 264-1 8 64-bit uns...