Search completed in 1.27 seconds.
choose - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the
choose function returns one of the specified objects based on a boolean parameter.
...syntax
choose( boolean , object1, object2 ) arguments boolean the boolean operation to use when determining which object to return.
<xsl:choose> - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the <xsl:
choose> element defines a choice among a number of alternatives.
... syntax <xsl:
choose> <xsl:when test="[whatever to test1]"></xsl:when> <xsl:when test="[whatever to test2]"></xsl:when> <xsl:otherwise></xsl:otherwise> [optional] </xsl:
choose> required attributes none.
Localizing with Koala
choose "koala" in the categories list.
...
choose "koala" in the templates list.
...
choose a name for your project (e.g.
...And 11 more matches
Web audio codec guide - Web media technologies
of course, individual browsers may or may not
choose to support all of these codecs, and their support for which container types can use them may vary as well.
... in addition, browsers may
choose to support additional codecs not included on this list.
...in addition to choosing the type of encoder to use, you may have the opportunity to adjust the encoder using parameters that
choose specific algorithms, tune those algorithms, and specify how many passes to apply while encoding.
...And 11 more matches
nss tech note5
encrypt/decrypt include headers #include "nss.h" #include "pk11pub.h" make sure nss is initialized.the simplest init function, in case you don't need a nss database is nss_nodb_init(".")
choose a cipher mechanism.
...if you
choose something else, then data padding is the application's responsibility.
... ck_mechanism_type ciphermech = ckm_des_cbc_pad <big>(for example)</big>
choose a slot on which to to do the operation pk11slotinfo* slot = pk11_getbestslot(ciphermech, null); or pk11slotinfo* slot = pk11_getinternalkeyslot(); /* alwys returns internal slot, may not be optimal */ prepare the key if using a raw key /* turn the raw key into a secitem */ secitem keyitem; keyitem.data = /* ptr to an array of key bytes */ keyitem.len = /* length of the array of key bytes */ /* turn the secitem into a key object */ pk11symkey* symkey = pk11_importsymkey(slot, ciphermech, pk11_originunwrap, ...
...And 9 more matches
<input type="file"> - HTML: Hypertext Markup Language
<input> elements with type="file" let the user
choose one or more files from their device storage.
...ments, inputs of type file also support the following attributes: attribute description accept one or more unique file type specifiers describing file types to allow capture what source to use for capturing image or video data files a filelist listing the chosen files multiple a boolean which, if present, indicates that the user may
choose more than one file accept the accept attribute value is a string that defines the file types the file input should accept.
... attribute description webkitdirectory a boolean indicating whether or not to only allow the user to
choose a directory (or directories, if multiple is also present) webkitdirectory the boolean webkitdirectory attribute, if present, indicates that only directories should be available to be selected by the user in the file picker interface.
...And 8 more matches
Multiple Firefox profiles
you can also
choose where to store the profile on your computer.
... to select storage location, click
choose folder....
... if you
choose your folder location for the profile, select a new or empty folder.
...And 7 more matches
Index - Web APIs
if there is no
chooser ui, this method returns the first device matching the criteria.
...when a specification says cssomstring, it depends on the browser vendors to
choose whether to use domstring or usvstring.
... while browser implementations that use utf-8 internally to represent strings in memory can use usvstring when the specification says cssomstring, implementations that already represent strings as 16-bit sequences might
choose to use domstring instead.
...And 6 more matches
Appendix: What you should know about open-source software licenses - Archive of obsolete content
depending on what kind of modifications you envision, you can
choose your license as follows.
... oss license can duplicate can distribute can modify commercial license install on one machine only unauthorized copies prohibited no modifications payment required certain uses are permitted depending on which license you
choose english version is the official text nearly all oss licenses take english as their official texts.
...→
choose the gpl.
...And 5 more matches
nsIAccessibleRole
role_menuitem 12 represents a menu item, which is an entry in a menu that a user can
choose to carry out a command, select an option.
... role_color_
chooser 68 represents a specialized dialog that lets the user
choose a color.
...may be used by a file
chooser.
...And 5 more matches
Introduction to automated testing - Learn web development
as you click on the real time testing you will be directed to a screen where you can
choose the browser configuration, browser version, os, and screen resolution with which you want to test your website.
... in the next screen, type in the url of a page you want to test (use http://mdn.github.io/learning-area/javascript/building-blocks/events/show-video-box-fixed.html, for example), then
choose a browser/os combination you want to test by using the different buttons and lists.
... the basics: manual tests the browserstack live dashboard allows you to
choose what device and browser you want to test on — platforms in the left column, devices on the right.
...And 4 more matches
Gecko Roles
role_menuitem represents a menu item, which is an entry in a menu that a user can
choose to carry out a command, select an option.
... role_color_
chooser represents a specialized dialog that lets the user
choose a color.
...may be used by a file
chooser.
...And 4 more matches
<input type="time"> - HTML: Hypertext Markup Language
you can set a default value for the input by including a valid time in the value attribute when creating the <input> element, like so: <label for="appt-time">
choose an appointment time: </label> <input id="appt-time" type="time" name="appt-time" value="13:30"> you can also get and set the date value in javascript using the htmlinputelement.value property, for example: var timecontrol = document.queryselector('input[type="time"]'); timecontrol.value = '15:30'; time value format the value of the time input is always in 24-hour format that includes leadi...
... basic uses of time the simplest use of <input type="time"> involves a basic <input> and <label> element combination, as seen below: <form> <label for="appt-time">
choose an appointment time: </label> <input id="appt-time" type="time" name="appt-time"> </form> controlling input size <input type="time"> doesn't support form sizing attributes such as size, since times are always about the same number of characters long.
...if you specify a value of less than 60 seconds (1 minute), the time input will show a seconds input area alongside the hours and minutes: <form> <label for="appt-time">
choose an appointment time: </label> <input id="appt-time" type="time" name="appt-time" step="2"> </form> in chrome and opera, which are the only browsers to show up/down iteration arrows, clicking the arrows changes the seconds value by two seconds, but doesn't affect the hours or minutes.
...And 4 more matches
Client-side form validation - Learn web development
simple start file let's start with a simple example: an input that allows you to
choose whether you prefer a banana or a cherry.
... <form> <label for="
choose">would you prefer a banana or cherry?</label> <input id="
choose" name="i_like"> <button>submit</button> </form> input:invalid { border: 2px dashed red; } input:valid { border: 2px solid black; } to begin, make a copy of fruit-start.html in a new directory on your hard drive.
... <form> <label for="
choose">would you prefer a banana or cherry?
...And 3 more matches
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
keywords a set of standard color names have been defined, letting you use these keywords instead of numeric representations of colors if you
choose to do so and there's a keyword representing the exact color you want to use.
...maybe you have editable text and need to let the user
choose the text color.
... example: picking a color let's look at a simple example, in which the user can
choose a color.
...And 3 more matches
HTML attribute: accept - HTML: Hypertext Markup Language
it is still possible (in most cases) for users to toggle an option in the file
chooser that makes it possible to override this and select any file they wish, and then
choose incorrect file types.
...for example, a file picker that needs content that can be presented as an image, including both standard image formats and pdf files, might look like this: <input type="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.
... regardless of the user's device or operating system, the file input provides a button that opens up a file picker dialog that allows the user to
choose a file.
...And 3 more matches
<input type="text"> - HTML: Hypertext Markup Language
basic example <form> <div> <label for="uname">
choose a username: </label> <input type="text" id="uname" name="name"> </div> <div> <button>submit</button> </div> </form> this renders like so: when submitted, the data name/value pair sent to the server will be uname=chris (if "chris" was entered as the input value before submission).
...look at the following example: <form> <div> <label for="uname">
choose a username: </label> <input type="text" id="uname" name="name" placeholder="lower case, all one word"> </div> <div> <button>submit</button> </div> </form> you can see how the placeholder is rendered below: the placeholder is typically rendered in a lighter color than the element's foreground color, and automatically vanishes when the user begins to enter text into the field (or w...
...in this example, for instance, the input is 30 characters wide: <form> <div> <label for="uname">
choose a username: </label> <input type="text" id="uname" name="name" placeholder="lower case, all one word" size="30"> </div> <div> <button>submit</button> </div> </form> validation <input> elements of type text have no automatic validation applied to them (since a basic text input needs to be capable of accepting any arbitrary string), but there are some client-...
...And 3 more matches
Choosing between www and non-www URLs - HTTP
a recurring question among website owners is whether to
choose non-www or www urls.
... so, do i have to
choose one or the other for my web site?
... yes, you need to
choose one and stick with it.
...And 3 more matches
RDF Datasource How-To - Archive of obsolete content
for example, you may
choose to delegate to the in-memory datasource, which is a generic datasource that implements nsirdfdatasource.
...you may want to
choose this implementation if your primary goal is to "wrap" a legacy data store.
...if you
choose this route, you'll need to implement each of the nsirdfdatastore methods "by hand".
...And 2 more matches
What will your website look like? - Learn web development
theme color to
choose a color, go to the color picker and find a color you like.
... images to
choose an image, go to google images and search for something suitable.
... right-click the image (ctrl + click on a mac),
choose save image as..., and
choose a safe place to save your image.
...And 2 more matches
What’s in the head? Metadata in HTML - Learn web development
it contains information such as the page <title>, links to css (if you
choose to style your html content with css), links to custom favicons, and other metadata (data about the html, such as the author, and important keywords that describe the document.) in this article we'll cover all of the above and more, in order to give you a good basis for working with markup.
...next,
choose your browser's file > save page as...
... menu and
choose a sensible place to save the file.
...And 2 more matches
Responsive images - Learn web development
let's run through the contents of each now: srcset defines the set of images we will allow the browser to
choose between, and what size each image is.
...screen widths) and indicates what image size would be best to
choose, when certain media conditions are true — these are the hints we talked about earlier.
...at this point, if a supporting browser with a viewport width of 480px loads the page, the (max-width: 600px) media condition will be true, and so the browser
chooses the 480px slot.
...And 2 more matches
Index - Learn web development
beginner, composing, guide, tools, text editor a website consists mostly of text files, so for a fun, pleasant development experience you should
choose your text editor wisely.
... 44 the web and web standards beginner, front-end, learn, web, web standards this article provides some useful background on the web — how it came about, what web standard technologies are, how they work together, why "web developer" is a great career to
choose, and what kinds of best practices you'll learn about through the course.
...you should now have at least an idea of how to
choose a web framework for your own server-side development.
...And 2 more matches
Graceful asynchronous programming with Promises - Learn web development
there are certain steps that you have to take for your order to be successful, which doesn't really make sense to try to execute out of order, or in order but before each previous step has quite finished: you
choose what toppings you want.
... with old-style callbacks, a pseudo-code representation of the above functionality might look something like this:
choosetoppings(function(toppings) { placeorder(toppings, function(order) { collectorder(order, function(pizza) { eatpizza(pizza); }, failurecallback); }, failurecallback); }, failurecallback); this is messy and hard to read (often referred to as "callback hell"), requires the failurecallback() to be called multiple times (once for each nested function), with other issues besides.
...if we represented the above pseudo-code using asynchronous promises instead, we'd end up with something like this:
choosetoppings() .then(function(toppings) { return placeorder(toppings); }) .then(function(order) { return collectorder(order); }) .then(function(pizza) { eatpizza(pizza); }) .catch(failurecallback); this is much better — it is easier to see what is going on, we only need a single .catch() block to handle all the errors, it doesn't block the main thread (so we can keep playing video games while we wait for the pizza to be ready to collect), and each operation is guaranteed to wait for previous operations to complete before running.
...And 2 more matches
Server-side web frameworks - Learn web development
with this knowledge under our belt, it's time to explore how web frameworks can simplify these tasks, and give you an idea of how you'd
choose a framework for your first server-side web application.
...get it yourself: some web frameworks include tools/libraries that address every problem their developers can think "by default", while more lightweight frameworks expect web developers to pick and
choose solution to problems from separate libraries (django is an example of the former, while flask is an example of a very light-weight framework).
...the web framework you
choose can make a big difference on how easy it is to scale your site.
...And 2 more matches
Application Translation with Mercurial
after scrapbook has saved the web page to your local disk, click with the right mouse button on the page in the sidebar and
choose "properties" from the context menu which gets opened.
... from its "file" menu,
choose "save project".
...this patch needs a name,
choose something meaning full like "firefox-<version number>-more-details".
...And 2 more matches
DMD
launch use mach run --dmd; use --mode to
choose the mode.
... launch use mach run --dmd; use --mode to
choose the mode.
...also, add this line to build/mozconfig.common: moz_crashreporter_upload_full_symbols=1 launch on a local build, use mach run --dmd; use --mode to
choose the mode.
...And 2 more matches
Profile Manager
if you attempt to perform any operation on a locked profile, you'll get a warning; if you
choose to continue despite the warning, you may encounter errors or corrupt a profile.
... to backup a profile: select the profile you want to backup, and
choose "backup to->backup folder" from the toolbar's backup menu.
... the profile will be backed up, and the backup will appear under the backups column in the main display: to restore a profile: select the backup in the main display, open the context menu, and
choose "restore".
...And 2 more matches
Content negotiation - HTTP
the server uses this url to
choose one of the variants it provides – each variant being called a representation – and returns a specific representation to the client.
...the server uses them as hints and an internal algorithm
chooses the best content to serve to the client.
... the special value of '*' means that the server-driven content negotiation also uses information not conveyed in a header to
choose the appropriate content.
...And 2 more matches
Web video codec guide - Web media technologies
this guide introduces the video codecs you're most likely to encounter or consider using on the web, summaries of their capabilities and any compatibility and utility concerns, and advice to help you
choose the right codec for your project's video.
...for compatibility's sake going forward, however, you should stay within the limits of the level you
choose.
...of note, however, is that safari supports neither webm nor vp9, so if you
choose to use vp9, be sure to offer a fallback format such as avc or hevc for iphone, ipad, and mac users.
...And 2 more matches
Setting up an extension development environment - Archive of obsolete content
choose default and uncheck "don't ask at startup" checkbox.
...now when you start any version of firefox you may
choose any profile you like.
... using directories rather than jars regardless of whether you
choose to eventually package your extension's chrome in a jar or in directories, developing in directories is simpler.
... if you
choose a jared structure for releasing, you can still develop with a directory structure by editing your chrome.manifest.
Scratchpad - Archive of obsolete content
then
choose the way you want the code to run using the buttons along the top, using the execute menu, or using the context menu.
... run when you
choose the run option, the selected code is executed.
... for example, if you enter the code: window then
choose inspect, the object inspector is shown that looks something like this: display the display option executes the selected code, then inserts the result directly into your scratchpad editor window as a comment, so you can use it as a repl.
... in the editor preferences section of the developer tools settings, you can
choose to use vim, emacs, or sublime text key bindings instead.
Legacy layout methods - Learn web development
in this example case we've chosen <div>s, but you could
choose something more semantically appropriate like <article>s, <section>s, and <aside>, or whatever.
... in your project you might still
choose to use a flexbox ‘grid’ due to the additional alignment and space distribution capabilities flexbox provides over floats.
...if you search for "css grid framework" on the web, you will find a huge list of options to
choose from.
... to get started visit the skeleton website, and
choose "download" to download the zip file.
How much does it cost to do something on the Web? - Learn web development
you'll have an easier time writing code if you
choose an editor that color-codes, checks your syntax, and assists you with code structure.
...however, people often
choose dedicated (s)ftp clients to display local or remote directories side-by-side and store server passwords.
...for example, creating a strategy to engage users, or a/b testing to
choose a solution among several ideas ...and for hosting: do you want redundant servers, in case your server goes down?
... read on about how to
choose and install a text editor.
Choosing the right approach - Learn web development
with setinterval(), the interval we
choose includes the time taken to execute the code we want to run in.
...not as efficient as requestanimationframe(), but allows you to
choose a running rate/frame rate.
...unless you need to
choose a specific (slower) framerate, it is generally better to use requestanimationframe().
...tor('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)'; raf = requestanimationframe(draw); } draw(); pitfalls you can't
choose a specific framerate with requestanimationframe().
Understanding client-side JavaScript frameworks - Learn web development
as an aspiring front-end developer, it can be hard to work out where to begin when learning frameworks — there are so many different frameworks to
choose from, new ones appear all the time, they mostly work in a similar way but do some things differently, and there are some specific things to be careful about when using frameworks.
... what questions should i ask when trying to
choose a framework?
... which frameworks did we
choose?
... as a beginner, trying to
choose what to focus on out of the huge number of choices available is a very real problem.
Handling common accessibility problems - Learn web development
safari: select develop > disable styles from the main menu (to enable the develop menu,
choose safari > preferences > advanced > show develop menu in menu bar).
...if you've not used vo before, you will be given a welcome screen where you can
choose to start vo or not, and run through a rather useful tutorial to learn how to use it.
...you can
choose whether to make a donation or download it for free; you'll also need to give them your e-mail address before you can download it.
...here you can
choose from a couple of options, then press the ok button to get going.
Handling common HTML and CSS problems - Learn web development
linters another good option to
choose is a so-called linter application, which not only points out errors, but can also flag up warnings about bad practices in your css, and other points besides.
...on windows/linux) and
choose the install option in the left hand menu.
... right/cmd + click on the element in question and
choose inspect/inspect element (or whatever the option is in your browser) — this should open up the dev tools in your browser, with the element highlighted in the dom inspector.
...you can
choose which browsers you want to make sure you support using the notation outlined in autoprefixer options; also see browserslist queries, which this is based on, for more detail.
Strategies for carrying out testing - Learn web development
choose the google analytics (web) option, and click the sign up button.
...you tend to
choose the hard drive space you want for each install; you could get away with probably 10gb, but some sources recommend up to 50gb or more, so the operating system will run reliably.
...you'll: provide a name for the new virtual machine
choose which operating system and version you are installing on it set how much ram should be allocated (we'd recommend something like 2048mb, or 2gb) create a virtual hard disk (
choose the default options across the three dialog boxes containing create a virtual hard disk now, vdi (virtual disk image), and dynamically allocated).
...
choose the file location and size for the virtual hard disk (
choose a sensible name and location to keep it, and for the size specify around 50gb, or as much as you are comfortable with specifying).
Setting up your own test automation environment - Learn web development
we are going to
choose selenium's official selenium-webdriver, as the documentation seems fairly up-to-date and it is well-maintained.
...
choose the latest stable version number (i.e.
... not a beta), and from the list
choose a file starting with "selenium-server-standalone".
...we have tested this locally, but you could set this up on just about any server along with the relevant browser drivers, and then connect your scripts to it using the url you
choose to expose it at.
Capturing a minidump
next, open the "file" menu and
choose "open executable...".
... in the file
chooser window that appears, open the firefox.exe executable in your firefox program folder (c:\program files\mozilla firefox).
... next, open the "file" menu and
choose "attach to a process...".
... in the file
chooser window that appears, find the firefox.exe executable process with the lowest pid.
Configuring Build Options
this is useful if you
choose to have multiple mozconfig files for different applications or configurations (see below for a full example).
...
choose an application the --enable-application=application flag is used to select an application to build.
...
choose one of the following options to add to your mozconfig file: browser (firefox) ac_add_options --enable-application=browser note: this is the default mail (thunderbird) ac_add_options --enable-application=comm/mail mozilla suite (seamonkey) ac_add_options --enable-application=suite calendar (lightning extension, uses thunderbird) ac_add_options --enable-application=comm/mail ac_add_options --enable-calendar selecting build options the build options you
choose depends on what application you are building and what you will be using the build for.
... the following build options are very common: optimization ac_add_options --enable-optimize enables the default compiler optimization options note: this is enabled by default ac_add_options --enable-optimize=-o2
chooses particular compiler optimization options.
HTTP delegation
or you might
choose to leverage an existing http client library and implement the callback functions as a thin layer that forwards requests from nss to the http client library.
...(nss might
choose to be smart, and only create a single http server session object for each server encountered.
... nss might also
choose to be simple, and request multiple objects for the same server.
...nss may
choose to repeatedly call a "network connection keep alive" function (sec_httpserver_keepalivesessionfcn) on the server session object, giving application code a chance to do whatever is required.
HTTP delegation
or you might
choose to leverage an existing http client library and implement the callback functions as a thin layer that forwards requests from nss to the http client library.
...(nss might
choose to be smart, and only create a single http server session object for each server encountered.
... nss might also
choose to be simple, and request multiple objects for the same server.
...nss may
choose to repeatedly call a "network connection keep alive" function (sec_httpserver_keepalivesessionfcn) on the server session object, giving application code a chance to do whatever is required.
Mozilla
all top level document loading (navigation) channels are set
chooseapplicationcache flag, which happens in nsdocshell::douriload().
...nsiapplicationcacheservice::
chooseapplicationcache is given the url the channel is about to load.
...you can
choose either depending on your needs and resources.
...you can in every case
choose the program you prefer to do some operations, and you can also decide not to use any of my scripts and manually enter all of the commands by hand.
Accessibility Inspector - Firefox Developer Tools
starting in firefox 79, it is automatically enabled when you do one of the following:
choose accessibility in the tools > web developer menu.
... right-click in the main browser window, and
choose inspect accessibility properties in the context menu.
... right-click an item in the html pane of the page inspector, and
choose show accessibility properties in the context menu.
... when the accessibility features are turned on, there are a number of useful additional features available in the devtools, which are detailed below: context menu options an extra context menu option is added, both for the general context menu on the web page when right/ctrl + clicking a ui feature, and the html pane of the page inspector when right/ctrl + clicking a dom element: when you
choose the inspect accessibility properties/show accessibility properties context menu options, the accessibility tab is immediately opened to show the corresponding accessibility tree item and its properties.
Settings - Firefox Developer Tools
you can
choose between the default setting at the bottom of the windows, or move the tools to the left or right side of the screen.
...you can also
choose to open the tools in a separate window.
... themes this enables you to
choose one of two themes.
... keybindings
choose the default codemirror keybindings or keybindings from one of several popular editors: vim emacs sublime text advanced settings show gecko platform data a setting to control whether or not profiles should include gecko platform symbols.
quotes - CSS: Cascading Style Sheets
14safari ios full support 9samsung internet android full support 1.0auto keywordchrome no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingedge no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingfirefox full support 70ie ...
... no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingopera no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingsafari no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingwebview android ...
... no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingchrome android no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingfirefox android no support noopera android no support nonotes no support nonotes notes this value is not supported, but the default browser behav...
...ior is to
choose appropriate quotes for the user's language settingsafari ios no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settingsamsung internet android no support nonotes no support nonotes notes this value is not supported, but the default browser behavior is to
choose appropriate quotes for the user's language settinglegend full support full support no support n...
<transform-function> - CSS: Cascading Style Sheets
examples transform function comparison the following example provides a 3d cube created from dom elements and transforms, and a select menu allowing you to
choose different transform functions to transform the cube with, so you can compare the effects of the different types.
...
choose one, and the transform is applied to the cube; after 2 seconds, the cube reverts back to its starting state.
... html <main> <section id="example-element"> <div class="face front">1</div> <div class="face back">2</div> <div class="face right">3</div> <div class="face left">4</div> <div class="face top">5</div> <div class="face bottom">6</div> </section> <div class="select-form"> <label>select a transform function</label> <select> <option selected>
choose a function</option> <option>rotate(360deg)</option> <option>rotatex(360deg)</option> <option>rotatey(360deg)</option> <option>rotatez(360deg)</option> <option>rotate3d(1, 1, 1, 90deg)</option> <option>scale(1.5)</option> <option>scalex(1.5)</option> <option>scaley(1.5)</option> <option>scalez(1.5)</option> <option>scale3d(1, 1.5, 1.5)</o...
...rgba(210,210,0,.7); transform: rotatex(90deg) translatez(50px); } .bottom { background: rgba(210,0,210,.7); transform: rotatex(-90deg) translatez(50px); } .select-form { margin-top: 50px; } javascript const selectelem = document.queryselector('select'); const example = document.queryselector('#example-element'); selectelem.addeventlistener('change', () => { if(selectelem.value === '
choose a function') { return; } else { example.style.transform = `rotate3d(1, 1, 1, 30deg) ${selectelem.value}`; settimeout(function() { example.style.transform = 'rotate3d(1, 1, 1, 30deg)'; }, 2000) } }) result specifications specification status comment css transforms level 2the definition of '<transform-function>' in that specification.
<input type="datetime-local"> - HTML: Hypertext Markup Language
clicking the down arrow on the right hand side brings up a date picker to allow you to
choose a date; you have to enter the time manually.
... let's look at an example; here we've set minimum and maximum date/time values, and also made the field required: <form> <div> <label for="party">
choose your preferred party date and time (required, june 1st 8.30am to june 30th 4.30pm):</label> <input id="party" type="datetime-local" name="partydate" min="2017-06-01t08:30" max="2017-06-30t16:30" required> <span class="validity"></span> </div> <div> <input type="submit" value="book party!"> </div> </form> if you try to submit the form with an incomplete date (o...
...for example, try viewing the following demo in a non-supporting browser: <form> <div> <label for="party">
choose your preferred party date and time (required, june 1st 8.30am to june 30th 4.30pm):</label> <input id="party" type="datetime-local" name="partydate" min="2017-06-01t08:30" max="2017-06-30t16:30" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}t[0-9]{2}:[0-9]{2}" required> <span class="validity"></span> </div> <div> <input type="submit" value="book party!"> </div> <inp...
... the html looks like so: <form> <div class="nativedatetimepicker"> <label for="party">
choose a date and time for your party:</label> <input type="datetime-local" id="party" name="bday"> <span class="validity"></span> </div> <p class="fallbacklabel">
choose a date and time for your party:</p> <div class="fallbackdatetimepicker"> <div> <span> <label for="day">day:</label> <select id="day" name="day"> </select> </span> <span> ...
<link>: The External Resource Link element - HTML: Hypertext Markup Language
these provide useful hints to allow the browser to
choose the most appropriate icon available.
...for example, the browser might
choose a different rendering of a link as a function of the methods specified; something that is searchable might get a different icon, or an outside link might render with an indication of leaving the current site.
... the user can
choose which style sheet to use by choosing it from the view > page style menu.
... <link href="default.css" rel="stylesheet" title="default style"> <link href="fancy.css" rel="alternate stylesheet" title="fancy"> <link href="basic.css" rel="alternate stylesheet" title="basic"> providing icons for different usage contexts you can include links to several different icons on the same page, and the browser will
choose which one works best for its particular context using the rel and sizes values as hints.
Media container formats (file types) - Web media technologies
if you have any specific encoding requirements, make sure the container you
choose supports the appropriate codecs.
... if for any reason you are only able to provide media in a single format,
choose a format that's available on the broadest selection of devices and browsers, such as mp3 (for audio) or mp4 (for video and/or audio).
...it's no longer necessary to
choose between mp3's broad compatibility and the need to pay royalties when using it.
...you could even
choose to offer a retro-like quicktime or avi fallback for good measure.
Codecs used by WebRTC - Web media technologies
some browsers may
choose to allow other codecs as well.
...a given browser may also support other codecs; however, cross-platform and cross-device compatibility may be at risk if you use other codecs without carefully ensuring that support exists in all browsers your users might
choose.
... if you
choose to prefer a codec other than the mandatory ones, you should at least allow for fallback to one of the mandatory codecs if support is unavailable for the codec you prefer.
...whichever you
choose, be sure to read the information provided in this article about any particular configuration issues you may need to contend with for that codec.
Add to Home screen - Progressive web apps (PWAs)
if you
choose not to add it to your home screen at this point, you can do so later using the add to home screen icon in the main chrome menu.
... regardless of which browser you are using, when you
choose to add the app to your home screen, you'll see it appear along with a short title, in the same way that native apps do.
...to make it feel like a distinct app (and not just a web page), you should
choose a value such as fullscreen (no ui is shown at all) or standalone (very similar, but system-level ui elements such as the status bar might be visible).
...you can include more sizes if you want; android will
choose the most appropriate size for each different use case.
Index - XSLT: Extensible Stylesheet Language Transformations
but it may be after or inside elements that won't be part of the output (like <xsl:
choose> or <xsl:apply-templates> etc.).
... 25 <xsl:
choose> element, reference, xslt,
choose the <xsl:
choose> element defines a choice among a number of alternatives.
...to achieve the functionality of an if-then-else statement, however, use the <xsl:
choose> element with one <xsl:when> and one <xsl:otherwise> children.
...because xslt permits no side-effects, once the value of the variable has been established, it remains the same until the variable goes out of scope 53 <xsl:when> element, reference, xslt, when the <xsl:when> element always appears within an <xsl:
choose> element, acting like a case statement.
Setting Up a Development Environment - Archive of obsolete content
in the "start in" textbox you should
choose %p (directory path of active project).
...when creating a development profile for your add-on, make sure you
choose an easy name for the profile folder, and set it in your makefile in order to take advantage of the install command.
... signing extensions in order to provide additional security for your users, you can
choose to add a signature to your extension.
Signing an XPI - Archive of obsolete content
don't forget to delete the certificate from mozilla firefox once you've finished testing firefox 1.5: from the tools menu
choose options->advanced->security->view certificates->authorities firefox 1.0: from the tools menu
choose options->advanced->certificates->manage certificates->authorities press the import button.
... navigate to the folder containing x509.cert and
choose it.
... to find the name, in mozilla firefox navigate to the certificate manager (described in step 11),
choose your certificates, select the new certificate, press view,
choose details and look at the first entry in the certificate fields tree-view.
Index - Archive of obsolete content
one way is to encounter a file with an unknown content type, the other is to
choose "save link target as" from the context menu of a link.
...normally the application locale is inherited from the os environment of the host system, however there are situations when you might want to give users the option to override the default setting and
choose a different locale.
... 2029 debug.setnonusercodeexceptions debug, example, javascript, property, setnonusercodeexceptions if this property is set to true within a given scope, the debugger can then
choose whether to take some specified action on exceptions thrown inside that scope: for instance, if the developer wishes to break on user-unhandled exceptions.
Namespaces - Archive of obsolete content
an uri is any string, although most people
choose a url-based uri because urls are an easy way to hope for uniqueness.
... although there's nothing preventing someone else from using the namespace http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul, it's fairly unlikely anyone would
choose that accidentally.
... even if they did accidentally
choose it, they may not define the same elements as xul anyway (e.g., <textbox/>) in their schema/dtd.
Mozilla XForms User Interface - Archive of obsolete content
range allows the user to
choose a value from within a specific range of values.
...allows the user to
choose one or multiple values from a list of pre-defined values (see the spec).
...allows the user to
choose a single value from a list of pre-defined values (see the spec).
Choosing Standards Compliance Over Proprietary Practices - Archive of obsolete content
an organization must have the assurance that the standard they
choose to incorporate into their development process will be relevant in the future.
...when customers
choose to use a particular product, they must have a positive experience with consistent, reliable, and predictable behavior.
... the most compelling dilemma is how an organization
chooses to follow open external standards vs.
Accessible multimedia - Learn web development
on youtube you can
choose to generate automated captions/transcripts.
...video and
choose the three dot menu (.
...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.
Web fonts - Learn web development
go to font squirrel and
choose two fonts — a nice interesting font for the headings (maybe a nice display or slab serif font), and slightly less flashy and more readable font for the paragraphs.
... use the filters on the left-hand side to display the kinds of fonts you want to
choose and
choose a couple of fonts you like.
...if you are importing multiple weights of the same font, you can specify what their weight/style is and then use different values of font-weight/font-style to
choose between them, rather than having to call all the different members of the font family different names.
What text editors are available? - Learn web development
objective: learn how to
choose a text editor that best suits your needs as a web developer.
... summary a website consists mostly of text files, so for a fun, pleasant development experience you should
choose your text editor wisely.
... dig deeper choice criteria so, in more detail, what should you be thinking about when you
choose a text editor?
How do I use GitHub Pages? - Learn web development
click plus (+) in the top right of the github homepage, then
choose new repository.
...to do this, from the homepage of your repository
choose settings, then scroll down until you get to the github pages section.
... underneath source,
choose master branch.
Sending form data - Learn web development
on the server side: retrieving the data whichever http method you
choose, the server receives a string that will be parsed in order to get the data as a list of key/value pairs.
...to get it working again, we have found that you can load up the mamp app, then
choose the menu options mamp > preferences > php, and set "standard version:" to "7.2.x" (x will differ depending on what version you have installed).
... for example: <form method="post" action="https://www.foo.com" enctype="multipart/form-data"> <div> <label for="file">
choose a file</label> <input type="file" id="file" name="myfile"> </div> <div> <button>send the file</button> </div> </form> note: servers can be configured with a size limit for files and http requests in order to prevent abuse.
Making decisions in your code — conditionals - Learn web development
the following live example shows a simple theme
chooser where the styling for the site is applied using a ternary operator.
...update('black','white') : update('white','black'); } here we've got a <select> element to
choose a theme (black or white), plus a simple <h1> to display a website title.
...in the code you've got: a <select> element to allow the user to
choose between different months.
Fetching data from the server - Learn web development
const verse
choose = document.queryselector('select'); const poemdisplay = document.queryselector('pre'); verse
choose.onchange = function() { const verse = verse
choose.value; updatedisplay(verse); }; let's define our updatedisplay() function.
...to fix this, add the following two lines at the bottom of your code (just above the closing </script> tag) to load verse 1 by default, and make sure the <select> element always shows the correct value: updatedisplay('verse 1'); verse
choose.value = 'verse 1'; serving your example from a server modern browsers will not run xhr requests if you just run the example from a local file.
...note that you could also
choose to store your promise in a variable and chain .then() onto that instead.
Introduction to the server side - Learn web development
the server-side code has full access to the server operating system and the developer can
choose what programming language (and specific version) they wish to use.
... note: client-side frameworks are often used to help speed up development of client-side code, but you can also
choose to write all the code by hand; in fact, writing your code by hand can be quicker and more efficient if you only need a small, simple web site ui.
... in a future article we'll help you
choose the best web framework for your first site.
Getting started with Vue - Learn web development
the first menu you’ll be presented with allows you to
choose which features you want to include in your project.
... if you've never run the vue cli before, you'll get one more question — you'll be asked to
choose a package manager.
... note: depending on the options you select when creating a new project, there might be other directories present (for example, if you
choose a router, you will also have a views directory).
Script security
because the wrapper we
choose is specific to the relationship between the two compartments, the security policy it implements can be static: when the caller uses the wrapper, there's no need to check who is making the call or where it is going.
... a gets access to all of b, by default with xray vision, which it may
choose to waive.
... b gets no access to a, although a may
choose to export objects to b.
How to get a stacktrace with WinDbg
(start->all programs->debugging tools for windows->windbg) next, open the "file" menu and
choose "open executable...".
... in the file
chooser window that appears, open the firefox.exe executable in your firefox program folder (c:\program files\mozilla firefox).
...if firefox hangs and there is no command prompt available in the debugger, open the debug menu and
choose break.
gettext
the second part is evaluated and the result of the evaluation is used to
choose the right msgstr.
...for instance, "log in" as a button label might be translated by a localizer as the imperative, but for a dialog title, the localizer may
choose to use a different form, like gerund (much like "logging in").
...to fix this, you may
choose to write your own helper gettext functions.
XForms Accessibility
range allows the user to
choose a value from within a specific range of values (see the spec, the docs).
... select allows the user to
choose one or multiple values from a list of pre-defined values (see the spec, the docs).
... it can have the following representations: listbox checkboxes group select1 allows the user to
choose a single value from a list of pre-defined values (see the spec, the docs).
Embedded Dialog API
applications concerned with a consistent overall dialog appearance will probably
choose to implement the complete api as well.
...many embeddors however
choose to implement their own dialogs, and this is of course the only way to gain complete control and consistency.
...and note that if an application
chooses to replace one of gecko's default dialog components, that application must override every dialog in the component.
Setting up the Gecko SDK
if you
choose some other location, remember to adjust the settings described here (e.g., in the building a microsoft visual cpp project section below) to point to this new location.
...in the win32 dynamic-link library dialog that displays (see below), you can
choose the default selection "an empty dll project" as the type of dll.
...to add these libraries, select the link tab, then
choose the input category.
nsIApplicationCacheService
1.0 66 introduced gecko 1.9.1 inherits from: nsisupports last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) method overview void cacheopportunistically(in nsiapplicationcache cache, in acstring key); nsiapplicationcache
chooseapplicationcache(in acstring key); nsiapplicationcache createapplicationcache(in acstring group); void deactivategroup(in acstring group); nsiapplicationcache getactivecache(in acstring group); nsiapplicationcache getapplicationcache(in acstring clientid); void getgroups([optional] out unsigned long count, [array, size_is(count), retval] out string groupids); methods cacheopportunisti...
...
chooseapplicationcache() tries to find the best application cache to serve a specified resource.
... nsiapplicationcache
chooseapplicationcache( in acstring key ); parameters key the cache entry key for which to select an application cache.
All keyboard shortcuts - Firefox Developer Tools
in the editor preferences section of the developer tools settings, you can
choose to use vim, emacs, or sublime text key bindings instead.
... shift + tab start editing property or value (rules view only, when a property or value is selected, but not already being edited) enter or space return or space enter or space cycle up and down through auto-complete suggestions (rules view only, when a property or value is being edited) up arrow , down arrow up arrow , down arrow up arrow , down arrow
choose current auto-complete suggestion (rules view only, when a property or value is being edited) enter or tab return or tab enter or tab increment selected value by 1 up arrow up arrow up arrow decrement selected value by 1 down arrow down arrow down arrow increment selected value by 100 shift + page up shift + page up shift + page up ...
...ctrl + a move to the end of the line end ctrl + e ctrl + e execute the current expression enter return enter add a new line, for entering multiline expressions shift + enter shift + return shift + enter autocomplete popup these shortcuts apply while the autocomplete popup is open: command windows macos linux
choose the current autocomplete suggestion tab tab tab cancel the autocomplete popup esc esc esc move to the previous autocomplete suggestion up arrow up arrow up arrow move to the next autocomplete suggestion down arrow down arrow down arrow page up through autocomplete suggestions page up page up page up page dow...
Signaling and video calling - Web APIs
you can learn more about the codecs which webrtc requires browsers to support, which additional codecs are supported by which browsers, and how to
choose the best codecs to use in the guide codecs used by webrtc.
...instead, they're sent by your own end of the call so that you can take on the job of transmitting the data over whatever channel you
choose.
... receiving ice candidates the signaling server delivers each ice candidate to the destination peer using whatever method it
chooses; in our example this is as json objects, with a type property containing the string "new-ice-candidate".
Writing WebSocket servers - Web APIs
warning: the server may listen on any port it
chooses, but if it
chooses any port other than 80 or 443, it may have problems with firewalls and/or proxies.
... exchanging data frames either the client or the server can
choose to send a message at any time — that's the magic of websockets.
... pings and pongs: the heartbeat of websockets at any point after the handshake, either the client or the server can
choose to send a ping to the other party.
Example and tutorial: Simple synth keyboard - Web APIs
this lets us provide a set of common values and special strings which the browser may optionally
choose to display in some fashion; we provide names for the values 0.0 ("mute") and 1.0 ("100%").
... wavepicker is the <select> element used to
choose the waveform to use for the notes.
... sineterms and cosineterms will be used to store the data for generating the waveform; each will contain an array that's generated when the user
chooses "custom".
Layout using named grid lines - CSS: Cascading Style Sheets
you might
choose to name just some key lines for your layout.
... while you can
choose any name, if you append -start and -end to the lines around an area, as i have in the example above, grid will create you a named area of the main name used.
...as you start to build out your own layouts, you will find that the syntax becomes more familiar and you
choose the ways that work best for you and the type of projects you like to build.
Introducing the CSS Cascade - CSS: Cascading Style Sheets
user stylesheets the user (or reader) of the web site can
choose to override styles in many browsers using a custom user stylesheet designed to tailor the experience to the user's wishes.
... user agent normal 2 user normal 3 author normal 4 animations 5 author !important 6 user !important 7 user agent !important 8 transitions in case of equality, the specificity of a value is considered to
choose one or the other.
... when several keyframes are appropriate, it
chooses the latest defined in the most important document, but never combined all together.
<input type="checkbox"> - HTML: Hypertext Markup Language
<fieldset> <legend>
choose your interests</legend> <div> <input type="checkbox" id="coding" name="interest" value="coding"> <label for="coding">coding</label> </div> <div> <input type="checkbox" id="music" name="interest" value="music"> <label for="music">music</label> </div> </fieldset> in this example you will see that we've given each checkbox the same name.
...see the below example: <fieldset> <legend>
choose your interests</legend> <div> <input type="checkbox" id="coding" name="interest" value="coding" checked> <label for="coding">coding</label> </div> <div> <input type="checkbox" id="music" name="interest" value="music"> <label for="music">music</label> </div> </fieldset> providing a bigger hit area for your checkboxes in the above examples, you may have noticed that you ...
... html <form> <fieldset> <legend>
choose your interests</legend> <div> <input type="checkbox" id="coding" name="interest" value="coding"> <label for="coding">coding</label> </div> <div> <input type="checkbox" id="music" name="interest" value="music"> <label for="music">music</label> </div> <div> <input type="checkbox" id="art" name="interest" value="art"> <label for="art">art</labe...
HTML documentation index - HTML: Hypertext Markup Language
it may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will
choose the most suitable one.
... 86 <datalist>: the html data list element element, html, html forms, html5, reference, web the html <datalist> element contains a set of <option> elements that represent the permissible or recommended options available to
choose from within other controls.
... 126 <input type="file"> directory picker, file, file picker, files, form input, html, html forms, input type, reference, type <input> elements with type="file" let the user
choose one or more files from their device storage.
HTTP Index - HTTP
5 choosing between www and non-www urls guide, http, url a recurring question among website owners is whether to
choose non-www or www urls.
... 199 x-dns-prefetch-control dns, http, x-dns-prefetch-control, header the x-dns-prefetch-control http response header controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may
choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
...the user-agent or the user should
choose one of them.
Working with objects - JavaScript
this method can be very useful, because it allows you to
choose the prototype object for the object you want to create, without having to define a constructor function.
...example that defines the same getter and setter used in the previous example: var o = { a: 0 }; object.defineproperties(o, { 'b': { get: function() { return this.a + 1; } }, 'c': { set: function(x) { this.a = x / 2; } } }); o.c = 10; // runs the setter, which assigns 10 / 2 (5) to the 'a' property console.log(o.b); // runs the getter, which yields a + 1 or 6 which of the two forms to
choose depends on your programming style and task at hand.
... if you already go for the object initializer when defining a prototype you will probably most of the time
choose the first form.
Digital audio concepts - Web media technologies
the audio bandwidth is also affected by the codec, if it
chooses to discard any frequency bands while encoding the sound.
...since the amplitude varies over the duration of that time slice, the a/d converter must
choose a value to represent that slice, whether by simply taking the value at a particular moment (in the diagram above, the midpoint of each slice is used as the value), or by averaging the amplitude over the duration of each sample.
...all you need to do is consider the options and your use case, then
choose the appropriate codec for your needs.
Installing and uninstalling web apps - Progressive web apps (PWAs)
web application installation is a feature available in modern browsers that allows users to
choose to easily and conveniently “install” a web application on their device so they can access it in the same way they would any other installed app.
... if you
choose not to add it to your home screen at this point, you can do so later using the "add to home screen" icon in the main chrome menu.
... the installed web application regardless of which browser and device you're using, when you
choose to add the app to your home screen or app launcher, it'll show up there looking just like any application.
Graphic design for responsive sites - Progressive web apps (PWAs)
this article provides a high level discussion aimed at helping you to
choose the best option for your graphical needs.
...this is why we have included an entire docs section covering each of these topics (the one you are currently in, and app layout.) in addition, these days there are so many more technologies to
choose from than your humble bmps, jpgs, gifs and pngs.
... but what should you
choose?
hotkeys - Archive of obsolete content
the following commonly used hotkey combinations will not pass amo review: accel-z, accel-c, accel-x, accel-v or accel-q if you
choose to use a key combination that's already defined,
choose one which makes sense for the operation it will perform.
... no matter what you
choose, it's likely to annoy some people, and to clash with some other add-on, so consider making the combination you
choose user-configurable.
Creating annotations - Archive of obsolete content
you should see the highlight appearing when you move the mouse over certain elements: click on the highlight and you should see something like this in the console output: info: show info: http://blog.mozilla.com/addons/2011/02/04/overview-amo-review-process/, post-2249,when you submit a new add-on, you will have to
choose between 2 review tracks: full review and preliminary review.
...you should see a panel with a text area for a note: enter the note and press the return key: you should see console output like this: info: http://blog.mozilla.com/addons/2011/02/04/overview-amo-review-process/, post-2249,when you submit a new add-on, you will have to
choose between 2 review tracks: full review and preliminary review.
Adding windows and dialogs - Archive of obsolete content
confirm confirmation dialogs display a text with a yes / no question, and prompts the user to
choose an answer.
...you'll see that you can
choose from a wide variety of buttons, associate any action you need to them, override their labels, and even add completely customized extra buttons.
Appendix D: Loading Scripts - Archive of obsolete content
although wary authors can
choose to cache instances of their modules so that modules are loaded only once globally, this method can be easily misused to re-load scripts for each new window where they would be better loaded only once globally per session.
...although wary authors can
choose to cache instances of their modules so that modules are loaded only once globally, this method can be easily misused to re-load scripts for each new window where they would be better loaded only once globally per session.
Local Storage - Archive of obsolete content
some extension developers prefer to leave the data there, so that if the user
chooses to install the extension again, all the previous data will be recovered.
...a good argument can be done for both, so it is up to you to
choose what to do in this case.
Repackaging Firefox - Archive of obsolete content
click the "
choose" button to select the xpi file containing your extension; the id and name fields will be filled out automatically.
... first, set the source directory by clicking its "
choose" button.
Frequently Asked Questions - Archive of obsolete content
why am i asked to
choose a program to open svg files?
... individuals can
choose to use a plugin to view svg in mozilla on their own computers, but there is no way for svg content authors to make mozilla use a plugin when people view the svg files on their website.
Using the Editor from XUL - Archive of obsolete content
the user
chooses 'close' from the file menu, uses the key shortcut, or quits the application, causing all windows to be closed.
... if the user
chooses to save the document, or throw away their changes, then the window is closed.
tabbrowser - Archive of obsolete content
onbookmarkgroup not in firefox type: script code this code executes when the user
chooses the "bookmark this group of tabs" command.
...this method works the same as addtab except for the loadinbackground parameter which allows you to
choose whether to open the new tab in foreground or background.
How to enable locale switching in a XULRunner application - Archive of obsolete content
normally the application locale is inherited from the os environment of the host system, however there are situations when you might want to give users the option to override the default setting and
choose a different locale.
...defaults/preferences/prefs.js /* don't inherit os locale */pref("intl.locale.matchos", "false");/*
choose own fallback locale; later it can be overridden by the user */pref("general.useragent.locale", "en-gb"); note that some distributions of xulrunner or firefox don't honour the "intl.locale.matchos" setting, so in those cases you won't be able to override the os locale [debian iceweasel bug #417961].
XForms Custom Controls - Archive of obsolete content
should the form author instead
choose to use appearance='compact' on this control, we would render a listbox widget.
... you are free to
choose what type of binding you will extend to provide the foundation for your custom control.
Implementation Status - Archive of obsolete content
7.10.1 instance() partial instance() won't work with no parameter or empty string as a parameter 419190; 7.10.2 current() supported 7.10.3 id() unsupported 7.10.4 context() unsupported 7.11.1
choose() unsupported 7.11.2 event() supported 7.12 extension functions unsupported not a compliance requirement for an xforms processor 8.
...but the user can
choose to remove this restriction on a site by site basis via a preference.
Mobile touch controls - Game development
overview: control mechanisms next the future of mobile gaming is definitely web, and many developers
choose the mobile first approach in their game development process — in the modern world, this generally also involves implementing touch controls.
...the good thing about using phaser is that it offers helper variables and functions for easier and faster development, but it's entirely up to you which approach you to
choose.
Gecko FAQ - Gecko Redirect 1
third parties such as isvs and hardware vendors will pick and
choose the components they want to use in their applications or hardware devices.
...these developers can pick and
choose the browser components they want from among those that gecko offers, and package these components alongside their own within their finished products.
Main Axis - MDN Web Docs Glossary: Definitions of Web-related terms
these are: row row-reverse column column-reverse should you
choose row or row-reverse then your main axis will run along the row in the inline direction.
...
choose column or column-reverse and your main axis will run top to bottom of the page in the block direction.
Mobile accessibility - Learn web development
once you've selected the option you want, double-click to
choose that option.
... using the rotor when voiceover is turned on, you have a navigation feature called the rotor available to you, which allows you to quickly
choose from a number of common useful options.
Beginner's guide to media queries - Learn web development
for users who can hover, we might
choose to make them available when a link is hovered over.
... how to
choose breakpoints in the early days of responsive design, many designers would attempt to target very specific screen sizes.
What are browser developer tools? - Learn web development
opera: developer ➤ developer tools context menu: press-and-hold/right-click an item on a webpage (ctrl-click on the mac), and
choose inspect element from the context menu that appears.
...double-click an element, or right-click it and
choose edit as html from the context menu.
CSS basics - Learn web development
(in this example, color is a property of the <p> elements.) in css, you
choose which properties you want to affect in the rule.
...this
chooses one out of many possible appearances for a given property.
Getting started with HTML - Learn web development
you can feel free to
choose which one you prefer.
...it is up to you to
choose the style of formatting (how many spaces for each level of indentation, for example), but you should consider formatting it.
Introduction to events - Learn web development
the user
chooses a key on the keyboard.
... note: you can use any name you like for the event object — you just need to
choose a name that you can then use to reference it inside the event handler function.
Test your skills: Functions - Learn web development
functions 1 for the first task, you have to create a simple function —
choosename() — that prints a random name from the provided array (names) to the provided paragraph (para), and then run it once.
... update the
choosename() function so that it makes use of the random number function, takes the array to
choose from as a parameter (making it more flexible), and returns the result.
Drawing graphics - Learn web development
in this case we want a 2d canvas, so add the following javascript line below the others inside the <script> element: const ctx = canvas.getcontext('2d'); note: other context values you could
choose include webgl for webgl, webgl2 for webgl 2, etc., but we won't need those in this article.
...we'll
choose three.js, as it is one of the most popular ones.
Handling text — strings in JavaScript - Learn web development
double quotes in javascript, you can
choose single quotes or double quotes to wrap your strings in.
...you should
choose one and stick to it, however; differently quoted code can be confusing, especially if you use two different quotes on the same string!
Deploying our app - Learn web development
depending on whether you authorized netlify before, you might need to authorize netlify with github, and
choose what account you want to authorize it for (if you have multiple github accounts or orgs).
...
choose the one you pushed your project to.
Client-side tooling overview - Learn web development
how to
choose and get help with a particular tool most tools tend to get written and released in isolation, so although there’s almost certainly help available it’s never in the same place or format.
... it can therefore be hard to find help with using a tool, or even to
choose what tool to use.
Frequently Asked Questions for Lightweight themes
there are hundreds of thousands community-designed themes to
choose from, with more added every day.
...you can either: visit the gallery,
choose your favorite theme, and click on your choice to instantly change the look of your browser.
Adding a new event
first, you need to
choose which type you need.
...you should
choose a good header file from what your event class represents.
Application cache implementation overview
all top level document loading (navigation) channels are set
chooseapplicationcache flag, which happens in nsdocshell::douriload().
...nsiapplicationcacheservice::
chooseapplicationcache is given the url the channel is about to load.
Creating MozSearch plugins
template="http://ff.search.yahoo.com/gossip?output=fxjson&command={searchterms}" /> <url type="text/html" method="get" template="http://search.yahoo.com/search"> <param name="p" value="{searchterms}"/> <param name="ei" value="utf-8"/> <mozparam name="fr" condition="pref" pref="yahoo-fr" /> </url> <searchform>http://search.yahoo.com/</searchform> </searchplugin> let's say the user
chooses to use the yahoo!
...firefox will use the above search engine description to construct the following search url: http://search.yahoo.com/search?p=mozilla&ei=utf-8&fr=moz2 if the user clicks the magnifying glass icon in the search bar, or
chooses the web search option in the tools menu when the search bar isn't visible, the browser will take them to http://search.yahoo.com/, the value of the <searchform> element.
Creating a spell check dictionary add-on
it is important to
choose the right locale code, or the spell checker will not be able to match the language of your dictionary against the language of a web page in order to select the right dictionary to use.
... </description> </rdf> there are some rules about how you should adapt the install.rdf file: if you are creating a new dictionary add-on, we recommend that the em:id consists of your locale code followed by @dictionaries.addons.mozilla.org, but if there is more than one dictionary for your language (for example the german "old spelling" versus "new spelling" dictionaries), you may need to
choose another id, that follows the rules of em:id.
Debugging on Mac OS X
a new dialog titled "
choose an executable to launch" will pop up.
...these directions were written using xcode 6.3.1 complete all the steps above under "creating the project" from the "product" menu, ensure the scheme you created is selected under "scheme", then
choose "scheme > edit scheme" in the resulting popup, click "duplicate scheme" give the resulting scheme a more descriptive name than "copy of scheme" select "run" on the left-hand side of the settings window, then select the "info" tab.
Obsolete Build Caveats and Tips
you may
choose not to install the sample code and documentation to save space and download time.
... for all sdks, you may
choose not to install sample code and documentation to save space and download time.
Tracking Protection
you will also be able to disable tracking protection entirely if you
choose by accessing the tracking settings.
... if tracking cookies were present, you would be able to view the list by clicking on "blocking tracking cookies" in the above image to view the following popup: you can click "manage content blocking" to change the blocking settings: how does firefox
choose what to block?
Firefox UI considerations for web developers
there are a number of places within the firefox user interface where web sites are listed for the user to
choose a destination to visit or a site to manage in some way.
... how an icon is selected the new tab page
chooses icons to use for top sites by trying a series of methods until it obtains an icon to use: a global "top sites" list is checked.
L10n testing with xcode
select the client project in the left pane and
choose editor > import localizations from the toolbar and select your localized xliff file.
...
choose product > scheme > edit scheme from the toolbar menu.
Localization content best practices
localization files
choose good key ids the ids (names) chosen for your keys, regardless of the file format, should always be descriptive of the string, and its role in the interface (button label, title, etc.).
...for example, to check if it's using a character not available in the original string, given entities "usebookmark.label" and "usebookmark.accesskey", if you change to "
choosebookmark.label" due to a string change, change the access key entity to "
choosebookmark.accesskey" to match it.
Localizing with Mercurial
choose the appropriate command for your distribution and make sure to run as root.
...in order to do so, right-click on your computer icon,
choose properties > advanced > environmental variables, select path and click edit.
Localizing without a specialized tool
if you
choose to localize mozilla with nothing more than a text editing application and not a specialized tool, this document (along with create a new localization) will enable you to learn just what needs to be done.
...you can
choose to use: notepad++ or notepad2 on windows, vim, gedit or kate on gnu/linux, textwrangler on mac os x.
What every Mozilla translator should know
when you create a bug, if you want the person in charge of the l10n to follow up your bug you should cc: l10n@mozilla.com if you
choose to make changes to your localization, you should make the changes local to your disk, push them to your hg repository on merucial, test the changes on a nightly/tinderbox build, fix any errors if some are found and test again, and send the new changeset id as your "opt-in" revisions to the l10-drivers.
... if you
choose to make any changes to the productization elements (i.e.
Profiling with the Firefox Profiler
if you'd like a coarser resolution, you can also
choose a different interval using moz_profiler_startup_interval, which defaults to 1 (unit is millisecond).
... if the default threads to be profiled are insufficient, you can
choose which threads to profile using moz_profiler_startup_filters, which is a comma separated list.
Reporting a Performance Problem
make sure to
choose an appropriate setting for the recording (if you're not sure,
choose firefox platform), and then choosing "start recording".
...if you
choose custom settings (and then clicking edit settings) for the profiler, you can adjust the size of the buffer (presently defaults to 90 mb) and the time interval between data collection (presently defaults to 1 ms).
NSS Sample Code sample2
* this code uses the simplest of the init functions, which does not * require a nss database to exist */ rv = nss_nodb_init("."); if (rv != secsuccess) { fprintf(stderr, "nss initialization failed (err %d)\n", pr_geterror()); goto out; } /*
choose mechanism: ckm_des_cbc_pad, ckm_des3_ecb, ckm_des3_cbc.....
...if you
choose something else, then data padding is the * application's responsibility */ ciphermech = ckm_des_cbc_pad; slot = pk11_getbestslot(ciphermech, null); /* slot = pk11_getinternalkeyslot(); is a simpler alternative but in * theory, it *may not* return the optimal slot for the operation.
PKCS11 module installation
choose "advanced" > "encryption" > "security devices"
choose "load" enter a name for the security module, such as "my client database".
...
choose "browse..." to find the location of the pkcs #11 module on your local computer, and
choose "ok" when done.
SpiderMonkey Build Documentation
specifying compilers and compiler flags if you want to use a compiler other than the one the configure script
chooses for you by default, you can set the cxx variable in the environment when you run configure.
...m, that runs in the arm simulator, you can use the following: ar=ar cc="gcc -m32 -mfpmath=sse -msse -msse2" cxx="g++ -m32 -mfpmath=sse -msse -msse2" \ $src/configure --target=i686-pc-linux --enable-simulator=arm to build a 32-bit version on a 64-bit mac system (the target version is specific to your os/x sdk), you can use the following: $src/configure --target=i386-apple-darwin16.7.0 #
choose the appropriate sdk version for your version of os/x to build a 64-bit version on a 32-bit mac system (e.g.
nsICacheEntryDescriptor
a descriptor with write access can doom the cache entry and
choose to fail pending requests.
...doomandfailpendingrequests() this method with the write access can doom the cache entry and
choose to fail pending requests.
nsIPermissionManager
consumers should
choose this string to be unique, with respect to other consumers.
...consumers should
choose this string to be unique, with respect to other consumers.
nsIProtocolProxyService
otherwise, the consumer may
choose to treat the result as type "direct" if desired.
...it is recommended that any extensions that
choose to call this method make their position value configurable at runtime (perhaps via the preferences service).
XPCOM
this guide provides some explanation and advice on how to
choose between them.observer notificationsthe following are topics that you can observe during the course of an application.
... join the xpcom community
choose your preferred method for joining the discussion: mailing list newsgroup rss feed irc: #developers (learn more)tools: javascript component wizard, visual c++ component wizard, visual c++ component wizard for visual studio 2010, xpcomviewer addon: browse xpcom interfaces easily ...
Add to iPhoto
choose it, and iphoto will start up (if it's not already running) and import the image.
... responding when the "add image to iphoto" option is chosen when the user
chooses to add the image to iphoto, the add() method is executed.
Plugin Roadmap for Firefox - Plugins
users
choose which sites are allowed to activate each plugin.
... august 2017 starting with firefox 55 in august 2017, users must
choose which sites are allowed to activate the flash plugin.
Set a breakpoint - Firefox Developer Tools
when you first
choose to set a conditional breakpoint, a text entry line will appear into which you add the condition you want it to break on: once you've entered your condition and pressed enter/return, the line number will be highlighted in orange: breakpoints list once you've set some breakpoints, the breakpoints list in the right-hand column shows the filename and line number for each one: unsetting a br...
... bring up the context menu over the line highlight and
choose the remove breakpoint option.
Use watchpoints - Firefox Developer Tools
choose break on, and then one of property set property get property get or set a watchpoint icon appears to the right of the property in the scopes pane.
... click the watchpoint icon, or right-click and
choose remove watchpoint.
Migrating from Firebug - Firefox Developer Tools
the css properties of the style attribute of an element, in firebug you have to right-click into the style side panel and
choose edit element style...
... edit cookies to edit a cookie in firebug you have to right-click the cookie and
choose edit from the context menu.
Inspecting web sockets - Firefox Developer Tools
choose the reponse tab to inspect web socket frames sent and received through the selected connection.
... columns in the response pane in the response pane, you can
choose to show the following information about each frame: data size time opcode maskbit finbit the data and time columns are visible by default, but you can customize the interface to see more columns by choosing which ones to show from the context menu that is opened by right-clicking in the table header.
Style Editor - Firefox Developer Tools
the style editor enables you to: view and edit all the stylesheets associated with a page create new stylesheets from scratch and apply them to the page import existing stylesheets and apply them to the page to open the style editor
choose the "style editor" option from the "web developer" menu (which is a submenu in the "tools" menu on the mac).
... in the editor preferences section of the developer tools settings, you can
choose to use vim, emacs, or sublime text key bindings instead.
CSSOMString - Web APIs
when a specification says cssomstring, it depends on the browser vendors to
choose whether to use domstring or usvstring.
... while browser implementations that use utf-8 internally to represent strings in memory can use usvstring when the specification says cssomstring, implementations that already represent strings as 16-bit sequences might
choose to use domstring instead.
HTMLInputElement.webkitdirectory - Web APIs
jamie's 1st birthday pic1000.jpg pic1004.jpg pic1044.jpg don's 40th birthday pic2343.jpg pic2344.jpg pic2355.jpg pic2356.jpg vacations mars pic5533.jpg pic5534.jpg pic5556.jpg pic5684.jpg pic5712.jpg if the user
chooses photoalbums, then the list reported by files will contain file objects for every file listed above—but not the directories.
... example in this example, a directory picker is presented which lets the user
choose one or more directories.
Browser storage limits and eviction criteria - Web APIs
this will only be evicted if the user
chooses to (for example, in firefox you can
choose to delete all stored data or only stored data from selected origins by going to preferences and using the options under privacy & security > cookies & site data).
... storage is temporary by default; developers can
choose to use persistent storage for their sites using the storagemanager.persist() method available in the storage api.
Navigator.msLaunchUri() - Web APIs
the user can
choose to not see the prompt after the first instance for a particular protocol and automatically open the app or service without a user intervention.
...if multiple programs are registered on the system for the given protocol and no default has been chosen, windows prompts the user to
choose one.
Notification.actions - Web APIs
this is a list of the application-defined actions the user can
choose to take immediately within the context of a notification.
... syntax var actions[] = notification.actions; value a read-only array of notificationaction objects, each describing a single action the user can
choose within a notification.
PasswordCredential - Web APIs
this image is intended for display in a credential
chooser.
... passwordcredential.name read only secure context a usvstring containing a human-readable public name for display in a credential
chooser.
PaymentRequest: shippingoptionchange event - Web APIs
for payment requests that request shipping information, and for which shipping options are offered, the shippingoptionchange event is sent to the paymentrequest whenever the user
chooses a shipping option from the list of available options.
...for example, if there are three options (such as "free ground shipping", "2-day air", and "next day"), each time the user
chooses one of those options, this event handler is called to recalculate the total based on the changed shipping option.
RTCConfiguration.certificates - Web APIs
some browsers may simply
choose the first listed certificate and ignore the rest of the list; others may take a different approach.
...the implementation of rtcpeerconnection will
choose which certificate to use based on the algorithms it and the remote peer support, as determined during dtls handshake.
RTCIceCandidate.address - Web APIs
applications being built with user privacy and security in mind can
choose to limit the permitted candidates to relay candidates only.
... doing so prevents the remote user's address from being exposed, but reduces the pool of available candidates to
choose from.
Storage API - Web APIs
quotas and usage estimates the user agent determines, using whatever mechanism it
chooses, the maximum amount of storage a given site can use.
... user agents may use any method they
choose to determine the size of origins' quotas, and are encouraged by the specification to provide popular or frequently-used sites with extra space.
Lifetime of a WebRTC session - Web APIs
in order to exchange signaling information, you can
choose to send json objects back and forth over a websocket connection, or you could use xmpp or sip over an appropriate channel, or you could use xmlhttprequest over https with polling, or any other combination of technologies you can come up with.
...when this happens, the ice agent may
choose to perform ice restart.
Using WebRTC data channels - Web APIs
in this guide, we'll examine how to add a data channel to a peer connection, which can then be used to securely exchange arbitrary data; that is, any kind of data we wish, in any format we
choose.
...while there's no way to control the size of the buffer, you can learn how much data is currently buffered, and you can
choose to be notified by an event when the buffer starts to run low on queued data.
Geometry and reference spaces in WebXR - Web APIs
regardless of the type of reference space you
choose, its type is xrreferencespace or is a type derived from xrreferencespace.
... to support progressive enhancement—and thus broaden the availability of your app or site—you should
choose a reference space that offers the lowest amount of functionality needed, or provide a fallback mechanism that detects failed attempts to obtain reference spaces and tries again with a less powerful alternative.
Inputs and input sources - Web APIs
gaze tracking (following the movements of the eye to
choose targets).
... selecting using the main "select" button or other input on the controller to
choose the targeted direction (or the object at which it points), or to otherwise engage an action.
Web Audio API - Web APIs
the web audio api provides a powerful and versatile system for controlling audio on the web, allowing developers to
choose audio sources, add effects to audio, create audio visualizations, apply spatial effects (such as panning) and much more.
... a simple, typical workflow for web audio would look something like this: create audio context inside the context, create sources — such as <audio>, oscillator, stream create effects nodes, such as reverb, biquad filter, panner, compressor
choose final destination of audio, for example your system speakers connect the sources up to the effects, and the effects to the destination.
ARIA annotations - Accessibility
as an example, let’s say you have a poll/voting ui widget that shows numbers of votes, but you want to summarize the purpose of the widget in a clear description because the ui does not make it clear: <section aria-description="
choose your favourite fruit — the fruit with the highest number of votes will be added to the lunch options next week."> <p>pick your favourite fruit:</p> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit"...
... value="banana"></label></li> </ul> </form> </section> if the descriptive text does appear in the ui, you can link the description to the widget using aria-describedby, like so: <p id="fruit-desc">
choose your favourite fruit — the fruit with the highest number of votes will be added to the lunch options next week.</p> <section aria-describedby="fruit-desc"> <form> <ul> <li><label>apple: <input type="radio" name="fruit" value="apple"></label></li> <li><label>orange: <input type="radio" name="fruit" value="orange"></label></li> <li><label>banana: <input type="radio" name="fruit" value="banana"></label></li> </ul> </form> </section> insertions and deletions a common wish in online document systems like google docs is to be able to track changes, to see wha...
Text labels and names - Accessibility
examples <form> <fieldset> <legend>
choose your favorite monster</legend> <input type="radio" id="kraken" name="monster"> <label for="kraken">kraken</label><br/> <input type="radio" id="sasquatch" name="monster"> <label for="sasquatch">sasquatch</label><br/> <input type="radio" id="mothman" name="monster"> <label for="mothman">mothman</label> </fieldset> </form> you can see a live, interactive version of this...
... <label for="dino-select">
choose a dinosaur:</label> <select id="dino-select"> <optgroup label="theropods"> <option>tyrannosaurus</option> <option>velociraptor</option> <option>deinonychus</option> </optgroup> <optgroup label="sauropods"> <option>diplodocus</option> <option>saltasaurus</option> <option>apatosaurus</option> </optgroup> </select> toolbars must be lab...
Basic concepts of flexbox - CSS: Cascading Style Sheets
the main axis the main axis is defined by flex-direction, which has four possible values: row row-reverse column column-reverse should you
choose row or row-reverse, your main axis will run along the row in the inline direction.
...
choose column or column-reverse and your main axis will run from the top of the page to the bottom — in the block direction.
Grid template areas - CSS: Cascading Style Sheets
you can
choose what you would like to name your area.
...however they are part of the specification and it is likely you will come across them in examples or in use by other developers, even if you
choose not to use them.
Column layouts - CSS: Cascading Style Sheets
the recipes you need to
choose different layout methods in order to achieve your requirements.
... lining items up in rows and columns — grid layout if what you want is a layout where items line up in rows and columns then you should
choose css grid layout.
<filter-function> - CSS: Cascading Style Sheets
examples filter function comparison this example provides a simple graphic, along with a select menu to allow you to
choose between the different types of filter function, and a slider to allow you to vary the values used inside the filter function.
... html <div></div> <ul> <li> <label for="filter-select">
choose a filter function:</label> <select id="filter-select"> <option selected>blur</option> <option>brightness</option> <option>contrast</option> <option>drop-shadow</option> <option>grayscale</option> <option>hue-rotate</option> <option>invert</option> <option>opacity</option> <option>saturate</option> <option>sepia</option> </select> </li> <li> <input type="range"><output></output> </li> <li> <p>current value: <code></code></p> </li> </ul> css div { width: 300px; height: 300px; background: url(https://media.prod.mdn.
font-size-adjust - CSS: Cascading Style Sheets
syntax values none
choose the size of the font based only on the font-size property.
... <number>
choose the size of the font so that its lowercase letters (as determined by the x-height of the font) are the specified number times the font-size.
font-size - CSS: Cascading Style Sheets
choose the appropriate method based on the needs for the particular web page.
... the em is a very useful unit in css, since it automatically adapts its length relative to the font that the reader
chooses to use.
Adding captions and subtitles to HTML5 video - Developer guides
building a caption menu our aim is to use the subtitles button we added earlier to display a menu that allows users to
choose which language they want the subtitles displayed in, or to turn them off entirely.
... safari safari 6.1+ has similar support to internet explorer 10+, displaying a menu with the different available options, with the addition of an "auto" option, which allows the browser to
choose.
Audio and Video Delivery - Developer guides
you can also
choose how to make your player responsive — for example you might remove the progress bar under certain conditions.
...the most popular libraries allow you to
choose a consistent player design over all browsers and provide a fallback for browsers that don't support audio and video natively.
HTML attribute: multiple - HTML: Hypertext Markup Language
the user can
choose multiple files from the file picker in any way that their chosen platform allows (e.g.
... file input when multiple is set on the file input type, the user can select one or more files: <form method="post" enctype="multipart/form-data"> <p> <label for="uploads">
choose the images you want to upload: </label> <input type="file" id="uploads" name="uploads" accept=".jpg, .jpeg, .png, .svg, .gif" multiple> </p> <p> <label for="text">pick a text file to upload: </label> <input type="file" id="text" name="text" accept=".txt"> </p> <p> <input type="submit" value="submit"> </p> </form> note the difference in appearance between the exampl...
<datalist>: The HTML Data List element - HTML: Hypertext Markup Language
the html <datalist> element contains a set of <option> elements that represent the permissible or recommended options available to
choose from within other controls.
... examples <label for="mybrowser">
choose a browser from this list:</label> <input list="browsers" id="mybrowser" name="mybrowser" /> <datalist id="browsers"> <option value="chrome"> <option value="firefox"> <option value="internet explorer"> <option value="opera"> <option value="safari"> <option value="microsoft edge"> </datalist> result specifications specification status comment html livin...
<input type="date"> - HTML: Hypertext Markup Language
in the following example, we set a minimum date of 2017-04-01 and a maximum date of 2017-04-30: <form> <label for="party">
choose your preferred party date: <input type="date" name="party" min="2017-04-01" max="2017-04-30"> </label> </form> the result is that only days in april 2017 can be selected — the month and year parts of the textbox will be uneditable, and dates outside april 2017 can't be selected in tte picker widget.
... let's look at an example of minimum and maximum dates, and also made a field required: <form> <label>
choose your preferred party date (required, april 1st to 20th): <input type="date" name="party" min="2017-04-01" max="2017-04-20" required> <span class="validity"></span> </label> <p> <button>submit</button> </p> </form> if you try to submit the form with an incomplete date (or with a date outside the set bounds), the browser displays an error.
<input type="tel"> - HTML: Hypertext Markup Language
examples in this example, we present a simple interface with a <select> element that lets the user
choose which country they're in, and a set of <input type="tel"> elements to let them enter each part of their phone number; there is no reason why you can't have multiple tel inputs.
... <form> <div> <label for="country">
choose your country:</label> <select id="country" name="country"> <option>uk</option> <option selected>us</option> <option>germany</option> </select> </div> <div> <p>enter your telephone number: </p> <span class="areadiv"> <input id="areano" name="areano" type="tel" required placeholder="area code" pattern="[0-9]{3}" aria-label="area code"> <span class="validity"></span> </span> <span c...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
multiple the boolean multiple attribute, if set, means the user can enter comma separated email addresses in the email widget or can
choose more than one file with the file input.
... webkitdirectory a boolean indicating whether or not to only allow the user to
choose a directory (or directories, if multiple is also present) autocorrect a safari extension, the autocorrect attribute is a string which indicates whether or not to activate automatic correction while the user is editing this field.
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
note: you don't need to do all this wrapping; you can
choose to simplify it by leaving out the external <kbd> element.
... for example, you can explain how to
choose the "new document" option in the "file" menu using html that looks like this: <p>to create a new file,
choose the menu option <kbd><kbd><samp>file</samp></kbd>⇒<kbd><samp>new document</samp></kbd></kbd>.</p> <p>don't forget to click the <kbd><samp>ok</samp></kbd> button to confirm once you've entered the name of the new file.</p> this does some interesting nesting.
<select>: The HTML Select element - HTML: Hypertext Markup Language
the one that will be selected if you
choose to do so.
... <!-- the second value will be selected initially --> <select name="choice"> <option value="first">first value</option> <option value="second" selected>second value</option> <option value="third">third value</option> </select> advanced select with multiple features the follow example is more complex, showing off more features you can use on a <select> element: <label>please
choose one or more pets: <select name="pets" multiple size="4"> <optgroup label="4-legged pets"> <option value="dog">dog</option> <option value="cat">cat</option> <option value="hamster" disabled>hamster</option> </optgroup> <optgroup label="flying pets"> <option value="parrot">parrot</option> <option value="macaw">macaw</option> <option value="albatross...
HTML elements reference - HTML: Hypertext Markup Language
it may contain one or more audio sources, represented using the src attribute or the <source> element: the browser will
choose the most suitable one.
... <datalist> the html <datalist> element contains a set of <option> elements that represent the permissible or recommended options available to
choose from within other controls.
Basics of HTTP - HTTP
choosing between www and non-www urls this article provides guidance on how to
choose whether to use a www-prefixed domain or not, along with the consequences of that choice.
...this article explains how this advertisement happens, how the server is expected to react, and how it
chooses the most adequate response.
Compression in HTTP - HTTP
as content negotiation has been used to
choose a representation based on its encoding, the server must send a vary header containing at least accept-encoding alongside this header in the response; that way, caches will be able to cache the different representations of the resource.
... to do this, http uses a mechanism similar to the content negotiation for end-to-end compression: the node transmitting the request advertizes its will using the te header and the other node
chooses the adequate method, applies it, and indicates its choice with the transfer-encoding header.
Protocol upgrade mechanism - HTTP
implementations can
choose not to take advantage of an upgrade even if they support the new protocol, and in practice, this mechanism is used mostly to bootstrap a websockets connection.
...in essence, then, this key simply confirms that "yes, i really mean to open a websocket connection." this header is automatically added by clients that
choose to use it; it cannot be added using the xmlhttprequest.setrequestheader() method.
Equality comparisons and sameness - JavaScript
which operation you
choose depends on what sort of comparison you are looking to perform.
...which one is the better model for understanding depends on how you
choose to view things.) however, this way of thinking about the built-in sameness operators is not a model that can be stretched to allow a place for es2015's object.is on this "spectrum".
Functions - JavaScript
function person() { var self = this; // some
choose `that` instead of `self`.
... //
choose one and be consistent.
Handling media support issues in web content - Web media technologies
the availability of choices is good for the user, in that they can
choose the format that suits their needs best.
... there is a drawback, however: because there are so many to
choose from, with so many different kinds of licenses and design principles involved, each web browser developer is left to its own devices when deciding which media file types and codecs to support.
Guide to streaming audio and video - Web media technologies
hls uses playlists to allow the user to not only select the media to stream, but also to
choose among versions or forms of the same media.
... for example, hls lets the server stream a video with multiple audio streams which the user can
choose from, in order to hear their own language.
color-interpolation - SVG: Scalable Vector Graphics
the color-interpolation property
chooses between color operations occurring in the srgb color space or in a (light energy linear) linearized rgb color space.
..., <foreignobject>, <g>, <glyph>, <image>, <line>, <lineargradient>, <marker>, <mask>, <missing-glyph>, <path>, <pattern>, <polygon>, <polyline>, <radialgradient>, <rect>, <svg>, <switch>, <symbol>, <text>, <textpath>, <tspan>, and <use> usage notes value auto | srgb | linearrgb default value srgb animatable yes auto indicates that the user agent can
choose either the srgb or linearrgb spaces for color interpolation.
font-size-adjust - SVG: Scalable Vector Graphics
</text> </svg> usage notes default value none value none | <number> animatable yes none
choose the size of the font based only on the font-size property.
... <number>
choose the size of the font so that its lowercase letters (as determined by the x-height of the font) are the specified number times the font-size.
How to turn off form autocompletion - Web security
additionally, the browser enables the user to
choose a master password that the browser will use to encrypt stored login details.
...since users do not have to remember passwords that the browser stores for them, they are able to
choose stronger passwords than they would otherwise.
Index - XPath
16 comparison of css selectors and xpath css, draft, needscontent, reference, selectors, xpath this article seeks to document the difference between css selectors and xpath for web developers to be able to better
choose the right tool for the right job.
... 20
choose function, xpath, xslt the
choose function returns one of the specified objects based on a boolean parameter.
XSLT elements reference - XSLT: Extensible Stylesheet Language Transformations
<xsl:apply-imports><xsl:apply-templates><xsl:attribute-set><xsl:attribute><xsl:call-template><xsl:
choose><xsl:comment><xsl:copy-of><xsl:copy><xsl:decimal-format><xsl:element><xsl:fallback><xsl:for-each><xsl:if><xsl:import><xsl:include><xsl:key><xsl:message><xsl:namespace-alias><xsl:number><xsl:otherwise><xsl:output><xsl:param><xsl:preserve-space><xsl:processing-instruction><xsl:sort><xsl:strip-space><xsl:stylesheet><xsl:template><xsl:text><xsl:transform><xsl:value-of><xsl:variable><xsl:when><xsl:wit...
...h-param> <xsl:apply-imports> <xsl:apply-templates> <xsl:attribute> <xsl:attribute-set> <xsl:call-template> <xsl:
choose> <xsl:comment> <xsl:copy> <xsl:copy-of> <xsl:decimal-format> <xsl:element> <xsl:fallback> (not supported) <xsl:for-each> <xsl:if> <xsl:import> (mostly supported) <xsl:include> <xsl:key> <xsl:message> <xsl:namespace-alias> (not supported) <xsl:number> (partially supported) <xsl:otherwise> <xsl:output> (partially supported) <xsl:param> <xsl:preserve-space> <xsl:processing-instruction> <xsl:sort> <xsl:strip-space> <xsl:stylesheet> (partially supported) <xsl:template> <xsl:text> (partially supported) <xsl:transform> <xsl:value-of> (partially supported) <xsl:variable> <xsl:when> <xsl:with-param> ...
ui/button/action - Archive of obsolete content
a.url("firefox-16.png") }); var button2 = actionbutton({ id: "my-button2", label: "my button2", icon: "./firefox-16.png" }); var button3 = actionbutton({ id: "my-button3", label: "my button3", icon: { "16" : "./firefox-16.png", "32" : "./firefox-32.png", "64" : "./firefox-64.png" } }); if you use the final form, firefox will automatically
choose the best-fit icon for your button, depending on the device screen resolution and where the button is in the ui.
ui/button/toggle - Archive of obsolete content
a.url("firefox-16.png") }); var button2 = togglebutton({ id: "my-button2", label: "my button2", icon: "./firefox-16.png" }); var button3 = togglebutton({ id: "my-button3", label: "my button3", icon: { "16" : "./firefox-16.png", "32" : "./firefox-32.png", "64" : "./firefox-64.png" } }); if you use the final form, firefox will automatically
choose the best-fit icon for your button, depending on the device screen resolution and where the button is in the ui.
ui/toolbar - Archive of obsolete content
unlike a panel, a toolbar: does not overlap with any web content is persistent, remaining visible until the user
chooses to close it is a fixed size, and appears in a fixed location usage creating and destroying toolbars you don't specify toolbar content directly: instead, you create other ui components and supply them to the toolbar constructor.
cfx - Archive of obsolete content
updateurl and updatelink if you
choose to host the xpi yourself you should enable the host application to find new versions of your add-on.
Storing annotations - Archive of obsolete content
a real add-on should give the user a chance to
choose which data to keep, and prevent the user from adding any more data until the add-on is back under quota.) respecting private browsing since annotations record the user's browsing history we should avoid recording annotations in private windows.
Localization - Archive of obsolete content
there are two placeholders: the name of the person and the name of the home town: var _ = require("sdk/l10n").get; console.log(_("home_town_id", "bob", "london")); an english translator might want to
choose between the following: "<town_name> is <person_name>'s home town." "<person_name>'s home town is <town_name>" to
choose the first option, the .properties file can order the placeholders as follows: home_town_id= %2s is %1s's home town.
Adding sidebars - Archive of obsolete content
to sum up both of these references: you can
choose an obscure key combination that won't conflict with firefox, such as ctrl+shift+(some letter), but there's no way of knowing if any other extension uses that same combination as well.
Underscores in class and ID Names - Archive of obsolete content
a common substitute is the hyphen character (-), as in: p.urgent-note {color: maroon;} many authors
choose instead to use camel case names such as this: p.urgentnote {color: maroon;} if the initial-cap approach is used, however, remember that class and id names are also supposed to be case-sensitive.
JXON - Archive of obsolete content
the lack of standards for xml to json conversion leads developers to
choose a variety of property names for the text content of xml element nodes that also contain other child nodes.
Chromeless - Archive of obsolete content
firefox users could
choose to turn a web page into a "prism application" and have an icon added to their desktop to launch it without the firefox user interface surrounding the page.
Creating a Skin for Firefox/Getting Started - Archive of obsolete content
classic.jar locations linux: /usr/lib/mozillafirefox/chrome/classic.jar or /usr/lib/firefox-*.*.*/chrome/classic.jar windows: \program files\mozilla firefox\chrome\classic.jar for mac os x: go to your applications folder control click application icon(firefox icon),
choose show package contents.
JavaScript crypto - Archive of obsolete content
if you
choose to implement these flags, your module must supply the following additional functions for each flag: pkcs11_mech_flag: must support ckm_rsa_pkcs and ckm_rsa_x_509 and the following functions: c_wrapkey, c_encrypt, c_sign, c_decrypt, c_unwrapkey, c_verifyrecover, c_verify, c_generatekeypair (2048, 1024, 512) size pkcs11_mech_dsa_flag: must support ckm_dsa and the following functions: c_sign, c_...
Makefile.mozextension.2 - Archive of obsolete content
either remove (clean it), or
choose individual targets to build."; exit 1; } @echo $(mkdir) $(project) $(mkdir) $(project)/content $(project)/locale $(project)/locale/en-us $(project)/components/ $(project)/defaults/ $(project)/defaults/preferences/ $(project)/locale/de-de $(project)/skin make_xpi: $(mkdir) $(project)/chrome && \ cd $(project) && \ $(zipprog) -r chrome/$(project).jar content locale skin && \ $(zipprog) -r...
Browser Detection and Cross Browser Support - Archive of obsolete content
--> <ul> <li><a href="choice1.html">choice1</a></li> <li><a href="choice2.html">choice2</a></li> </ul> </noscript> </body> </html> using script language to
choose the browser where it will be executed the choice of scripting language is determined by the language attribute of the script tag.
Debug.msUpdateAsyncCallbackRelation - Archive of obsolete content
the possible values for relationtype include: debug.ms_async_callback_status_assign_delegate debug.ms_async_callback_status_join debug.ms_async_callback_status_
chooseany debug.ms_async_callback_status_cancel debug.ms_async_callback_status_error for more information, see debug constants.
Debug.setNonUserCodeExceptions - Archive of obsolete content
syntax debug.setnonusercodeexceptions [= bool]; remarks if this property is set to true within a given scope, the debugger can then
choose whether to take some specified action on exceptions thrown inside that scope: for instance, if the developer wishes to break on user-unhandled exceptions.
asm.js - Game development
additionally, if an engine
chooses to specially recognize asm.js code, there even more optimizations that can be made.
Initialize the framework - Game development
choose an option that suits you best — i would recommend the min.js option as it keeps the source code smaller, and you are unlikely need to go through the source code anyway.
Visual-js game engine - Game development
adding new script explanation : after adding new script and save script if you have extra changes , open starter/run.js and you will found line : sys.script.load("scripts/new_script.js") ctrl+s use from menu run->
choose browser for testing .
Digest - MDN Web Docs Glossary: Definitions of Web-related terms
applications (e.g., the index of hash tables, or a fingerprint used to detect duplicate data or to uniquely identify files) verify message integrity (a tampered message will have a different hash) store passwords so that they can't be retrieved, but can still be checked (to do this securely, you also need to salt the password.) generate pseudo-random numbers generate keys it is critical to
choose the proper hash function for your use case to avoid collisions and predictability.
WebIDL - MDN Web Docs Glossary: Definitions of Web-related terms
webidl is used in nearly every api specification for the web, and due to its standard format and syntax, the programmers who create web browsers can more easily ensure that their browsers are compatible with one another, regardless of how they
choose to write the code to implement the api.
HTML: A good basis for accessibility - Learn web development
s is from the second button">click me too!</button> <button data-message="this is from the third button">and me!</button> </p> <h2>form</h2> <form> <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> <div> <label for="age">enter your age:</label> <input type="text" id="age" name="age"> </div> <div> <label for="mood">
choose your mood:</label> <select id="mood" name="mood"> <option>happy</option> <option>sad</option> <option>angry</option> <option>worried</option> </select> </div> </form> this means using links, buttons, form elements, and labels appropriately (including the <label> element for form controls).
HTML: A good basis for accessibility - Learn web development
s is from the second button">click me too!</button> <button data-message="this is from the third button">and me!</button> </p> <h2>form</h2> <form> <div> <label for="name">fill in your name:</label> <input type="text" id="name" name="name"> </div> <div> <label for="age">enter your age:</label> <input type="text" id="age" name="age"> </div> <div> <label for="mood">
choose your mood:</label> <select id="mood" name="mood"> <option>happy</option> <option>sad</option> <option>angry</option> <option>worried</option> </select> </div> </form> this means using links, buttons, form elements, and labels appropriately (including the <label> element for form controls).
Debugging CSS - Learn web development
while you may
choose to mostly develop in a particular browser, and therefore will become most familiar with the tools included in that browser, it is worth knowing how to access them in other browsers.
Responsive design - Learn web development
you can provide multiple sizes along with "hints" (meta data that describes the screen size and resolution the image is best suited for), and the browser will
choose the most appropriate image for each device, ensuring that a user will download an image size appropriate for the device they are using.
CSS FAQ - Learn web development
browsers use the doctype declaration to
choose whether to show the document using a mode that is more compatible with web standards or with old browser bugs.
Fundamental text and font styling - Learn web development
my big red elephant font stacks since you can't guarantee the availability of the fonts you want to use on your webpages (even a web font could fail for some reason), you can supply a font stack so that the browser has multiple fonts it can
choose from.
The HTML5 input types - Learn web development
first of all, the basic html: <label for="price">
choose a maximum house price: </label> <input type="range" name="price" id="price" min="50000" max="500000" step="100" value="250000"> <output class="price-output" for="price"></output> this example creates a slider whose value may range between 50000 and 500000, which increments/decrements by 100 at a time.
Styling web forms - Learn web development
while our design is a fixed-size design, and we could use the resize property to prevent users from resizing our multi-line text field, it is best to not prevent users from resizing a textarea if they so
choose.
Publishing your website - Learn web development
getting hosting and a domain name to have more control over content and website appearance, most people
choose to buy web hosting and a domain name: web hosting is rented file space on a hosting company's web server.
The web and web standards - Learn web development
this article provides some useful background on the web — how it came about, what web standard technologies are, how they work together, why "web developer" is a great career to
choose, and what kinds of best practices you'll learn about through the course.
Document and website structure - Learn web development
for example, imagine a shopping cart widget that you could
choose to pull up at any point during your time on an e-commerce site: <div class="shopping-cart"> <h2>shopping cart</h2> <ul> <li> <p><a href=""><strong>silver earrings</strong></a>: $99.95.</p> <img src="../products/3333-0985/thumb.png" alt="silver earrings"> </li> <li> ...
Structuring a page of content - Learn web development
previous overview: introduction to html structuring a page of content ready for laying it out using css is a very important skill to master, so in this assessment you'll be tested on your ability to think about how a page might end up looking, and
choose appropriate structural semantics to build a layout on top of.
Introducing a complete toolchain - Learn web development
once you've signed up for github (click the sign up link on the homepage if you don't already have an account, and follow the instructions), you can use your github account for authentication on netlify (click sign up, then
choose github from the "sign up with one of the following" list), so technically you only need to create one new account.
Accessibility API cross-reference
n/a n/a canvas n/a <canvas> (accessible alternative richtext content may be nested inside, but the canvas itself is presentational) a dialog for picking a color n/a color_
chooser color_
chooser n/a <input type=color> a dialog for picking a file n/a file_
chooser file_
chooser n/a invoked with <input type=file> no explanation given n/a n/a invalid n/a contains accessible info, but its role is not known n/a n/a unknown accessible states an...
Mozilla accessibility architecture
the assistive technology can
choose to get the entire tree by using a depth- or breadth- first search, it can
choose to get accessibles only based on events like focus, or it can get the accessible at a given point on the screen.
Mozilla's Section 508 Compliance
under linux/unix it is the user's choice, whether to stick with the gnome theme or not -- they must
choose classic if they want to follow the gnome theme.
Index
this signing process takes place through addons.mozilla.org (amo), whether you
choose to distribute your add-on through amo or to do it yourself.
Lightweight themes
select text and tab colors — you can
choose the tab ("background") color and foreground text color that work best with your header image.
Debugging on Windows
you need to make sure this configure parameter is set: --enable-debugger-info-modules=yes you can also
choose to include or exclude specific modules.
Simple Instantbird build
if that's not exactly what you want, there are many build configuration options to
choose from, although it's strongly recommended that you only use options that you fully understand.
Eclipse CDT Manual Setup
below.) initial workspace preferences when you open eclipse, it will ask you to "select a workspace" (a directory where eclipse will store files that it generates during indexing, and so on.) it's recommended that you have a separate workspace containing only a single project for each mozilla source tree [rational], and that you
choose a directory outside the mozilla source.
Reviewer Checklist
which one you
choose depends on how the feature is implemented: a pure java service can't easily check gecko prefs, for example.] strings there should be no string changes in patches that will be uplifted (including string removals).
mach
many pkgbuild options to
choose from and most work like a charm - while "mach" may not necessarily work like a charm for everyone.
Index
10 firefox ui considerations for web developers activity stream, firefox, icons, mozilla, new tab, newtab, ui, web, web development, favicon there are a number of places within the firefox user interface where web sites are listed for the user to
choose a destination to visit or a site to manage in some way.
Firefox
the most useful is the url about:config, which displays preferences and settings that can be inspected and changed.firefox ui considerations for web developersthere are a number of places within the firefox user interface where web sites are listed for the user to
choose a destination to visit or a site to manage in some way.
Gecko SDK
downloading for gecko versions before 2.0, you should
choose the gecko sdk version for the earliest version of mozilla you wish to target.
IME handling guide
if one or more clauses were not converted as expected, the user can
choose one of the clauses with arrow keys and look for the expected result form the list in the drop down menu (in the following screenshot, the clause with the thicker underline is called "selected clause").
PBackground
bypass both main threads if used from a non-main thread in a content process write process-agnostic code because it can be used even from another thread in the parent process the parent side of a pbackground actor pair is always on the designated background thread, while the child side is on the thread that
chooses to use pbackground.
JavaScript-DOM Prototypes in Mozilla
all those properties come from the interfaces that the c++ image object (nshtmlimageelement) implements and
chooses to expose to xpconnect through the object's class info.
Following the Android Toasts Tutorial from a JNI Perspective
this is the template that will follow our object of signatures: var my_jenv = null; try { my_jenv = jni.getforthread(); // do the jni work here } finally { if (my_jenv) { jni.unloadclasses(my_jenv); } } the reason we
choose my_jenv for a variable name, and not jenv, is because the global privileged window scope of firefox for android has a variable jenv already, and we don't want to mix.
Examples
settimeout(function () { deferred.resolve('rawr my success value'); }, atimeout); } catch (ex) { // generally, functions returning promises propagate exceptions through // the returned promise, though they may also
choose to fail early.
Bootstrapping a new locale
you can
choose to use: notepad++ or notepad2 on windows, vim, gedit or kate on gnu/linux, textwrangler on mac os x.
Localization and Plurals
if you're here for pluralrule in the chrome/global/intl.properties file, you'll need to figure out what plural rule to
choose for your localization.
Localizing with Mozilla Translator
most of the strings will be automatically filled, although if you do this you should review them, because for en-us strings with several possible translations, mt will
choose one of them, which could not be the one you want.
Initial setup
for now, just be aware that should you
choose to use them, you may need to create a personal account.
QA phase
at this point you can
choose between two build options.
Creating localizable web applications
for instance, "log in" as a button label might be translated by a localizer as the imperative, but for a dialog title, the localizer may
choose to use a different form, like gerund (much like "logging in").
Localization formats
you may
choose to present just the html for localization: we give an html file which lists several pieces of content like, <h1>getting started</h1> and the localizer translates to <h1>débuter avec firefox</h1> the localizer then submits the translated html or php back to us by either checking in changes to svn or sending us a patch that pascal checks in.
Writing localizable code
guidelines thus, there are a few guidelines you should follow to make localization of your code easier:
choose good key names the names chosen for your keys (regardless of whether that's a dtd or a properties file) should be descriptive.
Mozilla Web Services Security Model
for example, to determine what web sites can access a web service at http://www.example.com/dir1/dir2/service, mozilla would load the file http://www.example.com/web-scripts-access.xml, which may
choose to delegate the decision to http://www.example.com/dir1/dir2/web...pts-access.xml.
Profiling with Instruments
official apple documentation instruments user guide instruments user reference instruments help articles instruments help performance overview basic usage select "time profiler" from the "
choose a profiling template for:" dialog.
PR_CreateThread
if you pass zero in this parameter, pr_createthread
chooses the most favorable machine-specific stack size.
Encrypt Decrypt MAC Keys As Session Objects
*/ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilename); return secfailure; } pr_close(infile); /* for intermediate header file,
choose filename as inputfile name with extension ".header" */ strcpy(headerfilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file,
choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd...
Encrypt and decrypt MAC using token
*/ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilename); return secfailure; } pr_close(infile); /* for intermediate header file,
choose filename as inputfile name with extension ".header" */ strcpy(headerfilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file,
choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd...
Enc Dec MAC Output Public Key as CSR
tate->value); subject = cert_asciitoname(subjectstr); break; case 'z': noisefilename = strdup(optstate->value); break; default: usage(progname); break; } } pl_destroyoptstate(optstate); if (cmd == unknown || !dbdir) { usage(progname); } /* for intermediate header file,
choose filename as inputfile name with extension ".header" */ strcpy(headerfilename, progname); strcat(headerfilename, ".header"); /* for intermediate encrypted file,
choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, progname); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); /* open db for r...
Encrypt Decrypt_MAC_Using Token
*/ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilename); return secfailure; } pr_close(infile); /* for intermediate header file,
choose filename as inputfile name with extension ".header" */ strcpy(headerfilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file,
choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd...
NSS Sample Code Sample1
s = pk11_setprivatekeynickname(prvkey, mservername); if (s != secsuccess) { rv = 1; goto done; } done: if (slot) pk11_freeslot(slot); if (pubkey) seckey_destroypublickey(pubkey); if (prvkey) seckey_destroyprivatekey(prvkey); return rv; } int server::generatekeys() { int rv = 0; seckeypublickey *pubkey = 0; pk11slotinfo *slot = 0; //
choose a slot to use slot = pk11_getinternalkeyslot(); if (!slot) { rv = 1; goto done; } // get our own public key to use for wrapping rv = getpublickey(&pubkey); if (rv) goto done; // do the encryption (aes) key if (!mwrappedenckey) { pk11symkey *key = 0; // the key size is 128 bits (16 bytes) key = pk11_keygen(slot, ckm_aes_key_gen, 0, 128/8, 0); if (!key) { rv = 1; ...
NSS Sample Code Sample_3_Basic Encryption and MACing
*/ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilename); return secfailure; } pr_close(infile); /* for intermediate header file,
choose filename as inputfile name with extension ".header" */ strcpy(headerfilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file,
choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd...
EncDecMAC using token object - sample 3
*/ infile = pr_open(infilename, pr_rdonly, 0); if (!infile) { pr_fprintf(pr_stderr, "unable to open \"%s\" for reading.\n", infilename); return secfailure; } pr_close(infile); /* for intermediate header file,
choose filename as inputfile name with extension ".header" */ strcpy(headerfilename, infilename); strcat(headerfilename, ".header"); /* for intermediate encrypted file,
choose filename as inputfile name with extension ".enc" */ strcpy(encryptedfilename, infilename); strcat(encryptedfilename, ".enc"); pr_init(pr_user_thread, pr_priority_normal, 0); switch (cmd) { case encrypt: /* if the intermediate head...
nss tech note1
the sub field of the template points to a callback function of type sec_asn1template
chooser that returns the subtemplate depending on the component data.
sslerr.html
that callback function returned secfailure, and the bad certificate callback function either was not configured or did not
choose to override the error code returned by the certificate authentication callback function.
sslfnc.html
a bad-certificate callback function gives the application the opportunity to
choose to accept the certificate as authentic and authorized even though it failed the check performed by the certificate authentication callback function.
TLS Cipher Suite Discovery
libssl provides enough information about each of the supported cipher suites that the application can construct a display of that information from which the user can
choose which cipher suites his application will attempt to use.
NSS_3.12.3_release_notes.html
backwards compatibility (wildcards) bug 334678: prng_fips1861.c redefines the macro bsize on hp-ux bug 335016: mpp_pprime (miller-rabin probabilistic primality test) may
choose 0 or 1 as the random integer bug 347037: make shlibsign depend on the softoken only bug 371522: auto-update of crls stops after first update bug 380784: pk11mode in non fips mode failed.
64-bit Compatibility
luckily there is an alias that will
choose the right opcode for you - lir_ldp: struct object { void *data; }; lir->insload(lir_ldp, objins, ins->insimm(offsetof(object, data))); when you use lirwriter::insstore, the correct size is chosen for you automatically, based on the size of the input operands.
Tracing JIT
all transitions out of recording mode eventually involve returning to monitoring mode: if the recorder is asked to record a bytecode that it cannot, for various low-level reasons, faithfully record, the recorder may
choose to abort the recording.
JSAPI User Guide
instead, spidermonkey simply returns false or nullptr to the application, which can then handle the error as it
chooses—or just return false to let it propagate further up the stack.
JS::CloneFunctionObject
js::clonefunctionobject takes care to
choose a prototype that shares a global object with the given parent whenever possible.
JSErrorReport
a jserrorreporter might
choose to ignore a jserrorreport that has this flag set, since the exception may be caught and handled by javascript code.
JS_CloneFunctionObject
js_clonefunctionobject takes care to
choose a prototype that shares a global object with the given parent whenever possible.
JS_ConstructObject
if parent is null, the engine
chooses an object to serve as the new object's parent.
SpiderMonkey 1.8.5
to enable js-ctypes in your embedding, you must configure with the --enable-ctypes option and
choose one of the configuration options to enable nspr (e.g.
SpiderMonkey 1.8.7
to enable js-ctypes in your embedding, you must configure with the --enable-ctypes option and
choose one of the configuration options to enable nspr (e.g.
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...
Using RAII classes in Mozilla
assertions runtime assertions offer two benefits - firstly, they run on windows, which the static analysis currently does not, and secondly they will run locally, even if the developer did not
choose to run static analysis locally.
ROLE_MENUITEM
« gecko roles page represents a menu item, which is an entry in a menu that a user can
choose to carry out a command, select an option.
Generating GUIDs
note: if you do
choose to use an email-style id for your add-on, you probably don't want it to be a real email address, since it might attract spam.
Starting WebLock
another area of code, such as a "profile manager" that starts up and lets users
choose which profile to use, may unconditionally call unlock on such a component when switching a profile.
Detailed XPCOM hashtable guide
nsbasehashtable is not used directly;
choose one of the three derivative classes based on the data type you want to store.
Mozilla internal string guide
nsautostringn/nsautocstringn are more general alternatives that let you
choose the number of characters in the inline buffer.
Index
this guide provides some explanation and advice on how to
choose between them.
XPConnect
wrappers what sorts of wrappers xpconnect generates and uses xpconnect security membranes tools xpcshell join the xpcom community
choose your preferred method for joining the discussion: mailing list newsgroup rss feed irc: #developers (learn more)tools: javascript component wizard, visual c++ component wizard, visual c++ component wizard for visual studio 2010 ...
Observer Notifications
note: if your code
chooses to cancel the attempt to go offline, it must notify the user.
mozIRegistry
this is so that one can
choose the basic libreg-based registry implementation versus a more advanced, e.g., rdf-based, one.
nsIApplicationCacheChannel
1.0 66 introduced gecko 1.9.1 inherits from: nsiapplicationcachecontainer last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void markofflinecacheentryasforeign(); attributes attribute type description
chooseapplicationcache boolean when true, the channel will
choose an application cache if one was not explicitly provided and none is available from the notification callbacks.
nsIContentPrefService2
as a consumer of this interface, you might
choose to let a global preference override all non- global preferences of the same name, for example, for whatever definition of "override" is appropriate for your use case.
nsICryptoHash
createinstance(components.interfaces.nsiscriptableunicodeconverter); // we use utf-8 here, you can
choose other encodings.
nsIDownloadHistory
there is a separate interface specifically for downloads in case embedders
choose to track downloads differently from other types of history.
XPIDL
for inout parameters, the callee must clean up the old data if it
chooses to replace it.
Autoconfiguration in Thunderbird
users may also
choose to manually modify the account settings, even if configuration information is successfully obtained by the methods described above.
Filelink Providers
a provider implementation can
choose what information it gets from the user from the setup dialog by pointing the settingsurl attribute of their nsimsgcloudfileprovider implementation to a chrome url for an xhtml page that contains a form with the extra information.
Index
initially, the training.dat file is empty (there was discussion of shipping with a default file) on spam detection, the user can
choose to move spam to a special "junk" folder the user can configure junk mail can be automatically purged from the "junk" folder to analyze a message for spam, we need the entire message, not just the headers.
Spam filtering
on spam detection, the user can
choose to move spam to a special "junk" folder.
Thunderbird Binaries
distinguishing between different nightly builds the main way you can determine if you are using a trunk or branch build is to click the "help" menu and
choose "about".
Demo Addon
how to use after installing the demo add-on in thunderbird, right click on the toolbar and
choose "customize".
Using the Multiple Accounts API
(you may have noticed that identities 2 and 3 are shared between a few accounts...more on that later) servers servers are show in the folder pane, and in any place where the user must browse or
choose folders, such as the new folder dialog, search, filters, etc.
Using popup notifications
cted."); } }, { label: "second secondary option", accesskey: "2", callback: function() { alert("second secondary option selected."); } } ] ); when this notification is presented, and the user clicks on the menu button in the panel, the display looks like this: when the user
chooses one of your secondary actions from the drop-down menu, the corresponding callback is invoked.
WebIDL bindings
note that if your c++ type is implementing multiple distinct web idl interfaces, you need to
choose which mozilla::dom::myinterface_binding::wrap to call here.
Blocking By Domain - Plugins
criteria in order to improve firefox security and performance, there are two major categories of sites mozilla may
choose to add to plugin domain blocking: sites commonly embedded in a 3rd-party context web sites which are commonly embedded into other sites using iframes can have a large impact on browser security and also cause many sites to show plugin activation prompts.
Plugins
starting in firefox 55, users will be asked to
choose which sites may use flash content.
Color vision simulation - Firefox Developer Tools
in the simulate menu, you can
choose one option at a time from the following list: none —
choose this to return to normal display protanomaly (low red) deuteranomaly (low green) tritanomaly (low blue) protanopia (no red) deuteranopia (no green) tritanopia (no blue) contrast loss these simulations are not completely medically accurate.
DOM Inspector internals - Firefox Developer Tools
at the top of each panel is a toolbar which contains a menu button allowing you to
choose which viewer to display from the viewer list, a label displaying the name of the currently active viewer, and another menu button allowing you to issue viewer-specific commands.
Introduction to DOM Inspector - Firefox Developer Tools
the dom inspector keeps track of all the windows that are open, so to inspect the dom of a particular window in the dom inspector, simply access that window as you would normally and then
choose its title from this dynamically updated menulist.
Ignore a source - Firefox Developer Tools
you can enable or disable ignoring a source file in a couple of ways: in the source list pane, right-click the filename and
choose ignore source (or unignore source).
Set event listener breakpoints - Firefox Developer Tools
so if we
choose to log keyboard events, for example, the code no longer pauses as each event is fired: instead, we can then switch to the console, and whenever we press a key we are given a log of where related events were fired.
UI Tour - Firefox Developer Tools
(to remove this restriction,
choose unignore source in the context menu of the sources list or the source pane.) copy stack trace copies all items in the call stack (including their uris and line number) to the clipboard.
Examine and edit HTML - Firefox Developer Tools
as you type, an autocomplete popup shows any class or id attributes that match the current search term: press up and down to cycle through suggestions, tab to
choose the current suggestion, then enter to select the first node with that attribute.
Page inspector keyboard shortcuts - Firefox Developer Tools
shift + tab start editing property or value (rules view only, when a property or value is selected, but not already being edited) enter or space return or space enter or space cycle up and down through auto-complete suggestions (rules view only, when a property or value is being edited) up arrow , down arrow up arrow , down arrow up arrow , down arrow
choose current auto-complete suggestion (rules view only, when a property or value is being edited) enter or tab return or tab enter or tab increment selected value by 1 up arrow up arrow up arrow decrement selected value by 1 down arrow down arrow down arrow increment selected value by 100 shift + page up shift + page up shift + page up ...
How to - Firefox Developer Tools
save a profile to save a profile, click the link labeled "save" in the recordings pane: load a profile to load a profile, click "import..." and
choose the file: clear all loaded profiles to clear all loaded profiles, click "clear".
Web console keyboard shortcuts - Firefox Developer Tools
ctrl + a move to the end of the line end ctrl + e ctrl + e execute the current expression enter return enter add a new line, for entering multiline expressions shift + enter shift + return shift + enter autocomplete popup these shortcuts apply while the autocomplete popup is open: command windows macos linux
choose the current autocomplete suggestion tab tab tab cancel the autocomplete popup esc esc esc move to the previous autocomplete suggestion up arrow up arrow up arrow move to the next autocomplete suggestion down arrow down arrow down arrow page up through autocomplete suggestions page up page up page up page dow...
Web Console - Firefox Developer Tools
opening the web console you open the web console from a menu or with a keyboard shortcut:
choose web console from the web developer submenu in the firefox menu (or tools menu if you display the menu bar or are on mac os x) press the ctrl+shift+k (command+option+k on os x) keyboard shortcut.
AbstractRange - Web APIs
to understand the difference between those two interfaces, and how to
choose which is appropriate for your needs.
AudioContext() - Web APIs
the user agent may or may not
choose to meet this request; check the value of audiocontext.baselatency to determine the true latency after creating the context.
AudioContextOptions - Web APIs
the user agent may or may not
choose to meet this request; check the value of audiocontext.baselatency to determine the true latency after creating the context.
AudioNode.connect() - Web APIs
therefore, it is possible to
choose the range in which an audioparam will change by setting the value of the audioparam to the central frequency, and to use a gainnode between the audio source and the audioparam to adjust the range of the audioparam changes.
Finale - Web APIs
web audio the web audio api provides a powerful and versatile system for controlling audio on the web, allowing developers to
choose audio sources, add effects to audio, create audio visualizations, apply spatial effects (such as panning) and much more.
CrashReportBody - Web APIs
if you want to receive other kinds of reports, but not crash reports, make sure to use a different name for the endpoint group that you
choose for those reports.
CustomEvent - Web APIs
ideally, you should try to use event.preventdefault() and event.defaultprevented instead, but you can use returnvalue if you
choose to do so.
DisplayMediaStreamConstraints.video - Web APIs
logicalsurface a constrainboolean value which may contain a single boolean value or a set of them, indicating whether or not to allow the user to
choose source surfaces which do not directly correspond to display areas.
Event - Web APIs
ideally, you should try to use event.preventdefault() and event.defaultprevented instead, but you can use returnvalue if you
choose to do so.
FileReader: abort event - Web APIs
bubbles no cancelable no interface progressevent event handler property filereader.onabort examples live example html <div class="example"> <div class="file-select"> <label for="avatar">
choose a profile picture:</label> <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log...
FileReader: load event - Web APIs
bubbles no cancelable no interface progressevent event handler property filereader.onload examples live example html <div class="example"> <div class="file-select"> <label for="avatar">
choose a profile picture:</label> <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; border...
FileReader: loadend event - Web APIs
bubbles no cancelable no interface progressevent event handler property filereader.onloadend examples live example html <div class="example"> <div class="file-select"> <label for="avatar">
choose a profile picture:</label> <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; hei...
FileReader: loadstart event - Web APIs
bubbles no cancelable no interface progressevent event handler property filereader.onloadstart examples live example html <div class="example"> <div class="file-select"> <label for="avatar">
choose a profile picture:</label> <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5rem; ...
FileReader: progress event - Web APIs
bubbles no cancelable no interface progressevent event handler property filereader.onprogress examples live example html <div class="example"> <div class="file-select"> <label for="avatar">
choose a profile picture:</label> <input type="file" id="avatar" name="avatar" accept="image/png, image/jpeg"> </div> <img src="" class="preview" height="200" alt="image preview..."> <div class="event-log"> <label>event log:</label> <textarea readonly class="event-log-contents"></textarea> </div> </div> css img.preview { margin: 1rem 0; } .event-log-contents { width: 18rem; height: 5re...
File and Directory Entries API - Web APIs
the htmlinputelement.webkitentries property lets you access the filesystemfileentry objects for the currently selected files, but only if they are dragged-and-dropped onto the file
chooser (bug 1326031).
Fullscreen API - Web APIs
usage notes users can
choose to exit full-screen mode simply by pressing the esc (or f11) key, rather than waiting for the site or app to programmatically do so.
GlobalEventHandlers.onkeypress - Web APIs
*/ (function () { const ssecret = /*
choose your hidden word...: */ "exit"; let noffset = 0; document.onkeypress = function(opevt) { let oevent = opevt || window.event, nchr = oevent.charcode, snodetype = oevent.target.nodename.touppercase(); if (nchr === 0 || oevent.target.contenteditable.touppercase() === "true" || snodetype === "textarea" || snodetype === "input" && oevent.target.typ...
HTMLElement: change event - Web APIs
examples <select> element html <label>
choose an ice cream flavor: <select class="ice-cream" name="ice-cream"> <option value="">select one …</option> <option value="chocolate">chocolate</option> <option value="sardine">sardine</option> <option value="vanilla">vanilla</option> </select> </label> <div class="result"></div> body { display: grid; grid-template-areas: "select result"; } select { grid-area: select; ...
HTMLImageElement.src - Web APIs
additionally, if you use src along with both sizes (or the corresponding sizes content attribute) and srcset in order to
choose an image based on the viewport size, the src attribute is only used as a fallback for browsers that don't support sizes and srcset; otherwise, it's not used at all.
MediaDeviceInfo.groupId - Web APIs
this might be used to produce a user interface that gathers associated devices together for presentation purposes, or to make it easy for the user to
choose to use the built-in camera and microphone on the same display at the same time.
MediaDevices.getUserMedia() - Web APIs
browsers may offer a once-per-domain permission feature, but they must ask at least the first time, and the user must specifically grant ongoing permission if they
choose to do so.
MediaError.message - Web APIs
example this example creates a <audio> element, establishes an error handler for it, then lets the user click buttons to
choose whether to assign a valid audio file or a missing file to the element's src attribute.
MediaSessionActionDetails - Web APIs
if this property isn't present, those actions should
choose a reasonable default distance to skip forward or backward (such as 7 or 10 seconds).
MediaStreamAudioSourceNode - Web APIs
it has been replaced with the more predictable mediastreamtrackaudiosourcenode, which has better-defined rules for how it
chooses the track to output.
MediaTrackConstraints.logicalSurface - Web APIs
this is used to specify whether or not getdisplaymedia() should allow the user to
choose display surfaces which are not necessarily fully visible on the screen, such as occluded windows or the complete content of windows which are large enough to require scrolling to see their entire contents.
MediaTrackConstraints - Web APIs
logicalsurface a constrainboolean value which may contain a single boolean value or a set of them, indicating whether or not to allow the user to
choose source surfaces which do not directly correspond to display areas.
MediaTrackSettings.logicalSurface - Web APIs
for example, a user agent may
choose to allow the user to
choose whether to share the entire document (a browser with logicalsurface value of true), or just the currently visible portion of the document (where the logicalsurface of the browser surface is false).
navigator.hardwareConcurrency - Web APIs
the browser may, however,
choose to report a lower number of logical cores in order to represent more accurately the number of workers that can run at once, so don't treat this as an absolute measurement of the number of cores in the user's system.
NavigatorConcurrentHardware - Web APIs
the browser may, however,
choose to reduce the number in order to represent more accurately the number of workers that can run at once properties navigatorconcurrenthardware.hardwareconcurrency read only returns the number of logical processors which may be available to the user agent.
Node.getUserData() - Web APIs
syntax userdata = somenode.getuserdata(userkey); parameters userkey is the key to
choose the specific data sought for the given node.
NodeList - Web APIs
it's good to keep this distinction in mind when you
choose how to iterate over the items in the nodelist, and whether you should cache the list's length.
Notifications API - Web APIs
this will spawn a request dialog, along the following lines: from here the user can
choose to allow notifications from this origin, or block them.
PasswordCredential.name - Web APIs
the name read-only property of the passwordcredential interface returns a usvstring containing a human-readable public name for display in a credential
chooser.
PaymentCurrencyAmount - Web APIs
this has been removed; instead of allowing sites to
choose the standard to use, iso 4217 is always used for the currency identifier now.
PaymentDetailsBase - Web APIs
shippingoptionsoptional an array of paymentshippingoption objects, each describing one available shipping option from which the user may
choose.
PaymentDetailsUpdate - Web APIs
shippingoptions optional an array of paymentshippingoption objects, each describing one available shipping option from which the user may
choose.
PaymentMethodChangeEvent.methodDetails - Web APIs
example this example uses the paymentmethodchange event to watch for changes to the payment method selected for apple pay, in order to compute a discount if the user
chooses to use a visa card as their payment method.
PaymentMethodChangeEvent.methodName - Web APIs
example this example uses the paymentmethodchange event to watch for changes to the payment method selected for apple pay, in order to compute a discount if the user
chooses to use a visa card as their payment method.
PaymentRequest: shippingaddresschange event - Web APIs
that is, the paymentaddress which contains the shipping address may have some portions of its content altered, obscured, or left out entirely in order to prevent identifying the user without their consent (since if they
choose to have you ship products to them, you'll need their address).
PaymentRequest.show() - Web APIs
instead of immediately failing, you could
choose to call retry() on the response object to ask the user agent to try to process the payment again; this should usually only be done after the user has made any needed corrections to the order.
Payment processing concepts - Web APIs
the conditions that make payment possible vary depending on the payment method and the user's payment request; for example, if the user
chooses to pay using a credit card that isn't accepted by the payee, the payment can't be made.
Using the Permissions API - Web APIs
if we
choose to never share our location from the permission prompt (deny permission), then we can't get back to the permission prompt without using the browser menu options: firefox: tools > page info > permissions > access your location.
RTCConfiguration.bundlePolicy - Web APIs
if the remote peer isn't bundle-aware, the ice agent
chooses one audio track and one video track and those two tracks are each assigned to the corresponding rtcdtlstransport.
RTCConfiguration - Web APIs
the implementation of rtcpeerconnection will
choose which certificate to use based on the algorithms it and the remote peer support, as determined during dtls handshake.
RTCDataChannel.bufferedAmount - Web APIs
the user agent may implement the process of actually sending data in any way it
chooses; this may be done periodically during the event loop or truly asynchronously.
RTCPeerConnection.onicecandidate - Web APIs
this lets the ice agent perform negotiation with the remote peer without the browser itself needing to know any specifics about the technology being used for signaling; simply implement this method to use whatever messaging technology you
choose to send the ice candidate to the remote peer.
RTCRtpParameters - Web APIs
to obtain the parameters of a sender or receiver, call its getparameters() method: getparameters() getparameters() properties codecs an array of rtcrtpcodecparameters objects describing the set of codecs from which the sender or receiver will
choose.
RadioNodeList.value - Web APIs
syntax value = radionodelist.value; radionodelist.value = string; example html <form> <label><input type="radio" name="color" value="blue">blue</label> <label><input type="radio" name="color" value="red">red</label> </form> javascript // get the form const form = document.forms[0]; // get the form's radio buttons const radios = form.elements['color']; //
choose the "red" option radios.value = 'red'; result specifications specification status comments html living standardthe definition of 'radionodelist.value' in that specification.
Screen.pixelDepth - Web APIs
syntax let depth = window.screen.pixeldepth example // if there is not adequate bit depth //
choose a simpler color if ( window.screen.pixeldepth > 8 ) { document.style.color = "#faebd7"; } else { document.style.color = "#ffffff"; } specifications specification status comment css object model (cssom) view modulethe definition of 'screen.pixeldepth' in that specification.
Using the Screen Capture API - Web APIs
starting screen capture: promise style function startcapture(displaymediaoptions) { let capturestream = null; return navigator.mediadevices.getdisplaymedia(displaymediaoptions) .catch(err => { console.error("error:" + err); return null; }); } either way, the user agent responds by presenting a user interface that prompts the user to
choose the screen area to share.
SpeechSynthesis.onvoiceschanged - Web APIs
}; examples this could be used to populate a list of voices that the user can
choose between when the event fires (see our speak easy synthesis demo.) note that firefox doesn't support it at present, and will just return a list of voices when speechsynthesis.getvoices() is fired.
SpeechSynthesis: voiceschanged event - Web APIs
web speech api is fired when the list of speechsynthesisvoice objects that would be returned by the speechsynthesis.getvoices() method has changed (when the voiceschanged event fires.) bubbles no cancelable no interface event event handler property onvoiceschanged examples this could be used to repopulate a list of voices that the user can
choose between when the event fires.
SpeechSynthesis - Web APIs
after defining some necessary variables, we retrieve a list of the voices available using speechsynthesis.getvoices() and populate a select menu with them so the user can
choose what voice they want.
SpeechSynthesisUtterance - Web APIs
after defining some necessary variables, we retrieve a list of the voices available using speechsynthesis.getvoices() and populate a select menu with them so the user can
choose what voice they want.
Storage Access API - Web APIs
user prompts when requeststorageaccess() is called by an embedded, cross-origin document, the user agent may
choose to involve the user in the decision of whether to grant storage access to the requesting origin.
Using DTMF with WebRTC - Web APIs
webrtc currently ignores these payloads; this is because webrtc's dtmf support is primarily intended for use with legacy telephone services that rely on dtmf tones to perform tasks such as: teleconferencing systems menu systems voicemail systems entry of credit card or other payment information passcode entry note: while the dtmf is not sent to the remote peer as audio, browsers may
choose to play the corresponding tone to the local user as part of their user experience, since users are typically used to hearing their phone play the tones audibly.
WebXR application life cycle - Web APIs
when the time comes (such as when the user exits your app or navigates away from your site), end the xr session; otherwise, continue the loop until the user
chooses to exit xr mode.
Using the Web Audio API - Web APIs
the voice-change-o-matic is a fun voice manipulator and sound visualization web app that allows you to
choose different effects and visualizations.
Attestation and Assertion - Web APIs
assertion when a user
chooses to log into a service, the server sends a challenge and the authenticator signs over it with a key pair previously registered to that service.
Using the Web Speech API - Web APIs
this can sometimes be useful, say if a result is not completely clear and you want to display a list if alternatives for the user to
choose the correct one from.
Using the Web Storage API - Web APIs
the landing page provides controls that can be used to customize the color, font, and decorative image: when you
choose different options, the page is instantly updated; in addition, your choices are stored in localstorage, so that when you leave the page and load it again, later on, your choices are remembered.
Web Storage API - Web APIs
when you
choose different options, the page is instantly updated; in addition your choices are stored in localstorage, so that when you leave the page then load it again later on your choices are remembered.
Window.speechSynthesis - Web APIs
after defining some necessary variables, we retrieve a list of the voices available using speechsynthesis.getvoices() and populate a select menu with them so the user can
choose what voice they want.
Using the aria-labelledby attribute - Accessibility
my radio label</div> <ul role="radiogroup" aria-labelledby="radio_label"> <li role="radio">item #1</li> <li role="radio">item #2</li> <li role="radio">item #3</li> </ul> example 4: dialog label in the example below, the header element that labels the dialog is referred to by the aria-labelledby attribute: <div role="dialog" aria-labelledby="dialogheader"> <h2 id="dialogheader">
choose a file</h2> ...
Using the log role - Accessibility
<div id="chatarea" role="log"> <ul id="chatregion" aria-live="polite" aria-atomic="false"> <li>please
choose a user name to begin using ajax chat.</li> </ul> <ul id="userlistregion" aria-live="off" aria-relevant="additions removals text"> </ul> </div> working examples: http://websiteaccessibility.donaldevans.com/2011/07/12/aria-log/ notes using the log role on an element implies that element has aria-live="polite".
Using the slider role - Accessibility
100" value="50" step="1" aria-valuemin="1" aria-valuemax="100" aria-valuenow="50" oninput="outputupdate(value)"> <output for="fader" id="volume">50</output> the following code snippet allows you to return the output as it is updated by user input: function outputupdate(vol) { document.queryselector('#volume').value = vol; } example 2: text values sometimes, a slider is used to
choose a value that is not, semantically, a number.
ARIA Test Cases - Accessibility
optional: for each character typed, screen readers may
choose to indicate how many options are remaining in the autocomplete list (if that number has changed).
ARIA: switch role - Accessibility
assistive technologies may
choose to represent switch widgets with a specialized presentation to reflect the notion of an on/off switch.
ARIA - Accessibility
however, if you
choose to use aria, you are responsible for mimicking (the equivalent) browser behaviour in script.
Cognitive accessibility - Accessibility
link text conveys meaning the link's text should clearly and concisely communicate what the user should expect to be navigated to next if they
choose to activate it.
Web accessibility for seizures and physical reactions - Accessibility
an author might
choose to adjust the visuals and/or layout of the page depending on the display technology to increase the appeal or improve legibility." user preference media features (planned in media queries level 5) user preference media features in w3c editor's draft media queries level 5 are especially promising in providing user control over media.
Color contrast - Accessibility
nd, which makes the text much harder to read: example2 <div class="bad"> bad contrast </div> div { font-family: sans-serif; text-align: center; font-size: 2rem; font-weight: bold; width: 250px; padding: 30px; border-radius: 20px; box-shadow: 1px 1px 1px black; } .bad { background-color: #400064; } solution when choosing a color scheme for your website,
choose foreground and background colors that have good contrast.
::-webkit-search-results-button - CSS: Cascading Style Sheets
the ::-webkit-search-results-button css pseudo-element represents a button (the "search results button") at the left edge of an <input> of type="search" which when clicked displays a menu which allows the user to
choose from previous recent search queries.
display - CSS: Cascading Style Sheets
html <article class="container"> <span>first</span> <span>second</span> <span>third</span> </article> <article class="container"> <span>first</span> <span>second</span> <span>third</span> </article> <div> <label for="display">
choose a display value:</label> <select id="display"> <option selected>block</option> <option>inline</option> <option>inline-block</option> <option>none</option> <option>flex</option> <option>inline-flex</option> <option>grid</option> <option>inline-grid</option> <option>table</option> <option>list-item</option> </select> </div> css html { font-family: hel...
<easing-function> - CSS: Cascading Style Sheets
html <div> <div></div> </div> <ul> <li> <button class="animation-button">start animation</button> </li> <li> <label for="easing-select">
choose an easing function:</label> <select id="easing-select"> <option selected>linear</option> <option>ease</option> <option>ease-in</option> <option>ease-in-out</option> <option>ease-out</option> <option>cubic-bezier(0.1, -0.6, 0.2, 0)</option> <option>cubic-bezier(0, 1.1, 0.8, 4)</option> <option>steps(5, end)</option> <option>steps(3, start)<...
grid-area - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-area: foo; will
choose the start/end edge of that named grid area (unless another line named foo-start/foo-end was explicitly specified before it).
grid-column-end - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-column-end: foo; will
choose the end edge of that named grid area (unless another line named foo-end was explicitly specified before it).
grid-column-start - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-column-start: foo; will
choose the start edge of that named grid area (unless another line named foo-start was explicitly specified before it).
grid-column - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-column: foo; will
choose the start/end edge of that named grid area (unless another line named foo-start/foo-end was explicitly specified before it).
grid-row-end - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-row-end: foo; will
choose the end edge of that named grid area (unless another line named foo-end was explicitly specified before it).
grid-row-start - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-row-start: foo; will
choose the start edge of that named grid area (unless another line named foo-start was explicitly specified before it).
grid-row - CSS: Cascading Style Sheets
note: named grid areas automatically generate implicit named lines of this form, so specifying grid-row: foo; will
choose the start/end edge of that named grid area (unless another line named foo-start/foo-end was explicitly specified before it).
text-decoration-thickness - CSS: Cascading Style Sheets
syntax /* single keyword */ text-decoration-thickness: auto; text-decoration-thickness: from-font; /* length */ text-decoration-thickness: 0.1em; text-decoration-thickness: 3px; /* percentage */ text-decoration-thickness: 10%; /* global values */ text-decoration-thickness: inherit; text-decoration-thickness: initial; text-decoration-thickness: unset; values auto the browser
chooses an appropriate width for the text decoration line.
text-justify - CSS: Cascading Style Sheets
auto the browser
chooses the best type of justification for the current situation based on a balance between performance and quality, but also on what is most appropriate for the language of the text (e.g., english, cjk languages, etc.).
<url> - CSS: Cascading Style Sheets
if you
choose to write the url without quotes, use a backslash (\) before any parentheses, whitespace characters, single quotes (') and double quotes (") that are part of the url.
Setting up adaptive streaming media sources - Developer guides
this article explains how, looking at two of the most common formats: mpeg-dash and hls (http live streaming.) choosing formats in terms of adaptive streaming formats, there are many to
choose from; we decided to
choose the following two as between them we can support most modern browsers.
A hybrid approach - Developer guides
when it is right to
choose this option combining server-side and client-side techniques is something that is always worth considering; there are so many options that one must just weigh the pros and cons of each individual technique employed.
HTML attribute: pattern - HTML: Hypertext Markup Language
<form> <div> <label for="uname">
choose a username: </label> <input type="text" id="uname" name="name" required size="45" pattern="[a-z]{4,8}" title="4 to 8 lowercase letters"> <span class="validity"></span> <p>usernames must be lowercase and 4-8 characters in length.</p> </div> <div> <button>submit</button> </div> </form> div { margin-bottom: 10px; position: relative; } p { font-size: 80%; c...
Date and time formats used in HTML - HTML: Hypertext Markup Language
elements that use such formats include certain forms of the <input> element that let the user
choose or specify a date, time, or both, as well as the <ins> and <del> elements, whose datetime attribute specifies the date or date and time at which the insertion or deletion of content occurred.
<img>: The Image Embed element - HTML: Hypertext Markup Language
there are a number of situations in which a browser might not display images, such as: non-visual browsers (such as those used by people with visual impairments) the user
chooses not to display images (saving bandwidth, privacy reasons) the image is invalid or an unsupported type in these cases, the browser may replace the image with the text in the element's alt attribute.
<input type="color"> - HTML: Hypertext Markup Language
for example, in safari 10.1, you would see something that looks looks like this: the same content looks like this in firefox 55: in this case, clicking on the color well presents the platform's color picker for you to
choose a color from (in this case, the macos picker): validation a color input's value is considered to be invalid if the user agent is unable to convert the user's input into seven-character lower-case hexadecimal notation.
<input type="month"> - HTML: Hypertext Markup Language
basic uses of month the simplest use of <input type="month"> involves a basic <input> and <label> element combination, as seen below: <form> <label for="bday-month">what month were you born in?</label> <input id="bday-month" type="month" name="bday-month"> </form> setting maximum and minimum dates you can use the min and max attributes to restrict the range of dates that the user can
choose.
accesskey - HTML: Hypertext Markup Language
ontrol + key internet explorer alt + key alt + shift + key n/a edge n/a control + option + key control + option + shift + key google chrome alt + shift + key safari n/a opera 15+ alt + key control + alt + key opera 12 shift + esc opens a contents list which are accessible by accesskey, then, can
choose an item by pressing key accessibility concerns in addition to poor browser support, there are numerous concerns with the accesskey attribute: an accesskey value can conflict with a system or browser keyboard shortcut, or assistive technology functionality.
MIME types (IANA media types) - HTTP
the codecs used by webrtc guide expands upon this by specifically covering the codecs supported by the major web browsers, so you can
choose the codecs that best cover the range of browsers you wish to support.
Accept-Encoding - HTTP
even if both the client and the server supports the same compression algorithms, the server may
choose not to compress the body of a response, if the identity value is also acceptable.
Content-Security-Policy-Report-Only - HTTP
you observe how your site behaves, watching for violation reports, or malware redirects, then
choose the desired policy enforced by the content-security-policy header.
Index - HTTP
117 x-dns-prefetch-control dns, http, header the x-dns-prefetch-control http response header controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may
choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
Upgrade - HTTP
the server can
choose to ignore the request, for any reason, in which case it should just respond as though the upgrade header had not been sent (for example, with a 200 ok).
Firefox user agent string reference - HTTP
firefox/firefoxversion is an optional compatibility token that some gecko-based browsers may
choose to incorporate, to achieve maximum compatibility with websites that expect firefox.
X-DNS-Prefetch-Control - HTTP
the x-dns-prefetch-control http response header controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may
choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
HTTP headers - HTTP
x-dns-prefetch-control controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may
choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
406 Not Acceptable - HTTP
if a server returns such an error status, the body of the message should contain the list of the available representations of the resources, allowing the user to
choose among them.
Loops and iteration - JavaScript
<form name="selectform"> <p> <label for="musictypes">
choose some music types, then click the button below:</label> <select id="musictypes" name="musictypes" multiple="multiple"> <option selected="selected">r&b</option> <option>jazz</option> <option>blues</option> <option>new age</option> <option>classical</option> <option>opera</option> </select> </p> <p><input id="btn" type="button" value="how many are sele...
JavaScript technologies overview - JavaScript
the internationalization api provides collation (string comparison), number formatting, and date-and-time formatting for javascript applications, letting the applications
choose the language and tailor the functionality to their needs.
Array - JavaScript
since an array's length can change at any time, and data can be stored at non-contiguous locations in the array, javascript arrays are not guaranteed to be dense; this depends on how the programmer
chooses to use them.
Error - JavaScript
you can handle the error using the try...catch construct: try { throw new error('whoops!') } catch (e) { console.error(e.name + ': ' + e.message) } handling a specific error you can
choose to handle only specific error types by testing the error type with the error's constructor property or, if you're writing for modern javascript engines, instanceof keyword: try { foo.bar() } catch (e) { if (e instanceof evalerror) { console.error(e.name + ': ' + e.message) } else if (e instanceof rangeerror) { console.error(e.name + ': ' + e.message) } // ...
new operator - JavaScript
(normally constructors don't return a value, but they can
choose to do so if they want to override the normal object creation process.) you can always add a property to a previously defined object.
Authoring MathML - MathML
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.
color-interpolation-filters - SVG: Scalable Vector Graphics
nttransfer>, <fecomposite>, <feconvolvematrix>, <fediffuselighting>, <fedisplacementmap>, <fedropshadow>, <feflood>, <fegaussianblur>, <feimage>, <femerge>, <femorphology>, <feoffset>, <fespecularlighting>, <fetile>, <feturbulence> usage notes value auto | srgb | linearrgb default value linearrgb animatable yes auto indicates that the user agent can
choose either the srgb or linearrgb spaces for color interpolation.
Getting started - SVG: Scalable Vector Graphics
if your server is not configured to send the correct headers with the svg files it serves, then firefox will most likely show the markup of the files as text or encoded garbage, or even ask the viewer to
choose an application to open them.
Paths - SVG: Scalable Vector Graphics
for the unrotated ellipse in the image above, there are only two different arcs and not four to
choose from because the line drawn from the start and end of the arc goes through the center of the ellipse.
Web security
applications that use tls can
choose their security parameters, which can have a substantial impact on the security and reliability of data.
Comparison of CSS Selectors and XPath - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes this article seeks to document the difference between css selectors and xpath for web developers to be able to better
choose the right tool for the right job.
Functions - XPath
boolean() ceiling()
choose() concat() contains() count() current() xslt-specific document() xslt-specific element-available() false() floor() format-number() xslt-specific function-available() generate-id() xslt-specific id() (partially supported) key() xslt-specific lang() last() local-name() name() namespace-uri() normalize-space() not() number() position() round() starts-with() string() string-...
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
elements xsl:apply-imports (supported) xsl:apply-templates (supported) xsl:attribute (supported) xsl:attribute-set (supported) xsl:call-template (supported) xsl:
choose (supported) xsl:comment (supported) xsl:copy (supported) xsl:copy-of (supported) xsl:decimal-format (supported) xsl:element (supported) xsl:fallback (not supported) xsl:for-each (supported) xsl:if (supported) xsl:import (mostly supported) xsl:include (supported) xsl:key (supported) xsl:message (supported) xsl:namespace-alias (not supported) xsl:number (partially suppo...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
xslt/xpath reference elements xsl:apply-imports (supported) xsl:apply-templates (supported) xsl:attribute (supported) xsl:attribute-set (supported) xsl:call-template (supported) xsl:
choose (supported) xsl:comment (supported) xsl:copy (supported) xsl:copy-of (supported) xsl:decimal-format (supported) xsl:element (supported) xsl:fallback (not supported) xsl:for-each (supported) xsl:if (supported) xsl:import (mostly supported) xsl:include (supported) xsl:key (supported) xsl:message (supported) xsl:namespace-alias (not supported) xsl:number (partially supported) xsl:othe...