Search completed in 1.97 seconds.
Index - Web APIs
if called on an un
played animation, the whole animation is
played backwards.
...once put into an audiobuffer, the audio can then be
played by being passed into an audiobuffersourcenode.
...it's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being
played from disk or the network.
...And 42 more matches
Index - Archive of obsolete content
xul <iframe> elements) that are not dis
played to the user.
... when the number of iterations is greater than 2 all times are dis
played in [], faster time is dis
played in the output column, and the 95% confidence interval is calculated.
...to do this, the new menu will need to be laid over the existing menu which the item should be dis
played upon.
...And 34 more matches
Index - Archive of obsolete content
to do this, the new menu will need to be laid over the existing menu which the item should be dis
played upon.
...both types of builder share much of the same code except for how they generate output to be dis
played.
... 1019 creating dialogs tutorials, xul, xul_tutorial a xul application will often require dialogs to be dis
played.
...And 26 more matches
Box Objects - Archive of obsolete content
the layout tree holds a different tree of nodes for each individual component that can be dis
played.
... the layout tree holds the structure as the nodes are expected to be dis
played there is not necessarily a one to one relationship between content and layout nodes.
...for instance, the key element doesn't have any layout objects since it isn't dis
played in any way.
...And 13 more matches
Theme changes in Firefox 2 - Archive of obsolete content
browser/safebrowsing/close16x16.png new file; this is the icon dis
played in the safe browsing warning window as a close box for the window.
... browser/safebrowsing/dim.png new file; this is a graphic overlaid on top of the contents of the window to "dim" it when the safe browsing warning window is dis
played.
... browser/safebrowsing/warning16x16.png new file; this is the 16x16 pixel version of the warning icon dis
played in the url bar when the safe browsing warning window is dis
played.
...And 11 more matches
Trees - Archive of obsolete content
in a tree, all of the data to be dis
played is supplied by a separate object, called a tree view.
...the tree is smart enough to only ask for information from the view for those rows that need to be dis
played.
... this allows the view to be optimized such that it only needs to load the data for dis
played content.
...And 9 more matches
Venkman Introduction - Archive of obsolete content
file names are dis
played after a color coded, single letter icon representing the file extension.
... icons in the script view the "special" function name __toplevel__ is dis
played for scripts that are not part of an actual function.
... properties which are of the type object are dis
played with the name of their constructor function in curly braces as their value.
...And 7 more matches
<video>: The Video Embed element - HTML: Hypertext Markup Language
its default value is false, meaning that the audio will be
played when the video is
played.
... playsinline a boolean attribute indicating that the video is to be
played "inline", that is within the element's playback area.
... note that the absence of this attribute does not imply that the video will always be
played in fullscreen.
...And 7 more matches
simple-prefs - Archive of obsolete content
type description example specification bool dis
played as a checkbox and stores a boolean.
... { "description": "does it have tentacles?", "type": "bool", "name": "hastentacles", "value": true, "title": "tentacles" } boolint dis
played as a checkbox and stores an integer.
... { "type": "boolint", "name": "myboolint", "on": "1", "off": "2", "value": 1, "title": "my boolint" } integer dis
played as a textbox and stores an integer.
...And 6 more matches
Creating a Help Content Pack - Archive of obsolete content
nc:defaulttopic will hold the rdf:id of the topic you want dis
played when the viewer first loads if none has been specified.
...starting with firefox 1.1 and the mozilla 1.8 platform, only the table of contents data source will be dis
played.
... the glossary and index data sources will be hidden - information found only in them will not be dis
played unless the user conducts a search of the help pack that would return glossary or index results.xxx this sentence is ugly - a little rewording help here would be nice a data source description is pretty much the same no matter which type you're defining, and the syntax is pretty simple.
...And 6 more matches
Client-side storage - Learn web development
most major modern web sites are dynamic — they store data on the server using some kind of database (server-side storage), then run server-side code to retrieve needed data, insert it into static page templates, and serve the resulting html to the client to be dis
played by the user's browser.
...itbtn.addeventlistener('click', function() { // store the entered name in web storage localstorage.setitem('name', nameinput.value); // run namedisplaycheck() to sort out displaying the // personalized greetings and updating the form display namedisplaycheck(); }); at this point we also need an event handler to run a function when the "forget" button is clicked — this is only dis
played after the "say hello" button has been clicked (the two form states toggle back and forth).
...the javascript file contains five declared constants containing references to the <ul> element the notes will be dis
played in, the title and body <input> elements, the <form> itself, and the <button>.
...And 5 more matches
Web Replay
save recording and replay on a different machine (partially implemented) recordings can be re
played on a different machine from the one which recorded them.
...default false architecture there are several main components to the project: the record/replay infrastructure records enough information during recording so that the re
played process can run and produce the same observable behaviors.
... intra-thread non-determinism is recorded and later re
played for each thread.
...And 5 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
alwaysopenpopup obsolete since gecko 1.9.1 type: boolean note: applies to: thunderbird and seamonkeyif true, the autocomplete popup will be dis
played even when there are no matches.
... autofillaftermatch obsolete since gecko 1.9.1 type: boolean if set to true, the entire text of the best match will be dis
played at the end of the input.
... minresultsforpopup obsolete since gecko 1.9.1 type: integer the minimum number of results that must be returned for the popup to be dis
played.
...And 4 more matches
listbox - Archive of obsolete content
for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
... ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the dis
played items are scrolled so that it is.
... ensureindexisvisible( index ) return type: no return value if the item at the specified index is not currently visible to the user the dis
played items are scrolled so that it is.
...And 4 more matches
richlistbox - Archive of obsolete content
for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
... ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the dis
played items are scrolled so that it is.
... ensureindexisvisible( index ) return type: no return value if the item at the specified index is not currently visible to the user the dis
played items are scrolled so that it is.
...And 4 more matches
tabbrowser - Archive of obsolete content
it is similar to the browser element, except that multiple documents can be dis
played, each in a separate tab.
... selectedbrowser type: browser element this read-only property returns the currently dis
played browser element.
...if loadinbackground is true, the tabs are loaded in the background, and if replace is true, the currently dis
played tabs are replaced with the specified uris instead of adding new tabs.
...And 4 more matches
Website security - Learn web development
for example, consider a site search function where the search terms are encoded as url parameters, and these terms are dis
played along with the results.
...if the target user clicks this "interesting link", the script will be executed when the search results are dis
played.
... a persistent xss vulnerability occurs when the malicious script is stored on the website and then later redis
played unmodified for other users to execute unwittingly.
...And 4 more matches
AudioBufferSourceNode - Web APIs
it's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being
played from disk or the network.
... to play sounds which require accurate timing but must be streamed from the network or
played from disk, use a audioworkletnode to implement its playback.
... an audiobuffersourcenode can only be
played once; after each call to start(), you have to create a new node if you want to play the same sound again.
...And 4 more matches
Ordering Flex Items - CSS: Cascading Style Sheets
this can seem like a neat way to display things in reverse order however you should be mindful that the items are only visually dis
played in reverse order.
... the order property in addition to reversing the order in which flex items are visually dis
played, you can target individual items and change where they appear in the visual order with the order property.
... as an example, i have 5 flex items, and assign order values as follows: source item 1: order: 2 source item 2: order: 3 source item 3: order: 1 source item 4: order: 3 source item 5: order: 1 these items would be dis
played on the page in the following order: source item 3: order: 1 source item 5: order: 1 source item 1: order: 2 source item 2: order: 3 source item 4: order: 3 you can play around with the values in this live example below and see how that changes the order.
...And 4 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
disabling this cache forces xul documents to be reloaded any every time they are dis
played.
...for example, in the firefox browser window, everything other than the web page being dis
played in the content area is chrome.
...can be in e-mail address format or guid format --> <em:id>helloworld@xuldev.org</em:id> <!-- indicates that this add-on is an extension --> <em:type>2</em:type> <!-- extension name dis
played in add-on manager --> <em:name>hello, world!</em:name> <!-- extension version number.
...And 3 more matches
User Notifications and Alerts - Archive of obsolete content
the notification shows up again when you come back to the tab that dis
played it.
... this means that these notifications make the most sense when they are related to the page currently being dis
played, such as a page trying to install an add-on, or a site you just entered a password on.
...the level argument determines the "strength" of the message, indicated by its background color when it is dis
played.
...And 3 more matches
Custom Tree Views - Archive of obsolete content
« previousnext » the tree view holds the data to be dis
played in the tree.
...you might also implement a custom view when you want to perform computations on the data to be dis
played.
... since the view can store and retrieve the data in the most suitable manner for the kind of data used, the tree can be used even when there are hundreds of thousands of rows to be dis
played.
...And 3 more matches
XUL element attributes - Archive of obsolete content
never all of the children are dis
played at the size required by the content or as specified by the width and height attributes or the css width and height properties.
...the actual dis
played height may be different if the element or its contents have a minimum or maximum height.
... hidden type: boolean if set to true, the element is not dis
played.
...And 3 more matches
description - Archive of obsolete content
attributes crop, disabled, tabindex value properties accessibletype, crop, disabled, tabindex, value style classes header, indent, monospace, plain, small-margin examples this is a long section of text that will word wrap when dis
played <description> this is a long section of text that will word wrap when dis
played.
...if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
...And 3 more matches
tree - Archive of obsolete content
each row of the tree may contain child rows which are dis
played indented from the parent.
...however, the treeitems are not dis
played directly; they are used only as data to the content view.
... enablecolumndrag type: boolean when set to true, the user may drag the column headers around to change the order in which they are dis
played.
...And 3 more matches
Video and audio content - Learn web development
the paragraph inside the <video> tags this is called fallback content — this will be dis
played if the browser accessing the page doesn't support the <video> element, allowing us to provide a fallback for older browsers.
... poster the url of an image which will be dis
played before the video is
played.
... note: "transcribe" means "to write down spoken words as text." the resulting text is a "transcript." webvtt is a format for writing text files containing multiple strings of text along with metadata such as the time in the video at which each text string should be dis
played, and even limited styling/positioning information.
...And 3 more matches
HTMLMediaElement - Web APIs
htmlmediaelement.controls is a boolean that reflects the controls html attribute, indicating whether user interface items for controlling the resource should be dis
played.
... htmlmediaelement.mozsamplerate read only returns a double representing the number of samples per second that will be
played.
... htmlmediaelement.playbackrate is a double that indicates the rate at which the media is being
played back.
...And 3 more matches
Media Source API - Web APIs
using mse, media streams can be created via javascript, and
played using <audio> and <video> elements.
...mse allows us to replace the usual single track src value fed to media elements with a reference to a mediasource object, which is a container for information like the ready state of the media for being
played, and references to multiple sourcebuffer objects that represent the different chunks of media that make up the entire stream.
... interfaces mediasource represents a media source to be
played via an htmlmediaelement object.
...And 3 more matches
Using the Notifications API - Web APIs
the notifications api lets a web page or app send notifications that are dis
played outside the page at the system level; this lets web apps send information to a user even if the application is idle or in the background.
...it can have one of three possible values: default the user hasn't been asked for permission yet, so notifications won't be dis
played.
... error triggered if something goes wrong with the notification; this is usually because the notification couldn't be dis
played for some reason.
...And 3 more matches
Media buffering, seeking, and time ranges - Developer guides
seekable the seekable attribute returns a timeranges object and tells us which parts of the media can be
played without delay; this is irrespective of whether that part has been downloaded or not.
... var seekabletimeranges = myaudio.seekable; creating our own buffering feedback if we wish to create our own custom player, we may want to provide feedback on how much of the media is ready to be
played.
... in practice a good way to do this is use the seekable attribute, although as we have seen above seekable parts of the media are not neccessarily contiguous — they often are however and we can safely approximate this information to give the user an indication of which parts of the media can be
played directly.
...And 3 more matches
Extension Versioning, Update and Compatibility - Archive of obsolete content
the page at this url will be retrieved and dis
played to the user.
... since it is being dis
played outside of a normal webpage context it is heavily sanitized, which means there are few formatting options available and scripting and images aren't allowed.
...other tags aren't included in the result but do have their contents dis
played, so the following snippet: <span><q>text</q></span> would be rendered exactly the same as: <q>text</q> sample file <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html lang="en-us" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <h2>my extension</h2> <ul> <li>this update fixes some stability related issues.</li> </ul> </html> ...
...And 2 more matches
Install Manifests - Archive of obsolete content
the icon will be dis
played at 32x32 in firefox 3.6 and lower.
...this allows your add-on's icon to be dis
played even when the add-on is disabled, or if the manifest is missing an iconurl entry.
...this allows your add-on's icon to be dis
played even when the add-on is disabled, or if the manifest is missing an icon64url entry.
...And 2 more matches
Defining Cross-Browser Tooltips - Archive of obsolete content
the classic example is a "tooltip" of an image; when the user pauses the mouse pointer over an image, the contents of the alt attribute are dis
played as a "tooltip." gecko-based browsers such as mozilla, netscape 6+, and compuserve 7 do not support this behavior.
... in other words, alt text should only be dis
played when a user agent cannot display the primary content of the element (e.g., a text-mode browser that cannot display images).
... in a visual browser, the image should be dis
played and the alt text should not.
...And 2 more matches
Documentation for BiDi Mozilla - Archive of obsolete content
in some circumstances, even on a platform with bidi capability, the layout code has to reverse text fragments or to allow for the fact that they are dis
played in reverse.
...examples of this are in nstextframe::painttextslowly; nstextframe::paintunicodetext when a selection is dis
played; nstextframe::getposition; nstextframe::getpointfromoffset.
...in "visual" mode, the text copied into the clipboard is exactly the dis
played text.
...And 2 more matches
Layout System Overview - Archive of obsolete content
galley and page presentations: the presentation generally is constrained by the width of the window in which the presentation is to be dis
played, and a height that extends as far as necessary.
...this is a major benefit for large documents because the user does not have to wait for the 200th page of text to be read in before the first page can be dis
played - they can start reading something right away.
...another important mapping maintained by the frame manager is that of the undis
played content.
...And 2 more matches
XUL accessibility guidelines - Archive of obsolete content
us phone numbers are often dis
played on the web in two main formats xxx-xxx-xxxx or (xxx) xxx-xxxx.
...titles are dis
played in the top bar of an application.
...verify that alerts are dis
played through appropriate xul elements.
...And 2 more matches
menulist - Archive of obsolete content
the user may select one of the elements dis
played in the menulist.
... the currently selected choice is dis
played on the menulist element.
...if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...And 2 more matches
timepicker - Archive of obsolete content
properties amindicator type: string the string value dis
played for hours between midnight and noon, defaulting to am.
... hourleadingzero type: boolean a read only value indicating whether a leading zero should be dis
played before the hour when it is less than 10.
... minuteleadingzero type: boolean a read only value indicating whether a leading zero should be dis
played before the minute when it is less than 10.
...And 2 more matches
toolbar - Archive of obsolete content
note: starting in gecko 1.9.1, toolbar items are moved from the toolbarpalette and added to the toolbar when a toolbar is first dis
played.
... currentset not in seamonkey 1.x type: comma-separated string the current set of dis
played items on the toolbar.
... defaultset not in seamonkey 1.x type: comma-separated list of item ids the default set of dis
played items on the toolbar.
...And 2 more matches
treecol - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
... hidden type: boolean if set to true, the element is not dis
played.
... hideheader type: boolean set this to true to indicate that the tree column header should be dis
played without any column header styling.
...And 2 more matches
Mozilla XForms User Interface - Archive of obsolete content
generally speaking, the main purpose for these values is to reflect how much space (screen real estate) the dis
played widget will take.
...the help will be dis
played if the f1 key is pressed while the containing form control has focus.
...the hint is dis
played when the mouse moves and pauses over the containing form control.
...And 2 more matches
Handling different text directions - Learn web development
in the example below we have a heading dis
played using writing-mode: vertical-rl.
... so the writing-mode property is in reality setting the direction in which block-level elements are dis
played on the page — either from top-to-bottom, right-to-left, or left-to-right.
...blocks are only dis
played from the top to the bottom of the page if you are using a writing mode that displays text horizontally, such as english.
...And 2 more matches
How to build custom form controls - Learn web development
--> <ul class="optlist"> <!-- each option only contains the value to be dis
played, we'll see later how to handle the real value that will be sent with the form data --> <li class="option">cherry</li> <li class="option">lemon</li> <li class="option">banana</li> <li class="option">strawberry</li> <li class="option">apple</li> </ul> </div> note the use of class names; these identify each relevant part regardless of the actual underlying html eleme...
...*/ .select .optlist { /* this will make sure our list of options will be dis
played below the value and out of the html flow */ position : absolute; top : 100%; left : 0; } we need an extra class to handle when the list of options is hidden.
...we include our control and the <select>; which one is dis
played depends on the class of the body element, with the class of the body element being updated by the script that makes the control function, when it loads successfully to achieve this, we need two things: first, we need to add a regular <select> element before each instance of our custom control.
...And 2 more matches
What’s in the head? Metadata in HTML - Learn web development
previous overview: introduction to html next the head of an html document is the part that is not dis
played in the web browser when the page is loaded.
... let's revisit the simple html document we covered in the previous article: <!doctype html> <html> <head> <meta charset="utf-8"> <title>my test page</title> </head> <body> <p>this is my page</p> </body> </html> the html head is the contents of the <head> element — unlike the contents of the <body> element (which are dis
played on the page when loaded in a browser), the head's content is not dis
played on the page.
... twitter also has its own similar proprietary metadata called twitter cards, which has a similar effect when the site's url is dis
played on twitter.com.
...And 2 more matches
Responsive images - Learn web development
a second cropped image could be dis
played for a medium width screen device, like a tablet.
...and conversely, a small raster image starts to look grainy when dis
played larger than its original size (a raster image is a set number of pixels wide and a set number of pixels tall, as we saw when we looked at vector graphics).
... art direction to recap, the art direction problem involves wanting to change the image dis
played to suit different image display sizes.
...And 2 more matches
Cooperative asynchronous JavaScript: Timeouts and intervals - Learn web development
you're going to create a simple "spinner animation"—the kind you might see dis
played in an app when it is busy connecting to the server, etc.
...if you showed a different sprite frame for every frame dis
played on the screen by requestanimationframe(), guybrush would move his limbs too fast and the animation would look ridiculous.
... when the start button is pressed, a spinner like the one we saw earlier is dis
played for a random amount of time between 5 and 10 seconds.
...And 2 more matches
PopupNotifications.jsm
id a unique id string for the type of notification being dis
played.
...the main action is used to describe the button presented in the notification panel, while secondary actions are dis
played in the drop-down menu associated with the button.
... popupiconurl a string specifying the url of the image to be dis
played in the popup.
...And 2 more matches
Rhino Debugger
the selected file will be compiled and dis
played in a new window.
...whenever a javascript exception is thrown by a script a message dialog will be dis
played and control will be given to the debugger at the location the exception is raised.
... this the properties of the current object are dis
played in the this table.
...And 2 more matches
Avoiding leaks in JavaScript XPCOM components
(this is roughly equivalent to making all the properties roots, but simpler.) once this happens, it remains a root until the document stops being dis
played.
... this means that neither the element nor any of the properties nor any of the objects reachable from those properties can be freed until the document is no longer dis
played.
...(but since service is a global variable, just fixing the cycle doesn't fix the leak.) don't store short-lived objects as javascript properties of short-lived dom nodes i mentioned earlier that, in versions of mozilla before 1.8, setting arbitrary javascript properties on elements (or using xbl fields) causes that element's javascript wrapper to be rooted until the document stops being dis
played.
...And 2 more matches
nsITaskbarPreviewButton
these buttons are dis
played below the window preview.
...this is not the same as visible, which indicates whether or not the button should be dis
played at all.
... image imgicontainer the icon dis
played in the button.
...And 2 more matches
Plug-in Basics - Plugins
if it is, a movie is dis
played.
... the way plug-ins are dis
played on the web page is determined by the html element that invokes them.
...for information about the way html determines plug-in display mode, see "using html to display plug-ins." using html to display plug-ins when a user browses to a web page that invokes a plug-in, how the plug-in appears (or does not appear) depends on two factors: the way the developer writes the plug-in determines whether it is dis
played in its own window or is windowless.
...And 2 more matches
Fullscreen API - Web APIs
documentorshadowroot.fullscreenelement the fullscreenelement property tells you the element that's currently being dis
played in full-screen mode on the dom (or shadow dom).
... obsolete properties document.fullscreen a boolean value which is true if the document has an element currently being dis
played in full-screen mode; otherwise, this returns false.
... note: use the fullscreenelement property on the document or shadowroot instead; if it's not null, then it's an element currently being dis
played in full-screen mode.
...And 2 more matches
Key Values - Web APIs
common ime keys keyboardevent.key value description virtual keycode windows mac linux android "allcandidates" the all candidates key, which starts multi-candidate mode, in which multiple candidates are dis
played for the ongoing input.
...enables single candidate mode (as opposed to multi-candidate mode); in this mode, only one candidate is dis
played at a time.
... vk_guide qt::key_guide (0x0100011a) keycode_guide (172) "guidenextday" if the guide is currently dis
played, this button tells the guide to display the next day's content.
...And 2 more matches
Creating a cross-browser video player - Developer guides
most browsers interpret the presence of a poster attribute to mean that the specified image is to be dis
played until the user chooses to play the video.
...in addition a download link is dis
played to allow users to download the mp4 video file, should they wish to (providing those without flash installed with a method of viewing the video, a fallback for a fallback if you like).
...a number of variables pointing to html elements are required: var videocontainer = document.getelementbyid('videocontainer'); var video = document.getelementbyid('video'); var videocontrols = document.getelementbyid('video-controls'); as mentioned earlier, the browser's default controls now need to be disabled, and the custom controls need to be dis
played: // hide the default controls video.controls = false; // display the user defined video controls videocontrols.style.display = 'block'; with that done, a variable pointing to each of the buttons is now required: var playpause = document.getelementbyid('playpause'); var stop = document.getelementbyid('stop'); var mute = document.getelementbyid('mute'); var volinc = document.getelementbyid('vo...
...And 2 more matches
<svg> - SVG: Scalable Vector Graphics
value type: <string> ; default value: text/css; animatable: no height the dis
played height of the rectangular viewport.
... (not the height of its coordinate system.) value type: <length>|<percentage> ; default value: auto; animatable: yes preserveaspectratio how the svg fragment must be deformed if it is dis
played with a different aspect ratio.
... value type: <list-of-numbers> ; default value: none; animatable: yes width the dis
played width of the rectangular viewport.
...And 2 more matches
panel - Archive of obsolete content
function handleclick(state) { textentrypanel.show(); } // when the panel is dis
played it generated an event called // "show": we will listen for that event and when it happens, // send our own "show" event to the panel's script, so the // script can prepare the panel for display.
...function handleclick(state) { textentrypanel.show(); } // when the panel is dis
played it generated an event called // "show": we will listen for that event and when it happens, // send our own "show" event to the panel's script, so the // script can prepare the panel for display.
... margin: 10px; } body { background-color: gray; } </style> </head> <body> <textarea rows="13" cols="33" id="edit-box"></textarea> <script src="get-text.js"></script> </body> </html> styling panel content the panel's default style is different for each operating system: this helps to ensure that the panel's style is consistent with the dialogs dis
played by firefox and other applications, but means you need to take care when applying your own styles.
...the context menu will be the same one that's dis
played in web pages.
The Box Model - Archive of obsolete content
an hbox is oriented horizontally by default, meaning that its child nodes are dis
played next to each other from left to right.
... a vbox is oriented vertically by default, its child nodes dis
played one below the other from top to bottom.
... labels should generally be short, and they should always be dis
played in a single line.
...the label is dis
played with the expected link style so that users can easily recognize it as a link.
The Essentials of an Extension - Archive of obsolete content
<em:name>xul school hello world</em:name> <em:description>welcome to xul school!</em:description> <em:version>0.1</em:version> <em:creator>appcoast</em:creator> <em:homepageurl>https://developer.mozilla.org/docs/xul_school</em:homepageurl> this is the data that is dis
played before and after the extension is installed, that you can see in the add-ons manager.
...most of these files are opened as text files, with the exception of xul files, which are executed and dis
played like you would normally see them on a window.
...we call the getstring method of the bundle element and get the localized message to be dis
played.
... exercise make the following changes to the example extension: edit the welcome message that is dis
played in the alert window.
Supporting search suggestions in search plugins - Archive of obsolete content
once the list has been retrieved, it's dis
played in a popup box that appears under the search bar, which lets the user select a suggested search term.
... if the user continues to type, a new set of suggestions is requested from the search engine, and the dis
played list is refreshed.
...these can be any additional information the search engine might want to return to be dis
played by the browser, such as the number of results available for that search.
... note: firefox requires that suggest requests complete within 500ms for suggestions to be dis
played.
Adding preferences to an extension - Archive of obsolete content
we forcibly convert the symbol to upper-case since that's the way stock symbols are normally dis
played.
... note that this call results in our stockwatcher.observe() method being invoked and dis
played stock information being updated.
... refreshinformation() this method is slightly revised from previous versions, in that it needs to fetch the preference for the stock to watch and use that to construct the url to monitor, as well as to construct the string to be dis
played in the status bar panel.
...(yhoo)" oncommand="stockwatcher.watchstock('yhoo')"/> </menupopup> </popupset> each item in the menu has a label property, which specifies the text dis
played in the menu, as well as an oncommand property, which indicates the javascript code to execute when the user selects that item.
Introducing the Audio API extension - Archive of obsolete content
function loadedmetadata() { channels = audio.mozchannels; rate = audio.mozsamplerate; framebufferlength = audio.mozframebufferlength; } var audio = document.getelementbyid('audio-element'); audio.addeventlistener('loadedmetadata', loadedmetadata, false); </script> </body> </html> the mozaudioavailable event as the audio is
played, sample data is made available to the audio layer and the audio buffer (size defined in mozframebufferlength) gets filled with those samples.
...those samples may or may not have been
played yet at the time of the event and have not been adjusted for mute or volume settings on the media element.
...var currentsampleoffset = audiooutput.mozcurrentsampleoffset(); audio data written using the mozwriteaudio() method needs to be written at a regular interval in equal portions, in order to keep a little ahead of the current sample offset (the sample offset that is currently being
played by the hardware can be obtained with mozcurrentsampleoffset()), where "a little" means something on the order of 500 ms of samples.
... it's also possible to auto-detect the minimal duration of the pre-buffer, such that the sound is
played without interruptions, and lag between writing and playback is minimal.
HostWindow - Archive of obsolete content
location bar - a readonly textbox that contains the currently dis
played url.
... when not dis
played the entire location bar section is hidden.
...when the sidebar is dis
played, the splitter can be used to change the width or quickly collapse it.
...when not dis
played the entire sidebar area, including the splitter are hidden.
width - Archive of obsolete content
the actual dis
played width may be different if the element or its contents have a minimum or maximum width, or the size is adjusted by the flexibility or alignment of its parent.
... in this example, the preferred width of the inner hbox will be dis
played at 40 pixels.
... the dis
played width is also 40 pixels as no flexibility or alignment applies.
... <hbox> <hbox width="40" style="background-color: red;"> <label value="40"/> </hbox> </hbox> however, in the following example, despite that the preferred width of the box is 30 pixels, the dis
played size of the box will be larger to accommodate the larger label.
ContextMenus - Archive of obsolete content
on other platforms, the attribute will just be ignored and the menuitem will be dis
played normally.
... note that the default attribute just affects how the item is dis
played, it performs no other function itself.
... hiding and showing menu items based on context when the context menu is opened, a popupshowing event will fire before the popup is dis
played.
... this may be used to adjust the items dis
played on the menu.
textbox (Toolkit autocomplete) - Archive of obsolete content
minresultsforpopup new in thunderbird 3requires seamonkey 2.0 type: integer the minimum number of results that must be returned for the popup to be dis
played.
...this event is only called when the text dis
played would change, thus it is not called when the user presses non-displayable keys.
... size type: integer the number of characters that can be dis
played in the textbox.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
Adding HTML Elements - Archive of obsolete content
example 1 : source view <html:p> search for: <html:input id="find-text"/> <button id="okbutton" label="ok"/> </html:p> this code will cause the text 'search for:' to be dis
played, followed by an input element and an ok button.
...plain text will only be dis
played when placed inside an html element that would normally allow you to display text (such as a p tag).
... text outside of one will not be dis
played, unless the xul element the text is inside allows this (the description element, for example).
... <html:hr/> </html:div> expense report 1 what i did last summer <button id="yes" label="yes"/> <button id="no" label="no"/> as can be seen in the image, the text inside the div tag was dis
played but the other text (expense report 1 and what i did last summer) was not.
Adding Labels and Images - Archive of obsolete content
text elements you cannot embed text directly into a xul file without tags around it and expect it to be dis
played.
...an example is shown below: example 1 : source view <label value="this is some text"/> the value attribute can be used to specify the text that you wish to have dis
played.
... the text will not wrap, so the text will all be dis
played on a single line.
...example 4 : source view <description> this longer section of text is dis
played.
Document Object Model - Archive of obsolete content
each xul file that is loaded will have its own document dis
played in a window or frame.
...the actual document dis
played in a window can be retrieved using the window's document property.
... our find files example it doesn't make sense to have the progress bar and the dummy tree data dis
played when the find files dialog is first dis
played.
...let's take them out now and have them dis
played when the find button is pressed.
More Event Handlers - Archive of obsolete content
for example, the 'popupshowing' event is sent to a popup just before it is dis
played.
...if the default action is prevented, the popup will not be dis
played.
...we'll learn more about the box object in a later section, but it holds information pertaining to how the element is dis
played, including the x and y position of the element.
...load events the load event is sent to the document (the window tag) once the xul file has finished loading and just before the content is dis
played.
Open and Save Dialogs - Archive of obsolete content
default directory and filters there are two features you can set of the dialog before it is dis
played.
... the first is the default directory that is dis
played when the dialog is opened.
... the second is a filter that indicates the list of file types that are dis
played in the dialog.
...to add filters, call the appendfilters() function to set the file types that you wish to have dis
played.
Property Files - Archive of obsolete content
in addition, you may wish to display a message which is generated from a script, if, for example, you do not know the exact text to be dis
played.
...these would be read by a script and dis
played to the user.
...use a chrome url to read a file from the locale: <stringbundleset id="stringbundleset"> <stringbundle id="strings" src="chrome://myplugin/locale/strings.properties"/> </stringbundleset> like other non-dis
played elements, you should declare all your stringbundles inside a stringbundleset element so that they are all kept together.
... finally, the string is dis
played in an alert box.
XBL Example - Archive of obsolete content
this will be a widget that stores a deck of objects, each dis
played one at a time.
...when getting this custom property, it will need to retrieve the value of the selectedindex attribute of the deck, which holds the number of the currently dis
played page.
...this causes the requested page to be dis
played.
... constructor we will also need a constructor to initialize the label element so that it displays correctly when the slideshow is first dis
played.
XUL controls - Archive of obsolete content
menulist reference related elements: menupopup menuitem <menulist editable="true"> an editable menulist is like a standard menulist except that the selected value is dis
played in a textbox where it may be modified directly or values not in the popup list may be entered.
...two arrow buttons are dis
played for cycling through values.
... <timepicker value="12:05"/> timepicker reference <toolbarbutton> a button that is dis
played on a toolbar.
... toolbarbutton reference related elements: toolbar <toolbarbutton type="menu"> a button that is dis
played on a toolbar with a drop down menu attached to it.
datepicker - Archive of obsolete content
a monthchange event is fired for the grid and popup datepickers whenever a new month is navigated to or dis
played.
... dateleadingzero type: boolean a read only value indicating whether a leading zero should be dis
played before the date when it is less than 10.
... monthleadingzero type: boolean a read only value indicating whether a leading zero should be dis
played before the month when it is less than 10.
... yearleadingzero type: boolean a read only value indicating whether a leading zero should be dis
played before the year when it is less than 1000.
label - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
... monospace this class causes the text to be dis
played in a monospace font.
... plain this class causes the element to be dis
played with no border or margin.
... small-margin this class causes the text to be dis
played with a smaller margin.
menu - Archive of obsolete content
when the user clicks the menu element, the child menupopup of the menu will be dis
played.
...if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
...items are numbered starting at the first item dis
played in the list.
menupopup - Archive of obsolete content
when the element is clicked with the left mouse button, the menupopup will be dis
played.
...when a context menu is opened, the menupopup will be dis
played.
...when the label is right-clicked, the menu will be dis
played.
...each type of popup is intended to be dis
played only temporarily; they are not expected to be dis
played permanently.
textbox - Archive of obsolete content
only one line of text is dis
played by default.
...this event is only called when the text dis
played would change, thus it is not called when the user presses non-displayable keys.
... size type: integer the number of characters that can be dis
played in the textbox.
... plain this class causes the element to be dis
played with no border or margin.
window - Archive of obsolete content
this is used to hide chrome when showing in-browser ui such as the about:addons page, and causes the toolbars to be hidden, with only the tab strip (and, if currently dis
played, the add-on bar) left showing.
...this is used to prevent the find bar from being dis
played when it's not supported by the content (such as in the add-ons manager tab).
...the actual dis
played height may be different if the element or its contents have a minimum or maximum height.
...the actual dis
played width may be different if the element or its contents have a minimum or maximum width, or the size is adjusted by the flexibility or alignment of its parent.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
142 favicon glossary, intro, favicon, user agent a favicon (favorite icon) is a tiny icon included along with a website, which is dis
played in places like the browser's address bar, page tabs and bookmarks menu.
...it is the average time at which visible parts of the page are dis
played.
... 489 web performance glossary, perceived performance, reference, web performance web performance is the objective time from when a request for content is made until the requested content is dis
played in the user's browser, objective render times, and the subjective user experience of load time and runtime.
... 517 caret cursor, glossary, input, caret, insertion point, text cursor, text entry, text input, text insertion point a caret (sometimes called a "text cursor") is an indicator dis
played on the screen to indicate where text input will be inserted.
Client-side form validation - Learn web development
setcustomvalidity(message): adds a custom error message to the element; if you set a custom error message, the element is considered to be invalid, and the specified error is dis
played.
...the way this message is dis
played depends on the browser.
... they depend on the browser locale, which means that you can have a page in one language but an error message dis
played in another language, as seen in the following firefox screenshot.
...this renders the input invalid, so that when you try to submit the form, submission fails and the custom error message is dis
played.
Build your own function - Learn web development
type the following in your browser's javascript console, on any page you like: alert('this is a message'); the alert function takes a single argument — the string that is dis
played in the alert box.
... reload and try the code again and you'll see that it still works just fine, except that now you can also vary the message inside the parameter to get different messages dis
played in the box!
...ace (}) of your function: if (msgtype === 'warning') { msg.style.backgroundimage = 'url(icons/warning.png)'; panel.style.backgroundcolor = 'red'; } else if (msgtype === 'chat') { msg.style.backgroundimage = 'url(icons/chat.png)'; panel.style.backgroundcolor = 'aqua'; } else { msg.style.paddingleft = '20px'; } here, if the msgtype parameter is set as 'warning', the warning icon is dis
played and the panel's background color is set to red.
... if it is set to 'chat', the chat icon is dis
played and the panel's background color is set to aqua blue.
Introduction to web APIs - Learn web development
every time you see a popup window appear on a page or some new content dis
played, for example, that's the dom in action.
... audio and video apis like htmlmediaelement, the web audio api, and webrtc allow you to do really interesting things with multimedia such as creating custom ui controls for playing audio and video, displaying text tracks like captions and subtitles along with your videos, grabbing video from your web camera to be manipulated via a canvas (see above) or dis
played on someone else's computer in a web conference, or adding effects to audio tracks (such as gain, distortion, panning, etc).
... to manipulate our track: const audiocontext = window.audiocontext || window.webkitaudiocontext; const audioctx = new audiocontext(); next, we create constants that store references to our <audio>, <button>, and <input> elements, and use the audiocontext.createmediaelementsource() method to create a mediaelementaudiosourcenode representing the source of our audio — the <audio> element will be
played from: const audioelement = document.queryselector('audio'); const playbtn = document.queryselector('button'); const volumeslider = document.queryselector('.volume'); const audiosource = audioctx.createmediaelementsource(audioelement); next up we include a couple of event handlers that serve to toggle between play and pause when the button is pressed and reset the display back to the beginning ...
...the gain node is then connected to the destination node so the sound can be
played on your computer (the audiocontext.destination property represents whatever is the default audiodestinationnode available on your computer's hardware, e.g.
Video and Audio APIs - Learn web development
we use the content property to set the content to be dis
played in each case to be equal to the contents of the data-icon attribute.
...in this font, "p" is actually a "play" icon, so therefore the play button has a "play" icon dis
played on it.
... we also give our inner <div> and <span> the right amount of z-index so that the timer will be dis
played on top, and the inner <div> below that.
... all there is left to do after that is to set the dis
played icon to the "play" icon.
Properly configuring server MIME types - Learn web development
mime types describe the media type of content either in email or served by web servers or web applications and are intended to help guide a web browser in how the content is to be processed and dis
played.
... if the web server or application reports an incorrect mime type for content, a web browser has no way, according to the http specification, of knowing that the author actually intended the content to be processed and dis
played in a way different from that implied by the reported mime type.
... for example, a web site oriented for web developers might wish to send certain example html documents as either text/html or text/plain in order to have the documents either processed and dis
played as html or as source code.
... if the media type is dis
played using a plug-in in netscape gecko, install the plug-in and then look in the help->about plug-ins menu to see what mime types are associated with the media type.
SVG Guidelines
this flexibility depends on doing computations for svg images at the time they're dis
played, rather than at the time the author creates them.
...this work doesn't need to be redone when the image is dis
played on someone else's computer.
... on the other hand, if the image is saved as an svg image then all this work needs to be done each time the svg is dis
played on someone else's computer.
...although this kind of data is supported by the browser, it can only be dis
played when the svg is opened in a new tab.
Index
when you use signtool -v, these entries are dis
played with the string not present.
...note that the password entered on the command line is dis
played as plain text.
... two signing certificates are dis
played: verisign object signing cert and test object signing cert.
...ids are dis
played in hexadecimal ("0x" is not shown).
Examine and edit CSS - Firefox Developer Tools
(note that this setting is independent of the "browser styles" checkbox in the computed view.) user-agent styles are dis
played against a different background, and the link to the filename and line number contains the prefix (user agent): element {} rule the element {} rule at the top of the rules list isn't actually a css rule.
...lement: ::after ::backdrop ::before ::first-letter ::first-line ::selection :-moz-color-swatch :-moz-number-spin-box :-moz-number-spin-down :-moz-number-spin-up :-moz-number-text :-moz-number-wrapper :-moz-placeholder :-moz-progress-bar :-moz-range-progress :-moz-range-thumb :-moz-range-track :-moz-selection if the selected element has pseudo-elements applied to it, they are dis
played before the selected element but hidden by a disclosure triangle: clicking the triangle displays them: viewing common pseudo-classes there's a button to the right of the filter box: click the button to see checkboxes that you can use to enable the :hover, :active and :focus, :focus-within and :visited pseudo-classes for the selected element: this feature can also be accessed from the po...
... link to css file at the top right of each rule, the source filename and line number is dis
played as a link: clicking it opens the file in the style editor.
... when on, any rules defined for printing the page will be dis
played similar to the "print preview" mode that many word processing applications provide.
about:debugging - Firefox Developer Tools
if your about:debugging page is different from the one dis
played here, go to about:config, find and set the option devtools.aboutdebugging.new-enabled to true.
...the temporary extension is then dis
played under the temporary extensions header.
... other information about the extension is dis
played: location the location of the extension's source code on your local system.
... service workers not compatible a warning message is dis
played at the top of the this firefox tab if service workers are incompatible with the current browser configuration, and therefore cannot be used or debugged.
Basic usage of canvas - Web APIs
fallback content the <canvas> element differs from an <img> tag in that, like for <video>, <audio>, or <picture> elements, it is easy to define some fallback content, to be dis
played in older browsers not supporting it, like versions of internet explorer earlier than version 9 or textual browsers.
... you should always provide fallback content to be dis
played by those browsers.
...if this tag is not present, the rest of the document would be considered the fallback content and wouldn't be dis
played.
... checking for support the fallback content is dis
played in browsers which do not support <canvas>.
Notification - Web APIs
possible values are: denied — the user refuses to have notifications dis
played.
... granted — the user accepts having notifications dis
played.
... notification.image read only the url of an image to be dis
played as part of the notification, as specified in the constructor's options parameter.
...it is triggered when the notification is dis
played.
PublicKeyCredentialRequestOptions.extensions - Web APIs
this text is dis
played on a prompt of the authenticator before verifying the user or testing their presence.
... the client outputs a usvstring which is the text as it was dis
played (line breaks may have been added).
...the contenttype gives the mime type of the resource to be dis
played while content gives its actual content.
... the client outputs the hash of the content which was dis
played (hashing with the same algorithm which is used for the signature).
TextTrackCue - Web APIs
the cue includes the start time (the time at which the text will be dis
played) and the end time (the time at which it will be removed from the display), as well as other information.
... texttrackcue.starttime a double that represents the video time that the cue will start being dis
played, in seconds.
... texttrackcue.endtime a double that represents the video time that the cue will stop being dis
played, in seconds.
... texttrackcue.pauseonexit a boolean for whether the video will pause when this cue stops being dis
played.
Web Video Text Tracks Format (WebVTT) - Web APIs
verlapping cue timing examples 00:00:00.000 --> 00:00:10.000 00:00:05.000 --> 00:01:00.000 00:00:30.000 --> 00:00:50.000 example 12 - non-overlapping cue timing examples 00:00:00.000 --> 00:00:10.000 00:00:10.000 --> 00:01:00.581 00:01:00.581 --> 00:02:00.100 00:02:01.000 --> 00:02:01.000 cue settings cue settings are optional components used to position where the cue payload text will be dis
played over the video.
... this includes whether the text is dis
played horizontally or vertically.
...there are five cue settings: vertical indicates that the text will be dis
played vertically rather than horizontally, such as in some asian languages.
...in normal usage the payload contains the subtitles to be dis
played.
@viewport - CSS: Cascading Style Sheets
min-width used in the determination of the width of the viewport when the document is first dis
played.
... max-width used in the determination of the width of the viewport when the document is first dis
played.
... min-height used in the determination of the height of the viewport when the document is first dis
played.
... max-height used in the determination of the height of the viewport when the document is first dis
played.
HTML attribute reference - HTML: Hypertext Markup Language
alt <applet>, <area>, <img>, <input> alternative text in case an image can't be dis
played.
... reversed <ol> indicates whether the list should be dis
played in a descending order instead of a ascending.
... target <a>, <area>, <base>, <form> specifies where to open the linked document (in the case of an <a> element) or where to display the response recieved (in the case of a <form> element) title global attribute text to be dis
played in a tooltip when hovering over the element.
... usemap <img>, <input>, <object> value <button>, <data>, <input>, <li>, <meter>, <option>, <progress>, <param> defines a default value which will be dis
played in the element on page load.
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
<input type="file" accept="image/*, text/*" name="file"/> hidden a control that is not dis
played but whose value is submitted to the server.
... autofocus a boolean attribute which, if present, indicates that the input should automatically have focus when the page has finished loading (or when the <dialog> containing the element has been dis
played).
... results the maximum number of items that should be dis
played in the drop-down list of previous search queries.
... orient results the results attribute—supported only by safari—is a numeric value that lets you override the maximum number of entries to be dis
played in the <input> element's natively-provided drop-down menu of previous search queries.
<table>: The Table element - HTML: Hypertext Markup Language
it may have the following values: left: the table is dis
played on the left side of the document; center: the table is dis
played in the center of the document; right: the table is dis
played on the right side of the document.
... cellpadding this attribute defines the space between the content of a cell and its border, dis
played or not.
... frame this enumerated attribute defines which side of the frame surrounding the table must be dis
played.
...it can have the following values: none, which indicates that no rules will be dis
played; it is the default value; groups, which will cause the rules to be dis
played between row groups (defined by the <thead>, <tbody> and <tfoot> elements) and between column groups (defined by the <col> and <colgroup> elements) only; rows, which will cause the rules to be dis
played between rows; columns, which will cause the rules to be dis
played between columns; all, which will cause the rules to be dis
played between rows and columns.
HTML elements reference - HTML: Hypertext Markup Language
<sub> the html subscript element (<sub>) specifies inline text which should be dis
played as subscript for solely typographical reasons.
... <sup> the html superscript element (<sup>) specifies inline text which is to be dis
played as superscript for solely typographical reasons.
... <progress> the html <progress> element displays an indicator showing the completion progress of a task, typically dis
played as a progress bar.
... <frame> <frame> is an html element which defines a particular area in which another html document can be dis
played.
HTML documentation index - HTML: Hypertext Markup Language
105 <frame> deprecated, element, html, reference, web <frame> is an html element which defines a particular area in which another html document can be dis
played.
... 178 <progress>: the progress indicator element element, html, html forms, html5, reference, web the html <progress> element displays an indicator showing the completion progress of a task, typically dis
played as a progress bar.
... 199 <sub>: the subscript element baseline, element, footnotes, html, html text-level semantics, html:flow content, html:palpable content, html:phrasing content, reference, subscript, web, sub the html subscript element (<sub>) specifies inline text which should be dis
played as subscript for solely typographical reasons.
... 201 <sup>: the superscript element element, html, html text-level semantics, html:flow content, html:palpable content, html:phrasing content, reference, web the html superscript element (<sup>) specifies inline text which is to be dis
played as superscript for solely typographical reasons.
Add to Home screen - Progressive web apps (PWAs)
you'll see fox pictures, but more important, you'll see a "home" icon with a plus (+) icon inside it — this is the "add to home screen" icon dis
played for any site that has the necessary features in place.
...the most relevant one to a2hs is the splash screen dis
played when the app icon on the home screen is tapped and it first starts to load (this currently appears only when apps have been added to the home screen by chrome).
... display: specifies how the app should be dis
played.
... name/short_name: these fields provide an app name to be dis
played when representing the app in different places.
widget - Archive of obsolete content
contenturl: data.url("buttons.html") }); player.port.emit("init"); player.port.on("play", function() { console.log("playing"); }); player.port.on("pause", function() { console.log("pausing"); }); player.port.on("stop", function() { console.log("stopping"); }); attaching panels to widgets you can supply a panel to the widget's constructor: if you do this, the panel is automatically dis
played when the user clicks the widget.
... optional options: name type content string an optional string value containing the dis
played content of the widget.
...); var windows = require("sdk/windows").browserwindows; var widget = require("sdk/widget").widget({ id: "window-specific-test", label: "widget with content specific to each window", content: " ", width: 50 }); // observe tab switch or document changes in each existing tab: function updatewidgetstate(tab) { var view = widget.getview(tab.window); if (!view) return; // update widget dis
played text: view.content = tab.url.match(/^https/) ?
ui/button/toggle - Archive of obsolete content
the label value inherited from the global state: browser: label = "my default" w1 t1 > displays "my default" t2 > displays "my default" w2 t3 > displays "my default" t4 > displays "my default" if you then set a label specific to t3 as "my t3 label", then set a label state specific to w2 as "my w2 label", then the button dis
played when t3 is the active tab will still show "my t3 label", but the button dis
played when t4 is the active tab will show "my w2 label": browser: label = "my default" w1 t1 > displays "my default" t2 > displays "my default" w2 t3 > displays "my t3 label" t4 > displays "my w2 label" setting the properties on the button instance...
... the badge can contain as many characters (or digits) as you like, but only the first four will be dis
played.
... the badge can contain as many characters (or digits) as you like, but only the first four will be dis
played.
Add a Context Menu Item - Archive of obsolete content
the item is dis
played whenever something in the page is selected.
... label the label is just the string that's dis
played.
...this is a url pointing to a 16x16 icon that's dis
played at the left side of the context menu item.
Inline options - Archive of obsolete content
setting types there are several types of <setting>s, each with a different type attribute: type attribute dis
played as preference stored as bool checkbox boolean boolint checkbox integer (use the attributes on and off to specify what values to store) integer textbox integer string textbox string color colorpicker string (in the #123456 format) file browse button and label string directory browse button and ...
...you can't do this until your options xul has been loaded into the add-on manager window, so you should listen for the addon-options-dis
played notification to initialize your settings.
... for example: var observer = { observe: function(asubject, atopic, adata) { if (atopic == "addon-options-dis
played" && adata == "my_addon@my_domain") { var doc = asubject; var control = doc.getelementbyid("myaddon-pref-control"); control.value = "test"; } } }; services.obs.addobserver(observer, "addon-options-dis
played", false); // don't forget to remove your observer when your add-on is shut down.
Listening to events in Firefox extensions - Archive of obsolete content
pageshow dispatched when a page is newly dis
played.
... for a tabbrowser, the above code will only get events from the browser that is currently dis
played at the time the event occurs.
... in order to listen to events from all browsers, including those not currently being dis
played, the following example can be used: var tabsprogresslistener = { // add tabs progress listener implementation here } gbrowser.addtabsprogresslistener(tabsprogresslistener); this lets you receive events related to all tabs.
XML data - Archive of obsolete content
you want the document's info elements to be dis
played like html paragraphs.
... in the document's stylesheet, you specify how info elements are to be dis
played: info { display: block; margin: 1em 0; } the most common values for the display property are: block dis
played like html's div (for headings, paragraphs) inline dis
played like html's span (for emphasis within text) add your own style rules that specify the font, spacing and other details in the same way as for html.
... the heading, "oceans", has a negative top margin, moving it up so it is dis
played on top of the border.
Creating a status bar extension - Archive of obsolete content
human-readable information in this sample, we have four pieces of human-readable information; that is, information that is dis
played to the user within the firefox interface.
...this name is dis
played in the extensions window.
...this text is also dis
played in the extensions window.
In-Depth - Archive of obsolete content
-moz-box-direction controls which way the items in this box are dis
played.
... normal in english web browsers items are dis
played top to bottom and left to right.
... this will flip it around so items inside of this box will be dis
played bottom to top and right to left.
Tamarin Build System Documentation - Archive of obsolete content
the waterfall page is located at http://tamarin-builds.mozilla.org/tamarin-redux/waterfall what builds are dis
played on the build system status page?
... tamarin-redux mercurial builds are dis
played in the top 3 sections: compile, smoke, test sandbox builds are dis
played in next 3 sections: sandbox compile, sandbox smoke, sandbox test tamarin-central is considered a "sandbox" and will appear under sandbox phase what are the build phases?
... if buildbot is busy the queue is dis
played http://tamarin-builds.mozilla.org/build_trigger/requestbuild.cfm the submitter of a sandbox build may remove a build request by clicking on the cancel button tamarin-redux builds are higher priority than sandbox builds, they cannot be removed but the most checkin including all new checkins are built how can i run buildbot scripts locally?
Building Hierarchical Trees - Archive of obsolete content
when the user opens the tree row, the next level of rows are generated from the template and dis
played in the tree.
...in this example, the two group elements are dis
played at the first level.
... the individual people are dis
played at the next level of the tree as the builder recurses.
Sorting Results - Archive of obsolete content
for instance, if a list of photos was dis
played in a two column tree showing the title and description, you could sort by either title or description.
...however, one situation where this is not desirable is if the dis
played values would not generate the correct order as there is a different representation that is more accurate.
...this also has the advantage that the dates will be dis
played according to the user's current locale (meaning that the date is formatted so as to be suitable for the user's language).
Anonymous Content - Archive of obsolete content
although anonymous content is dis
played on screen, you cannot get to it through a script in the normal way.
...using the children element there may be times when you want both the xbl content and the content provided by the xul file to be dis
played.
...let's say that we wanted to create a widget that dis
played an image with a zoom in and zoom out button on each side of it.
Content Panels - Archive of obsolete content
each time the user clicks the next button, the next screen of the wizard is dis
played.
...in the mozilla browser window, the area where the web page is dis
played is created by using an iframe.
...both types of browser offer similar control over pages that are dis
played.
Grids - Archive of obsolete content
the order of the elements in the grid determines which is dis
played on top and which is placed underneath.
... if the rows element is placed after the columns element, the content within the rows is dis
played on top.
... if the columns element is placed after the rows element, the content within the columns is dis
played on top.
More Wizards - Archive of obsolete content
on the page with the page id font, we can see that the next page is done, so that page will be dis
played afterwards.
... wizard functions the wizard works much like a tabbed panel, except that the tabs are not dis
played and the user navigates between pages by using the buttons along the bottom.
... another useful property of the wizard is currentpage, which holds a reference to the currently dis
played wizardpage.
Tree Selection - Archive of obsolete content
in the image, there are eight rows dis
played, of which two are selected.
...the rows that are not dis
played are not included in the index count.
...an alert is dis
played for each index.
Trees and Templates - Archive of obsolete content
three values are possible: ascending the data is dis
played is ascending order.
... descending the data is dis
played is descending order.
... natural the data is dis
played in natural order, which means the order the data is stored in the rdf datasource.
XUL Structure - Archive of obsolete content
the tree is then converted into a set of objects that can be dis
played on the screen.
...this distinction is not based on the kind of content being dis
played; only on the type of url used.
... locale - locale specific files all the text that is dis
played within a window is stored separately.
menuitem - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
... key type: id set to the id of a key element whose key shortcut is dis
played in the menuitem.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
toolbarbutton - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...the text that is dis
played as a button's label when it's in the customize toolbar palette.
...this will typically cause the button to be dis
played differently.
treecell - Archive of obsolete content
none no progress meter is dis
played.
... the cell text is dis
played instead.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
wizard - Archive of obsolete content
the pages are dis
played in the order that they are placed in the wizard, unless you use the next and pageid attributes on the pages to change the sequence.
... currentpage type: wizardpage element this property returns the wizardpage element that is currently dis
played.
... goto( pageid ) return type: no return value this method is used to change which page is currently dis
played, specified by the pageid argument.
Common Firefox theme issues and solutions - Archive of obsolete content
app button not styled on linux, but is styled on windows on linux the firefox app button that is dis
played when tabs are on top and menu bar is disabled is not styled properly compared to windows and is not changing colors when in private browsing mode.
... toolbars and menus firefox application button application button doesn't change styling for private browsing mode when in private browsing mode there needs to be a visual difference to the firefox app button that is dis
played when tabs are on top and the menu bar is disabled.
... address bar "door hangers" door hanger sync panel not styled the sync panel at the bottom of the "door hanger" for the save password panel dis
played when a user logs into a website needs to be styled to match rest of panel including border.
-ms-overflow-style - Archive of obsolete content
none scrollbars are never dis
played, although the element can still be scrolled if the element's content overflows.
... scrollbar "traditional" scrollbars are dis
played if the element's content overflows.
...auto-hiding scrollbars are dis
played during scrolling or shortly after the pointer interacts with the page, and are hidden shortly after scrolling and pointer interaction stops.
Accessible multimedia - Learn web development
chapter titles — chapter markers intended to help the user navigate the media resource implementing html5 video text tracks text tracks for displaying with html5 video need to be written in webvtt, a text format containing multiple strings of text along with metadata such as what time in the video you want each text string to be dis
played, and even limited styling/positioning information.
... to get this dis
played along with the html media playback, you need to: save it as a .vtt file in a sensible place.
... here's an example: <video controls> <source src="example.mp4" type="video/mp4"> <source src="example.webm" type="video/webm"> <track kind="subtitles" src="subtitles_en.vtt" srclang="en"> </video> this will result in a video that has subtitles dis
played, kind of like this: for more details, please read adding captions and subtitles to html5 video.
Pseudo-classes and pseudo-elements - Learn web development
:current matches the element, or an ancestor of the element, that is currently being dis
played.
... :playing matches an element representing an audio, video, or similar resource that is capable of being “
played” or “paused”, when that element is “playing”.
... :paused matches an element representing an audio, video, or similar resource that is capable of being “
played” or “paused”, when that element is “paused”.
Responsive design - Learn web development
sidebars could be repositioned for the smaller screen, or alternate navigation could be dis
played.
... for example, the following media query tests to see if the current web page is being dis
played as screen media (therefore not a printed document) and the viewport is at least 800 pixels wide.
...the image might be dis
played a lot smaller than its intrinsic size, which is a waste of bandwidth — a mobile user may be downloading an image several times the size of what they actually see in the browser window.
Other form controls - Learn web development
roups of values: <select id="groups" name="groups"> <optgroup label="fruits"> <option>banana</option> <option selected>cherry</option> <option>lemon</option> </optgroup> <optgroup label="vegetables"> <option>carrot</option> <option>eggplant</option> <option>potato</option> </optgroup> </select> on the <optgroup> element, the value of the label attribute is dis
played before the values of the nested options.
... <option selected>cherry</option> <option>lemon</option> </optgroup> <optgroup label="vegetables"> <option>carrot</option> <option>eggplant</option> <option>potato</option> </optgroup> </select> note: in the case of multiple choice select boxes, you'll notice that the select box no longer displays the values as drop-down content — instead, all values are dis
played at once in a list, with the optional size attribute determining the height of the widget.
... for example, in browsers that support <datalist> on range input types, a small tick mark will be dis
played above the range for each datalist <option> value.
Introduction to events - Learn web development
a video is
played, paused, or finishes.
...it's just a copy of the simple random color example we've
played with already.
...here is a <a href="rabbit320.mp4">link to the video</a> instead.</p> </video> </div> when the <button> is selected, the video is dis
played, by changing the class attribute on the <div> from hidden to showing (the example's css contains these two classes, which position the box off the screen and on the screen, respectively): btn.onclick = function() { videobox.setattribute('class', 'showing'); } we then add a couple more onclick event handlers — the first one to the <div> and the second one to the <video>.
Image gallery - Learn web development
the html body looks like this: <h1>image gallery example</h1> <div class="full-img"> <img class="dis
played-img" src="images/pic1.jpg"> <div class="overlay"></div> <button class="dark">darken</button> </div> <div class="thumb-bar"> </div> the example looks like this: the most interesting parts of the example's css file: it absolutely positions the three elements inside the full-img <div> — the <img> in which the full-sized image is dis
played, an empty <div> that is sized to be the sam...
... attach an onclick handler to each <img> inside the thumb-bar <div> so that when they are clicked, the corresponding image is dis
played in the dis
played-img <img> element.
...set the src attribute value of the dis
played-img <img> to the src value passed in as a parameter.
Arrays - Learn web development
in an animated scene for example, you might have an array of objects representing the background graphics currently dis
played, and you might only want 50 dis
played at once, for performance or clutter reasons.
...the idea is that when terms are entered in the search box, the top 5 previous search terms are dis
played in the list.
... when the number of terms goes over 5, the last term starts being deleted each time a new term is added to the top, so the 5 previous terms are always dis
played.
What is JavaScript? - Learn web development
every time you see a popup window appear on a page, or some new content dis
played (as we saw above in our simple demo) for example, that's the dom in action.
...client-side code is code that is run on the user's computer — when a web page is viewed, the page's client-side code is downloaded, then run and dis
played by the browser.
... server-side code on the other hand is run on the server, then its results are downloaded and dis
played in the browser.
Componentizing our Svelte app - Learn web development
filterbutton.svelte: the all, active, and completed buttons that allow you to apply filters to the dis
played todo items.
...each visible todo item will be dis
played in a separate copy of this component.
... update the {#each} block inside todos.svelte like so: <ul role="list" class="todo-list stack-large" aria-labelledby="list-heading"> {#each filtertodos(filter, todos) as todo (todo.id)} <li class="todo"> <todo {todo} /> </li> {:else} <li>nothing to do here!</li> {/each} </ul> the list of todos is dis
played on the page, and the checkboxes should work (try checking/unchecking a couple, and then observing that the filters still work as expected), but our "x out of y items completed" status heading will no longer update accordingly.
Software accessibility: Where are we today?
these applications assumed that computer users could: read and react to text and images dis
played on the screen.
... select text, pictures, and other information using a mouse react to sounds
played.
...some examples of these assistive devices and software include: screen reading software, which speaks text dis
played on the screen using hardware or software text-to-speech, and which allows a blind person to use the keyboard to simulate mouse actions alternate input devices, which allow people with physical disabilities to use alternatives to a keyboard and mouse voice recognition software, which allows a person to simulate typing on a keyboard or selecting with a mouse by speaking into the computer scre...
Debugging Frame Reflow
when the frame's reflow is finished the following information is dis
played : reflow metric (desired) width, height max.
...for these frames the overflow area is dis
played as block 025ed8f0 d=8940,1020 o=(0,0) 9180 x 1020.
...gecko_display_reflow_indent_undis
played_frames setting this option via set gecko_display_reflow_indent_undis
played_frames = 1 will cause an advance of the indent even for frames which are blocked via the reflow rules file.
Inner and outer windows
an inner window represents the actual content being dis
played; it's the current view of what the user sees.
...they get dis
played in the outer window, which is contained in the "physical" browser window.
...if the document currently being dis
played asks "what window am i in?", it gets the outer window as the answer.
Using the Browser API
when this fires, we set the value inside the url bar input to be equal to the event object detail property — this is so that the url dis
played continues to match the website being shown when the user navigates back and forth through the history.
...as in a traditional browser, this is a single button that acts as a reload button when the page has finished loading, and a stop button while the page is loading (each with a different icon dis
played).
... back to the stop/reload button — updating the icon is nice, but we also need to update the functionality that is invoked when each icon is dis
played.
Mozilla Web Developer FAQ
the value of the alt attribute is a textual replacement for the image and is dis
played when the image isn’t.
...in fact, the html 4.01 specification suggests that the title attribute may be dis
played as a tooltip.
... <font face="symbol">a</font> means the character latin small letter a (u+0061) preferably dis
played using the symbol font.
NSS tools : signtool
when you use signtool -v, these entries are dis
played with the string not present.
...note that the password entered on the command line is dis
played as plain text.
... two signing certificates are dis
played: verisign object signing cert and test object signing cert.
Animated PNG graphics
terminology the default image is the image described by the standard 'idat' chunks, and is the image that is dis
played by decoders that do not support apng.
... the canvas is the area on the output device on which the frames are to be dis
played.
...an error message may be dis
played to the user if appropriate.
Gecko Roles
role_tooltip represents a tooltip that provides helpful hints; this is generally dis
played at the mouse cursor position.
... role_character represents a cartoon-like graphic object, such as microsoft office assistant, which is dis
played to provide help to users of an application.
... role_spinbutton represents a spin box, which is a control that allows the user to increment or decrement the value dis
played in a separate "buddy" control associated with the spin box.
Index
however, such decoders relied on servers sending correct mime types; images sent with incorrect mime types would not be correctly dis
played.
... 323 nsialertsservice interfaces, interfaces:scriptable, xpcom, xpcom api reference, xpcom interface reference by default a message is dis
played in a small window that slides up from the bottom of the screen, holds there for a few seconds, then slides down.
...the information is intended to be dis
played to the user in some meaningful way.
Observer Notifications
final-ui-startup triggered just before the first window for the application is dis
played.
... null this notification is sent when the context menu is dis
played.
... it's used by the context-menu module in the add-on sdk, to help send information to the context-menu code running in the chrome process when a context menu is dis
played.
nsIAlertsService
1.0 66 introduced gecko 1.7 inherits from: nsisupports last changed in gecko 22 (firefox 22 / thunderbird 22 / seamonkey 2.19) by default a message is dis
played in a small window that slides up from the bottom of the screen, holds there for a few seconds, then slides down.
...if the text is too long, try to use line returns in the text to have it split and dis
played over multiple lines.
... name optional a name for the notification; this is not dis
played in the alert.
nsIMsgWindowCommands
method overview void selectfolder(in acstring folderuri); void selectmessage(in acstring messageuri); void clearmsgpane(); methods selectfolder() this method is called by the backend to change the folder dis
played in the message window.
... selectmessage() this method is called by the backend to change the dis
played message.
... for instance, when deleting attachments, this causes the message to be redis
played.
nsIPromptService
abutton0title caption dis
played for button 0 if(button_title_is_string*button_title_pos_0) flags are set in abuttonflags abutton1title caption dis
played for button 1 if(button_title_is_string*button_title_pos_1) flags are set in abuttonflags abutton2title caption dis
played for button 2 if(button_title_is_string*button_title_pos_2) flags are set in abuttonflags acheckmsg text to appear with the checkbox.
... null if no checkbox is dis
played.
...the checkbox is not dis
played.
nsISound
void playsystemsound( in astring soundalias ); parameters soundalias two different types of names are supported: you can specify the name of a system sound provided by the host operating system; for example, if you specify "systemexclamation", you can play the windows alert sound, but it's
played only on windows.
... similarly, if you specify "blow", you can play the mac os x "blow" system sound, but, similarly, it's
played only on the macintosh.
... typically, it will be more useful to request that appropriate sounds be
played based on which event you wish to represent by the sound effect.
Flash Activation: Browser Comparison - Plugins
ui comparison mozilla firefox in-page ui is dis
played when the site attempts to use flash.
...the user can click on the flash object or the location bar icon to activate flash: users have the choice to allow flash just for the current session, or to remember their choice: google chrome in-page ui is dis
played when the site attempts to use flash without fallback content: a user can click the plugin element to show a prompt for allowing flash: if the site provides fallback content for an object element, chrome will display that content and will not prompt the user to enable flash.
... a user can click the information icon on the left side of the location bar on any site to open the site information and allow flash on that site: microsoft edge in-page ui is dis
played when the site attempts to use flash.
URLs - Plugins
the target parameter represents the destination where the url will be dis
played, a window or frame.
...the url can be dis
played in the same window or frame, a new window, or a different window or frame, depending on the value of the target parameter.
...the response from the server is dis
played in a new window.
Deprecated tools - Firefox Developer Tools
the results are dis
played in the console output, to the right of the input, providing immediate feedback.
... unlike in scratchpad, errors are properly dis
played in the output with an expandable stacktrace, making it easier to debug the code you're currently writing.
...some non-audioparam properties, like an oscillatornode's type property, were dis
played and editable as well.
Measure a portion of the page - Firefox Developer Tools
now when you mouse over the viewport, you'll see the mouse has a crosshair cursor with its current coordinates dis
played beside it.
... when you hold the mouse button down and then drag, you'll start to draw a rectangle, with its x, y, and diagonal dimensions dis
played.
... when you stop holding the mouse down, the rectangle that was dis
played on screen when you released the button will stay there until you click again, allowing you time to take screenshots, note the information down, etc.
Work with animations - Firefox Developer Tools
the timeline starts at the start of the first animation, ends at the end of the last animation, and is labeled with markers every 250 milliseconds (this depends on the time scale of the animations currently dis
played).
... animation playback at the top of the animation inspector: there are buttons to play/pause and restart the animation there's a dropdown to change the animation playback rate the current time in the animation is dis
played.
...in this case, the message is "animations of 'transform' cannot be run on the compositor when geometric properties are animated on the same element at the same time." edit @keyframes any @keyframes rules associated with the currently selected element are dis
played in the rules view and are editable: edit timing functions when you create a css animation you can specify a timing function: this determines the rate at which the animation progresses.
Background Tasks API - Web APIs
this code draws any pending updates to the document currently being dis
played, runs any javascript code the page needs to run, accepts events from input devices, and dispatches those events to the elements that should receive them.
... if the current maximum value of the progress bar is different from the current total number of enqueued tasks (totaltaskcount), then we update the contents of the dis
played total number of tasks (totaltaskcountelem) and the maximum value of the progress bar, so that it scales properly.
... we do the same thing with the number of tasks processed so far; if progressbarelem.value is different from the task number currently being processed (currenttasknumber), then we update the dis
played value of the currently-being-processed task and the current value of the progress bar.
BaseAudioContext.createBuffer() - Web APIs
the createbuffer() method of the baseaudiocontext interface is used to create a new, empty audiobuffer object, which can then be populated by data, and
played via an audiobuffersourcenode for more details about audio buffers, check out the audiobuffer reference page.
... examples first, a couple of simple trivial examples, to help explain how the parameters are used: var audioctx = new audiocontext(); var buffer = audioctx.createbuffer(2, 22050, 44100); if you use this call, you will get a stereo buffer (two channels), that, when
played back on an audiocontext running at 44100hz (very common, most normal sound cards run at this rate), will last for 0.5 seconds: 22050 frames / 44100hz = 0.5 seconds.
... var audioctx = new audiocontext(); var buffer = audioctx.createbuffer(1, 22050, 22050); if you use this call, you will get a mono buffer (one channel), that, when
played back on an audiocontext running at 44100hz, will be automatically *resampled* to 44100hz (and therefore yield 44100 frames), and last for 1.0 second: 44100 frames / 44100hz = 1 second.
Determining the dimensions of elements - Web APIs
what's the size of the dis
played content?
... if you need to know how much space the actual dis
played content takes up, including padding but not including the border, margins, or scrollbars, you want to use the element.clientwidth and element.clientheight properties: how big is the content?
... for example, if a 600x400 pixel element is being dis
played inside a 300x300 pixel scrollbox, scrollwidth will return 600 while scrollheight will return 400.
Using files from web applications - Web APIs
function handlefiles(files) { for (let i = 0; i < files.length; i++) { const file = files[i]; if (!file.type.startswith('image/')){ continue } const img = document.createelement("img"); img.classlist.add("obj"); img.file = file; preview.appendchild(img); // assuming that "preview" is the div output where the content will be dis
played.
...e looks like this: <input type="file" id="fileelem" multiple accept="image/*" style="display:none"> <a href="#" id="fileselect">select some files</a> <div id="filelist"> <p>no files selected!</p> </div> this establishes our file <input> element as well as a link that invokes the file picker (since we keep the file input hidden to prevent that less-than-attractive user interface from being dis
played).
...they can be used to display embedded pdf files or any other resources that can be dis
played by the browser.
Guide to the Fullscreen API - Web APIs
for example, <iframe> elements have the allowfullscreen attribute in order to opt-in to allowing their content to be dis
played in fullscreen mode.
...attempting to put an element which can't be dis
played in fullscreen mode (or the parent or descendant of such an element) won't work.
... other information the document provides some additional information that can be useful when developing fullscreen web applications: documentorshadowroot.fullscreenelement the fullscreenelement property tells you the element that's currently being dis
played fullscreen.
HTMLObjectElement - Web APIs
htmlobjectelement.height returns a domstring that reflects the height html attribute, specifying the dis
played height of the resource in css pixels.
... htmlobjectelement.typemustmatch is a boolean that reflects the typemustmatch html attribute, indicating if the resource specified by data must only be
played if it matches the type attribute.
... htmlobjectelement.width is a domstring that reflects the width html attribute, specifying the dis
played width of the resource in css pixels.
MediaMetadata.MediaMetadata() - Web APIs
syntax var mediametadata = new mediametadata([metadata]) parameters metadata optional the metadata parameters are as follows: title: the title of the media to be
played.
...of the media to be
played.
... album: the name of the album, or collection, containing the media to be
played.
MediaMetadata - Web APIs
properties mediametadata.title returns or sets the title of the media to be
played.
...of the media to be
played.
... mediametadata.album returns or sets the name of the album or collection containing the media to be
played.
MediaPositionState.playbackRate - Web APIs
the mediapositionstate dictionary's playbackrate property is used when calling the mediasession method setpositionstate() to tell the user agent the rate at which media is currently being
played.
...a value of 1.0 indicates the media is playing forward at normal speed, while higher values indicate that the media is being
played faster than normal.
... lower values indicate the media is being
played more slowly.
msFirstPaint - Web APIs
msfirstpaint is a read-only property which gets the time when the document loaded by the window object began to be dis
played to the user.
... syntax p = object.msfirstpaint; value an integer value that represents the time when the document began to be dis
played or 0 if the document could not be loaded.
... this property is supported only for documents dis
played in ie9 standards mode.
Notification.Notification() - Web APIs
body: a domstring representing the body text of the notification, which is dis
played below the title.
... icon: a usvstring containing the url of an icon to be dis
played in the notification.
... image: a usvstring containing the url of an image to be dis
played in the notification.
RTCRtpContributingSource - Web APIs
the rtcrtpcontributingsource dictionary of the the webrtc api is used by getcontributingsources() to provide information about a given contributing source (csrc), including the most recent time a packet that the source contributed was
played out.
... properties audiolevel optional a double-precision floating-point value between 0 and 1 specifying the audio level contained in the last rtp packet
played from this source.
... rtptimestamp optional the rtp timestamp of the media
played out at the time indicated by timestamp.
Color masking - Web APIs
« previousnext » this webgl example modifies random colors by applying color masking to limit the range of dis
played colors to specific shades.
...by masking off some channel(s), we are in fact biasing the dis
played colors towards the complementary color.
... <p>tinting the dis
played colors with color masking.</p> <canvas>your browser does not seem to support html5 canvas.</canvas> <button id="red-toggle">on</button> <button id="green-toggle">on</button> <button id="blue-toggle">on</button> body { text-align : center; } canvas { display : block; width : 280px; height : 210px; margin : auto; padding : 0; border : none; background-color : black; } button {...
Signaling and video calling - Web APIs
here we set up the handler for each connected user in the user list dis
played to the left of the chat panel.
... break; default: alert("error opening your camera and/or microphone: " + e.message); break; } closevideocall(); } an error message is dis
played in all cases but one.
... once this code has completed, finally the video being sent by the other peer is dis
played in the local browser window!
Basic concepts behind Web Audio API - Web APIs
audio buffers: frames, samples and channels an audiobuffer takes as its parameters a number of channels (1 for mono, 2 for stereo, etc), a length, meaning the number of sample frames inside the buffer, and a sample rate, which is the number of sample frames
played per second.
... if you use this call above, you will get a stereo buffer with two channels, that when
played back on an audiocontext running at 44100hz (very common, most normal sound cards run at this rate), will last for 0.5 seconds: 22050 frames/44100hz = 0.5 seconds.
... var context = new audiocontext(); var buffer = context.createbuffer(1, 22050, 22050); if you use this call, you will get a mono buffer with just one channel), that when
played back on an audiocontext running at 44100hz, will be automatically resampled to 44100hz (and therefore yield 44100 frames), and last for 1.0 second: 44100 frames/44100hz = 1 second.
marks - CSS: Cascading Style Sheets
syntax /* keyword values */ marks: none; marks: crop; marks: cross; marks: crop cross; values crop crop marks will be dis
played.
... cross cross marks will be dis
played.
... none no marks will be dis
played.
Adding captions and subtitles to HTML5 video - Developer guides
for this article we will refer to the text tracks dis
played as subtitles, as their content is aimed at hearing people who have difficulty understanding the language of the film, rather than deaf or hard-of-hearing people.
... 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 dis
played in, or to turn them off entirely.
...:absolute; bottom:14.8%; right:20px; background:#666; list-style-type:none; margin:0; padding:0; width:100px; padding:10px; } .subtitles-menu li { padding:0; text-align:center; } .subtitles-menu li button { border:none; background:#000; color:#fff; cursor:pointer; width:90%; padding:2px 5px; border-radius:2px; } styling the dis
played subtitles one of the less well known about and supported features of webvtt is the ability to style the individual subtitles (something called text cues) via css extensions.
Audio and Video Delivery - Developer guides
iles --> <track src="subtitles_en.vtt" kind="subtitles" srclang="en" label="english"> <track src="subtitles_no.vtt" kind="subtitles" srclang="no" label="norwegian"> <!-- fallback for browsers that don't support video tag --> <a href="videofile.mp4">download video</a> </video> the code above creates a video player of dimensions 640x480 pixels, displaying a poster image until the video is
played.
...the general technique for achieving this is to omit the controls attribute so that the default browser controls are not dis
played, create custom controls using html and css, then use javascript to link your controls to the audio/video api.
... var mediaelement = document.queryselector('#mediaelementid'); mediaelement.seekable.start(0); // returns the starting time (in seconds) mediaelement.seekable.end(0); // returns the ending time (in seconds) mediaelement.currenttime = 122; // seek to 122 seconds mediaelement.
played.end(0); // returns the number of seconds the browser has
played specifying playback range when specifying the uri of media for an <audio> or <video> element, you can optionally include additional information to specify the portion of the media to play.
Media events - Developer guides
canplay sent when enough data is available that the media can be
played, at least for a couple of frames.
... canplaythrough sent when the readystate changes to have_enough_data, indicating that the entire media can be
played without interruption, assuming the download rate remains at least at the current level.
... mozaudioavailable sent when an audio buffer is provided to the audio layer for processing; the buffer contains raw audio samples that may or may not already have been
played by the time you receive the event.
Overview of events and handlers - Developer guides
the dis
played page remains unchanged until the browser requests a new page.
... button event handler demo for example, browser <button> elements are intended to emit events named 'click' in response to a mouse click or, when dis
played in touch sensitive surfaces, to a finger tap.
... the global object window emits an event called 'load' when the page has finished rendering, meaning that all resources have been downloaded and acted upon, so that the scripts have been run and the images dis
played, the global object window emits an event called 'resize' when the height or the width of the browser window is changed by a user, the dom object document representing the html document emits an event called 'domcontentloaded' when the document has finished loading, the dom node objects such as div or button emit an event called 'click' when the user presses the mouse button while the mouse poi...
<li> - HTML: Hypertext Markup Language
in menus and unordered lists, list items are usually dis
played using bullet points.
... in ordered lists, they are usually dis
played with an ascending counter on the left, such as a number or letter.
...the only allowed value for this attribute is a number, even if the list is dis
played with roman numerals or letters.
<shadow>: The obsolete Shadow Root element - HTML: Hypertext Markup Language
--> <div> <!-- this heading will not be dis
played --> <h4>my original heading</h4> </div> <script> // get the <div> above with its content var origcontent = document.queryselector('div'); // create the first shadow root var shadowroot1 = origcontent.createshadowroot(); // create the second shadow root var shadowroot2 = origcontent.createshadowroot(); // insert something into the older shadow root shadowr...
... // the previous markup will not be dis
played unless // <shadow> is used below.
... shadowroot2.innerhtml = '<shadow></shadow> <p>younger shadow root, dis
played because it is the youngest.</p>'; </script> </body> </html> if you display this in a web browser it should look like the following.
Content-Disposition - HTTP
in a regular http response, the content-disposition response header is a header indicating if the content is expected to be dis
played inline in the browser, that is, as a web page or as part of a web page, or as an attachment, that is downloaded and saved locally.
... header type response header (for the main body) general header (for a subpart of a multipart body) forbidden header name no syntax as a response header for the main body the first parameter in the http context is either inline (default value, indicating it can be dis
played inside the web page, or as the web page) or attachment (indicating it should be downloaded; most browsers presenting a 'save as' dialog, prefilled with the value of the filename parameters if present).
... examples a response triggering the "save as" dialog: 200 ok content-type: text/html; charset=utf-8 content-disposition: attachment; filename="cool.html" content-length: 21 <html>save me!</html> this simple html file will be saved as a regular download rather than dis
played in the browser.
X-Frame-Options - HTTP
deny the page cannot be dis
played in a frame, regardless of the site attempting to do so.
... sameorigin the page can only be dis
played in a frame on the same origin as the page itself.
...in supporting legacy browsers, a page can be dis
played in a frame only on the specified origin uri.
short_name - Web app manifests
type string mandatory no the short_name member is a string that represents the name of the web application dis
played to the user if there is not enough space to display name (e.g., as a label for an icon on the phone home screen).
... short_name is directionality-capable, which means it can be dis
played left-to-right or right-to-left based on the value of the dir and lang manifest members.
... examples simple short_name in left-to-right language: "name": "awesome application", "short_name": "awesome app" short_name in arabic, which will be dis
played right-to-left: "dir": "rtl", "lang": "ar", "name": "تطبيق رائع", "short_name": "رائع" specification specification status comment feedback web app manifestthe definition of 'short_name' in that specification.
Autoplay guide for media and Web Audio APIs - Web media technologies
you can also specify 'none' to disable autoplay entirely, '*' to allow autoplay from all domains, or one or more specific origins from which media can be automatically
played.
... feature-policy: autoplay 'self'; fullscreen the same permissions, grated using the <iframe> element's allow property, look like this: <iframe src="mediaplayer.html" allow="autoplay 'src'; fullscreen"> </iframe> example: allowing autoplay from specific sources the feature-policy header to allow media to be
played from both the document's (or <iframe>'s) own domain and https://example.media looks like this: feature-policy: autoplay 'self' https://example.media an <iframe> can be written to specify that this autoplay policy should be applied to itself and any child frames would be written thusly: <iframe width="300" height="200" src="mediaplayer.html" allow="autoplay 'src' https://example...
... media.autoplay.allow-muted a boolean preference which if true (the default) allows audio media which is currently muted to be automatically
played.
Image file type and format guide - Web media technologies
another popular feature of gif is support for interlacing, where rows of pixels are stored out of order so that partially-received files can be dis
played in lower quality.
...however, early versions of internet explorer introduced the ability for a web site to provide a ico file named favicon.ico in a web site's root directory to specify a favicon — an icon to be dis
played in the favorites menu, and other places where an iconic representation of the site would be useful.
... for example, if you're displaying a diagram best dis
played with svg, but wish to offer a fallback to a png or gif of the diagram, you would do something like this: <picture> <source srcset="diagram.svg" type="image/svg+xml"> <source srcset="diagram.png" type="image/png"> <img src="diagram.gif" width="620" height="540" alt="diagram showing the data channels"> </picture> you can specify as many <source>s as you wish, though typically 2 or 3...
Populating the page: how browsers work - Web Performance
building the cssom is very, very fast and is not dis
played in a unique color in current developer tools.
... tags that aren't going to be dis
played, like the <head> and its children and any nodes with display: none, such as the script { display: none; } you will find in user agent stylesheets, are not included in the render tree as they will not appear in the rendered output.
...the render tree identified which nodes are dis
played (even if invisible) along with their computed styles, but not the dimensions or location of each node.
passwords - Archive of obsolete content
the realm is dis
played in firefox's password manager, under "site", in brackets after the url.
... the realm is dis
played in firefox's password manager, under "site", in brackets after the url.
self - Archive of obsolete content
for data that can be dis
played directly in a content frame, use data.url().
...it is most useful for data that can be dis
played directly in a content frame.
ui/button/action - Archive of obsolete content
the badge can contain as many characters (or digits) as you like, but only the first four will be dis
played.
... the badge can contain as many characters (or digits) as you like, but only the first four will be dis
played.
Adding menus and submenus - Archive of obsolete content
the separator is usually dis
played as a horizontal line that creates a logical division between different types of menuitem elements, keeping everything more organized.
...instead of setting the menupopup directly in the xul, you can use the onpopupshowing event to fill the children when the popup is about to be dis
played.
Handling Preferences - Archive of obsolete content
pref("extensions.xulschoolhello.message.count", 0); this defines a preference we'll use to keep track of the amount of times we have dis
played a greeting message to the user.
... in most cases, your preferences window will have a few options that can be dis
played all at once.
Signing an XPI - Archive of obsolete content
hint: when applying for a certificate ensure that the organisation (o) contains your name and not the issuer's default text, because this is what is dis
played to users.
... install the certificate into mozilla firefox (which goes with the private key created earlier), and copy/paste the dis
played certificate text into a new file called c:\projects\codesigning\certum code signing.cer.
Tabbed browser - Archive of obsolete content
gbrowser.contentdocument; or content.document if you're working from a window or dialog that was opened by the browser window, you can use this code to get the document dis
played in the selected tab in the browser window that opened the new window or dialog.
... window.opener.content.document from windows or dialogs not opened by the browser window, you can use nsiwindowmediator to get the document dis
played in the selected tab of the most recently used browser window.
MMgc - Archive of obsolete content
memory leaks will be dis
played with their stack trace of origin.
...the report can be output to the console or to a file, and can be configured to be dis
played pre/post sweep or via api call.
Adding the structure - Archive of obsolete content
panel-iconic" id="tinderbox-status" status="none"/> <statusbarpanel class="statusbarpanel-iconic" id="offline-status"/> <statusbarpanel class="statusbarpanel-iconic" id="security-button" onclick="browserpageinfo(null, 'securitytab')"/> </statusbar> the statusbar xul element defines a horizontal status bar where informative messages about an application's state can be dis
played.
...all xul elements can be given custom attributes in addition to the ones the xul rendering engine recognizes which get ignored by the engine, so adding this custom attribute does not create any problems or modify the way the widget is dis
played (except for the ways we explicitly specify with css).
Plug-n-Hack Phase1 - Archive of obsolete content
ity tool commands manifest an example commands manifest (for owasp zap) is: https://code.google.com/p/zap-extensions/source/browse/branches/beta/src/org/zaproxy/zap/extension/plugnhack/resource/service.json firefox ui in firefox the tool commands will be made available via the developer toolbar (gcli) https://developer.mozilla.org/docs/tools/gcli a example of how the zap commands are currently dis
played is: note that user specified parameters can be specified for commands, which can either be free text, a static pull down list of options or a dynamic list of options obtained from the tool on demand.
...pnh does not specify how tool commands should be dis
played, so other browsers are free to display them in different ways.
Configuration - Archive of obsolete content
status turns the status messages on or off for this web app: yes or no location turns the readonly location bar on or off for this web app: yes or no navigation turns the hotkey history navigation (alt+left, alt+right and alt+home) on or off for this web app: yes or no splashscreen filename of an html page to be dis
played while the app is loading.
...trayicon indicates that a system tray (notification area) icon should be dis
played for the application on windows: yes or no.
Scripting - Archive of obsolete content
it can contain the following functions: startup when the app starts, before the user interface is dis
played.
...preload just before the user interface is dis
played.
Elements - Archive of obsolete content
display - this attribute specifies how the tag is dis
played.
...for example, use the value 'xul:button' to create an element that is dis
played like a button.
alert - Archive of obsolete content
method of install object syntax void alert ( string message ); parameters the message parameter is dis
played as a string in the dialog box.
... if message is not a string, then it is converted into one and dis
played.
colorpicker.type - Archive of obsolete content
« xul reference home type type: string if this attribute is not present, the colorpicker is dis
played inside the window.
... if this is set to the text button, the colorpicker is dis
played as a button.
hideheader - Archive of obsolete content
« xul reference home hideheader type: boolean set this to true to indicate that the tree column header should be dis
played without any column header styling.
... if you don't set a label for that column either, the header is not dis
played at all.
Menus - Archive of obsolete content
to do this, the new menu will need to be laid over the existing menu which the item should be dis
played upon.
... firefox context menu element id description relevant context contentareacontextmenu the popup for the context menu when a web page is dis
played in the browser area.
getIndexOfFirstVisibleRow - Archive of obsolete content
« xul reference home getindexoffirstvisiblerow() return type: integer returns the index of the first dis
played row.
... note that this is not the same as the first row -- if the dis
played items have been scrolled down, this function will retrieve the index of the first row that the user can see.
MenuItems - Archive of obsolete content
you might do this if the key associated with the item changes, for instance a list of open windows dis
played on a window menu.
...to indicate the current state of the toolbar, a checkbox would be dis
played next to the menu item label.
Panels - Archive of obsolete content
when the left mouse button is pressed on the element with the popup attribute, the corresponding panel will be dis
played.
...this causes the panel to be dis
played not where the mouse was clicked but aligned along the bottom edge of the label.
PopupEvents - Archive of obsolete content
the popupshowing event just before a popup is about to be dis
played, a popupshowing event will fired on the popup.
...within the listener for the popupshowing event, you can append to or modify the menu as needed before it is dis
played.
Tooltips - Archive of obsolete content
the tooltip element tooltips are dis
played using a tooltip element, which is a type of popup, but is styled to look different.
... tooltips in trees as the entire body of the tree is dis
played using a single element, the tooltip and tooltiptext attributes do not apply to individual rows or cells of a tree.
RDF Modifications - Archive of obsolete content
the template builder will need to check all of the queries and rules to see if this triple could cause a change in what would be dis
played.
... <member container="?start" child="?photo"/> <triple subject="?photo" predicate="http://purl.org/dc/elements/1.1/title" object="?title"/> <triple subject="?photo" predicate="http://purl.org/dc/elements/1.1/description" object="?description"/> </query> these query statements will cause any photos with both a title and a description to be dis
played.
Rule Compilation - Archive of obsolete content
since any content that would be generated wouldn't be dis
played anyway, the template builder doesn't do anything, putting off work until later.
...it would be rather time consuming to generate output for every item in a tree, even for those not dis
played, so the template builder doesn't do so.
Static Content - Archive of obsolete content
this content is dis
played as is without affecting the generated content from the template.
...the content will be dis
played just like it would be as if the template wasn't present.
Custom toolbar button - Archive of obsolete content
explanation: this css stylesheet specifies how the button is dis
played.
...ensure that the name of the saved file is: icon.png explanation: this image is dis
played in the application's extension manager window.
Tree Widget Changes - Archive of obsolete content
to get a column in javascript: tree.columns.getcolumnfor(treecolelement); tree.columns.getnamedcolumn(treecolid); tree.columns.getcolumnat(index); you can also just use array syntax to get a column: tree.columns["lastname"]; tree.columns[5]; once you have a column, you can get various properties of it: column.index - the index of the column in dis
played order column.id - the id attribute of the column column.element - the treecol element column.x - the x position in the tree of the left edge of the column column.width - the width of the column in c++ code, you can also get the atom attribute of nsitreecolumn which returns an nsiatom for the column, making it fast to do comparisons.
...it returns the number of rows that can be dis
played in the tree.
Creating Dialogs - Archive of obsolete content
« previousnext » a xul application will often require dialogs to be dis
played.
... var somefile=document.getelementbyid('enterfile').value; window.opendialog("chrome://findfile/content/showdetails.xul","showmore", "chrome",somefile); in this example the dialog showdetails.xul is dis
played.
Creating a Window - Archive of obsolete content
because xml does not have any knowledge of how elements should be dis
played, the file indicates how.
... title="find files" the title attribute describes the text that would appear on the title bar of the window when it is dis
played.
Element Positioning - Archive of obsolete content
abel="1" style="width: 100px;"/> <button label="2" style="width: 100em; height: 10px;"/> <button label="3" flex="1" style="min-width: 50px;"/> <button label="4" flex="1" style="min-height: 2ex; max-width: 100px"/> <textbox flex="1" style="max-width: 10em;"/> <description style="max-width: 50px">this is some boring but simple wrapping text.</description> example 1 the first button will be dis
played with a width of 100 pixels (px means pixels).
... example 2 the second button will be dis
played with a height of ten pixels and a width of 100 ems (an em is the size of a character in the current font).
Focus and Selection - Archive of obsolete content
if you do not, pressing tab will set the focus to the next dis
played element.
...tbox.setselectionrange(4,8); this example will select the fifth character dis
played, as well as the sixth, seventh and eighth.
Groupboxes - Archive of obsolete content
the groupbox is dis
played in a special way—usually with a beveled border and a caption, although you can change the appearance using css.
...a simple groupbox example the example below shows a simple groupbox: example 1 : source view <groupbox> <caption label="answer"/> <description value="banana"/> <description value="tangerine"/> <description value="phone booth"/> <description value="kiwi"/> </groupbox> this will cause four pieces of text to be dis
played surrounded by a box with the label answer.
Introduction - Archive of obsolete content
also, text dis
played with xul is easily localizable, which means that it can be translated into other languages with little effort.
...some elements that can be created are: input controls such as textboxes and checkboxes toolbars with buttons or other content menus on a menu bar or pop up menus tabbed dialogs trees for hierarchical or tabular information keyboard shortcuts the dis
played content can be created from the contents of a xul file or with data from a datasource.
Localization - Archive of obsolete content
you should not have any directly dis
played text in the xul file at all.
...the window will not be dis
played if an entity is found in the xul file that hasn't been declared.
More Button Features - Archive of obsolete content
the image is loaded from the url, which can be a relative or absolute url, and then the image is dis
played on the button.
...example 2 : source view <button id="find-button" label="find" style="list-style-image: url('happy.png')"/> in this case, the image 'happy.png' is dis
played on the button.
Stacks and Decks - Archive of obsolete content
this would be useful for a wizard interface where a series of similar panels are dis
played in sequence.
...the dis
played page of the deck can be changed by setting an selectedindex attribute on the deck element.
Templates - Archive of obsolete content
these elements get dis
played, but the template itself is not dis
played, although it still exists in the document tree.
...the result would be a single spacer dis
played but no bookmarks because they don't match any of the rules.
Tree Box Objects - Archive of obsolete content
« previousnext » this section will describe the tree box object used to handle how a tree is dis
played.
... <treeitem label="row 5"/> <treeitem label="row 6"/> <treeitem label="row 7"/> <treeitem label="row 8"/> <treeitem label="row 9"/> </treechildren> </tree> <hbox align="center"> <label value="scroll to row:"/> <textbox id="tbox"/> <button label="scroll" oncommand="doscroll();"/> </hbox> note that we use the rows attribute on the tree to specify that only four rows are dis
played at a time.
Using Remote XUL - Archive of obsolete content
<?xml version="1.0"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <iframe src="https://www.mozilla.org/" flex="1" /> </window> the xul iframe element is just like its html counterpart: it defines an area within which web content can be dis
played.
... its src attribute contains the url of the page being dis
played in the iframe.
browser - Archive of obsolete content
it is similar to an iframe except that it holds a page history and contains additional methods to manipulate the currently dis
played page.
...other urls will need to use the document and history objects to change the dis
played document.
colorpicker - Archive of obsolete content
type type: string if this attribute is not present, the colorpicker is dis
played inside the window.
... if this is set to the text button, the colorpicker is dis
played as a button.
grid - Archive of obsolete content
elements placed within both the columns and rows will be dis
played, although usually only elements will be placed inside one of these.
...whichever of the columns and rows is last in the grid is dis
played on top; commonly the columns element appears in the grid first.
listitem - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
menuseparator - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
radio - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
radiogroup - Archive of obsolete content
for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
...items are numbered starting at the first item dis
played in the list.
scale - Archive of obsolete content
a bar dis
played either horizontally or vertically allows the user to select a value by dragging a thumb on the bar.
...for those elements, setattribute("value", myvalue) and getattribute("value") do not access or affect the contents dis
played to the user.
tab - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
... linkedpanel type: id the id of the linked tabpanel element that will be dis
played when the tab is selected.
tabbox - Archive of obsolete content
a row of tabs is dis
played at the top of tabbox which may be used to switch between each page.
...if the shift key is also held down, the previous tab will be dis
played.
tooltip - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
...each type of popup is intended to be dis
played only temporarily; they are not expected to be dis
played permanently.
wizardpage - Archive of obsolete content
when set, the page with this pageid is dis
played when the next button is pressed.
...when set, the page with this pageid is dis
played when the next button is pressed.
calICalendarView - Archive of obsolete content
if an implementation returns true for this attribute, it must allow for any arbitrary set of dates to be dis
played.
... hasdisjointdates returns false if the dates being dis
played represent a continuous list, and true if certain dates in between startdate and enddate may not be dis
played.
NPN_GetValue - Archive of obsolete content
values for npnvariable: npnvxdisplay =1: unix only: returns the current display npnvxtappcontext: unix only: returns the application's xtappcontext npnvnetscapewindow: ms windows and unix/x11 only: ms windows: gets the native window on which plug-in drawing occurs; returns hwnd unix/x11: gets the browser toplevel window in which the plug-in is dis
played; returns window npnvjavascriptenabledbool: tells whether javascript is enabled; true=javascript enabled, false=not enabled npnvasdenabledbool: tells whether smartupdate (former name: asd) is enabled; true=smartupdate enabled, false=not enabled npnvisofflinebool: tells whether offline mode is enabled; true=offline mode enabled, false=not enabled npnvtoolkit: npnvsupportsxem...
...unix the platform-specific values for this parameter are npnvxdisplay (the current display), npnvxtappcontext (the browser's xtappcontext), and npnvnetscapewindow (the browser toplevel window in which the plugin is dis
played).
Create Your Own Firefox Background Theme - Archive of obsolete content
creating a theme header image the header image is dis
played as the background of the top of the browser window, nestling in behind the toolbars, address bar, search bar and the tab strip.
... creating a theme footer image in older versions of firefox, or newer versions with certain add-ons installed, the footer image is dis
played as the background of the bottom of the browser window, behind the add-on and find bars.
Using workers in extensions - Archive of obsolete content
when the result is received from xmlhttprequest, instead of immediately updating the dis
played information in the status bar, a message is sent to the main thread using the worker's postmessage() method.
...its job is to update the ticker information that's currently dis
played in the status bar, as well as to update the tooltip that appears while the mouse cursor is hovering over the ticker.
::-ms-fill - Archive of obsolete content
the ::-ms-fill css pseudo-element is a microsoft extension that represents a progress bar dis
played by <progress>.
...by setting animation-name on ::-ms-fill, you can change the animation, as shown in this table: value description none turns off the animation so that no dots are dis
played.
Mozilla's DOCTYPE sniffing - Archive of obsolete content
the goals that led to choosing this behavior were the following: almost all existing text/html pages on the web that need to be in quirks mode to be dis
played correctly should be dis
played using quirks mode.
... pages written using any public identifiers in doctype declarations that appear in the future should be dis
played using strict mode.
The Business Benefits of Web Standards - Archive of obsolete content
most of this information uses invalid html which happens to be dis
played correctly in permissive older browsers.
... well-formed html code saves time and money one of the major headaches for web developers comes from web pages being dis
played differently in various browsers.
Game distribution - Game development
simple time killer games to be
played while on the move rather than huge immersive experiences.
... such games are often designed to be
played with two, or even one finger, so you can hold the device, play the game and be able to use the second hand for whatever you currently need.
Audio for Web games - Game development
also note that playing and immediately pausing your audio does not guarantee that a small piece of audio won't be
played.
... in the context of your game world you may have loops and samples that are
played in different circumstances, and it can be useful to be able to synchronize with other tracks for a more seamless experience.
Buttons - Game development
new variables we will need a variable to store a boolean value representing whether the game is currently being
played or not, and another one to represent our button.
...add the following lines to the bottom of your create() function: startbutton = game.add.button(game.world.width*0.5, game.world.height*0.5, 'button', startgame, this, 1, 0, 2); startbutton.anchor.set(0.5); the button() method's parameters are as follows: the button's x and y coordinates the name of the graphic asset to be dis
played for the button a callback function that will be executed when the button is pressed a reference to this to specify the execution context the frames that will be used for the over, out and down events.
Plug-in Development Overview - Gecko Plugin API Reference
this message, which is in html format, is dis
played by the browser in its "about plug-ins" page.
...you can use these netscape methods: to identify the browser in which your plug-in is dis
played: use the npn_useragent method to read this information.
Sizing items in CSS - Learn web development
if you place an image on a page and do not change its height and width, either using attributes on the <img> tag or css, it will be dis
played using that intrinsic size.
...images should be appropriately sized to be no larger than they need to be for the largest size they are dis
played in the design.
Test your skills: sizing - Learn web development
try updating the live code below to recreate the example as dis
played in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an online editor.
... try updating the live code below to recreate the example as dis
played in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an online editor.
The box model - Learn web development
parts of a box making up a block box in css we have the: content box: the area where your content is dis
played, which can be sized using properties like width and height.
...the navigation below is dis
played in a row using flexbox and we have added padding to the <a> element as we want to be able to change the background-color when the <a> is hovered.
Test your skills: values and units - Learn web development
try updating the live code below to recreate the example as dis
played in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an online editor.
... try updating the live code below to recreate the example as dis
played in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an online editor.
Introduction to CSS layout - Learn web development
let's look at a quick html example: <p>i love my cat.</p> <ul> <li>buy cat food</li> <li>exercise</li> <li>cheer up friend</li> </ul> <p>the end!</p> by default, the browser will display this code as follows: note here how the html is dis
played in the exact order in which it appears in the source code, with elements stacked up on top of one another — the first paragraph, followed by the unordered list, followed by the second paragraph.
...they are dis
played in a row, because the initial value of flex-direction set on their parent is row.
The HTML5 input types - Learn web development
note that the clear icon only appears if the field has a value, and, apart from safari, it is only dis
played when the field is focused.
...on devices with dynamic keyboards, the numeric keyboard is generally dis
played.
Sending form data - Learn web development
viewing http requests http requests are never dis
played to the user (if you want to see them, you need to use tools such as the firefox network monitor or the chrome developer tools).
... the only thing dis
played to the user is the url called.
JavaScript basics - Learn web development
if values couldn't change, then you couldn't do anything dynamic, like personalize a greeting message or change an image dis
played in an image gallery.
...this change will happen as a user clicks the dis
played image.
HTML Cheatsheet - Learn web development
bold a word or phrase within the text mark text as important <strong>i'm important</strong> i'm important highlight some text <mark>notice me</mark> notice me draw a line through irrelevant text <s>i'm irrelevant</s> i'm irrelevant underline a non-textual annotation this is <u>mispelled</u> this is mispelled text dis
played lower than normal text h<sub>2</sub>o h2o small text used to represent the <small>small print </small>of a document used to represent the small print of a document used for an address <address>main street 67</address> main street 67 used for a textual cite <cite>lorem ipsum</cite> lorem ipsum text dis
played higher than normal text x<su...
...e line it is used to suggest the browser to cut the text on this site if there is not enough space to display it on the same line date in readable form it is used to format the date legibly for the user, such as: <time datetime="2020-05-24" pubdate>published on 23-05-2020</time> it is used to format the date legibly for the user, such as: published on 23-05-2020 text dis
played in code format <p>this text is in normal format.</p> <code>this text is in code format.</code> <pre>this text is in predefined format.</pre> this text is in normal format.
Images in HTML - Learn web development
its value is supposed to be a textual description of the image, for use in situations where the image cannot be seen/dis
played or takes a long time to render because of a slow internet connection.
...but if the image isn't being dis
played, for example, the user has just navigated to the page, and the image hasn't yet loaded, you'll notice the browser is leaving a space for the image to appear in: this is a good thing to do, resulting in the page loading quicker and more smoothly.
Index - Learn web development
168 using css generated content basic, beginner, css, css:getting_started, graphics, guide, needsupdate, web this article describes some ways in which you can use css to add content when a document is dis
played.
...all user data should be sanitized before it is dis
played, or used in sql queries and file system calls.
Fetching data from the server - Learn web development
originally page loading on the web was simple — you'd send a request for a website to a server, and as long as nothing went wrong, the assets that made the web page would be downloaded and dis
played on your computer.
...these technologies allow web pages to directly handle making http requests for specific resources available on a server and formatting the resulting data as needed before it is dis
played.
Working with JSON - Learn web development
it is commonly used for transmitting data in web applications (e.g., sending some data from the server to the client, so it can be dis
played on a web page, or vice versa).
...the order in which things are appended is important, as this is the order they will be dis
played inside the html.
Measuring performance - Learn web development
you can use the api for metrics related to all of the navigation events dis
played in the didagram below.
... at the time of writing, mdn's performance report summary looks similar to the following: a performance report contains information about things like how long a user has to wait before anything is dis
played on the page, how many bytes need to be downloaded to display a page, and much more.
Introduction to the server side - Learn web development
most large-scale websites use server-side code to dynamically display different data when needed, generally pulled out of a database stored on a server and sent to the client to be dis
played via some code (e.g.
...a new html page, or an image, etc...), which could then be dis
played by the web browser.
Handling common accessibility problems - Learn web development
you can then press enter/return to follow a focused link or press a button (we've included some javascript to make the buttons alert a message), or start typing to enter text in a text input (other form elements have different controls, for example the <select> element can have its options dis
played and cycled between using the up and down arrow keys).
...subtitles) and display them when video is being
played, in the form of the <track> element, and the webvtt format (see adding captions and subtitles to html5 video for a detailed tutorial).
Mozilla accessibility architecture
in fact, for about a second two nsdocaccessible's exist for the same screen space - one for the old document about to be destroyed, and one for the loading document which hasn't been dis
played yet.
... side note: we do not fire the event indicating the new document is ready, until the new document is dis
played.
Gecko info for Windows accessibility vendors
the exception is progress meters, which are guaranteed to fire event_show and event_hide events when they are dis
played or hidden.
... once the new page is ready to be dis
played and traversed via its iaccessible tree, the old content window is destroyed, and a new window is created.
Continuous Integration
the results of taskcluster jobs (both builds and tests) are dis
played in treeherder.
... talos performance tests all performance tests dis
played in treeherder are run using the talos framework, and denoted by the letter t.
Eclipse CDT
in the case of the build-backend command, instructions on how to open the project will be dis
played after the command completes.
...this is responsible for most of the parse errors in the source files dis
played in eclipse.
Listening to events on all tabs
removing a listener to remove a previously installed progress listener, call removetabsprogresslistener(): gbrowser.removetabsprogresslistener(myprogresslistener); implementing a listener the listener object itself has five methods it can implement to handle various events: onlocationchange called when the uri of the document dis
played in the tab changes.
...the status message is intended to be dis
played to the user (e.g., in the status bar of the browser).
Firefox and the "about" protocol
see firefox reader view for clutter-free web pages about:rights displays rights information about:robots special page showing notes about robots about:serviceworkers displays currently running service workers about:studies lists the shield studies that are installed about:sessionrestore session restoration (dis
played after a firefox crash) about:support troubleshooting information (also available through firefox menu > ?
...lated to the sync feature about:telemetry displays telemetry data collected and sent to mozilla while firefox is running (in case the user enabled telemetry) about:url-classifier displays the status of the url classifier services that firefox uses (for example for safe browsing) about:webrtc information about webrtc usage about:welcome page first dis
played when firefox is installed about:welcomeback information page dis
played after firefox is reset these urls are defined in docshell/base/nsaboutredirector.cpp within the kredirmap array.
mozbrowsercontextmenu
the menusystem object an object defining a standard context menu that will be dis
played.
...its properties are as follows: type a domstring representing the type of context menu dis
played.
Internationalized Domain Names (IDN) Support in Mozilla Browsers
one notable bug is that non-ascii names are not always dis
played correctly in some ui areas such as preference panels, bookmarks and history.
... non-ascii names are not always correctly dis
played in the location bar due to the fact that ace to unicode conversion is not implemented yet.
nglayout.debug.disable_xul_cache
the effect is that the source xml file is not read and re-parsed each time the chrome in question is dis
played.
...possible values and their effects: true: do not cache parsed xul documents and do not save the cache to the xul fastload file on exit; re-read the source files each time the window or dialog needs to be dis
played.
Gecko events
is supported: yes event_menupopup_start a pop-up menu has been dis
played.
...ntexthelp_start a window has entered context-sensitive help mode is supported: no event_contexthelp_end a window has exited context-sensitive help mode is supported: no event_dragdrop_start an application is about to enter drag-and-drop mode is supported: yes event_dragdrop_end an application is about to exit drag-and-drop mode is supported: no event_dialog_start a dialog box has been dis
played is supported: no event_dialog_end a dialog box has been closed is supported: no event_scrolling_start scrolling has started on a scroll bar is supported: yes event_scrolling_end scrolling has ended on a scroll bar is supported: yes event_minimize_start a window object is about to be minimized or maximized is supported: no event_minimize_end a window object has been minimized or maximize...
Using XPCOM Components
when a user selects one of the cookies dis
played in the list and then clicks the remove button, the remove method in the nsicookiemanager interface is called.
... the function is carried out by the cookiemanager component, and the selected cookie is deleted from disk and removed from the dis
played list.
imgIContainer
kdontanimmode 1 klooponceanimmode 2 kdisposeclearall -1 "disposal" method indicates how the image should be handled before the subsequent image is dis
played.
...the rectangle defining the location and size of the currently dis
played frame.
nsIAccessibleDocument
false if the document is being dis
played but not edited.
... windowhandle voidptr the window handle for the os window the document is being dis
played in.
nsIAccessibleEvent
event_menupopup_start 0x001a 0x0017 a pop-up menu has been dis
played.
... event_dialog_start 0x0024 0x0021 a dialog box has been dis
played.
nsIAccessibleRole
role_character 32 represents a cartoon-like graphic object, such as microsoft office assistant, which is dis
played to provide help to users of an application.
... role_spinbutton 52 represents a spin box, which is a control that allows the user to increment or decrement the value dis
played in a separate "buddy" control associated with the spin box.
nsIDOMHTMLAudioElement
returns the current offset of the audio stream, specified as the number of samples that have
played since the beginning of the stream.
...return value an unsigned 64-bit value indicating how many audio samples have been
played since the stream began playing.
nsIDownloadManagerUI
reason_new_download 1 when opening the download manager user interface, this value indicates that the user interface is being dis
played because a new download is being started.
... areason optional one of the reason constants indicating why the user interface should be dis
played.
nsIDownloadProgressListener
the received status message is intended to be dis
played visibly to the user.
... amessage a user-readable status message intended to be dis
played visibly on the screen.
nsIDragService
if the element is in a document, it will be rendered at its dis
played size, otherwise, it will be rendered at its real size.
... for other types of elements, the element is rendered into an offscreen buffer in the same manner as it is currently dis
played.
nsIMessenger
lastdis
playedmessageuri acstring readonly: the url of the last dis
played message.
... methods setdisplaycharset() sets the character set for the dis
played message.
nsIMsgDBView
currentlydis
playedmessage nsmsgviewindex readonly: the index of the currently dis
played message.
...this assumes that the key is somewhere in the dis
played messages...
nsIMsgMessageService
(?) displaymessage() when you want a message dis
played....
... displaymessageforprinting() when you want a message dis
played in a format that is suitable for printing.
nsIMsgWindow
mailcharacterset acstring this is used to track the character set of the currently dis
played message.
... clearmsghdr whether or not the existing message pane and header should be cleared before the html is dis
played.
nsIPrintingPrompt
historically, platform toolkits with native dialogs have implemented them in the gfx layer usually they were dis
played when a new devicecontextspec specific to that platform was created.
...if you stub out this service you must set "printsilent" to true, if you do not, printing will terminate and an error dialog will be dis
played.
nsIProgressEventSink
the information is intended to be dis
played to the user in some meaningful way.
...the information is intended to be dis
played to the user in some meaningful way.
nsITaskbarPreview
the controller provides the behavior and appearance for the taskbar preview, and is responsible for determining the size and contents of the preview, which buttons are dis
played, and how the application responds to user actions on the preview.
... tooltip domstring a string containing the text dis
played in the tooltip above the preview when the user hovers over it.
nsITaskbarTabPreview
method overview void ensureregistration(); violates the xpcom interface guidelines nativewindow gethwnd(); violates the xpcom interface guidelines void move(in nsitaskbartabpreview anext); attributes attribute type description icon imgicontainer the icon dis
played next to the title in the preview.
... title domstring the title dis
played above the thumbnail.
nsIUpdatePrompt
if the app.update.silent preference is true or the user interface is already dis
played the call will be a no-op.
...if the app.update.silent preference is true, the app.update.showinstalledui preference is false, or the user interface is already dis
played the call will be a no-op.
nsPIPromptService
this is the system sound name which should be
played when the dialog is shown.
...this is the sound event id which should be
played when the dialog is shown.
nsIMsgCloudFileProvider
settingsurl acstring readonly: a chrome url for an xhtml page dis
played in the account setup dialog window, used for displaying and setting provider-specific settings.
... managementurl acstring readonly: a chrome url for an xhtml page dis
played within the filelink preferences dialog, used for displaying and setting provider-specific settings once the account has already been set up.
Creating a Custom Column
getcelltext() is the text that is dis
played to the user while getsort*forrow() is what is used internally when sorting by your column a simple implementation objects in javascript are just "advanced" variables, so an implementation of the nsimsgcustomcolumnhandler interface looks like: var columnhandler = { getcelltext: function(row, col) { //get the message's header so that we can extract the reply to field var h...
...nction(hdr) {return hdr.getstringproperty("replyto");}, isstring: function() {return true;}, getcellproperties: function(row, col, props){}, getrowproperties: function(row, props){}, getimagesrc: function(row, col) {return null;}, getsortlongforrow: function(hdr) {return 0;} } basically, all we are doing here is making sure that both the text that is dis
played to the user (getcelltext()) and the string we sort according to (when the user decided to sort the view by our custom column) are identical.
Mozilla
an error will typically be dis
played on the error console, but can be captured using a try-catch block in javascript.
...for example, this popup notification is dis
played when a web site requests geolocation information: using raii classes in mozilla raii classes are useful when two operations (e.g., lock/unlock, addref/release, pushstate/popstate) must be paired.
Plug-in Development Overview - Plugins
this message, which is in html format, is dis
played by the browser in its "about plug-ins" page.
...you can use these netscape methods: to identify the browser in which your plug-in is dis
played: use the npn_useragent method to read this information.
Introduction to DOM Inspector - Firefox Developer Tools
a browser window and the dom inspector are likely be already open and dis
played in this list.
... have the dom inspector open and have enabled this functionality by choosing edit > select element by click or by clicking the little magnifying glass icon in the upper left portion of the dom inspector application, you can click anywhere in a loaded web page or the the inspect chrome document, and the element you click will be shown in the document pane in the dom nodes viewer and information dis
played in the object pane.
DOM Property Viewer - Firefox Developer Tools
dom property viewer user interface dom tree the different properties of the dom are dis
played as an expandable tree.
...up to three properties of an object and items of an array are dis
played.
Index - Firefox Developer Tools
the selected element is shown in the html pane and its css is dis
played in the css pane.
...the selected element is shown in the html pane and its css is dis
played in the css pane.
Migrating from Firebug - Firefox Developer Tools
inspect computed styles the computed values of css properties are dis
played within the devtools' computed side panel like within firebug's computed side panel.
... inspect events events assigned to an element are dis
played in the events side panel in firebug.
Network request list - Firefox Developer Tools
each request is dis
played in its own row: by default, the network monitor is cleared each time you navigate to a new page or reload the current page.
...the numeric code is dis
played on a colored background, to help unusual ones stand out.
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
when you select the checkbox for the subgrid, the lines for the parent grid are dis
played also dis
played; if the checkbox for the parent grid is unselected, then its lines are translucent.
... display line numbers by default, the line numbers are dis
played on the grid overlay.
UI Tour - Firefox Developer Tools
filter the markers that are dis
played in the waterfall view switch the active tool in the details pane.
... at any given time, one recording is selected, and that recording is dis
played in the rest of the tool.
Settings - Firefox Developer Tools
as of firefox 62, if the option to "select an iframe as the currently targeted document" is checked, the icon will appear in the toolbar while the settings tab is dis
played, even if the current page doesn't include any iframes.
... if common preferences is not included in the settings, web console logs can be persisted by using the 'about:config' url in browser address bar, searching for: 'devtools.webconsole.persistlog' then toggling this value to true inspector show browser styles a setting to control whether styles applied by the browser (user-agent styles) should be dis
played in the inspector's rules view.
Web Audio Editor - Firefox Developer Tools
some non-audioparam properties, like an oscillatornode's type property, are dis
played, and you can edit these as well.
... connections between nodes are dis
played as solid lines.
Console messages - Firefox Developer Tools
most of the web console is occupied by the message display pane: each message is dis
played as a separate row: time the time the message was recorded.
... filtering and searching filtering by category you can use the toolbar along the top to constrain the results dis
played.
about:debugging (before Firefox 68) - Firefox Developer Tools
the temporary add-on will be dis
played under the "temporary extensions" header.
...just click the "push" button to send a push event to the service worker: service workers not compatible in firefox 49+, a warning message will be dis
played in the service workers section of the workers page if service workers are incompatible with the current browser configuration, and therefore cannot be used or debugged.
Animation - Web APIs
if the animation lacks a timeline, is inactive or hasn't been
played yet, its value is null.
...if the animation is finished or un
played, it will play from end to beginning.
AudioBufferSourceNode.loop - Web APIs
the loop property of the audiobuffersourcenode interface is a boolean indicating if the audio asset must be re
played when the end of the audiobuffer is reached.
...when the audio is
played, it loops.
AudioBufferSourceNode.start() - Web APIs
the default value, 0, will begin playback at the beginning of the audio buffer, and offsets past the end of the audio which will be
played (based on the audio buffer's duration and/or the loopend property) are silently clamped to the maximum value allowed.
... duration optional the duration of the sound to be
played, specified in seconds.
AudioProcessingEvent - Web APIs
playbacktime read only double the time when the audio will be
played, as defined by the time of audiocontext.currenttime inputbuffer read only audiobuffer the buffer containing the input audio data to be processed.
....buffer = mybuffer; }, function(e){"error with decoding audio data" + e.err}); } request.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and
played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output channels (in this case there is only one) for (var channel = 0; channel < outputbuffer.numberofchannels; channel++) { var inputdata = inputbuffer.getchanneldata(channel); var outputdata = outputbuffer.getchanneldata(channel); // loop through the 4096 samples for (var sample = 0; sample < input...
Manipulating video using canvas - Web APIs
by combining the capabilities of the video element with a canvas, you can manipulate video data in real time to incorporate a variety of visual effects to the video being dis
played.
... the resulting image looks like this: this is done repeatedly as the video plays, so that frame after frame is processed and dis
played with the chroma-key effect.
Console.timeEnd() - Web APIs
once stopped, the elapsed time is automatically dis
played in the web console along with an indicator that the time has ended.
... examples console.time("answer time"); alert("click to continue"); console.timelog("answer time"); alert("do a bunch of other stuff..."); console.timeend("answer time"); the output from the example above shows the time taken by the user to dismiss the first alert box, followed by the time it took for the user to dismiss the second alert: notice that the timer's name is dis
played when the timer value is logged using timelog() and again when it's stopped.
Element.scroll() - Web APIs
syntax element.scroll(x-coord, y-coord) element.scroll(options) parameters calling with coordinates x-coord the pixel along the horizontal axis of the element that you want dis
played in the upper left.
... y-coord the pixel along the vertical axis of the element that you want dis
played in the upper left.
Element.scrollTo() - Web APIs
syntax element.scrollto(x-coord, y-coord) element.scrollto(options) parameters x-coord is the pixel along the horizontal axis of the element that you want dis
played in the upper left.
... y-coord is the pixel along the vertical axis of the element that you want dis
played in the upper left.
GeolocationCoordinates.longitude - Web APIs
javascript the javascript code below creates an event listener so that when the user clicks on a button, the location information is retrieved and dis
played.
... from the geolocationposition object, we obtain the user's latitude and longitude using position.coords.latitude and position.coords.longitude so we can update the dis
played coordinates.
HTMLEmbedElement - Web APIs
htmlembedelement.height is a domstring reflecting the height html attribute, containing the dis
played height of the resource.
... htmlembedelement.width is a domstring that reflects the width html attribute, containing the dis
played width of the resource.
HTMLImageElement.alt - Web APIs
the alternate text is dis
played in the space the image would occupy and should be able to take the place of the image without altering the meaning of the page.
...to allow that text to be dis
played in place of the image if the image isn't available.
HTMLImageElement - Web APIs
htmlimageelement.alt a domstring that reflects the alt html attribute, thus indicating the alternate fallback content to be dis
played if the image has not been loaded.
... htmlimageelement.currentsrc read only returns a usvstring representing the url from which the currently dis
played image was loaded.
HTMLInputElement - Web APIs
height string: returns / sets the element's height attribute, which defines the height of the image dis
played for the button, if the value of type is image.
... width string: returns / sets the document's width attribute, which defines the width of the image dis
played for the button, if the value of type is image.
HTMLMediaElement.canPlayType() - Web APIs
return value a domstring indicating how likely it is that the media can be
played.
... "" (empty string) media of the given type definitely can't be
played on the current device.
HTMLMediaElement.controls - Web APIs
the htmlmediaelement.controls property reflects the controls html attribute, which controls whether user interface controls for playing the media item will be dis
played.
...a value of true means controls will be dis
played.
HTMLMediaElement.playbackRate - Web APIs
the htmlmediaelement.playbackrate property sets the rate at which the media is being
played back.
... if playbackrate is negative, the media is not
played backwards.
IDBCursor.advance() - Web APIs
here we use cursor.advance(2) to jump 2 places forward each time, meaning that only every other result will be dis
played.
...tore('rushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.albumtitle + '</strong>, ' + cursor.value.year; list.appendchild(listitem); cursor.advance(2); } else { console.log('every other entry dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'advance()' in that specification.
Using IndexedDB - Web APIs
pat.append('<ul id="compat-list"></ul>'); compat_envs.foreach(function(val, idx, array) { $('#compat-list').append('<li>' + val[0] + ': ' + val[1] + '</li>'); }); const db_name = 'mdn-demo-indexeddb-epublications'; const db_version = 1; // use a long long for this value (don't use a float) const db_store_name = 'publications'; var db; // used to keep track of which view is dis
played to avoid uselessly reloading it var current_view_pub_key; function opendb() { console.log("opendb ..."); var req = indexeddb.open(db_name, db_version); req.onsuccess = function (evt) { // equal to: db = req.result; db = this.result; console.log("opendb done"); }; req.onerror = function (evt) { console.error("opendb:", evt.target.errorcode); }; ...
... // thus the count text below will be dis
played before the actual pub list // (not that it is algorithmically important in this case).
MediaDevices.ondevicechange - Web APIs
this method is called any time we want to fetch the current list of media devices and then update the dis
played lists of audo and video devices using that information.
...this line, then, pulls out the type ("audio" or "video") and direction ("input" or "output") so they can be used to construct the string dis
played in the list.
Recording a media element - Web APIs
note that the autoplay attribute is used so that as soon as the stream starts to arrive from the camera, it immediately gets dis
played, and the muted attribute is specified to ensure that the sound from the user's microphone isn't output to their speakers, causing an ugly feedback loop.
... lines 5-9 when the promise returned by getusermedia() is resolved, the preview <video> element's srcobject property is set to be the input stream, which causes the video being captured by the user's camera to be dis
played in the preview box.
RTCDTMFSender.toneBuffer - Web APIs
tones are removed from the string as they're
played, so only upcoming tones are listed.
... syntax var tonebuffer = rtcdtmfsender.tonebuffer; value a domstring listing the tones to be
played.
ServiceWorkerGlobalScope - Web APIs
notificationclick occurs when a user clicks on a dis
played notification.
... notificationclose occurs — when a user closes a dis
played notification.
SourceBuffer.mode - Web APIs
the two available values are: segments: the media segment timestamps determine the order in which the segments are
played.
... sequence: the order in which the segments are appended to the sourcebuffer determines the order in which they are
played.
TextTrack.mode - Web APIs
hidden the text track is currently active but the cues aren't being dis
played.
...the user agent is keeping a list of the active cues (in the track's activecues property) and events are being fired at the corresponding times, even though the text isn't being dis
played.
VideoPlaybackQuality.totalVideoFrames - Web APIs
the videoplaybackquality interface's totalvideoframes read-only property returns the total number of video frames that have been dis
played or dropped since the media was loaded.
... syntax value = videoplaybackquality.totalvideoframes; value the total number of frames that the <video> element has dis
played or dropped since the media was loaded into it.
Using DTMF with WebRTC - Web APIs
function handletonechangeevent(event) { if (event.tone !== "") { log("tone
played: " + event.tone); } else { log("all tones have
played.
...acks().foreach(function(track) { track.stop(); }); }); receiverpc.getlocalstreams().foreach(function(stream) { stream.gettracks().foreach(function(track) { track.stop(); }); }); audio.pause(); audio.srcobject = null; receiverpc.close(); callerpc.close(); } } the tonechange event is used both to indicate when an individual tone has
played and when all tones have finished playing.
Lighting a WebXR setting - Web APIs
components of a light source a light source has three major components; each component is in essence a type of light there are three kinds of light that can affect the color and brightness of objects and their pixels as dis
played on the viewer's screen or headset.
...each light source substantially increases the amount of calculation needed to determine the final color and brightness of each dis
played pixel.
Rendering and the WebXR frame animation callback - Web APIs
in this context, "repaint" simply means the process of ensuring that the screen's dis
played content matches what the dom and the elements within are trying to present at the moment.
... hardare vertical refresh rate when the browser is ready to refresh the <canvas> within which your webxr content is dis
played, it calls your frame rendering callback, which uses the specified timestamp and any other relevant data, such as models and textures, as well as application state, to render the scene—as it should appear at the specified time—into the webgl backbuffer.
Advanced techniques: Creating and sequencing audio - Web APIs
there are four different sounds, or voices, which can be
played.
... function nextnote() { const secondsperbeat = 60.0 / tempo; nextnotetime += secondsperbeat; // add beat length to last beat time // advance the beat number, wrap to zero currentnote++; if (currentnote === 4) { currentnote = 0; } } we want to create a reference queue for the notes that are to be
played, and the functionality to play them using the functions we've previously created: const notesinqueue = []; function schedulenote(beatnumber, time) { // push the note on the queue, even if we're not playing.
Window.content - Web APIs
in such cases, content returns a reference to the window object for the document currently dis
played in the browser.
... syntax var windowobject = window.content; example executing the following code in a chrome xul window with a <browser type="content-primary"/> element in it draws a red border around the first div on the page currently dis
played in the browser: content.document.getelementsbytagname("div")[0].style.border = "solid red 1px"; specification none.
Privileged features - Web APIs
alwaysraised if on, the new window will always be dis
played on top of other browser windows, regardless of whether it is active or not.
... alwaysontop if on, the new window will always be dis
played on top of all other windows (browser windows and otherwise), regardless of whether it is active or not.
Window.scroll() - Web APIs
syntax window.scroll(x-coord, y-coord) window.scroll(options) parameters x-coord is the pixel along the horizontal axis of the document that you want dis
played in the upper left.
... y-coord is the pixel along the vertical axis of the document that you want dis
played in the upper left.
Window.scrollTo() - Web APIs
syntax window.scrollto(x-coord, y-coord) window.scrollto(options) parameters x-coord is the pixel along the horizontal axis of the document that you want dis
played in the upper left.
... y-coord is the pixel along the vertical axis of the document that you want dis
played in the upper left.
Understandable - Accessibility
for example, focusing a navigation menu option should not change the dis
played page — it should be activated before the display changes.
...such suggestions should be dis
played usefully in context, just like error messages (see 3.3.1).
-moz-force-broken-image-icon - CSS: Cascading Style Sheets
note: even if the value is set to 1 the alt attribute will still be dis
played, alongside the broken image icon.
... initial value0applies toimagesinheritednocomputed valueas specifiedanimation typediscrete formal syntax <integer> examples html <img src='/broken/image/link.png' alt='broken image link'> css img { -moz-force-broken-image-icon: 1; height: 100px; width: 100px; } result screenshotlive sample note: unless the image has a specified height and width the broken image icon will not be dis
played but the alt attribute will also be hidden if -moz-force-broken-image-icon is set to 1.
-ms-high-contrast - CSS: Cascading Style Sheets
the -ms-high-contrast css media feature is a microsoft extension that describes whether the application is being dis
played in high contrast mode, and with what color variation.
... examples the following declarations will match applications that are being dis
played in high contrast mode with any color variation, a black-on-white color variation, and a white-on-black color variation, respectively.
overflow-block - CSS: Cascading Style Sheets
none content that overflows the block axis is not dis
played.
... paged content is broken up into discrete pages; content that overflows one page in the block axis is dis
played on the following page.
size - CSS: Cascading Style Sheets
landscape the content of the page is dis
played in landscape mode (i.e.
... portrait the content of the page is dis
played in portrait mode (i.e.
CSS Box Alignment - CSS: Cascading Style Sheets
these keywords define what happens to any additional space after alignment subjects have been dis
played.
... also, be aware that other things may increase the visual gap dis
played, for example using the space distribution keywords or adding margins to items.
Block and inline layout in normal flow - CSS: Cascading Style Sheets
it would not generally make sense for that <strong> element to be dis
played as a block level element, breaking onto a new line.
...by understanding how normal flow works you will find layout easier, as you understand the starting point for making changes to how elements are dis
played.
CSS Flow Layout - CSS: Cascading Style Sheets
normal flow, or flow layout, is the way that block and inline elements are dis
played on a page before any changes are made to their layout.
... in normal flow, inline elements display in the inline direction, that is in the direction words are dis
played in a sentence according to the writing mode of the document.
Using Media Queries for Accessibility - CSS: Cascading Style Sheets
html <div class="animation">animated box</div> css .animation { -webkit-animation: vibrate 0.3s linear infinite both; animation: vibrate 0.3s linear infinite both; } @media (prefers-reduced-motion: reduce) { .animation { animation: none; } } high contrast mode the -ms-high-contrast css media feature is a microsoft extension that describes whether the application is being dis
played in high contrast mode, and with what color variation.
... example the following declarations will match applications that are being dis
played in high contrast mode with any color variation, a black-on-white color variation, and a white-on-black color variation, respectively.
animation-direction - CSS: Cascading Style Sheets
alternate the animation reverses direction each cycle, with the first iteration being
played forwards.
... alternate-reverse the animation reverses direction each cycle, with the first iteration being
played backwards.
animation-iteration-count - CSS: Cascading Style Sheets
the animation-iteration-count css property sets the number of times an animation sequence should be
played before stopping.
... if multiple values are specified, each time the animation is
played the next value in the list is used, cycling back to the first value after the last one is used.
animation - CSS: Cascading Style Sheets
values <single-animation-iteration-count> the number of times the animation is
played.
... <single-animation-direction> the direction in which the animation is
played.
border-style - CSS: Cascading Style Sheets
in the case of table cell and border collapsing, the none value has the lowest priority: if any other conflicting border is set, it will be dis
played.
...in the case of table cell and border collapsing, the hidden value has the highest priority: if any other conflicting border is set, it won't be dis
played.
text-overflow - CSS: Cascading Style Sheets
the ellipsis is dis
played inside the content area, decreasing the amount of text dis
played.
...the string is dis
played inside the content area, shortening the size of the dis
played text.
Event reference
contextmenu the right button of the mouse is clicked (before the context menu is dis
played).
... contextmenu mouseevent html5 the right button of the mouse is clicked (before the context menu is dis
played).
Cross-browser audio basics - Developer guides
however any supported text or elements that you define within <audio> will be dis
played or acted upon.
... myaudio.addeventlistener("canplay", function() { //audio is ready to play }); canplaythrough canplaythrough is similar to canplay but it lets you know that the media is ready to be
played all the way through (that is to say that the file has completely downloaded, or it is estimated that it will download in time so that buffering stops do not occur).
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
which side this is will vary depending on the writing-mode, direction, and text-orientation properties, which are typically (but not always) used to adjust text directionality based on the language being dis
played.
...after finishing up and picking the final color, the color picker's value is dis
played.
<b>: The Bring Attention To element - HTML: Hypertext Markup Language
further, stylesheets can change the default style of these elements, with the result that they are not necessarily dis
played in bold.
...</p> keywords are dis
played with the default style of the <b>element, likely in bold.</b> result specifications specification status comment html living standardthe definition of '<b>' in that specification.
<frame> - HTML: Hypertext Markup Language
<frame> is an html element which defines a particular area in which another html document can be dis
played.
... src this attribute specifies the document that will be dis
played by the frame.
<input type="date"> - HTML: Hypertext Markup Language
you can set a default value for the input with a date inside the value attribute, like so: <input type="date" value="2017-06-01"> the dis
played date format will differ from the actual value — the dis
played date is formatted based on the locale of the user's browser, but the parsed value is always formatted yyyy-mm-dd.
... you can also use the required attribute to make filling in the date mandatory — an error will be dis
played if you try to submit an empty date field.
<input type="email"> - HTML: Hypertext Markup Language
a placeholder is a value that demonstrates the form the value should take by presenting an example of a valid value, which is dis
played inside the edit box when the element's value is "".
...that's because the title may be dis
played or spoken as part of a validation error message.
<input type="search"> - HTML: Hypertext Markup Language
results the maximum number of items that should be dis
played in the drop-down list of previous search queries.
... results the results attribute—supported only by safari—is a numeric value that lets you override the maximum number of entries to be dis
played in the <input> element's natively-provided drop-down menu of previous search queries.
<input type="url"> - HTML: Hypertext Markup Language
a placeholder is a value that demonstrates the form the value should take by presenting an example of a valid value, which is dis
played inside the edit box when the element's value is "".
...that's because the title may be dis
played or spoken as part of a validation error message.
<kbd>: The Keyboard Input element - HTML: Hypertext Markup Language
nesting a <samp> element inside a <kbd> element, on the other hand, represents input which is based on text presented by the system, such as the names of menus and menu items, or the names of buttons dis
played on the screen.
... syntax error occurs, the tool will output the initial command you typed for your review:</p> <blockquote> <samp><kbd>custom-git ad my-new-file.cpp</kbd></samp> </blockquote> representing onscreen input options nesting a <samp> element inside a <kbd> element represents input which is based on text presented by the system, such as the names of menus and menu items, or the names of buttons dis
played on the screen.
<tr>: The Table Row element - HTML: Hypertext Markup Language
charoffobsolete since html5 a domstring indicating the number of characters on the tail end of the column's data should be dis
played after the alignment character specified by the char attribute.
... for example, when displaying money values for currencies that use hundredths of a unit (such as the dollar, which is divided into 100 cents), you would typically specify a value of 2, so that in tandem with char being set to ".", the values in a column would be cleanly aligned on the decimal points, with the number of cents properly dis
played to the right of the decimal point.
Inline elements - HTML: Hypertext Markup Language
because the <span> element is inline, the paragraph correctly renders as a single, unbroken text flow, like this: for looks, this css (not dis
played in standard reading mode) is also used: body { margin: 0; padding: 4px; border: 1px solid #333; } .highlight { background-color:#ee3; } block-level now let's change that <span> into a block-level element, such as <p>: <div>the following paragraph is a <p class="highlight">block-level element;</p> its background has been colored to display both the beginning and end of the block-leve...
...l element's influence.</div> the css (not dis
played in standard reading mode) is also used: body { margin: 0; padding: 4px; border: 1px solid #333; } .highlight { background-color:#ee3; } rendered using the same css as before, we get: see the difference?
description - Web app manifests
description is directionality-capable, which means it can be dis
played left to right or right to left based on the values of the dir and lang manifest members.
... examples simple description in left-to-right language: "description": "awesome application that will help you achieve your dreams." description in arabic, which will be dis
played right-to-left: "dir": "rtl", "lang": "ar", "description": ".تطبيق رائع سيساعدك على تحقيق أحلامك" specification specification status comment feedback web app manifestthe definition of 'description' in that specification.
name - Web app manifests
type string mandatory yes the name member is a string that represents the name of the web application as it is usually dis
played to the user (e.g., amongst a list of other applications, or as a label for an icon).
... name is directionality-capable, which means it can be dis
played left-to-right or right-to-left based on the values of the dir and lang manifest members.
MathML attribute reference - MathML
bevelled <mfrac> specifies the style how the fraction should be dis
played.
... displaystyle <mstyle>, <mtable> a boolean value specifying whether more vertical space is used for dis
played equations or, if set to false, a more compact layout is used to display formulas.
<mfrac> - MathML
syntax <mfrac>numerator denominator</mfrac> attributes bevelled specifies the way the fraction is dis
played.
... if true, the fraction line is bevelled, which means that numerator and denominator are dis
played side by side and separated by a slash (/).
<mstyle> - MathML
displaystyle a boolean value specifying whether more vertical space is used for dis
played equations or, if set to false, a more compact layout is used to display formulas.
... the main effect is that larger versions of operators are dis
played, when displaystyle is set to true.
<mtable> - MathML
displaystyle a boolean value specifying whether more vertical space is used for dis
played equations or, if set to false, a more compact layout is used to display formulas.
... the main effect is that larger versions of operators are dis
played, when displaystyle is set to true.
MathML documentation index - MathML
by default, string literals are dis
played as enclosed by double quotes ("); by using the lquote and rquote attributes, you can set custom characters to display.
... 29 <msqrt> mathml, mathml reference, mathml:element, mathml:general layout schemata the mathml <msqrt> element is used to display square roots (no index is dis
played).
Web video codec guide - Web media technologies
just as audio codecs do for the sound data, video codecs compress the video data and encode it into a format that can later be decoded and
played back or edited.
...once an artifact has appeared, it may linger for a while, because of how video is dis
played.
Installing and uninstalling web apps - Progressive web apps (PWAs)
firefox for android on an android device using firefox, you'll see a "home" icon with a plus (+) icon inside it—this is the "add to home screen" icon dis
played for any site that has the necessary features in place.
...among the options should be the "add to home screen" option, unless it's been specifically removed from the list by the user editing the optons dis
played: choosing "add to home screen" here presents the confirmation dialog box, which not only confirms that the user wants to add the app to the home screen, but also lets the user customize its name.
operator - SVG: Scalable Vector Graphics
out this value indicates that the parts of the source graphic defined in the in attribute that fall outside the destination graphic defined in the in2 attribute, are dis
played.
... lighter this value indicates that the sum of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute is dis
played.
Specification Deviations - SVG: Scalable Vector Graphics
in general this change will not be visible to svg authors (the elements for which the svg specification does not define the 'class' and 'style' attribute are elements that are not dis
played directly).
...since these elements and their descendants are not dis
played, it seems unlikely that anyone will either specify 'style' or call getcomputedstyle on them.
Web Components
html templates: the <template> and <slot> elements enable you to write markup templates that are not dis
played in the rendered page.
... html templates <template> contains an html fragment that is not rendered when a containing document is initially loaded, but can be dis
played at runtime using javascript, mainly used as the basis of custom element structures.
Porting the Library Detector - Archive of obsolete content
wcontent(tab.libraries); widgetview.width = tab.libraries.length * icon_width; } main.js will use the tabs module to update the widget's content when necessary (for example, when the user switches between tabs): tabs.on('activate', function(tab) { updatewidgetview(tab); }); tabs.on('ready', function(tab) { tab.libraries = []; }); showing the library detail the xul library detector dis
played the detailed information about each library on mouseover in a tooltip: we can't do this using a widget, so instead will use a panel.
addon-page - Archive of obsolete content
after this, the page loaded from "data/index.html" will not contain navigational elements: var addontab = require("sdk/addon-page"); var data = require("sdk/self").data; require("sdk/tabs").open(data.url("index.html")); this only affects the page at "data/index.html": all other pages are dis
played normally.
private-browsing - Archive of obsolete content
ch as tabs) that are associated with private windows: the windows module will not list any private browser windows, generate any events for private browser windows, or let the add-on open any private browser windows the tabs module will not list any tabs that belong to private browser windows, and the add-on won't receive any events for such tabs any ui components will not be dis
played in private browser windows any menus or menu items created using the context-menu will not be shown in context menus that belong to private browser windows the page-mod module will not attach content scripts to documents belonging to private browser windows any panel objects will not be shown if the active window is a private browser window the selection module will not in...
Extensions support in SeaMonkey 2 - Archive of obsolete content
/> </vbox> </window> thunderbird 3 gfolderdisplay api seamonkey 2.0 only supports a reduced set of methods: selectedcount selectedmessage selectedmessageisfeed selectedmessageisimap selectedmessageisnews selectedmessageisexternal selectedindices selectedmessages selectedmessageuris messagedisplay gmessagedisplay api seamonkey 2.0 only supports a reduced set of methods: dis
playedmessage visible javascript tweaks firefox supports some shorthand in various places.
Install.js - Archive of obsolete content
install.js install.rdf (optional -- see above) code // install.js // xpiinstaller // by pike (heavily inspired by code from henrik gemal and stephen clavering) var xpiinstaller = { // --- editable items begin --- extfullname: 'sample extension', // the name dis
played to the user (don't include the version) extshortname: 'sampleext', // the leafname of the jar file (without the .jar part) extversion: '1.0', extauthor: 'insert-your-name-here', extlocalenames: null, // e.g.
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
hile we have access to them lockpref("mail.server.server1.name", mail); lockpref("mail.identity.id1.fullname", cn); lockpref("mail.identity.id1.useremail", mail); defaultpref("network.ftp.anonymous_password", mail); // if $mozilla_debug=1, popup a debug message if (env_mozdebug) { displayerror("no error -> mci (jehan.procaccia@int-evry.fr)" + "\nthis message is dis
played with displayerror()!
Proxy UI - Archive of obsolete content
right-click a menu is dis
played that has the following items: online (proxy: none) online (proxy: auto discover) online (proxy: auto url) online (proxy: manual) --- proxy configuration...
Tamarin mercurial commit hook - Archive of obsolete content
when a violation is found the following will be dis
played: > hg commit -m "change with a tab" tab(s) found in test/test.txt for rev 1458 (change 53543674b8e6): @@ -65,4 +65,6 @@ +# tab here ^ (n)o, (y)es, (a)llow tabs for current file are you sure you want to commit this change?
alwaysopenpopup - Archive of obsolete content
« xul reference home alwaysopenpopup obsolete since gecko 1.9.1 type: boolean note: applies to: thunderbird and seamonkeyif true, the autocomplete popup will be dis
played even when there are no matches.
crop - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
disablechrome - Archive of obsolete content
this is used to hide chrome when showing in-browser ui such as the about:addons page, and causes the toolbars to be hidden, with only the tab strip (and, if currently dis
played, the add-on bar) left showing.
equalsize - Archive of obsolete content
never all of the children are dis
played at the size required by the content or as specified by the width and height attributes or the css width and height properties.
tooltiptext - Archive of obsolete content
the tooltip is dis
played in a default tooltip which displays only a label, however the default tooltip may be changed by setting the default attribute on a tooltip element.
Deprecated and defunct markup - Archive of obsolete content
--neil 03 march 2011 <bulletinboard> (made to support left/top styles, but <stack> can now do as well) <gripper> (inside of <scrollbar><thumb>; not to be used by itself) <listboxbody> (internal use only; part of xbl for <listbox>) <menubutton> (experiment in combining buttons and menus; use <button type> instead) <nativescrollbar> (dis
played a native scrollbar; had been for mac only with native themes on) <outliner> (former name for <tree>; <listbox> had been "<tree>") <popup> (use menupopup) <package> (no longer present but in older documentation) <scrollbarbutton> (button at end of scrollbar; had been only within larger <scrollbar>) so, not deprecated, but internal use only?
popupshowing - Archive of obsolete content
general info specification xul interface popupevent bubbles yes cancelable yes target element default action a popup is dis
played properties property type description target read only eventtarget the event target (the topmost target in the dom tree).
ensureIndexIsVisible - Archive of obsolete content
« xul reference home ensureindexisvisible( index ) return type: no return value if the item at the specified index is not currently visible to the user the dis
played items are scrolled so that it is.
goTo - Archive of obsolete content
« xul reference home goto( pageid ) return type: no return value this method is used to change which page is currently dis
played, specified by the pageid argument.
loadTabs - Archive of obsolete content
if loadinbackground is true, the tabs are loaded in the background, and if replace is true, the currently dis
played tabs are replaced with the specified uris instead of adding new tabs.
removeTab - Archive of obsolete content
if only one tab is dis
played, this method does nothing (unless the preference browser.tabs.closewindowwithlasttab is true, in which case the window containing the tab is closed).
MoveResize - Archive of obsolete content
this method will change the left and top attributes to match the supplied arguments, so if these attributes are persisted the values will be restored when the window is dis
played again.
arrowscrollbox - Archive of obsolete content
methods ensureelementisvisible( element ) return type: no return value if the specified element is not currently visible to the user, the dis
played items are scrolled so that it is.
button - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
caption - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
checkbox - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
dialogheader - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
listcell - Archive of obsolete content
if you wish to use the value none and the dis
played text is larger than this maximum width, you may be able to use the max-width css property (or the maxwidth attribute) to override this size.
notificationbox - Archive of obsolete content
tbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties currentnotification type: notification element the currently dis
played notification element or null.
2006-10-13 - Archive of obsolete content
(user feels print belongs on the context menu along with back, reload, etc.) questions about programming for firefox a student questions how to create an extension that changes fonts, and how to capture website content before it is dis
played.
Monitoring plugins - Archive of obsolete content
on(subject, topic, data) { if (topic == "experimental-notify-plugin-call" ) { if (data > 0.500) { alert("runtime is: " + data); } } } note: this is just a simplified example and the use of alert() is discouraged as the component can send hundreds of notifications each second and could potentially cause your browser to crash if an excessive number of alert boxes are dis
played.
Introduction to Public-Key Cryptography - Archive of obsolete content
:8e:54:65:fc:06: 30:43:34:d1:63:1f:06:7d:c3:40:a8:2a:82:c1:a4:83:2a:fb:2e:8f:fb: f0:6d:ff:75:a3:78:f7:52:47:46:62:97:1d:d9:c6:11:0a:02:a2:e0:cc: 2a:75:6c:8b:b6:9b:87:00:7d:7c:84:76:79:ba:f8:b4:d2:62:58:c3:c5: b6:c1:43:ac:63:44:42:fd:af:c8:0f:2f:38:85:6d:d6:59:e8:41:42:a5: 4a:e5:26:38:ff:32:78:a1:38:f1:ed:dc:0d:31:d1:b0:6d:67:e9:46:a8: d:c4 here is the same certificate dis
played in the 64-byte-encoded form interpreted by software: -----begin certificate----- miickzccazsgawibagibazanbgkqhkig9w0baqqfada3mqswcqydvqqgewjvuzer ma8ga1uechmitmv0c2nhcguxftatbgnvbastdfn1chjpewencybdqtaefw05nzew mtgwmtm2mjvafw05otewmtgwmtm2mjvamegxczajbgnvbaytalvtmrewdwydvqqk ewhozxrzy2fwztenmasga1uecxmeuhviczexmbuga1ueaxmou3vwcml5ysbtagv0 dhkwgz8wdqyjkozihvcnaqefbqadgy0amigjaogbamr6ezipgf...
Settings - Archive of obsolete content
show variables filter box enabling this option adds a "filter variables" search box to the variables pane, so that you can filter the dis
played list of variables.
CSS - Archive of obsolete content
typically it is a triangle that points downward.::-ms-fillthe ::-ms-fill css pseudo-element is a microsoft extension that represents a progress bar dis
played by <progress>.::-ms-fill-lowerthe ::-ms-fill-lower css pseudo-element represents the lower portion of the track of a slider control; that is, the portion corresponding to values less than the value currently selected by the thumb.
Displaying notifications (deprecated) - Archive of obsolete content
to see how to use the standard api, please read: using web notifications mobile only in gecko 2.0 available only in firefox mobile as of gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) firefox offers support for "desktop notifications"; these are notifications that are dis
played to the user outside the context of the web content, using the standard notification system provided by the operating system.
Writing JavaScript for XHTML - Archive of obsolete content
/*]]>*/ </style> and if you really need compatibility with very old browsers that do not recognize the script or style tags resulting in their contents dis
played on the page, you can use this: <script type="text/javascript"><!--//--><![cdata[//><!-- ...
XForms Input Element - Archive of obsolete content
characteristics used when the instance node is of type xsd:boolean or a type derived from it analogous widgets are <xhtml:input type="checkbox"/> and <xul:checkbox/> the corresponding label can be dis
played before or after the checkbox by using the labelposition attribute.
XForms - Archive of obsolete content
other strengths that xforms brings to the table is the separation of data from presentation, strong data typing, the ability to submit xml data to servers instead of name/value pairs, and a descriptive way to author forms so that they can be dis
played by a wide variety of devices.
Archived open Web documentation - Archive of obsolete content
browser feature detection an experimental approach to discovering degree of support for standards css obsolete css features displaying notifications (deprecated) firefox offers support for "desktop notifications"; these are notifications that are dis
played to the user outside the context of the web content, using the standard notification system provided by the operating system.
Index - Game development
in this series of articles we will show you how you can approach building a game that can be
played using touchscreen smartphones, mouse and keyboard, and also less common mechanisms such as gamepads.
Game monetization - Game development
freemium games that feature iaps are often referred to a freemium — a freemium game can be acquired and
played for free, but you can pay for extra (premium) features, virtual goods or other benefits.
WebVR — Virtual Reality for the Web - Game development
boris smus has written about the concept of responsive webvr, where a single web game can be
played on various devices like laptops without vr hardware, pcs with oculus rift, or smartphones inside google cardboard and still deliver a unique and valuable experience across all of them.
Animations and tweens - Game development
add the following function just before your closing </script> tag: function ballhitpaddle(ball, paddle) { ball.animations.play('wobble'); } the animation is
played every time the ball hits the paddle.
WAI-ARIA basics - Learn web development
the result of checking this checkbox is, as well as updating the aria-disabled state, and some visual indicators too: function togglemusician(bool) { let instruitem = formitems[formitems.length-1]; if(bool) { instruitem.input.disabled = false; instruitem.label.style.color = '#000'; instruitem.input.setattribute('aria-disabled', 'false'); hiddenalert.textcontent = 'instruments
played field now enabled; use it to tell us what you play.'; } else { instruitem.input.disabled = true; instruitem.label.style.color = '#999'; instruitem.input.setattribute('aria-disabled', 'true'); instruitem.input.removeattribute('aria-label'); hiddenalert.textcontent = 'instruments
played field now disabled.'; } } describing non-semantic buttons as buttons a few times in thi...
Test your skills: Overflow - Learn web development
try updating the live code below to recreate the example as dis
played in the image: for assessment or further work purposes, download the starting point for this task to work in your own editor or in an online editor.
Positioning - Learn web development
simply put, the absolutely positioned element will be dis
played outside of the <html> element, and be positioned relative to the initial viewport.
Practical positioning examples - Learn web development
styling our tabs now we want to style tabs to look like tabs — basically, these are a horizontal navigation menu, but instead of loading different web pages when they are clicked on like we've seen previously in the course, they cause different panels to be dis
played on the same page.
Web fonts - Learn web development
note: under the "find fonts" section in the right-hand column, you can click on the different tags and classifications to filter the dis
played choices.
How the Web works - Learn web development
when a client device wants to access a webpage, a copy of the webpage is downloaded from the server onto the client machine to be dis
played in the user's web browser.
From object to iframe — other embedding technologies - Learn web development
a quick example first though — try loading the previous example we showed above into your browser — you can find it live on github (see the source code too.) you won't actually see anything dis
played on the page, and if you look at the console in the browser developer tools, you'll see a message telling you why.
Introducing asynchronous JavaScript - Learn web development
' + image.src + 'dis
played.'); you should now get an error in your console instead of the third message: typeerror: image is undefined; can't access its "src" property this is because at the time the browser tries to run the third console.log() statement, the fetch() block has not finished running so the image variable has not been given a value.
Manipulating documents - Learn web development
first of all, let's grab a reference to the div, and then grab the width and height of the viewport (the inner window, where your document is dis
played) and store them in variables — these two values are handily contained in the window.innerwidth and window.innerheight properties.
Third-party APIs - Learn web development
above the closing curly brace: // use fetch() to make the request to the api fetch(url).then(function(result) { return result.json(); }).then(function(json) { displayresults(json); }); here we run the request by passing our url variable to fetch(), convert the response body to json using the json() function, then pass the resulting json to the displayresults() function so the data can be dis
played in our ui.
Object prototypes - Learn web development
bye for now!'); }; save the code and load the page in the browser, and try entering the following into the text input: person1.farewell(); you should get an alert message dis
played, featuring the person's name as defined inside the constructor.
CSS performance optimization - Learn web development
will-change: opacity, transform; the font-display property applied to the @font-face rule, the font-display property defines how font files are loaded and dis
played by the browser, allowing text to appear with a fallback font while a font loads, or fails to load.
Server-side website programming - Learn web development
displaying all of these using different static pages would be extremely inefficient, so instead such sites display static templates (built using html, css, and javascript), and then dynamically update the data dis
played inside those templates when needed, such as when you want to view a different product on amazon.
Working with Svelte stores - Learn web development
our alert component will dis
played by the app component, but any component can send notifications to it; whenever a notification arrives the alert component will be in charge of displaying it on screen.
Adding a new todo form: Vue events, methods, and models - Learn web development
/> element inside your app's <template>, like so: <template> <div id="app"> <h1>my to-do list</h1> <to-do-form></to-do-form> <ul> <li v-for="item in todoitems" :key="item.id"> <to-do-item :label="item.label" :done="item.done" :id="item.id"></to-do-item> </li> </ul> </div> </template> now when you view your running site, you should see the new form dis
played.
Package management basics - Learn web development
a bundle is the term that’s generally used to refer to a single file on your web server that contains all the javascript for your software — typically compressed as much as possible to help reduce the time it takes to get your software downloaded and dis
played in your visitors’ browser.
Accessibility Features in Firefox
also, usercontent.css allows users knowledgeable about cascading style sheets to customize the appearance of all pages that are dis
played.
Mozilla's Section 508 Compliance
unknown - needs research (h) when animation is dis
played, the information shall be displayable in at least one non-animated presentation mode at the option of the user.
Lightweight themes
creating a theme header image the header image is dis
played as the background of the top of the browser window, nestling in behind the toolbars, address bar, search bar and the tab strip.
Creating reftest-based unit tests
one should be able to "snap a picture" of the glyph as it should be dis
played and then the reference page would include that graphic in an <img> element.
Experimental features in Firefox
yes developer edition 43 no beta 43 no release 43 no preference name layout.css.control-characters.enabled or layout.css.control-characters.visible property: initial-letter the initial-letter css property is part of the css inline layout specification and allows you to specify how dropped, raised, and sunken initial letters are dis
played.
Site Identity Button
insecure renegotation - older versions of tls had a flaw in the basic design; if your server uses an affected version, the security ui will be downgraded but no web console message will be dis
played.
Embedding the editor
as is the case for composer embedded in a native application, there is a requirement here that the composer ui be configurable, such that it can be dis
played either as a toolbar at the top of the <htmlarea>, a floating palette, or a top-level toolbar.
How Mozilla determines MIME Types
when loading an uri with a type that mozilla can not handle, a helper app dialog shows up, and the dis
played information comes from these sources: ask the os for a handler of the given <extension, mime type> pair.
How to implement a custom autocomplete search component
autocompletesearchparam='[{"value":"mark","comment":"cool dude"},{"value":"mary","comment":"nice lady"},{"value":"jimmy","comment":"very uncool guy"},{"value":"jimbo","comment":null}]' /> how to solve autocomplete panel focus problems in some situations there may be problems with the display of the autocomplete panel (this is the panel where the autocomplete results/suggestions are dis
played): the autocomplete panel seems to appear seldom and very erratically.
Addon
if you don't provide an abouturl, a generic about dialog is dis
played.
AddonManager
addontype viewtypes constant description view_type_list the type should be dis
played in a regular list view in the ui.
AddonType
uipriority integer a number used to determine the order of types dis
played in the user interface.
CustomizableUI.jsm
onwidgetoverflow(anode, acontainer) fired when a widget's dom node is overflowing its container, a toolbar, and will be dis
played in the overflow panel.
source-editor.jsm
showlinenumbers boolean a boolean value indicating whether or not the line numbers gutter should be dis
played.
Localization content best practices
for example accessibility (a11y) strings: in this case space is less important than clarity, since these strings are not dis
played in the ui but used by tools like screen readers.
Localizing with Koala
also, searchbar.dtd is no longer dis
played in the "compare" view, as it has been completely translated.
Creating localizable web applications
for right-to-left languages, the slideshow should go from right to left as well, making the last element in the html the first one to be dis
played.
Basics
you can also make dis
played equations, such as the following ones: x → maps to y = f n ( x ) = ( 1 + 1 x n ) n ∫ a b f ( x ) d x = b - a 6 [ f ( a ) + 4 f ( a + b 2 ) + f ( b ) ] - ( b - a ) 5 4 !
MathML Demo: <mfrac> - fractions
dis
played nested fractions are normal size at the first level, 1 6 2 + 1 3 + 1 4 + 1 5 + 1 6 + … script size at second level, and script-script size at all more nested levels.
Gecko Profiler FAQ
that tree is then dis
played in the usual way, with weights in decreasing order from top to bottom.
about:memory
sections memory reports are dis
played on a per-process basis, with one process per section.
Performance
that log can then be re
played against firefox's default memory allocator independently or through another replace-malloc library, allowing the testing of other allocators under the exact same workload.
Preference reference
the effect is that the source xml file is not read and re-parsed each time the chrome in question is dis
played.
PR_Assert
syntax #include <prlog.h> void pr_assert ( const char *s, const char *file, printn ln); parameters the function has these parameters: s a string to be dis
played in the log.
PKCS11 FAQ
once you've installed the module, the module's certificates simply appear in the list of certificates dis
played in the certificate window.
PKCS11 Implement
the version numbers, manufacturer ids, and so on are dis
played when the user views the information.
certutil
ids are dis
played in hexadecimal ("0x" is not shown).
WebReplayRoadmap
recording firefox ui (partially implemented) right now only content tabs can be recorded and re
played.
Redis Tips
getting started with redis before you go any further in this document, make sure you have
played with redis for at least 5 or 10 minutes.
Pinning violation reports
the error page dis
played by firefox when you encounter a pin violation gives you the option of reporting this error.
Gecko states
state_expanded children of this object that have the role_outlineitem role are dis
played.
Using the Places history service
this will cause the transition type of the next visit of the url to be marked as "bookmark." nsinavhistoryservice.setpageusertitle: sets the user-defined title for the page, which will override the actual page title when dis
played in the ui.
Aggregating the In-Memory Datasource
that is, you want to reflect the contents of something as an rdf graph (presumably so that it can be aggregated with other information or dis
played as styled content).
Components.Exception
syntax var exception = [ new ] components.exception([ message [, result [, stack [, data ] ] ] ]); parameters message a string which can be dis
played in the error console when your exception is thrown or in other developer-facing locations, defaulting to 'exception' result the nsresult value of the exception, which defaults to components.results.ns_error_failure stack an xpcom stack to be set on the exception (defaulting to the current stack chain) data any additional data you might want to store, defaulting to null example throw c...
nsIAbCard
allowremotecontent boolean allow remote content to be dis
played in html mail received from this contact methods getcardvalue() astring getcardvalue(in string name) parameters name the attribute you want the value for.
nsIAccessNode
obsolete since gecko 2.0 ownerwindow voidptr the os window handle for the window this node is being dis
played in.
nsIAccessibleStates
state_expanded 0x00000200 children of this object that have the role_outlineitem role are dis
played.
nsIAutoCompleteInput
popup nsiautocompletepopup the view in which results will be dis
played.read only.
nsIAutoCompleteItem
comment wstring an extra comment that will be dis
played next to the value but that will not be part of the value itself.
nsICommandLineHandler
la/clh;1 command-line-handler y-final @mozilla.org/browser/clh-final;1 method overview void handle(in nsicommandline acommandline); attributes attribute type description helpinfo autf8string when the application is launched with the -help argument, this attribute is retrieved and dis
played to the user (on stdout).
nsIContentViewer
note: if this container is the root of a view manager hierarchy (that is, this method returns null), and mparentwidget is also null, then this document should not even be dis
played.
nsIDOMWindowInternal
fullscreen boolean whether the window is dis
played in full screen mode or not frameelement nsidomelement readonly: the element in which the window is embedded, or null if the window is top-level.
nsIDirIndex
description wstring a description for the filename, which should be dis
played by a viewer.
nsIDocShell
app_type_mail 1 this is the value of the apptype attribute used by thunderbird and seamonkey to indicate that email messages are dis
played in this window.
nsIFaviconService
for a given page will give you a uri that, when dis
played in chrome, will result in the given page's favicon.
nsIFeed
textinput nsiwritablepropertybag2 information about a text box that can be dis
played along with the feed by aggregators that support it, to allow the reader to send a response back to the source of the feed.
nsIFeedEntry
mediacontent nsiarray an array of all the enclosures or other media that might be dis
played inline in the entry.
nsIMemoryReporter
paths are delimited with '/' characters to allow a hierarchy of memory to be dis
played in about:memory.
nsIMsgAccountManagerExtension
boolean showpanel( in nsimsgincomingserver server ); parameters server the account for which the panel should be dis
played.
nsINavHistoryObserver
normally, transition types of transition_embed (corresponding to images in a page, for example) are not dis
played in history results (unless includehidden is set).
nsIPlacesView
selectall() selects all the nodes dis
played in the view.
nsIScrollable
example var nsiscr = gbrowser.selectedbrowser.docshell.queryinterface(components.interfaces.nsiscrollable); var v={}; var h={}; nsiscr.getscrollbarvisibility(v,h); v.value //returns true if the vertical scrollbar is dis
played h.value //returns true if the horizontal scrollbar is dis
played ...
nsISessionStartup
it will either be restored or about:sessionrestore will be dis
played.
nsITreeColumn
index long the index of the nsitreecolumn in dis
played order.
nsIWebNavigationInfo
this lets you determine whether a mime type can be dis
played as-is inside a browser, or if the browser will instead forward handling of the data to a plug-in or an external helper application.
nsIWebPageDescriptor
docshell/base/nsiwebpagedescriptor.idlscriptable this interface allows content being dis
played in one window to be loaded into another window without refetching it from the network.
nsIWebProgressListener
the status message is intended to be dis
played to the user (for example, in the status bar of the browser).
nsIXFormsModelElement
extensions/xforms/nsixformsmodelelement.idlscriptable defines scriptable methods for manipulating instance data and updating computed and dis
played values.
XPCOM
however, such decoders relied on servers sending correct mime types; images sent with incorrect mime types would not be correctly dis
played.xpcom gluethe xpcom glue is a static library which component developers and embedders can link against.
Address Book examples
photo display handlers a photo display handler determines how a contact photo can be extracted from a contact and dis
played in an img element.
DB Views (message lists)
advanced search results are dis
played with an nsmsgsearchdbview, and cross-folder saved searches use nsmsgxfvirtualfolderdbview, which inherits from nsmsgsearchdbview.
Events
ondisplayingfolder a folder gets dis
played onfolderloading a folder is being loaded onleavingfolder a folder is being unloaded, includes deletion onloadingfolder a folder is being loaded onmakeactive a folderdisplaywidget becomes active onmessagecountschanged the counts of the messages changed onmessagesloaded the messages in the folder have be...
Filelink Providers
this function is called automatically once the dom content is done loading, and is passed a single parameter - the provider instance whose data is being dis
played.
Index
the statusbar is usually dis
played at the bottom of the thunderbird window.
Folders and message lists
to get the nsimsgfolder instance for the currently-dis
played folder, just use gfolderdisplay.dis
playedfolder.
Theme Packaging
you must have a top-level chrome.manifest file which registers the chrome for the theme (as before) and also an install.rdf manifest that specifies metadata that is dis
played in the appearance section of the add-ons manager.
customDBHeaders Preference
lay.xul install.rdf adding: chrome/ (stored 0%) adding: chrome.manifest (deflated 44%) adding: chrome/content/ (stored 0%) adding: chrome/content/superfluous.js (deflated 57%) adding: chrome/content/superfluous_overlay.xul (deflated 44%) adding: install.rdf (deflated 50%) end result ultimately, you want to be able to compose a message like this: and see the superfluous column dis
played in your inbox like this: thanks many thanks go out to the thunderbird developers for the fine product that it is.
Using popup notifications
for example, this popup notification is dis
played when a web site requests geolocation information: this lets the user decide whether or not to share their location when it's convenient to do so, instead of being compelled to do it at once.
Using tab-modal prompts
an alert!"]; prompt.alert.apply(null, promptargs); nsiprompt will automatically fall back to window-modal prompts when necessary (such as in situations in which tab-modal prompts aren't supported, or for prompts dis
played outside the context of a tab).le to use other forms of the prompts of nsipromptservice interface see the example code.
Working with windows in chrome code
for example: // alerts the title of the document dis
played in the content-primary widget alert(content.document.title); for example, you can use content.document in a browser.xul overlay to access the web page in the selected tab in a firefox window.
Add to iPhoto
hooking up to the context menu on startup, we find the content area's context menu and add an event listener to it that will be called when the context menu is dis
played.
Drawing and Event Handling - Plugins
the content provider who writes the web page determines its display mode: whether the plug-in is embedded, or dis
played in its own separate page.
Streams - Plugins
for the complete list of codes, see "result codes." for an example that demonstrates using this function with npn_newstream and npn_write, see "example of sending a stream." example of sending a stream the following code creates a new stream of html text dis
played by the browser in a new window, writes it, and destroys the stream.
Debugging service workers - Firefox Developer Tools
debugging your service worker in any case, when the service worker is successfully registered, you'll see information about it dis
played in the application > service workers view (along with any other service workers registered on the same domain): this gives you a variety of information about your service worker: the url that the service worker is registered on.
Source map errors - Firefox Developer Tools
the message looks a little different in this case: in this case, the error will also be dis
played in the source tab in the debugger: networkerror when attempting to fetch resource a bug in firefox prevents it from loading source maps for web extensions.
Aggregate view - Firefox Developer Tools
you can use this to filter the contents of the snapshot that are dis
played, so you can quickly see, for example, how many objects of a specific class were allocated.
Inspecting web sockets - Firefox Developer Tools
supported ws protocols the inspector currently supports the following web socket protocols: plain json socket.io sockjs signalr wamp the payload based on those protocols is parsed and dis
played as an expandable tree for easy inspection, although you can of course still see the raw data (as sent over the wire) as well.
Examine and edit HTML - Firefox Developer Tools
::before and ::after you can inspect pseudo-elements added using ::before and ::after: custom element definition when you open the inspector on a page that includes custom elements, you can view the class definition for the custom element in the debugger: inspect the element click on the word custom the source for the element's class will be dis
played in the debugger.
Animation inspector (Firefox 41 and 42) - Firefox Developer Tools
the animation inspector enables you to: see information about all animations running in the page play/pause all animations play/pause/rewind/fast-forward each animation jump to a specific point in an animation highlight and inspect the animated node adjust the playback rate of each animation see whether an animation is running in the compositor thread (a lightning bolt icon is dis
played next to such animations) ...
Flame Chart - Firefox Developer Tools
there are two main controls you can use to navigate the flame chart: zoom: increase/decrease the selected portion of the complete profile that's dis
played in the flame chart 1) mouse wheel up/down in the flame chart.
How to - Firefox Developer Tools
select a tool to switch between the waterfall, call tree, and flame chart tools, use the buttons in the toolbar: configure markers dis
played to control which markers are shown in the waterfall, use the button in the toolbar: zoom in to zoom into a slice of the recording, select that slice in the recording overview: ...
Waterfall - Firefox Developer Tools
filtering markers you can control which markers are dis
played using a button in the toolbar: waterfall patterns exactly what you'll see in the waterfall is very dependent on the kind of thing your site is doing: javascript-heavy sites will have a lot of orange, while visually dynamic sites will have a lot of purple and green.
IndexedDB - Firefox Developer Tools
you can delete an indexeddb database using the context menu in the storage tree: if the database cannot be deleted (most commonly because there are still active connections to the database), a warning message will be dis
played in the storage inspector: you can use the context menu in the table widget to delete all items in an object store, or a particular item: ...
Rich output - Firefox Developer Tools
click on the triangle, and the object will be expanded to show its contents: starting with firefox 67 (available now in firefox developer) you can use the arrow keys on your keyboard to navigate through objects dis
played in the console.
Animation.pause() - Web APIs
exceptions invalidstateerror the animation's currenttime is unresolved (for example, if it's never been
played or isn't currently playing) and the end time of the animation is positive infinity.
Animation.ready - Web APIs
syntax var readypromise = animation.ready; value a promise which resolves when the animation is ready to be
played.
AudioBuffer - Web APIs
once put into an audiobuffer, the audio can then be
played by being passed into an audiobuffersourcenode.
AudioContext.createMediaElementSource() - Web APIs
the createmediaelementsource() method of the audiocontext interface is used to create a new mediaelementaudiosourcenode object, given an existing html <audio> or <video> element, the audio from which can then be
played and manipulated.
AudioContext.createMediaStreamSource() - Web APIs
the createmediastreamsource() method of the audiocontext interface is used to create a new mediastreamaudiosourcenode object, given a media stream (say, from a mediadevices.getusermedia instance), the audio from which can then be
played and manipulated.
AudioNode - Web APIs
on the other hand, a destination node has no outputs; instead, all its inputs are directly
played back on the speakers (or whatever audio output device the audio context uses).
AudioScheduledSourceNode: ended event - Web APIs
bubbles no cancelable no interface event event handler property audioscheduledsourcenode.onended usage notes this event occurs when a audioscheduledsourcenode has stopped playing, either because it's reached a predetermined stop time, the full duration of the audio has been performed, or because the entire buffer has been
played.
AudioScheduledSourceNode - Web APIs
events listen to these events using addeventlistener() or by assigning an event listener to the oneventname property of this interface: ended fired when the source node has stopped playing, either because it's reached a predetermined stop time, the full duration of the audio has been performed, or because the entire buffer has been
played.
BaseAudioContext.createDynamicsCompressor() - Web APIs
it is especially important in games and musical applications where large numbers of individual sounds are
played simultaneously, where you want to control the overall signal level and help avoid clipping (distorting) of the audio output.
BaseAudioContext.createScriptProcessor() - Web APIs
.buffer = mybuffer; }, function(e){"error with decoding audio data" + e.err}); } request.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and
played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output channels (in this case there is only one) for (var channel = 0; channel < outputbuffer.numberofchannels; channel++) { var inputdata = inputbuffer.getchanneldata(channel); var outputdata = outputbuffer.getchanneldata(channel); // loop through the 4096 samples for (var sample = 0; sample < input...
BaseAudioContext - Web APIs
baseaudiocontext.createbiquadfilter() creates a biquadfilternode, which represents a second order filter configurable as several different common filter types: high-pass, low-pass, band-pass, etc baseaudiocontext.createbuffer() creates a new, empty audiobuffer object, which can then be populated by data and
played via an audiobuffersourcenode.
Drawing text - Web APIs
there are some more properties which let you adjust the way the text gets dis
played on the canvas: font = value the current text style being used when drawing text.
console.count() - Web APIs
examples for example, given code like this: let user = ""; function greet() { console.count(); return "hi " + user; } user = "bob"; greet(); user = "alice"; greet(); greet(); console.count(); console output will look something like this: "default: 1" "default: 2" "default: 3" "default: 4" the label is dis
played as default because no explicit label was supplied.
Console.table() - Web APIs
// an object whose properties are objects var family = {}; family.mother = new person("jane", "smith"); family.father = new person("john", "smith"); family.daughter = new person("emily", "smith"); console.table(family); restricting the columns dis
played by default, console.table() lists all elements in each row.
Console.timeLog() - Web APIs
examples console.time("answer time"); alert("click to continue"); console.timelog("answer time"); alert("do a bunch of other stuff..."); console.timeend("answer time"); the output from the example above shows the time taken by the user to dismiss the first alert box, followed by the time it took for the user to dismiss the second alert: notice that the timer's name is dis
played when the timer value is logged using timelog() and again when it's stopped.
console.trace() - Web APIs
example function foo() { function bar() { console.trace(); } bar(); } foo(); in the console, the following trace will be dis
played: bar foo <anonymous> specifications specification status comment console apithe definition of 'console.trace()' in that specification.
console - Web APIs
ven this code: console.time("answer time"); alert("click to continue"); console.timelog("answer time"); alert("do a bunch of other stuff..."); console.timeend("answer time"); will log the time needed by the user to dismiss the alert box, log the time to the console, wait for the user to dismiss the second alert, and then log the ending time to the console: notice that the timer's name is dis
played both when the timer is started and when it's stopped.
Constraint validation API - Web APIs
this will be dis
played in the ui if the element is the only form control with a validity problem; if a custom error message is set using setcustomvalidity(), this will be shown.
DOMHighResTimeStamp - Web APIs
if during the process of unloading the previous document which was loaded in the window, a confirmation dialog was dis
played to let the user confirm whether or not to leave the previous page, the time origin is the time at which the user confirmed that navigating to the new page was acceptable.
DataTransfer.clearData() - Web APIs
drophandler (event) { dropped = true; status.innerhtml = 'drop done'; event.preventdefault(); // get data linked to event format « text » var _data = event.datatransfer.getdata('text/plain'); var element = document.getelementbyid(_data); // append drag source element to event's target element event.target.appendchild(element); // change css styles and dis
played text element.style.csstext = 'border: 1px solid black;display: block; color: red'; element.innerhtml = "i'm in the drop zone!"; } }) specifications specification status comment html living standardthe definition of 'datatransfer.cleardata()' in that specification.
DeprecationReportBody - Web APIs
the report details are dis
played via the displayreports() fuction, which takes the observer callback's reports parameter as its parameter: function displayreports(reports) { const outputelem = document.queryselector('.output'); const list = document.createelement('ul'); outputelem.appendchild(list); for(let i = 0; i < reports.length; i++) { let listitem = document.createelement('li'); let textnode = document.cr...
Document.createDocumentFragment() - Web APIs
you can also use the documentfragment constructor to create a new fragment: let fragment = new documentfragment(); example this example creates a list of major web browsers in a documentfragment, then adds the new dom subtree to the document to be dis
played.
Document.queryCommandState() - Web APIs
contenteditable="true">select a part of this text!</div> <button onclick="makebold();">test the state of the 'bold' command</button> javascript function makebold() { var state = document.querycommandstate("bold"); switch (state) { case true: alert("the bold formatting will be removed from the selected text."); break; case false: alert("the selected text will be dis
played in bold."); break; case null: alert("the state of the 'bold' command is indeterminable."); break; } document.execcommand('bold'); } result specifications specification status comment execcommand ...
Document.title - Web APIs
the assignment affects the return value of document.title, the title dis
played for the document (e.g.
DynamicsCompressorNode - Web APIs
the dynamicscompressornode interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are
played and multiplexed together at once.
Element: contextmenu event - Web APIs
in the latter case, the context menu is dis
played at the bottom left of the focused element, unless the element is a tree, in which case the context menu is dis
played at the bottom left of the current row.
Element.onfullscreenchange - Web APIs
this gives us a value, isfullscreen, which we pass into a function called adjustmycontrols(), which we imagine to be a function that makes adjustments to the app's user interface to present itself optimally when it's in full-screen mode versus being dis
played in a window.
Element: show event - Web APIs
bubbles no cancelable no interface event event handler property onshow examples <div contextmenu="test"></div> <menu type="context" id="test"> <menuitem label="alert" onclick="alert('the alert label has been clicked')" /> </menu> <script> document.getelementbyid("test").addeventlistener("show", function(e){ alert("the context menu will be dis
played"); }, false); </script> specifications specification status html5the definition of 'show event' in that specification.
FontFace.display - Web APIs
the display property of the fontface interface determines how a font face is dis
played based on whether and when it is downloaded and ready to use.
FontFace - Web APIs
fontface.display a cssomstring that determines how a font face is dis
played based on whether and when it is downloaded and ready to use.
FullscreenOptions.navigationUI - Web APIs
let elem = document.documentelement; elem.requestfullscreen({ navigationui: "show" }).then({}).catch(err => { alert(`an error occurred while trying to switch into full-screen mode: ${err.message} (${err.name})`); }); the promise's resolve handler does nothing, but if the promise is rejected, an error message is dis
played by calling alert().
HTMLAnchorElement.download - Web APIs
the htmlanchorelement.download property is a domstring indicating that the linked resource is intended to be downloaded rather than dis
played in the browser.
HTMLAnchorElement - Web APIs
htmlanchorelement.download is a domstring indicating that the linked resource is intended to be downloaded rather than dis
played in the browser.
HTMLAreaElement - Web APIs
htmlareaelement.download is a domstring indicating that the linked resource is intended to be downloaded rather than dis
played in the browser.
msAudioCategory - Web APIs
game audio needed for the game experience (dancing games, music games) feature films (designed to pause when they go to the background) no gameeffects game sound effects designed to mix with existing audio characters talking all non-music sounds no gamemedia background music
played by a game no soundeffects game or other sound effects designed to mix with existing audio: characters talking beeps, dings, brief sounds no other default audio type, and recommended for all audio media that does not need to continue playing in the background.
HTMLButtonElement - Web APIs
htmlbuttonelement.menu is a htmlmenuelement representing the menu element to be dis
played if the button is clicked and is of type="menu".
HTMLElement.hidden - Web APIs
example here's an example where a hidden block is used to contain a thank you message that is dis
played after a user agrees to an unusual request.
HTMLElement.title - Web APIs
the htmlelement.title property represents the title of the element: the text usually dis
played in a 'tooltip' popup when the mouse is over the node.
HTMLImageElement.naturalHeight - Web APIs
javascript let output = document.queryselector(".output"); let image = document.queryselector("img"); window.addeventlistener("load", event => { output.innerhtml += `natural size: ${image.naturalwidth} x ` + `${image.naturalheight} pixels<br>`; output.innerhtml += `dis
played size: ${image.width} x ` + `${image.height} pixels`; }); the javascript code simply dumps the natural and as-dis
played sizes into the <div> with the class output.
HTMLImageElement.naturalWidth - Web APIs
javascript let output = document.queryselector(".output"); let image = document.queryselector("img"); window.addeventlistener("load", event => { output.innerhtml += `natural size: ${image.naturalwidth} x ` + `${image.naturalheight} pixels<br>`; output.innerhtml += `dis
played size: ${image.width} x ` + `${image.height} pixels`; }); the javascript code simply dumps the natural and as-dis
played sizes into the <div> with the class output.
HTMLImageElement.srcset - Web APIs
let box = document.queryselector(".box"); let image = box.queryselector("img"); let newelem = document.createelement("p"); newelem.innerhtml = `image: <code>${image.currentsrc}</code>`; box.appendchild(newelem); result in the dis
played output below, the selected url will correspond with whether your display results in selecting the 1x or the 2x version of the image.
HTMLMediaElement.setSinkId() - Web APIs
xceptions exception explanation domexception no permission to use the requested device examples const devices = await navigator.mediadevices.enumeratedevices(); const audiodevices = devices.filter(device => device.kind === 'audiooutput'); const audio = document.createelement('audio'); await audio.setsinkid(audiodevices[0].deviceid); console.log('audio is being
played on ' + audio.sinkid); specifications specification status comment audio output devices apithe definition of 'sinkid' in that specification.
HTMLObjectElement.height - Web APIs
the height property of the htmlobjectelement interface returns a domstring that reflects the height html attribute, specifying the dis
played height of the resource in css pixels.
HTMLObjectElement.width - Web APIs
the width property of the htmlobjectelement interface returns a domstring that reflects the width html attribute, specifying the dis
played width of the resource in css pixels.
HTMLVideoElement.getVideoPlaybackQuality() - Web APIs
this value includes any dropped or corrupted frames, so it's not the same as "total number of frames
played." var videoelem = document.getelementbyid("my_vid"); var counterelem = document.getelementbyid("counter"); var quality = videoelem.getvideoplaybackquality(); counterelem.innertext = quality.totalvideoframes; specifications specification status comment media playback qualitythe definition of 'htmlvideoelement.getvideoplaybackquality()' in that specification.
IDBCursor.continue() - Web APIs
store = transaction.objectstore('rushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'continue()' in that specification.
IDBCursor.delete() - Web APIs
even power windows is better.'); }; } else { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.albumtitle + '</strong>, ' + cursor.value.year; list.appendchild(listitem); } cursor.continue(); } else { console.log('entries dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'delete()' in that specification.
IDBCursor.direction - Web APIs
prev').onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.albumtitle + '</strong>, ' + cursor.value.year; list.appendchild(listitem); console.log(cursor.direction); cursor.continue(); } else { console.log('entries dis
played backwards.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'direction' in that specification.
IDBCursor.key - Web APIs
('rushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); console.log(cursor.key); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'key' in that specification.
IDBCursor.primaryKey - Web APIs
lbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); console.log(cursor.primarykey); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'primarykey' in that specification.
IDBCursor.request - Web APIs
quest.onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.albumtitle + '</strong>, ' + cursor.value.year; list.appendchild(listitem); console.log(cursor.request); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api draftthe definition of 'request' in that specification.
IDBCursor.source - Web APIs
ushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); console.log(cursor.source); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'source' in that specification.
IDBCursor.update() - Web APIs
quest = cursor.update(updatedata); request.onsuccess = function() { console.log('a better album year?'); }; }; const listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.albumtitle + '</strong>, ' + cursor.value.year; list.appendchild(listitem); cursor.continue(); } else { console.log('entries dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'update()' in that specification.
IDBCursor - Web APIs
store = transaction.objectstore('rushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; } specifications specification status comment indexed database api 2.0the definition of 'cursor' in that specification.
IDBCursorWithValue.value - Web APIs
rushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); console.log(cursor.value); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'source' in that specification.
IDBCursorWithValue - Web APIs
store = transaction.objectstore('rushalbumlist'); objectstore.opencursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = cursor.value.albumtitle + ', ' + cursor.value.year; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications specification status comment indexed database api 2.0the definition of 'idbcursorwithvalue' in that specification.
IDBIndex.count() - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'count()' in that specification.
IDBIndex.get() - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'get()' in that specification.
IDBIndex.getKey() - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'getkey()' in that specification.
IDBIndex.isAutoLocale - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications not currently part of any specification.
IDBIndex.keyPath - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'keypath' in that specification.
IDBIndex.locale - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification not currently part of any specification.
IDBIndex.multiEntry - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'multientry' in that specification.
IDBIndex.name - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'name' in that specification.
IDBIndex.objectStore - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'objectstore' in that specification.
IDBIndex.openCursor() - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'opencursor()' in that specification.
IDBIndex.openKeyCursor() - Web APIs
index.openkeycursor().onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var tablerow = document.createelement('tr'); tablerow.innerhtml = '<td>' + cursor.key + '</td>' + '<td>' + cursor.primarykey + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('all last names dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'openkeycursor()' in that specification.
IDBIndex.unique - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'unique' in that specification.
IDBIndex - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'idbindex' in that specification.
IDBKeyRange.bound() - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'bound()' in that specification.
IDBKeyRange.lower - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'lower' in that specification.
IDBKeyRange.lowerBound() - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'lowerbound()' in that specification.
IDBKeyRange.lowerOpen - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'loweropen' in that specification.
IDBKeyRange.only() - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'only' in that specification.
IDBKeyRange.upper - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'upper' in that specification.
IDBKeyRange.upperBound() - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'upperbound()' in that specification.
IDBKeyRange.upperOpen - Web APIs
; objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'upperopen' in that specification.
IDBKeyRange - Web APIs
ore('fthings'); objectstore.opencursor(keyrangevalue).onsuccess = function(event) { var cursor = event.target.result; if(cursor) { var listitem = document.createelement('li'); listitem.innerhtml = '<strong>' + cursor.value.fthing + '</strong>, ' + cursor.value.frating; list.appendchild(listitem); cursor.continue(); } else { console.log('entries all dis
played.'); } }; } specifications specification status comment indexed database api 2.0the definition of 'idbkeyrange' in that specification.
IDBLocaleAwareKeyRange - Web APIs
<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specifications not currently part of any specification.
IDBObjectStore.index() - Web APIs
.jtitle + '</td>' + '<td>' + cursor.value.company + '</td>' + '<td>' + cursor.value.email + '</td>' + '<td>' + cursor.value.phone + '</td>' + '<td>' + cursor.value.age + '</td>'; tableentry.appendchild(tablerow); cursor.continue(); } else { console.log('entries all dis
played.'); } }; }; specification specification status comment indexed database api 2.0the definition of 'index()' in that specification.
Checking when a deadline is due - Web APIs
the basic problem in the to-do app, we wanted to first record time and date information in a format that is both machine readable and human understandable when dis
played, and then check whether each time and date is occurring at the current moment.
installChrome - Web APIs
url url is a string containing a full or relative url to download name name is dis
played in the dialog, but is also used to *select* the theme somust match exactly the name in the internal manifest.rdf file.
MediaImage - Web APIs
its contents can be dis
played by the user agent in appropriate contexts, like player interface to show the current playing video or audio track.
MediaMetadata.album - Web APIs
the album property of the mediametadata interface returns or sets the name of the album or collection containing the media to be
played.
MediaMetadata.artist - Web APIs
the artist property of the mediametadata interface returns or sets the name of the artist, group, creator, etc., of the media to be
played.
MediaPositionState.position - Web APIs
if the media is still playing when the interval is fired, setpositionstate() is called with an object that specifies the duration, playback rate, and position as reported by a mymedia object that describes the track being
played.
MediaPositionState - Web APIs
playbackrate a floating-point value indicating the rate at which the media is being
played, as a ratio relative to its normal playback speed.
MediaSession.metadata - Web APIs
syntax var mediametadata = navigator.mediasession.metadata; navigator.mediasession.metadata = mediametadata; value an instance of mediametadata containing information about the media currently being
played.
MediaSession.setPositionState() - Web APIs
if the media is still playing when the interval is fired, setpositionstate() is called with an object that specifies the duration, playback rate, and position as reported by a mymedia object that describes the track being
played.
MediaSource - Web APIs
a mediasource object can be attached to a htmlmediaelement to be
played in the user agent.
MediaStreamConstraints - Web APIs
streams isolated in this way can only be dis
played in a media element (<audio> or <video>) where the content is protected just as if cors cross-origin rules were in effect.
MimeType - Web APIs
mimetype.suffixes a string containing valid file extensions for the data dis
played by the plugin, or an empty string if an extension is not valid for the particular module.
Navigator.mediaSession - Web APIs
this information can include typical metadata such as the title, artist, and album name of the song being
played as well as potentially one or more images containing things like album art, artist photos, and so forth.
Navigator.msLaunchUri() - Web APIs
syntax navigator.mslaunchuri(uri, successcallback, nohandlercallback); parameters uri a domstring specifying the url containing including the protocol of the document or resource to be dis
played.
msSaveBlob - Web APIs
return value true is returned as long as the download notification bar is dis
played, or false if a failure occured.
msSaveOrOpenBlob - Web APIs
return value true is returned as long as the download notification bar is dis
played, or false if a failure occurred.
Node.baseURI - Web APIs
details the base url of a document the base url of a document defaults to the document's address (as dis
played by the browser and available in window.location), but it can be changed: when an html <base> tag is found in the document when the document is new (created dynamically) see the base urls section of the html living standard for details.
Notification.icon - Web APIs
the icon read-only property of the notification interface contains the url of an icon to be dis
played as part of the notification, as specified in the icon option of the notification() constructor.
Notification.image - Web APIs
the image read-only property of the notification interface contains the url of an image to be dis
played as part of the notification, as specified in the image option of the notification() constructor.
Notification.onerror - Web APIs
these events occur when something goes wrong with a notification (in many cases an error preventing the notification from being dis
played.) syntax notification.onerror = function() { ...
Notifications API - Web APIs
these are outside the top-level browsing context viewport, so therefore can be dis
played even when the user has switched tabs or moved to a different app.
OfflineAudioContext: complete event - Web APIs
bubbles no cancelable no default action none interface offlineaudiocompletionevent event handler property offlineaudiocontext.oncomplete examples when processing is complete, you might want to use the oncomplete handler the prompt the user that the audio can now be
played, and enable the play button: let offlineaudioctx = new offlineaudiocontext(); offlineaudioctx.addeventlistener('complete', () => { console.log('offline audio processing now complete'); showmodaldialog('song processed and ready to play'); playbtn.disabled = false; }) you can also set up the event handler using the offlineaudiocontext.oncomplete property: let offlineaudioctx = new offline...
OfflineAudioContext.oncomplete - Web APIs
} example when processing is complete, you might want to use the oncomplete handler the prompt the user that the audio can now be
played, and enable the play button.
PannerNode.orientationX - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and coneoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being
played.
PannerNode.orientationY - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being
played.
PannerNode.orientationZ - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being
played.
PannerNode.positionX - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being
played.
PannerNode.positionY - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being
played.
PannerNode.positionZ - Web APIs
depending on the directionality of the sound (as specified using the attributes coneinnerangle, coneouterangle, and codeoutergain), the orientation of the sound may alter the perceived volume of the sound as it's being
played.
PaymentDetailsUpdate.error - Web APIs
the paymentdetailsupdate dictionary's error property is a human-readable domstring which provides an error message to be dis
played if the specified information doesn't offer any valid shipping options.
PaymentItem - Web APIs
this may be dis
played to the user by the user agent, depending on the design of the interface.
Push API - Web APIs
in comparison, chrome applies no limit, but requires that every push message causes a notification to be dis
played.
RTCDTMFSender: tonechange event - Web APIs
examples this example establishes a handler for the tonechange event which updates an element to display the currently playing tone in its content, or, if all tones have
played, the string "<none>".
RTCDTMFSender - Web APIs
ize="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">rtcdtmfsender</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties rtcdtmfsender.tonebuffer read only a domstring which contains the list of dtmf tones currently in the queue to be transmitted (tones which have already been
played are no longer included in the string).
RTCDTMFToneChangeEvent.tone - Web APIs
syntax var tone = dtmftonechangeevent.tone; example this example establishes a handler for the tonechange event which updates an element to display the currently playing tone in its content, or, if all tones have
played, the string "<none>".
RTCDTMFToneChangeEvent - Web APIs
it appends each tone to a display box as it's
played, and, once all tones have been sent, re-enabled a previously-disabled "send" button, allowing the next dmtf string to be entered.
RTCDataChannel.onmessage - Web APIs
example this code snippet creates a peer connection, adds a data channel to it, and starts creating new <p> (paragraph) elements each time a message arrives, with the message's contents dis
played inside it.
RTCError - Web APIs
this message is then dis
played using a function called showmyalertmessage(), which stands in for whatever output mechanism this code might use.
RTCErrorEvent.error - Web APIs
this message is then dis
played using a function called showmyalertmessage(), which stands in for whatever output mechanism this code might use.
RTCRtpContributingSource.timestamp - Web APIs
syntax var domhighrestimestamp = rtcrtpcontributingsource.timestamp value a domhighrestimestamp which indicates the time at which the most recent rtp packet from the corresponding source was
played out.
RTCRtpSynchronizationSource.voiceActivityFlag - Web APIs
syntax var voiceactivity = rtcrtpsynchronizationsource.voiceactivityflag value a boolean value which is true if voice activity is present in the most recently received rtp packet
played by the associated source, or false if voice activity is not present.
Report - Web APIs
the report details are dis
played via the displayreports() fuction, which takes the observer callback's reports parameter as its parameter: function displayreports(reports) { const outputelem = document.queryselector('.output'); const list = document.createelement('ul'); outputelem.appendchild(list); for(let i = 0; i < reports.length; i++) { let listitem = document.createelement('li'); let textnode = document.cr...
Screen - Web APIs
screen.availheight specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features dis
played by the operating system, such as the taskbar on windows.
Screen Wake Lock API - Web APIs
for example, a ticketing app which uses qr codes to transmit ticket information, might acquire screen wake lock when the qr code is dis
played (so that code is successfully scanned) but release afterwards.
ScriptProcessorNode: audioprocess event - Web APIs
lt action none interface audioprocessingevent event handler property scriptprocessornode.onaudioprocess examples scriptnode.addeventlistener('audioprocess', function(audioprocessingevent) { // the input buffer is a song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and
played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output channels (in this case there is only one) for (var channel = 0; channel < outputbuffer.numberofchannels; channel++) { var inputdata = inputbuffer.getchanneldata(channel); var outputdata = outputbuffer.getchanneldata(channel); // loop through the 4096 samples for (var sample = 0; sample < input...
ScriptProcessorNode.bufferSize - Web APIs
.buffer = mybuffer; }, function(e){"error with decoding audio data" + e.err}); } request.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and
played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output channels (in this case there is only one) for (var channel = 0; channel < outputbuffer.numberofchannels; channel++) { var inputdata = inputbuffer.getchanneldata(channel); var outputdata = outputbuffer.getchanneldata(channel); // loop through the 4096 samples for (var sample = 0; sample < input...
ScriptProcessorNode.onaudioprocess - Web APIs
.buffer = mybuffer; }, function(e){"error with decoding audio data" + e.err}); } request.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and
played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output channels (in this case there is only one) for (var channel = 0; channel < outputbuffer.numberofchannels; channel++) { var inputdata = inputbuffer.getchanneldata(channel); var outputdata = outputbuffer.getchanneldata(channel); // loop through the 4096 samples for (var sample = 0; sample < input...
ScriptProcessorNode - Web APIs
.buffer = mybuffer; }, function(e){"error with decoding audio data" + e.err}); } request.send(); } // give the node a function to process audio events scriptnode.onaudioprocess = function(audioprocessingevent) { // the input buffer is the song we loaded earlier var inputbuffer = audioprocessingevent.inputbuffer; // the output buffer contains the samples that will be modified and
played var outputbuffer = audioprocessingevent.outputbuffer; // loop through the output channels (in this case there is only one) for (var channel = 0; channel < outputbuffer.numberofchannels; channel++) { var inputdata = inputbuffer.getchanneldata(channel); var outputdata = outputbuffer.getchanneldata(channel); // loop through the 4096 samples for (var sample = 0; sample < input...
ServiceWorkerGlobalScope.onnotificationclick - Web APIs
the serviceworkerglobalscope.onnotificationclick property is an event handler called whenever the notificationclick event is dispatched on the serviceworkerglobalscope object, that is when a user clicks on a dis
played notification spawned by serviceworkerregistration.shownotification().
onnotificationclose - Web APIs
the serviceworkerglobalscope.onnotificationclose property is an event handler called whenever the notificationclose event is dispatched on the serviceworkerglobalscope object, that is when a user closes a dis
played notification spawned by serviceworkerregistration.shownotification().
Using Service Workers - Web APIs
note: as of firefox 44, when appcache is used to provide offline support for a page a warning message is now dis
played in the console advising developers to use service workers instead (bug 1204581.) service workers should finally fix these issues.
SourceBuffer - Web APIs
the sourcebuffer interface represents a chunk of media to be passed into an htmlmediaelement and
played, via a mediasource object.
TextTrack - Web APIs
thus, for dis
played cues such as captions or subtitles, the active cues are currently being dis
played.
VTTCue() - Web APIs
var cue = new vttcue(2, 3, 'cool text to be dis
played'); specifications specification status comment webvtt: the web video text tracks formatthe definition of 'vttcue()' in that specification.
VTTRegion - Web APIs
var cue = new vttcue(2, 3, 'cool text to be dis
played'); cue.region = region; // this cue will be drawn only within this region.
VideoPlaybackQuality.droppedVideoFrames - Web APIs
the read-only droppedvideoframes property of the videoplaybackquality interface returns the number of video frames which have been dropped rather than being dis
played since the last time the media was loaded into the htmlvideoelement.
WebGLRenderingContext.makeXRCompatible() - Web APIs
the webglrenderingcontext method makexrcompatible() ensures that the rendering context described by the webglrenderingcontext is ready to render the scene for the immersive webxr device on which it will be dis
played.
Clearing with colors - Web APIs
<p>a very simple webgl program that shows some color.</p> <!-- text within a canvas element is dis
played only if canvas is not supported.
Detect WebGL - Web APIs
the canvas is not added to the // document itself, so it is never dis
played in the // browser window.
Raining rectangles - Web APIs
in this example, we use an object-oriented approach for the dis
played rectangles, which helps to keep the state of the rectangle (its position, color, and so on) organized in one place, and the overall code more compact and reusable.
WebGL by example - Web APIs
color masking modifying random colors by applying color masking and thus limiting the range of dis
played colors to specific shades.
Taking still photos with WebRTC - Web APIs
capturing a frame from the stream there's one last function to define, and it's the point to the entire exercise: the takepicture() function, whose job it is to capture the currently dis
played video frame, convert it into a png file, and display it in the captured frame box.
WebRTC API - Web APIs
rtcrtpcontributingsource contains information about a given contributing source (csrc) including the most recent time a packet that the source contributed was
played out.
Writing WebSocket servers - Web APIs
as usual, it may also give the reason why the handshake failed in the http response body, but the message may never be dis
played (browsers do not display it).
Fundamentals of WebXR - Web APIs
caves a cave automated virtual environment (cave) is an immersive vr environment in which the scene is projected or otherwise dis
played on the walls (as well as possibly the ceiling and/or floor), thus completely surrounding the user with the simulation and allowing them to be immersed in the scene.
Starting up and shutting down a WebXR session - Web APIs
detecting changes to session's visibility state when the state of the xrsession's visibility changes—such as when the session is hidden or dis
played, or when the user has focused another context—the session receives an eventvisibilitychange event.
Using the Web Animations API - Web APIs
writing css animations with the web animations api one of the more familiar ways to approach learning the web animations api is to start with something most web developers have
played with before: css animations.
Visualizations with Web Audio API - Web APIs
analyser.fftsize = 256; var bufferlength = analyser.frequencybincount; console.log(bufferlength); var dataarray = new uint8array(bufferlength); canvasctx.clearrect(0, 0, width, height); next, we start our draw() function off, again setting up a loop with requestanimationframe() so that the dis
played data keeps updating, and clearing the display with each animation frame.
Web Audio API - Web APIs
dynamicscompressornode the dynamicscompressornode interface provides a compression effect, which lowers the volume of the loudest parts of the signal in order to help prevent clipping and distortion that can occur when multiple sounds are
played and multiplexed together at once.
Using the Web Speech API - Web APIs
inputtxt.blur(); } updating the dis
played pitch and rate values the last part of the code simply updates the pitch/rate values dis
played in the ui, each time the slider positions are moved.
Using Web Workers - Web APIs
the numbers are sent to a dedicated worker, multiplied together, and the result is returned to the page and dis
played.
Window.alert() - Web APIs
syntax window.alert(message); parameters message optional a string you want to display in the alert dialog, or, alternatively, an object that is converted into a string and dis
played.
Window.defaultStatus - Web APIs
syntax var smsg = window.defaultstatus; window.defaultstatus = smsg; parameters smsg is a string containing the text to be dis
played by default in the statusbar.
Window.fullScreen - Web APIs
the fullscreen property of the window interface indicates whether the window is dis
played in full screen mode or not.
Window: popstate event - Web APIs
it happens after the new location has loaded (if needed), dis
played, made visible, and so on, after the pageshow event is sent, but before the persisted user state information is restored and the hashchange event is sent.
Window.status - Web APIs
however, the html standard now requires setting window.status to have no effect on the text dis
played in the status bar.
Window - Web APIs
window.fullscreen this property indicates whether the window is dis
played in full screen or not.
XRPermissionDescriptor.mode - Web APIs
immersive-vr indicates that the rendered session will be dis
played using an immersive xr device in vr mode; it is not intended to be overlaid or integrated into the surrounding environment.
XRSession: visibilitychange event - Web APIs
.visiblitystate) { case "visible": case "visible-blurred": mysessionvisible(true); break; case "hidden": mysessionvisible(false); break; } }); }); when a visibility state change occurs, the event is received and dispatched to a function mysessionvisible(), with a boolean parameter indicating whether or not the session is presently being dis
played to the user.
XRSession - Web APIs
example this example establishes a new xrsession in inline mode so that it can be dis
played within an html element, avoiding the need for a dedicated ar or vr viewing device such as a headset.
XRSessionMode - Web APIs
immersive-vr indicates that the rendered session will be dis
played using an immersive xr device in vr mode; it is not intended to be overlaid or integrated into the surrounding environment.
XRSystem: requestSession() - Web APIs
immersive-vr indicates that the rendered session will be dis
played using an immersive xr device in vr mode; it is not intended to be overlaid or integrated into the surrounding environment.
ARIA: figure role - Accessibility
</figure> generally, you should reference the figure from the main text, but the figure need not be dis
played at the same location as the referencing element.
Accessibility Information for Web Authors - Accessibility
the output data report is dis
played in a clear and well structured table where each and all checkpoints are identified and described (along with an helpful clickable link to the related reference guideline) into logical groups and according to measurable results: passed, warning, failed for automated verification, warning for manual verification, not selected, not available, not related, etc.
Web accessibility for seizures and physical reactions - Accessibility
here are some highlights: inverted-colors according to the section, user preference media features , "the inverted-colors media feature indicates whether the content is dis
played normally, or whether colors have been inverted." forced-colors in forced-colors-mode, the user agent enforces the user's preferred color palette on the page, overriding the author's chosen colors.
-webkit-touch-callout - CSS: Cascading Style Sheets
/* keyword values */ -webkit-touch-callout: default; -webkit-touch-callout: none; /* global values */ -webkit-touch-callout: initial; -webkit-touch-callout: inherit; -webkit-touch-callout: unset; syntax values default the default callout is dis
played.
:-moz-loading - CSS: Cascading Style Sheets
the :-moz-loading css pseudo-class is a mozilla extension that matches elements that can't be dis
played because they have not started loading, such as images that haven't started to arrive yet.
::backdrop - CSS: Cascading Style Sheets
/* backdrop is only dis
played when dialog is opened with dialog.showmodal() */ dialog::backdrop { background: rgba(255,0,0,.25); } all full-screen elements are placed in a last-in/first out (lifo) stack in the top layer, which is a special layer in the viewport which is always rendered last (and therefore on top) before drawing the viewport's contents to the screen.
@font-face - CSS: Cascading Style Sheets
syntax @font-face { font-family: "open sans"; src: url("/fonts/opensans-regular-webfont.woff2") format("woff2"), url("/fonts/opensans-regular-webfont.woff") format("woff"); } descriptors font-display determines how a font face is dis
played based on whether and when it is downloaded and ready to use.
Overview of CSS Shapes - CSS: Cascading Style Sheets
this allows the overlay of wrapped content around an image, or the use of an image which is never dis
played on the page purely as a method of creating a complex shape without needing to carefully map a polygon.
Shapes From Images - CSS: Cascading Style Sheets
many demos do this as it helps to show the shape we are following, however the shape-outside property is not related to the image that is dis
played on the page and so you do not need to display an image to use an image to create a shape.
<display-box> - CSS: Cascading Style Sheets
however it also has display: contents specified therefore this <div> will not be rendered, the border and width will no longer apply, and the child element will be dis
played as if the parent had never existed.
<display-outside> - CSS: Cascading Style Sheets
examples in the following example, span elements (normally dis
played as inline elements) are set to display: block and so break onto new lines and expand to fill their container in the inline dimension.
font-size - CSS: Cascading Style Sheets
html { font-size: 62.5%; /* font-size 1em = 10px on default browser settings */ } span { font-size: 1.6rem; } then we apply this css to the same html, which looks like this: <span>outer <span>inner</span> outer</span> in this example, the words “outer inner outer” are all dis
played at 16px (assuming that the browser's font-size has been left at the default value of 10px).
<resolution> - CSS: Cascading Style Sheets
due to the 1:96 fixed ratio of css in to css px, 1dppx is equivalent to 96dpi, which corresponds to the default resolution of images dis
played in css as defined by image-resolution.
scroll-snap-coordinate - CSS: Cascading Style Sheets
ate: 50px 50px; /* single coordinate */ scroll-snap-coordinate: 100px 100px, 100px bottom; /* multiple coordinates */ /* global values */ scroll-snap-coordinate: inherit; scroll-snap-coordinate: initial; scroll-snap-coordinate: unset; if the element has been transformed, the snap coordinates are likewise transformed, thus aligning the snap points with the element as it is dis
played.
Constraint validation - Developer guides
visual styling of constraint validation apart from setting constraints, web developers want to control what messages are dis
played to the users and how they are styled.
HTML5 - Developer guides
fullscreen api controls the usage of the whole screen for a web page or application, without the browser ui dis
played.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
captions, which are specified using webvtt, allow people who are experiencing hearing loss to understand an audio recording's content as the recording is being
played, while transcripts allow people who need additional time to be able to review the recording's content at a pace and format that is comfortable for them.
<div>: The Content Division element - HTML: Hypertext Markup Language
html <div class="shadowbox"> <p>here's a very interesting note dis
played in a lovely shadowed box.</p> </div> css .shadowbox { width: 15em; border: 1px solid #333; box-shadow: 8px 8px 5px #444; padding: 8px 12px; background-image: linear-gradient(180deg, #fff, #ddd 40%, #ccc); } result specifications specification status comment html living standardthe definition of '<div>' in that specification.
<hgroup> - HTML: Hypertext Markup Language
however, given that a key purpose of the <hgroup> element is to affect how headings are dis
played by the outline algorithm defined in the html specification—but the html outline algorithm is not implemented in any browsers—then the <hgroup> semantics are in practice only theoretical.
<input type="datetime-local"> - HTML: Hypertext Markup Language
you can set a default value for the input by including a date and time inside the value attribute, like so: <label for="party">enter a date and time for your party booking:</label> <input id="party" type="datetime-local" name="partydate" value="2017-06-01t08:30"> one thing to note is that the dis
played date and time formats differ from the actual value; the dis
played date and time are formatted according to the user's locale as reported by their operating system, whereas the date/time value is always formatted yyyy-mm-ddthh:mm.
<input type="month"> - HTML: Hypertext Markup Language
you can set a default value for the input control by including a month and year inside the value attribute, like so: <label for="bday-month">what month were you born in?</label> <input id="bday-month" type="month" name="bday-month" value="2017-06"> one thing to note is that the dis
played date format differs from the actual value; most user agents display the month and year in a locale-appropriate form, based on the set locale of the user's operating system, whereas the date value is always formatted yyyy-mm.
<input type="submit"> - HTML: Hypertext Markup Language
<input type="submit" value="send request"> value a domstring used as the button's label events click supported common attributes type and value idl attributes value methods none value an <input type="submit"> element's value attribute contains a domstring which is dis
played as the button's label.
<input type="week"> - HTML: Hypertext Markup Language
you can set a default value for the input by including a value inside the value attribute, like so: <label for="week">what week would you like to start?</label> <input id="week" type="week" name="week" value="2017-w01"> one thing to note is that the dis
played format may differ from the actual value, which is always formatted yyyy-www.
theme-color - HTML: Hypertext Markup Language
example <meta name="theme-color" content="#4285f4"> the following image shows the effect that the <meta> element above will have on a document dis
played in chrome running on an android mobile device.
itemprop - HTML: Hypertext Markup Language
>my band is called <span itemprop="band">four parts water</span>.</p> <p>i am <span itemprop="nationality">british</span>.</p> </div> one property, "image", whose value is a url <div itemscope> <img itemprop="image" src="google-logo.png" alt="google"> </div> when a string value can't be easily read and understood by a person (e.g., a long string of numbers and letters), it can be dis
played using the value attribute of the data element, with the more easily-understood-by-a human-version given in the element's contents (which is not part of the structured data - see example below).
Evolution of HTTP - HTTP
the amount of visual media dis
played, the volume and size of scripts adding interactivity, has also increased: much more data is transmitted over significantly more http requests.
Browser detection using the user agent - HTTP
the first method uses horizontal flexboxes to group the content such that when the page is dis
played to the end user, all the dogs boxes are at the top of the page and all the cat boxes are lower on the page.
Connection management in HTTP/1.x - HTTP
not all types of http requests can be pipelined: only idempotent methods, that is get, head, put and delete, can be re
played safely: should a failure happen, the pipeline content can simply be repeated.
Large-Allocation - HTTP
this error is dis
played when loading a document with a large-allocation header with a non-get http method.
HTTP headers - HTTP
downloads content-disposition indicates if the resource transmitted should be dis
played inline (default behavior without the header), or if it should be handled like a download and the browser should present a “save as” dialog.
HTTP Index - HTTP
255 425 too early browser, client error, http, status code the hypertext transfer protocol (http) 425 too early response status code indicates that the server is unwilling to risk processing a request that might be re
played, which creates the potential for a replay attack.
An overview of HTTP - HTTP
this means some parts of dis
played text are links which can be activated (usually by a click of the mouse) to fetch a new web page, allowing the user to direct their user-agent and navigate through the web.
204 No Content - HTTP
the common use case is to return 204 as a result of a put request, updating a resource, without changing the current content of the page dis
played to the user.
425 Too Early - HTTP
the hypertext transfer protocol (http) 425 too early response status code indicates that the server is unwilling to risk processing a request that might be re
played, which creates the potential for a replay attack.
Using Promises - JavaScript
ct) => { console.log('initial'); resolve(); }) .then(() => { throw new error('something failed'); console.log('do this'); }) .catch(() => { console.error('do that'); }) .then(() => { console.log('do this, no matter what happened before'); }); this will output the following text: initial do that do this, no matter what happened before note: the text do this is not dis
played because the something failed error caused a rejection.
Intl.Locale.prototype.region - JavaScript
knowing the locale's region helps javascript programmers make sure that the content from their sites and applications is correctly dis
played when viewed from different areas of the world.
Intl.NumberFormat() constructor - JavaScript
notation the formatting that should be dis
played for the number, the defaults is "standard" "standard" plain number formatting "scientific" return the order-of-magnitude for formatted number.
for...in - JavaScript
var obj = {a: 1, b: 2, c: 3}; for (const prop in obj) { console.log(`obj.${prop} = ${obj[prop]}`); } // output: // "obj.a = 1" // "obj.b = 2" // "obj.c = 3" iterating own properties the following function illustrates the use of hasownproperty(): the inherited properties are not dis
played.
shortcuts - Web app manifests
a user agent can use these values to assemble a context menu to be dis
played by the operating system when a user engages with the web app's icon.
Web app manifests
splash screens in chrome 47 and later, a splash screen is dis
played for sites launched from a homescreen.
<maction> - MathML
tooltip: when the pointer moves over the expression, a tooltip box with a message is dis
played near the expression.
<math> - MathML
it can have one of the following values: block, which means that this element will be dis
played outside the current span of text, as a block that can be positioned anywhere without changing the meaning of the text; inline, which means that this element will be dis
played inside the current span of text, and cannot be moved out of it without changing the meaning of that text.
<mglyph> - MathML
users will see this dis
played if the image url is wrong, the image is not in one of the supported formats, or until the image is downloaded.
<ms> - MathML
by default, string literals are dis
played as enclosed by double quotes ("); by using the lquote and rquote attributes, you can set custom characters to display.
<msqrt> - MathML
the mathml <msqrt> element is used to display square roots (no index is dis
played).
Digital audio concepts - Web media technologies
when it comes time to play back that sound later, these amplitudes are used to generate an approximation of the original waveform; instead of playing back an exact duplicate of the original, smooth wave, the rougher, blue wave is
played.
Handling media support issues in web content - Web media technologies
a similar concept can be applied to still images; if an image you wish to present is very large and may take time to download (especially for slower devices or connections), you can offer a lower-resolution or alternate version that will be dis
played until the full-quality version is available to be dis
played.
Web media technologies
the mixed reality content can then be dis
played on the device's screen or using goggles or a headset.
Navigation and resource timings - Web Performance
as dis
played in the image below, the navigation process goes from navigationstart, unloadeventstart, unloadeventend, redirectstart, redirectend, fetchstart, domainlookupstart, domainlookupend, connectstart , connectend, secureconnectionstart, requeststart, responsestart, responseend, domloading, dominteractive, domcontentloadedeventstart, domcontentloadedeventend, domcomplete, loadeventstart, and loadeventend...
display - SVG: Scalable Vector Graphics
html, body, svg { height: 100%; } <svg viewbox="0 0 220 100" xmlns="http://www.w3.org/2000/svg"> <!-- here the yellow rectangle is dis
played --> <rect x="0" y="0" width="100" height="100" fill="skyblue"></rect> <rect x="20" y="20" width="60" height="60" fill="yellow"></rect> <!-- here the yellow rectangle is not dis
played --> <rect x="120" y="0" width="100" height="100" fill="skyblue"></rect> <rect x="140" y="20" width="60" height="60" fill="yellow" display="none"></rect> </svg> usage notes default value in...
textLength - SVG: Scalable Vector Graphics
html the html is also simple, with only two dis
played elements contained inside a grouping <div>: <div class="controls"> <input type="range" id="widthslider" min="80" max="978"> <span id="widthdisplay"></span> </div> the <input> element, of type "range", is used to create the slider control the user will manipulate to change the width of the text.
<image> - SVG: Scalable Vector Graphics
svg files dis
played with <image> are treated as an image: external resources aren't loaded, :visited styles aren't applied, and they cannot be interactive.
Getting started - SVG: Scalable Vector Graphics
svg files on the web can be dis
played directly in the browser or embedded in html files via several methods: if the html is xhtml and is delivered as type application/xhtml+xml, the svg can be directly embedded in the xml source.