Search completed in 1.17 seconds.
737 results for "prefix":
Your results are loading. Please wait...
LookupPrefix - Archive of obsolete content
Here is an implementation of lookupPrefix which should work cross-browser. Note that all Gecko-based browsers (including Firefox) support Node.lookupPrefix. This function is not necessary for Gecko-based browsers when used in XHTML. ...
... Here is an implementation of lookupPrefix which should work cross-browser. Note that all Gecko-based browsers (including Firefox) support Node.lookupPrefix. This function is not necessary for Gecko-based browsers when used in XHTML. ...
... Here is an implementation of lookupPrefix which should work cross-browser. Note that all Gecko-based browsers (including Firefox) support Node.lookupPrefix. This function is not necessary for Gecko-based browsers when used in XHTML. ...
...And 6 more matches
Vendor Prefix - MDN Web Docs Glossary: Definitions of Web-related terms
Browser vendors sometimes add prefixes to experimental or nonstandard CSS properties and JavaScript APIs, so developers can experiment with new ideas while--in theory--preventing their experiments from being relied upon and then breaking web developers' code during the standardization process. Developers should wait to include the unprefixed property until browser behavior is standardized. Browser vendors are working to stop using vendor prefixes for experimental features. Web developers have been using them on production Web sites, despite their experimental nature. ...
... behavior is standardized. Browser vendors are working to stop using vendor prefixes for experimental features. Web developers have been using them on production Web sites, despite their experimental nature. This has made it more difficult for browser vendors to ensure compatibility and to work on new features; it's also been harmful to smaller browsers who wind up forced to add other browsers' prefixes in order to load popular web sites. Lately, the trend is to add experimental features behind user-controlled flags or preferences, and to create smaller specifications which can reach a stable state much more quickly. ...
...fficult for browser vendors to ensure compatibility and to work on new features; it's also been harmful to smaller browsers who wind up forced to add other browsers' prefixes in order to load popular web sites. Lately, the trend is to add experimental features behind user-controlled flags or preferences, and to create smaller specifications which can reach a stable state much more quickly. ...
...And 5 more matches
prefix - CSS: Cascading Style Sheets
It may be a <string>, <image>, or <custom-ident>. ...
...It may be a <string>, <image>, or <custom-ident>. ...
...It may be a <string>, <image>, or <custom-ident>. ...
...And 3 more matches
Node.prefix - Web APIs
Web › API › Node › prefix
Obsolete Specifies the behavior when it's set to null. ...
... Obsolete Specifies the behavior when it's set to null. ...
... Obsolete Specifies the behavior when it's set to null. ...
...And 2 more matches
CSSNamespaceRule.prefix - Web APIs
Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of 'namespaceURI' in that specification. ...
... Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of 'namespaceURI' in that specification. ...
... Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of 'namespaceURI' in that specification. ...
... Specifications Specification Status Comment CSS Object Model (CSSOM)The definition of 'namespaceURI' in that specification. ...
SyntaxError: "0"-prefixed octal literals and octal escape seq. are deprecated - JavaScript
The JavaScript strict mode-only exception "0-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead" occurs when deprecated octal literals and octal escape sequences are used. Message SyntaxError: Octal numeric literals and escape characters not allowed in strict mode (Edge) SyntaxError: "0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead Error type SyntaxError in strict mode only. What went wrong? Octal literals and octal escape sequences are deprecated and will throw a SyntaxError in strict mode. With ECMAScript 2015 and later, the standardized syntax uses a leading zero followed by a lowercase or uppercase Latin letter "O" (0o or 0O). Examples "0"-prefixed oct...
...x instead Error type SyntaxError in strict mode only. What went wrong? Octal literals and octal escape sequences are deprecated and will throw a SyntaxError in strict mode. With ECMAScript 2015 and later, the standardized syntax uses a leading zero followed by a lowercase or uppercase Latin letter "O" (0o or 0O). ...
...ill throw a SyntaxError in strict mode. With ECMAScript 2015 and later, the standardized syntax uses a leading zero followed by a lowercase or uppercase Latin letter "O" (0o or 0O). ...
Node.lookupPrefix() - Web APIs
Web › API › Node › lookupPrefix
When multiple prefixes are possible, the result is implementation-dependent. ...
... The Node.lookupPrefix() method returns a DOMString containing the prefix for a given namespace URI, if present, and null if not. When multiple prefixes are possible, the result is implementation-dependent. Due to bug 312019, this method does not work with dynamically assigned namespaces, that is, those set with the Node.prefix property. ...
Attr.prefix - Web APIs
Web › API › Attr › prefix
The Attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified. Before DOM4 this API was defined within the Node interface. Syntax string = attribute.prefix Examples The following logs "x" to the console. <div x:id="example" onclick="console.log(this.attributes[0].prefix)"/> Notes This will only work when a namespace-aware parser is used, i.e. when a document is served with an XML MIME type. This will not work for HTML documents. Specifications Specification Status Comment DOMThe definition of 'Attr: prefix' in that specification. Living Standard DOM4The definition of 'Attr.prefix' in that specification. Obsolete ...
Element.prefix - Web APIs
Web › API › Element › prefix
The Element.prefix read-only property returns the namespace prefix of the specified element, or null if no prefix is specified. Before DOM4 this API was defined within the Node interface. Syntax string = element.prefix Examples The following logs "x" to the console. <x:div onclick="console.log(this.prefix)"/> Notes This will only work when a namespace-aware parser is used, i.e. when a document is served with an XML MIME type. This will not work for HTML documents. Specifications Specification Status Comment DOMThe definition of 'Element: prefix' in that specification. Living Standard ...
IDBObjectStore - Web APIs
om/mdn/browser-compat-data and send us a pull request. ...
...owser-compat-data and send us a pull request. ...
...request. ...
...And 141 more matches
Fullscreen API - Web APIs
ed. This makes it possible to present desired content--such as an online game--using the user's entire screen, removing all browser user interface elements and other applications from the screen until full-screen mode is shut off. See the article Guide to the Fullscreen API for details on how to use the API. Note: Support for this API varies somewhat across browsers, with many requiring vendor prefixes and/or not implementing the latest specification. See the Browser compatibility section below for details on support for this API. You may wish to consider using a library such as Fscreen for vendor agnostic access to the Fullscreen API. Interfaces The Fullscreen API has no interfaces of its own. Instead, it augments several other interfaces to add the methods, properties, and event handlers...
...ove when the user hits the Enter key. function toggleFullScreen() { if (!document.fullscreenElement) { document.documentElement.requestFullscreen(); } else { if (document.exitFullscreen) { document.exitFullscreen(); } } } This starts by looking at the value of the document's fullscreenElement attribute. In a real-world deployment, at this time, you'll want to check for prefixed versions of this (mozFullScreenElement, msFullscreenElement, or webkitFullscreenElement, for example). If the value is null, the document is currently in windowed mode, so we need to switch to full-screen mode; otherwise, it's the element that's currently in full-screen mode. Switching to full-screen mode is done by calling Element.requestFullscreen() on the <video> element. If full-screen mod...
...To change preferences in Firefox, visit about:config. No support 9 -- 65Alternate Name Alternate Name Uses the non-standard name: mozFullScreenIE No support NoOpera Full support 58 Full support ...
...And 67 more matches
IDBIndex - Web APIs
Web › API › IDBIndex
thub.com/mdn/browser-compat-data and send us a pull request. ...
...mdn/browser-compat-data and send us a pull request. ...
... pull request. ...
...And 50 more matches
IDBTransaction - Web APIs
om/mdn/browser-compat-data and send us a pull request. ...
...owser-compat-data and send us a pull request. ...
...request. ...
...And 35 more matches
IDBDatabase - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 32 more matches
IDBFactory - Web APIs
greater in value. IDBFactory.databases A method that returns a list of all available databases, including their names and versions. Example In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) // In the following line, you should include the prefixes of implementations you want to test. window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. // Moreover, you may need references to some window.IDB* objects: window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; window.IDBKeyRang...
... || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. ...
...ub.com/mdn/browser-compat-data and send us a pull request. ...
...And 24 more matches
Index
the cert database -L List existing CRL located in cert database file. -M Modify existing CRL which can be located in cert db or in arbitrary file. If located in file it should be encoded in ASN.1 encode format. -G Arguments Option arguments modify an action and are lowercase. -B Bypass CA signature checks. -P dbprefix Specify the prefix used on the NSS security database files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -a Use ASCII format or allow the use of ASCII format for input and output. This formatting follows RFC #11...
...s are grouped as follows, using these combinations of options and arguments. Options and arguments in square brackets are optional, those without square brackets are required. See "Implemented extensions" for more information regarding extensions and their parameters. ...
...Implemented extensions" for more information regarding extensions and their parameters. ...
...And 23 more matches
FileSystemFlags - Web APIs
m structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...ck out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...tps://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 22 more matches
animation-direction - CSS: Cascading Style Sheets
at-data and send us a pull request. ...
...nd send us a pull request. ...
...bileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetanimation-directionChrome Full support 43 Full support 43 Full support 3Prefixed Prefixed Implemented with the vendor prefix: -webkit-Edge Full support 12 Full support 12 Full support 12Prefixed Prefixed Implemented with the vendor prefix: -webkit-Firefox Full support 16 Full support 16 ...
...And 22 more matches
background-size - CSS: Cascading Style Sheets
r-compat-data and send us a pull request. ...
...nd send us a pull request. ...
...bileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetbackground-sizeChrome Full support 3 Full support 3 Full support 1Prefixed Notes Prefixed Implemented with the vendor prefix: -webkit-Notes WebKit-based browsers originally implemented an older draft of CSS3 background-size in which an omitted second value is treated as duplicating the first value; this draft does not include the contain or cover keywords.Edge Full support 12Firefox Full support 4 Full support ...
...And 20 more matches
min-width - CSS: Cascading Style Sheets
Web › CSS › min-width
Full support 1.5Notes Full support 1.5Notes Notes Samsung Internet uses auto as the initial value for min-width.fit-contentChrome Full support 46 Full support 46 Full support 25Prefixed Prefixed Implemented with the vendor prefix: -webkit-Edge Full support 79 Full support 79 Full support 79Prefixed Prefixed Implemented with the vendor prefix: -webkit-Firefox Full support 3Prefixed Notes ...
... -webkit-Edge Full support 79 Full support 79 Full support 79Prefixed Prefixed Implemented with the vendor prefix: -webkit-Firefox Full support 3Prefixed Notes Full support 3Prefixed Notes Prefixed Implemented with the vendor prefix: -moz-Notes Firefox implements the definitions given in CSS3 Basic Box. This defines available and not fit-available. ...
... 3Prefixed Notes Prefixed Implemented with the vendor prefix: -moz-Notes Firefox implements the definitions given in CSS3 Basic Box. This defines available and not fit-available. ...
...And 20 more matches
Handling common HTML and CSS problems - Learn web development
Previous Overview: Cross browser testing Next With the scene set, we'll now look specifically at the common cross-browser problems you will come across in HTML and CSS code, and what tools can be used to prevent problems from happening, or fix problems that occur. This includes linting code, handling CSS prefixes, using browser dev tools to track down problems, using polyfills to add support into browsers, tackling responsive design problems, and more. Prerequisites: Familiarity with the core HTML, CSS, and JavaScript languages; an idea of the high level principles of cross browser testing. Objective: To be able to diagnose common HTML and CSS cross browser problems, and use appropriate tools and techniques to fix them. The trouble with HTML and CSS Som...
...wser problems Now let's move on to look at some of the most common cross browser HTML and CSS problems. The main areas we'll look at are lack of support for modern features, and layout issues. Older browsers not supporting modern features This is a common problem, especially when you need to support old browsers (such as old IE versions) or you are using features that are implemented using CSS prefixes. In general, most core HTML and CSS functionality (such as basic HTML elements, CSS basic colors and text styling) works across most browsers you'll want to support; more problems are uncovered when you start wanting to use newer features such as Flexbox, or HTML5 video/audio, or even more nascent, CSS Grids or -webkit-background-clip: text. Once you've identified a list of potential problem t...
...r sample HTML. Put the following code into the head of your HTML document, just before the opening <style> tag: <script type="text/javascript" src="MooTools-Core-1.6.0.js"></script> <!--[if (gte IE 6)&(lte IE 8)]> <script type="text/javascript" src="selectivizr-min.js"></script> <![endif]--> If you try running this in an old version of IE, it should work fine. Handling CSS prefixes Another set of problems comes with CSS prefixes -- these are a mechanism originally used to allow browser vendors to implement their own version of a CSS (or JavaScript) feature while the technology is in an experimental state, so they can play with it and get it right without conflicting with other browser's implementations, or the final unprefixed implementations. So for example: Mozilla ...
...And 19 more matches
animation-delay - CSS: Cascading Style Sheets
compat-data and send us a pull request. DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetanimation-delayChrome Full support 43 Full support 43 Full support 3Prefixed Prefixed Implemented with the vendor prefix: -webkit-Edge Full support 12Firefox Full support 16Notes Full support 16Notes Notes Before Firefox 57, Firefox does not repaint elements outside the viewport that are animated into the viewport with a delay. This bug...
... 12Firefox Full support 16Notes Full support 16Notes Notes Before Firefox 57, Firefox does not repaint elements outside the viewport that are animated into the viewport with a delay. This bug affects only some platforms, such as Windows. Full support 49Prefixed Prefixed Implemented with the vendor prefix: -webkit- Full support 44Prefixed Disabled Prefixed Implemented with the vendor prefix: -webkit-Disabled From version 44: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). To change preferences in Firefox, visit about:config. Full support ...
...nted with the vendor prefix: -webkit- Full support 44Prefixed Disabled Prefixed Implemented with the vendor prefix: -webkit-Disabled From version 44: this feature is behind the layout.css.prefixes.webkit preference (needs to be set to true). To change preferences in Firefox, visit about:config. ...
...And 19 more matches
max-height - CSS: Cascading Style Sheets
14Safari iOS Full support 1Samsung Internet Android Full support 1.0fit-content ExperimentalChrome Full support 46 Full support 46 Full support 25Prefixed Prefixed Implemented with the vendor prefix: -webkit-Edge Full support 79 Full support 79 Full support 79Prefixed Prefixed Implemented with the vendor prefix: -webkit-Firefox Partial support 3Prefixed Notes Partial suppor...
...This defines available and not fit-available. ...
...This defines available and not fit-available. ...
...And 19 more matches
max-width - CSS: Cascading Style Sheets
Web › CSS › max-width
14Safari iOS Full support 1Samsung Internet Android Full support 1.0fit-content ExperimentalChrome Full support 46 Full support 46 Full support 25Prefixed Prefixed Implemented with the vendor prefix: -webkit-Edge Full support 79 Full support 79 Full support 79Prefixed Prefixed Implemented with the vendor prefix: -webkit-Firefox Partial support 3Prefixed Notes Partial suppor...
...This defines available and not fit-available. ...
...This defines available and not fit-available. ...
...And 19 more matches
box-direction - CSS: Cascading Style Sheets
tured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
... https://github.com/mdn/browser-compat-data and send us a pull request. ...
...github.com/mdn/browser-compat-data and send us a pull request. ...
...And 18 more matches
Guide to the Fullscreen API - Web APIs
ing fullscreen mode This code is called when the user hits the Enter key, as seen above. ...
...at the value of the fullscreenElement attribute on the document (checking it prefixed with both moz, ms, or webkit). If it's null, the document is currently in windowed mode, so we need to switch to fullscreen mode. Switching to fullscreen mode is done by calling element.requestFullscreen(). If fullscreen mode is already active (fullscreenElement is non-null), we call document.exitFullscreen(). Prefixing Note: Currently, only Firefox 64 and Chrome 71 supports this unprefixed. For the moment not all browsers are implementing the unprefixed version of the API (for vendor agnostic access to the Fullscreen API you can use Fscreen). Here is the table summarizing the prefixes and name differences between them: Standard WebKit (Safari) / Blink (Chrome & Opera) / Edge Gecko (Firefo...
...To change preferences in Firefox, visit about:config. No support 9 -- 65Alternate Name Alternate Name Uses the non-standard name: mozFullScreenIE No support NoOpera Full support 58 Full support ...
...And 16 more matches
image-set() - CSS: Cascading Style Sheets
Web › CSS › image-set
is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
... data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...ease check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 15 more matches
IDBVersionChangeEvent.newVersion - Web APIs
lue A 64-bit integer. Example In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. These events are fired via the custom IDBVersionChangeEvent interface. For a full working example, see our To-do Notifications app (view example live.) var note = document.querySelector("ul"); // In the following line, you should include the prefixes of // implementations you want to test. window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. // Moreover, you may need references to some window.IDB* objects: window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; window.IDBKeyR...
... || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. ...
...ub.com/mdn/browser-compat-data and send us a pull request. ...
...And 14 more matches
Introduction to using XPath in JavaScript - XPath
sult ); Parameters The evaluate function takes a total of five parameters: xpathExpression: A string containing the XPath expression to be evaluated. contextNode: A node in the document against which the xpathExpression should be evaluated, including any and all of its child nodes. The document node is the most commonly used. namespaceResolver: A function that will be passed any namespace prefixes contained within xpathExpression which returns a string representing the namespace URI associated with that prefix. This enables conversion between the prefixes used in the XPath expressions and the possibly different prefixes used in the document. The function can be either: Created by using the createNSResolver method of a XPathEvaluator object. You should use this virtually all of the ...
... A custom user-defined function. See the Using a User Defined Namespace Resolver section in the appendix for details. ...
... A custom user-defined function. See the Using a User Defined Namespace Resolver section in the appendix for details. resultType: A constant that specifies the desired result type to be returned as a result of the evaluation. ...
...And 13 more matches
IDBObjectStore.add() - Web APIs
://github.com/mdn/browser-compat-data and send us a pull request. ...
....com/mdn/browser-compat-data and send us a pull request. ...
... us a pull request. ...
...And 12 more matches
IDBObjectStore.autoIncrement - Web APIs
com/mdn/browser-compat-data and send us a pull request. ...
...rowser-compat-data and send us a pull request. ...
... request. ...
...And 12 more matches
IDBObjectStore.clear() - Web APIs
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 12 more matches
IDBObjectStore.count() - Web APIs
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 12 more matches
IDBObjectStore.createIndex() - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 12 more matches
IDBObjectStore.delete() - Web APIs
github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
... a pull request. ...
...And 12 more matches
IDBObjectStore.deleteIndex() - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 12 more matches
IDBObjectStore.get() - Web APIs
://github.com/mdn/browser-compat-data and send us a pull request. ...
....com/mdn/browser-compat-data and send us a pull request. ...
... us a pull request. ...
...And 12 more matches
IDBObjectStore.index() - Web APIs
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 12 more matches
IDBObjectStore.indexNames - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 12 more matches
IDBObjectStore.keyPath - Web APIs
ithub.com/mdn/browser-compat-data and send us a pull request. ...
.../mdn/browser-compat-data and send us a pull request. ...
...a pull request. ...
...And 12 more matches
IDBObjectStore.name - Web APIs
//github.com/mdn/browser-compat-data and send us a pull request. ...
...com/mdn/browser-compat-data and send us a pull request. ...
...us a pull request. ...
...And 12 more matches
IDBObjectStore.openCursor() - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 12 more matches
IDBObjectStore.put() - Web APIs
://github.com/mdn/browser-compat-data and send us a pull request. ...
....com/mdn/browser-compat-data and send us a pull request. ...
... us a pull request. ...
...And 12 more matches
IDBObjectStore.transaction - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 12 more matches
IDBOpenDBRequest.onblocked - Web APIs
hub.com/mdn/browser-compat-data and send us a pull request. ...
...dn/browser-compat-data and send us a pull request. ...
...pull request. ...
...And 12 more matches
IDBOpenDBRequest.onupgradeneeded - Web APIs
m/mdn/browser-compat-data and send us a pull request. ...
...wser-compat-data and send us a pull request. ...
...equest. ...
...And 12 more matches
IDBTransaction.db - Web APIs
Web › API › IDBTransaction › db
s://github.com/mdn/browser-compat-data and send us a pull request. ...
...b.com/mdn/browser-compat-data and send us a pull request. ...
...d us a pull request. ...
...And 12 more matches
IDBVersionChangeEvent.oldVersion - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 12 more matches
WebKit CSS extensions - CSS: Cascading Style Sheets
WebKit-only properties Note: Avoid using on websites. These properties will only work in WebKit applications. ...
... WebKit-only properties Note: Avoid using on websites. These properties will only work in WebKit applications. ...
... WebKit-only properties Note: Avoid using on websites. These properties will only work in WebKit applications. ...
...And 12 more matches
box-align - CSS: Cascading Style Sheets
Web › CSS › box-align
tructured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
... out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...s://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 12 more matches
JXON - Archive of obsolete content
(oXMLParent.hasChildNodes()) { for (var oNode, sProp, vContent, nItem = 0; nItem < oXMLParent.childNodes.length; nItem++) { oNode = oXMLParent.childNodes.item(nItem); if ((oNode.nodeType - 1 | 1) === 3) { sCollectedTxt += oNode.nodeType === 3 ? ...
...; }\n else { return 0; }\n}", "keyAttributes": { "type": "text/javascript" } }, "keyValue": null }, "keyValue": null } This is a recommanded technique if you don't know the structure of the XML document. Algorithm #2: a less verbose way Here is another, simpler, conversion method, in which nodeAttributes are listed under the same object of child nodes but have the "@" prefix (as suggested by the BadgerFish Convention). As above, the text content is stored into the keyValue property. The constructor's argument can be the entire XML Document, a DocumentFragment or simply an Element node of it. /*\ |*| |*| JXON Snippet #2 MDNDeveloper Network |*| |*| https://developer.mozilla.org/docs/JXON |*| https://developer.mozilla.org/User:fusionchess |*| |*| This framework is...
... (oXMLParent) { if (oXMLParent.hasChildNodes()) { var sCollectedTxt = ""; for (var oNode, sProp, vContent, nItem = 0; nItem < oXMLParent.childNodes.length; nItem++) { oNode = oXMLParent.childNodes.item(nItem); if ((oNode.nodeType - 1 | 1) === 3) { sCollectedTxt += oNode.nodeType === 3 ? ...
...And 11 more matches
IDBCursorWithValue - Web APIs
dn/browser-compat-data and send us a pull request. ...
...r-compat-data and send us a pull request. ...
...est. ...
...And 11 more matches
IDBKeyRange - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 11 more matches
Choosing the right approach - Learn web development
meout(). Browser compatibility DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetrequestAnimationFrameChrome Full support 24 Full support 24 Full support 10Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 23Notes Full support 23Notes Notes Callback parameter is a DOMHighResTimestamp. This means ten microsecond precision and zero time as performance.now(). No...
...the vendor prefix: webkitEdge Full support 12Firefox Full support 23Notes Full support 23Notes Notes Callback parameter is a DOMHighResTimestamp. This means ten microsecond precision and zero time as performance.now(). ...
...ix: webkitEdge Full support 12Firefox Full support 23Notes Full support 23Notes Notes Callback parameter is a DOMHighResTimestamp. This means ten microsecond precision and zero time as performance.now(). ...
...And 10 more matches
DirectoryReaderSync - Web APIs
filesystem: URLs--which are just strings--instead of a list of entries. You can also use the filesystem: URL to look up the entry with resolveLocalFileSystemURL(). That gets you back to a DirectoryEntrySync (as well as FileEntrySync) object. Example In the following code snippet from HTML5Rocks, we create Web Workers and pass data from it to the main app. // Taking care of the browser-specific prefixes. window.resolveLocalFileSystemURL = window.resolveLocalFileSystemURL || window.webkitResolveLocalFileSystemURL; // Create web workers var worker = new Worker('worker.js'); worker.onmessage = function(e) { var urls = e.data.entries; urls.forEach(function(url, i) { window.resolveLocalFileSystemURL(url, function(fileEntry) { // Prin...
...e = function(e) { var urls = e.data.entries; urls.forEach(function(url, i) { window.resolveLocalFileSystemURL(url, function(fileEntry) { // Print out file's name. console.log(fileEntry.name); }); }); }; worker.postMessage({'cmd': 'list'}); The following is Worker.js code that gets the contents of the directory. // Taking care of the browser-specific prefixes. self.requestFileSystemSync = self.webkitRequestFileSystemSync || self.requestFileSystemSync; // Global for holding the list of entry file system URLs. var paths = []; function getAllEntries(dirReader) { var entries = dirReader.readEntries(); for (var i = 0, entry; entry = entries[i]; ++i) { // Stash this entry's filesystem in URL paths.push(entry.toU...
...ructured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 10 more matches
IDBRequest.error - Web APIs
Web › API › IDBRequest › error
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 10 more matches
IDBTransaction.error - Web APIs
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 10 more matches
FileSystemFlags.create - Web APIs
rated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...lease check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...ck out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 9 more matches
FileSystemFlags.exclusive - Web APIs
ed from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...se check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 9 more matches
GamepadEvent - Web APIs
Draft Initial definition Browser compatibility DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetGamepadEventChrome Full support 35 Full support 35 No support 21 -- 34Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support <=18Firefox Full support 29 Full support 29 No support 24 -- 28Disabled Disabled From version 24 until version 28 (exclusive): this feature is behind the dom.gamepad.e...
...til version 28 (exclusive): this feature is behind the dom.gamepad.enabled preference (needs to be set to true). ...
...on 28 (exclusive): this feature is behind the dom.gamepad.enabled preference (needs to be set to true). ...
...And 9 more matches
Window.requestFileSystem() - Web APIs
rned FileSystem is then available for use with the other file system APIs. Even compared to the rest of the File and Directory Entries API, requestFileSystem() is especially non-standard; only Chrome implements it, and all other browser makers have decided that they will not implement it. It has even been removed from the proposed specification. Do not use this method! Syntax This method is prefixed with webkit in all browsers that implement it (that is, Google Chrome). window.requestFileSystem(type, size, successCallback[, errorCallback]); Parameters type The type of storage to request. Specify Window.TEMPORARY if it's acceptable for the browser to delete the files at its own discretion, such as if storage space runs low, or Window.PERSISTENT if you need the files to remain in plac...
...ata. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
.../github.com/mdn/browser-compat-data and send us a pull request. ...
...And 9 more matches
Detecting CSS animation support - CSS: Cascading Style Sheets
when this feature isn't available, and you may wish to handle that case by using JavaScript code to simulate a similar effect. This article, based on this blog post by Chris Heilmann, demonstrates a technique for doing this. ...
...sn't available, and you may wish to handle that case by using JavaScript code to simulate a similar effect. This article, based on this blog post by Chris Heilmann, demonstrates a technique for doing this. ...
...We assume that animation is not supported by setting animation to false. We set the animat...
...And 9 more matches
PKCS #11 Module Specs
- prompt whenever the a private key on this token needs to be access (this is on the entire token, not on a key-by-key basis. timeout- whenever the last explicit login was longer than 'timeout' minutes ago. only - authenticate to the token only when necessary (default). ...
...in the CK_C_INITIALIZE_ARGS structure passed at C_INITIALIZE time. The parameter passed to softoken is a space separated list of name/value pairs exactly like those specified in the PKCS #11 module spec. Valid values are: configDir Configuration Directory where NSS can store persistant state information (typically databases). secmod Name of the secmod database (default = secmod.db). certPrefix Prefix for the cert database. keyPrefix Prefix for the key database. minPWLen Minimum password length in bytes. manufacturerID Override the default manufactureID value for the module returned in the CK_INFO, CK_SLOT_INFO, and CK_TOKEN_INFO structures with an internationalize string (UTF8). This value will be truncated at 32 bytes (no NULL, partial UTF8 characters dropped). libraryDesc...
...luding the default tokens) need to be specified. ...
...And 8 more matches
File.webkitRelativePath - Web APIs
erated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...eck out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 8 more matches
FileEntrySync - Web APIs
rom structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...heck out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 8 more matches
IDBFactory.open() - Web APIs
Web › API › IDBFactory › open
th the current specification's version parameter: var request = window.indexedDB.open("toDoList", 4); In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) var note = document.querySelector("ul"); // In the following line, you should include the prefixes // of implementations you want to test. window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. // Moreover, you may need references to some window.IDB* objects: window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; window.IDBKeyR...
... || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. ...
...//github.com/mdn/browser-compat-data and send us a pull request. ...
...And 8 more matches
Mozilla CSS extensions - CSS: Cascading Style Sheets
Mozilla-only properties and pseudo-classes (avoid using on websites) Note: These properties and pseudo-classes will only work in Mozilla applications such as Firefox, and are not on a standards track. Some of them apply only to XUL elements. ...
... A -moz-animation [Prefixed version still accepted] -moz-animation-delay [Prefixed version still accepted] -moz-animation-direction [Prefixed version still accepted] -moz-animation-dur...
...oz-system-metric(scrollbar-thumb-proportional) :-moz-system-metric(touch-enabled) :-moz-system-metric(windows-default-theme) -moz-user-focus -moz-user-input -moz-user-modify -moz-window-dragging -moz-window-shadow Formerly proprietary properties that are now standard Note: To maximize the compatibility of your CSS, you should use the unprefixed standard properties instead of the prefixed ones listed below. Once a given property is standardized and implemented without the prefix, the prefixed version is typically dropped after a while. A -moz-animation [Prefixed version still accepted] -moz-animation-delay [Prefixed version still accepted] -moz-animation-direction [Prefixed version still accepted] -moz-animation-duration [Prefixed version still accepted] -...
...And 8 more matches
Handling common JavaScript problems - Learn web development
ce then; modern browsers do a good job of supporting "classic JavaScript features", and the requirement to use such code has diminished as the requirement to support older browsers has lessened (although bear in mind that they have not gone away altogether). These days, most cross-browser JavaScript problems are seen: When poor-quality browser-sniffing code, feature-detection code, and vendor prefix usage block browsers from running code they could otherwise use just fine. When developers make use of new/nascent JavaScript features (for example ECMAScript 6 / ECMAScript Next features, modern Web APIs...) in their code, and find that such features don't work in older browsers. We'll explore all these problems and more below. Fixing general JavaScript problems As we said in the previous a...
...etter option -- if you detect whether a feature is supported, you won't need to change your code when new browser versions come out, and the tests are much more reliable. If you come across browser sniffing when joining an existing project, look at whether it can be replaced with something more sensible. Browser sniffing causes all kind of interesting bugs, like bug 1308462. ...
... code when new browser versions come out, and the tests are much more reliable. If you come across browser sniffing when joining an existing project, look at whether it can be replaced with something more sensible. Browser sniffing causes all kind of interesting bugs, like bug 1308462. Handling JavaScript prefixes In the previous article, we included quite a lot of discussion about handing CSS prefixes. ...
...And 7 more matches
NSS tools : certutil
, the validity check defaults to the current system time. -c issuer Identify the certificate of the CA from which a new certificate will derive its authenticity. Use the exact nickname or alias of the CA certificate, or use the CA's email address. Bracket the issuer string with quotation marks if it contains spaces. -d [prefix]directory Specify the database directory containing the certificate and key database files. certutil supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). NSS recognizes the following prefixes: . sql...
... database files. certutil supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). NSS recognizes the following prefixes: . sql: requests the newer database . dbm: requests the legacy database If no prefix is specified the default type is retrieved from NSS_DEFAULT_DB_TYPE. If NSS_DEFAULT_DB_TYPE is not set then dbm: is the default. --dump-ext-val OID For single cert, print binary DER encoding of extension OID. -e Check a certificate's signature during the process of validating a certificate. --email email-address Specify ...
...the nickname string with quotation marks if it contains spaces. -o output-file Specify the output file name for new certificates or binary certificate requests. Bracket the output-file string with quotation marks if it contains spaces. If this argument is not used the output destination defaults to standard output. -P dbPrefix Specify the prefix used on the certificate and key database file. This argument is provided to support legacy servers. Most applications do not use a database prefix. -p phone Specify a contact telephone number to include in new certificates or certificate requests. Bracket this string with quotation marks if it contains spac...
...And 7 more matches
FileSystem - Web APIs
It's not available for use in file or folder picker panels (such as when you use an <input> element with the HTMLInputElement.webkitdirectory a...
...It's not available for use in file or folder picker panels (such as when you use an <input> element with the HTMLInputElement.webkitdirectory attribute.Firefox Full support 50I...
...It's not available for use in file or folder picker panels (such as when you use an <input> element with the HTMLInputElement.webkitdirectory attribute.Firefox Full support 50IE ...
...And 7 more matches
FileSystemSync - Web APIs
om structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...eck out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...ttps://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 7 more matches
column-count - CSS: Cascading Style Sheets
er-compat-data and send us a pull request. ...
...-data and send us a pull request. ...
...sktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetcolumn-countChrome Full support 50 Full support 50 Full support 1Prefixed Prefixed Implemented with the vendor prefix: -webkit-Edge Full support 12 Full support 12 Full support 12Prefixed Prefixed Implemented with the vendor prefix: -webkit-Firefox Full support 52 Full support 52 ...
...And 7 more matches
position - CSS: Cascading Style Sheets
Web › CSS › position
abled Disabled From version 26 until version 48 (exclusive): this feature is behind the layout.css.sticky.enabled preference (needs to be set to true). ...
...re is behind the layout.css.sticky.enabled preference (needs to be set to true). ...
...ind the layout.css.sticky.enabled preference (needs to be set to true). ...
...And 7 more matches
LookupNamespaceURI - Archive of obsolete content
oss-browser. Note that all Gecko-based browsers (including Firefox) support Node.lookupNamespaceURI. This function is not necessary for Gecko-based browsers (though the function will quickly return the standard value for Mozilla browsers) when used to reflect on static documents. However, due to bug 312019, this method does not work with dynamically assigned namespaces (e.g., those set with Node.prefix). /*globals Document, HTMLDocument */ (function () { 'use strict'; var Doc = typeof Document !== 'undefined' ? Document : HTMLDocument; // Support HTMLDocument if Document not present // If Document is present, is this method also present? addLookupNamespaceURI(Doc); addLookupNamespaceURI(Element); function addLookupNamespaceURI (type) { if (!type.prototype.lookupNamespaceURI) { ...
...= 'undefined' ? Document : HTMLDocument; // Support HTMLDocument if Document not present // If Document is present, is this method also present? ...
...Document if Document not present // If Document is present, is this method also present? ...
...And 6 more matches
Introduction to automated testing - Learn web development
ually can be a real pain. Fortunately, there are tools to help us automate some of this pain away. There are two main ways in which we can automate the tests we've been talking about in this module: Use a task runner such as Grunt or Gulp, or npm scripts to run tests and clean up code during your build process. This is a great way to perform tasks like linting and minifying code, adding in CSS prefixes or transpiling nascent JavaScript features for maximum cross-browser reach, and so on. Use a browser automation system like Selenium to run specific tests on installed browsers and return results, alerting you to failures in browsers as they crop up. Commercial cross-browser testing apps like LambdaTest, Sauce Labs, BrowserStack, and TestingBot are based on Selenium, but allow you to access th...
...run your gulp task with the following commands -- try this now: gulp Adding some real tasks to Gulp To add some real tasks to Gulp, we need to think about what we want to do. A reasonable set of basic functionalities to run on our project is as follows: html-tidy, css-lint, and js-hint to lint and report/fix common HTML/CSS/JS errors (see gulp-htmltidy, gulp-csslint, gulp-jshint). Autoprefixer to scan our CSS and add vendor prefixes only where needed (see gulp-autoprefixer). babel to transpile any new JavaScript syntax features to traditional syntax that works in older browsers (see gulp-babel). See the links above for full instructions on the different gulp packages we are using. To use each plugin, you need to first install it via npm, then require any dependencies at the top o...
...ing else with. We can chain as many of these together as we want. We first run htmltidy() on the source, which goes through and fixes errors in our file. The second pipe() function writes the output HTML file to the build directory. In the input version of the file, you may have noticed that we put an empty <p> element; htmltidy has removed this by the time the output file has been created. ...
...And 6 more matches
certutil
issuer string with quotation marks if it contains spaces. -d [sql:]directory Specify the database directory containing the certificate and key database files. certutil supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). If the prefix sql: is not used, then the tool assumes that the given databases are in the old format. -e Check a certificate's signature during the process of validating a certificate. -f password-file Specify a file that will automatically supply the password to include in a certificate or to access a certificate database. This ...
...date. Bracket the nickname string with quotation marks if it contains spaces. -o output-file Specify the output file name for new certificates or binary certificate requests. Bracket the output-file string with quotation marks if it contains spaces. If this argument is not used the output destination defaults to standard output. -P dbPrefix Specify the prefix used on the certificate and key database file. This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -p phone Specify a contact telephone number to include in new certificates or certificate requests. Bracket this string with quotation marks i...
...xtIA Add the Inhibit Any Policy Access extension to the certificate. X.509 certificate extensions are described in RFC 5280. --extSKID Add the Subject Key ID extension to the certificate. X.509 certificate extensions are described in RFC 5280. --source-dir certdir Identify the certificate database directory to upgrade. --source-prefix certdir Give the prefix of the certificate and key databases to upgrade. --upgrade-id uniqueID Give the unique ID of the database to upgrade. --upgrade-token-name name Set the name of the token to use while it is being upgraded. -@ pwfile Give the name of a password file to use for the database being upgraded. Usage and Examp...
...And 6 more matches
FileException - Web APIs
ted from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...o the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...a, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 6 more matches
IDBFactory.cmp() - Web APIs
Web › API › IDBFactory › cmp
://github.com/mdn/browser-compat-data and send us a pull request. ...
....com/mdn/browser-compat-data and send us a pull request. ...
... us a pull request. ...
...And 6 more matches
IDBFactory.deleteDatabase() - Web APIs
om/mdn/browser-compat-data and send us a pull request. ...
...owser-compat-data and send us a pull request. ...
...request. ...
...And 6 more matches
IDBIndex.count() - Web APIs
Web › API › IDBIndex › count
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 6 more matches
IDBIndex.get() - Web APIs
Web › API › IDBIndex › get
://github.com/mdn/browser-compat-data and send us a pull request. ...
....com/mdn/browser-compat-data and send us a pull request. ...
... us a pull request. ...
...And 6 more matches
IDBIndex.getKey() - Web APIs
Web › API › IDBIndex › getKey
github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
... a pull request. ...
...And 6 more matches
IDBIndex.keyPath - Web APIs
Web › API › IDBIndex › keyPath
ithub.com/mdn/browser-compat-data and send us a pull request. ...
.../mdn/browser-compat-data and send us a pull request. ...
...a pull request. ...
...And 6 more matches
IDBIndex.multiEntry - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 6 more matches
IDBIndex.name - Web APIs
Web › API › IDBIndex › name
//github.com/mdn/browser-compat-data and send us a pull request. ...
...com/mdn/browser-compat-data and send us a pull request. ...
...us a pull request. ...
...And 6 more matches
IDBIndex.objectStore - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 6 more matches
IDBIndex.openCursor() - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 6 more matches
IDBIndex.openKeyCursor() - Web APIs
com/mdn/browser-compat-data and send us a pull request. ...
...rowser-compat-data and send us a pull request. ...
... request. ...
...And 6 more matches
IDBIndex.unique - Web APIs
Web › API › IDBIndex › unique
github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
... a pull request. ...
...And 6 more matches
Metadata - Web APIs
Web › API › Metadata
uctured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...t https://github.com/mdn/browser-compat-data and send us a pull request. ...
.../github.com/mdn/browser-compat-data and send us a pull request. ...
...And 6 more matches
Backwards Compatibility of Flexbox - CSS: Cascading Style Sheets
arge number of changes before it became the Candidate Recommendation that we have today. As a Candidate Recommendation we should not see large changes at this point to the spec, however this has not been the case with past flexbox iterations. Flexbox was implemented in an experimental way in several web browsers. At the time the method of creating experimental implementations was to use a vendor prefix. ...
...ore it became the Candidate Recommendation that we have today. As a Candidate Recommendation we should not see large changes at this point to the spec, however this has not been the case with past flexbox iterations. Flexbox was implemented in an experimental way in several web browsers. At the time the method of creating experimental implementations was to use a vendor prefix. The idea of these prefixes was to allow implementations of the spec to be tested and explored by browser engineers and web developers alike without clashing with other implementations. The idea was not to use the experimental implementations in production code. However, prefixes ultimately were used in production code, and changes to the experimental specification caused people to need to update their sites to keep up. ...
...he experimental specification caused people to need to update their sites to keep up. In 2009, the specification looked quite different. To create a flex container you would use display: box and there were a number of box-* properties, which did things that you will recognise from flexbox today. There was an update to the spec that updated the syntax to display: flexbox -- this was again vendor-prefixed. Ultimately the specification was updated to define display: flex as the way to create a flex container. Browser support for the up-to-date version of the specification is excellent from this point forward. There are a few old articles in existence that refer to the older versions of flexbox, which are pretty easy to identify due to the change in the way that a flex container is created. If y...
...And 6 more matches
Namespaces crash course - SVG: Scalable Vector Graphics
nd all its child elements are interpreted by the user agent as belonging to XHTML, except for the <svg> element. The <svg> element has its own xmlns parameter, and by redeclaring the default namespace, this tells the user agent that the <svg> element and its descendants (unless they also redeclare the default namespace) belong to SVG. See, namespaces really aren't that hard. Declaring namespace prefixes XML dialects not only define their own elements, but also their own parameters. By default, parameters don't have a namespace at all, and are only known to be unique because they appear on an element that itself has a unique name. However, sometimes it is necessary to define parameters so that they can be reused on many different elements and still be considered to be the same parameter, indep...
... xmlns:xlink="http://www.w3.org/1999/xlink"> <script xlink:href="cool-script.js" type="text/ecmascript"/> </svg> This example has the rather unusual looking parameter xmlns:xlink. As you may guess from the first 'xmlns' part, this is another namespace declaration. However, instead of setting the default namespace, this namespace declaration sets the namespace for something called a "namespace prefix". In this case, we have chosen to use the prefix xlink (the second part) since the prefix will be used to tell the user agent about attributes that belong to XLink. As their name suggests, namespace prefixes are used to prefix parameter and element names. This is done by putting the namespace prefix and a colon before the parameter name as shown on the <script> element in the example above. This...
...to tell the user agent about attributes that belong to XLink. As their name suggests, namespace prefixes are used to prefix parameter and element names. This is done by putting the namespace prefix and a colon before the parameter name as shown on the <script> element in the example above. This tells the user agent that that particular parameter belongs to the namespace assigned to the namespace prefix (XLink), and is a parameter that can be used with the same meaning on other elements. Note that it is an XML error to use a prefix that hasn't been bound to a namespace name. The binding created by the xmlns:xlink parameter in the example above is absolutely essential for the xlink:href parameter to not cause an error. This XLink parameter is also frequently used in SVG on the <a>, <use> and <im...
...And 6 more matches
Mozilla internal string guide
oesn't fit, an ASCII SUBSTITUTE). mozilla::BulkWriteHandle<T> autoconverts to a writable mozilla::Span<T> and also provides explicit access to itself as Span (AsSpan()) or via component accessors named consistently with those on Span: Elements() and Length() the latter is not the logical length of the string but the writable length of the buffer. The buffer exposed via these methods includes the prefix that you may have requested to be preserved. It's up to you to skip past it so as to not overwrite it. If there's a need to request a different capacity before you are ready to call Finish(), you can call RestartBulkWrite() on the handle. It takes three arguments that match the first three arguments of BulkWrite(). It returns mozilla::Result<mozilla::Ok, nsresult> to indicate success or OOM. Cal...
...g that you would like to search. If the search string is found, start and end will be adjusted to point to the beginning and end of the found pattern. The return value is PR_TRUE or PR_FALSE, indicating whether or not the string was found. An example: const nsAString& str = GetSomeString(); nsAString::const_iterator start, end; str.BeginReading(start); str.EndReading(end); constexpr auto valuePrefix = u"value="_ns; if (FindInReadable(valuePrefix, start, end)) { // end now points to the character after the pattern valueStart = end; } Checking for Memory Allocation failure The String classes now use infallible memory allocation, so you do not need to check for success when allocating/resizing "normal" strings. Most of the functions that modify Strings (Assign(), SetLength(), etc...
...TF16toUTF8(utf16String).get()); CopyUTF8toUTF16(const nsACString&, nsAString&) - converts and copies: // return a UTF-16 value void Foo::GetUnicodeValue(nsAString& result) { CopyUTF8toUTF16(mLocalUTF8Value, result); } AppendUTF8toUTF16(const nsACString&, nsAString&) - converts and appends: // return a UTF-16 value void Foo::GetUnicodeValue(nsAString& result) { result.AssignLiteral("prefix:"); AppendUTF8toUTF16(mLocalUTF8Value, result); } UTF8ToNewUnicode(const nsACString&, PRUint32* aUTF16Count = nsnull) - (avoid if possible) allocates and converts (the optional parameter will contain the number of 16-byte units upon return, if non-null): void Foo::GetUTF16Value(char16_t** result) { *result = UTF8ToNewUnicode(mLocalUTF8Value); } CopyUTF16toUTF8(const nsAString&, n...
...And 5 more matches
Index - Web APIs
Web › API › Index
types. 100 Attr.localName API, DOM, Property, Reference The Attr.localName read-only property returns the local part of the qualified name of an element. 101 Attr.namespaceURI API, DOM, Property, Reference The Attr.namespaceURI read-only property returns the namespace URI of the attribute, or null if the element is not in a namespace. 102 Attr.prefix API, DOM, Property, Reference The Attr.prefix read-only property returns the namespace prefix of the specified attribute, or null if no prefix is specified. 103 AudioBuffer API, AudioBuffer, Interface, Reference, Web Audio API The AudioBuffer interface represents a short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioDat...
... a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). 418 CSSNamespaceRule.namespaceURI API, CSSNamespaceRule, CSSOM, Property, Reference, namespaceURI The CSSNamespaceRule.namespaceURI read-only property returns a DOMString containing the text of the URI of the given namespace. 419 CSSNamespaceRule.prefix API, CSSNamespaceRule, CSSOM, Property, Reference, prefix The CSSNamespaceRule.prefix read-only property returns a DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns null. 420 CSSNumericValue API, CSS Typed Object Model API, CSSNumericValue, Experimental, Houdini, Interface, Reference The CSSNumericValue interfac...
...clientWidth property is zero for inline elements and elements with no CSS; otherwise, it's the inner width of an element in pixels. It includes padding but excludes borders, margins, and vertical scrollbars (if present). ...
...And 5 more matches
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
sions of Firefox, Chrome, Opera, Safari and Edge. However, while evergreen browsers mean that many of us are going to see the majority of users having Grid Layout support very quickly, there are also old or non-supporting browsers to contend with. In this guide we will walk through a variety of strategies for support. The supporting browsers Other than in Internet Explorer, CSS Grid Layout is unprefixed in Safari, Chrome, Opera, Firefox and Edge. Support for all the properties and values detailed in these guides is interoperable across browsers. This means that if you write some Grid Layout code in Firefox, it should work in the same way in Chrome. This is no longer an experimental specification, and you are safe to use it in production. The Internet Explorer and Edge situation It should be...
...ication did not contain all of the properties and values that the up-to-date specification has. There are also substantial differences between what shipped in IE10 and the current specification, even where the properties and values appear the same. This early implementation is also the version of Grid Layout implemented in Edge up to version 15. ...
...in all of the properties and values that the up-to-date specification has. There are also substantial differences between what shipped in IE10 and the current specification, even where the properties and values appear the same. This early implementation is also the version of Grid Layout implemented in Edge up to version 15. ...
...And 5 more matches
Writing forward-compatible websites - Developer guides
This page explains how to write websites that do not break when new browser versions are released. This is especially important for intranets and other non-public websites; if we can't see your code, we can't see that it broke. It's not always possible to follow all of these, but following as many of them as possible will help future-proof your website. JavaScript Prefix all global variable access in onfoo attributes with "window." When an event handler content attribute (onclick, onmouseover, and so forth) is used on HTML element, all name lookup in the attribute first happens on the element itself, then on the element's form if the element is a form control, then on the document, and then on the window (where the global variables you have defined are). For example, if you have th...
...n the future. Sometimes browsers implement a given feature slightly differently. If you have a single code path that works in all the top engines, it means that you are either using features where browser behavior has already converged or, if the behavior hasn't quite converged yet, your code works regardless of which engine's behavior standards turn out to uphold. Browser-specific features and prefixes Don't target hacks at current or future versions of browsers This is also a common instance of assuming that present correlation between bugs implies future correlation between bugs. Targeting hacks at old versions of browsers whose current versions no longer have the bug you're relying on for your hack is OK; once a browser has fixed bug X, you can know for certain that all releases that had...
... browser has fixed bug X, you can know for certain that all releases that had bug X also had bug Y and use the presence of bug X to target workarounds for bug Y. For the purpose of this piece of advice, "current" means the most recent version of a browser you have tested, as in the case of the UA sniffing advice above. Avoid depending on cutting-edge nonstandard features Even if the feature is prefixed, using it could be dangerous: as the specification evolves the browser's prefixed implementation can likewise change to track the specification. And once the feature is standardized, the prefixed version is likely to be removed. Prefixed, non-standard features are provided by browser developers for you to experiment with and offer feedback on, and aren't meant to be deployed. If you choose to ...
...And 5 more matches
NSS tools : crlutil
port a CRL to the cert database -E Erase all CRLs of specified type from the cert database -L List existing CRL located in cert database file. -M Modify existing CRL which can be located in cert db or in arbitrary file. If located in file it should be encoded in ASN.1 encode format. -G Arguments Option arguments modify an action and are lowercase. -B Bypass CA signature checks. -P dbprefix Specify the prefix used on the NSS security database files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -a Use ASCII format or allow the use of ASCII format for input and output. This formatting follows RFC #1113. -c crl-gen-file Specify script file that will be used to co...
...l's capabilities are grouped as follows, using these combinations of options and arguments. Options and arguments in square brackets are optional, those without square brackets are required. See "Implemented extensions" for more information regarding extensions and their parameters. ...
...ackets are required. See "Implemented extensions" for more information regarding extensions and their parameters. ...
...And 4 more matches
NSS tools : pk12util
NSS tools : pk12util Name pk12util -- Export and import keys and certificate to or from a PKCS #12 file and the NSS database Synopsis pk12util [-i p12File|-l p12File|-o p12File] [-d [sql:]directory] [-h tokenname] [-P dbprefix] [-r] [-v] [-k slotPasswordFile|-K slotPassword] [-w p12filePasswordFile|-W p12filePassword] Description The PKCS #12 utility, pk12util, enables sharing certificates among any server that supports PKCS#12. The tool can import certificates and keys from PKCS#12 files into security databases, export certificates, and list certificates and keys. Options and Arguments Options -i p12file Import keys and certificates from a PKCS#12 file into a security database. -l p12file List the keys and certificates in PKCS#12 file. -o p12file Export keys and certi...
... key encryption algorithm. -C certCipher Specify the key cert (overall package) encryption algorithm. -d [sql:]directory Specify the database directory into which to import to or export from certificates and keys. pk12util supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). If the prefix sql: is not used, then the tool assumes that the given databases are in the old format. -h tokenname Specify the name of the token to import into or export from. -k slotPasswordFile Specify the text file containing the slot's password. -K slotPassword Specify the slot's password. -m | --key-len keyLength Specify the desired length of the symmetric key to be used to encrypt the private ...
...ot's password. -K slotPassword Specify the slot's password. -m | --key-len keyLength Specify the desired length of the symmetric key to be used to encrypt the private key. -n | --cert-key-len certKeyLength Specify the desired length of the symmetric key to be used to encrypt the certificates and other meta-data. -n certname Specify the nickname of the cert and private key to export. -P prefix Specify the prefix used on the certificate and key databases. This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -r Dumps all of the data in raw (binary) form. This must be saved as a DER file. The default is to return information in a pretty-print ASCII format, which displays the information about the certificates and pu...
...And 4 more matches
FileSystemDirectoryReader - Web APIs
Full support <=18Alternate Name Full support <=18Alternate Name Alternate Name Uses the non-standard name: WebKitDirectoryReaderFirefox Full support 50IE No support NoOpera Full support YesPrefixed Full support YesPrefixed Prefixed Implemented with the vendor prefix: webkitSafari Full support 11.1WebView Android Full support <=37Alternate Name Full support <=37Alternate Name Alternate Name Uses the non-standar...
... Firefox Full support YesIE No support NoOpera ...
... Firefox Full support YesIE No support NoOpera ? Safari Full support ...
...And 4 more matches
IDBDatabaseException - Web APIs
ta. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
...And 4 more matches
@namespace - CSS: Cascading Style Sheets
@namespace is an at-rule that defines XML namespaces to be used in a CSS style sheet. Syntax /* Default namespace */ @namespace url(XML-namespace-URL); @namespace "XML-namespace-URL"; /* Prefixed namespace */ @namespace prefix url(XML-namespace-URL); @namespace prefix "XML-namespace-URL"; Description The defined namespaces can be used to restrict the universal, type, and attribute selectors to only select elements within that namespace. The @namespace rule is generally only useful when dealing with documents containing multiple namespaces--such as HTML5 with inline SVG or MathML, or XML that mixes multiple vocabularies. Any @namespace rules must follow all @charset and @import rules, and precede all other at-rules and style declarations in a style sheet. @namespace can be used to define ...
... all @charset and @import rules, and precede all other at-rules and style declarations in a style sheet. @namespace can be used to define the default namespace for the style sheet. When a default namespace is defined, all universal and type selectors (but not attribute selectors, see note below) apply only to elements in that namespace. The @namespace rule can also be used to define a namespace prefix. When a universal, type, or attribute selector is prefixed with a namespace prefix, then that selector only matches if the namespace and name of the element or attribute matches. In HTML5, known foreign elements will automatically be assigned namespaces. This means that HTML elements will act as though they are in the XHTML namespace (http://www.w3.org/1999/xhtml), even if there is no xmlns attr...
...ign elements will automatically be assigned namespaces. This means that HTML elements will act as though they are in the XHTML namespace (http://www.w3.org/1999/xhtml), even if there is no xmlns attribute anywhere in the document, and the <svg> and <math> elements will be assigned their proper namespaces (http://www.w3.org/2000/svg and http://www.w3.org/1998/Math/MathML). ...
...And 4 more matches
CSS FAQ - Learn web development
Learn › CSS › Howto › CSS FAQ
ange; } .green { color: green; } <div id="orange" class="green" style="color: red;">This is red</div> The rules are more complicated when the selector has multiple parts. More detailed information about how selector specificity is calculated can be found in the CSS 2.1 Specification chapter 6.4.3. What do the -moz-*, -ms-*, -webkit-*, -o-* and -khtml-* properties do? These properties, called prefixed properties, are extensions to the CSS standard. They allow use of experimental and non-standard features in browsers without polluting the regular namespace, preventing future incompatibilities to arise when the standard is extended. The use of such properties on production websites is not recommended -- they have already created a huge web compatibility mess. For example, many developers only...
...xtensions to the CSS standard. They allow use of experimental and non-standard features in browsers without polluting the regular namespace, preventing future incompatibilities to arise when the standard is extended. The use of such properties on production websites is not recommended -- they have already created a huge web compatibility mess. For example, many developers only using the -webkit- prefixed version of a property when the non-prefixed version is supported across all browsers meant that a feature relying on that property would break in non-webkit-based browsers, completely needlessly. This problem got so bad that other browsers started to implement -webkit- prefixed aliases to improve web compatibility, as specified in the Compatibility Living Standard. In fact most browsers now do...
... a property when the non-prefixed version is supported across all browsers meant that a feature relying on that property would break in non-webkit-based browsers, completely needlessly. This problem got so bad that other browsers started to implement -webkit- prefixed aliases to improve web compatibility, as specified in the Compatibility Living Standard. In fact most browsers now do not use CSS prefixes when implementing experimental features, instead implementing those features only on Nightly browser versions or similar. If you need to use prefixes in your work, you are advised to write your code in a way that uses the prefixed versions first, but then includes a non-prefixed standard version afterwards so it can automatically override the prefixed versions where supported. For example: -m...
...And 3 more matches
NSS tools : pk12util
The tool can import certificates and keys from PKCS#12 files into security databases, export certificates, and list certificates and keys. Options and Arguments Options -i p12...
...he nickname of the cert and private key to export. -d [sql:]directory Specify the database directory into which to import to or export from certificates and keys. pk12util supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). If the prefix sql: is not used, then the tool assumes that the given databases are in the old format. -P prefix Specify the prefix used on the certificate and key databases. This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -h tokenname Specify the name of the token t...
...28 - PKCS12 add cert and key error o 29 - PKCS12 encode error Examples Importing Keys and Certificates The most basic usage of pk12util for importing a certificate or key is the PKCS#12 input file (-i) and some way to specify the security database being accessed (either -d for a directory or -h for a token). pk12util -i p12File [-h tokenname] [-v] [-d [sql:]directory] [-P dbprefix] [-k slotPasswordFile|-K slotPassword] [-w p12filePasswordFile|-W p12filePassword] For example: # pk12util -i /tmp/cert-files/users.p12 -d sql:/home/my/sharednssdb Enter a password which will be used to encrypt your keys. The password should be at least 8 characters long, and should contain at least one non-alphabetic character. Enter new password: Re-enter password: Enter password ...
...And 3 more matches
nsIHttpServer
|string port port or "host:port" * @param object opt optional options. ...
...n server.registerDirectory(path, file); }, registerPathHandler: function(path, handlerCallback) { server.registerPathHandler(path, function (request, response) { var req = createHttpRequest(request); var resp = new HttpResponse(response); handlerCallback(req, resp); }); }, registerPrefixHandler: function(prefix, handlerCallback) { server.registerPrefixHandler(prefix, function (request, response) { var req = createHttpRequest(request); var resp = new HttpResponse(response); handlerCallback(req, resp); }); }, close: function(){ server.stop(function(){}); }, ...
... * @param handler * an object which will handle any requests for the given path, or null to * r...
...And 3 more matches
IDBCursor.advance() - Web APIs
Web › API › IDBCursor › advance
ithub.com/mdn/browser-compat-data and send us a pull request. ...
.../mdn/browser-compat-data and send us a pull request. ...
...a pull request. ...
...And 3 more matches
IDBCursor.continue() - Web APIs
thub.com/mdn/browser-compat-data and send us a pull request. ...
...mdn/browser-compat-data and send us a pull request. ...
... pull request. ...
...And 3 more matches
IDBCursor.delete() - Web APIs
Web › API › IDBCursor › delete
github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
... a pull request. ...
...And 3 more matches
IDBCursor.direction - Web APIs
hub.com/mdn/browser-compat-data and send us a pull request. ...
...dn/browser-compat-data and send us a pull request. ...
...pull request. ...
...And 3 more matches
IDBCursor.key - Web APIs
Web › API › IDBCursor › key
://github.com/mdn/browser-compat-data and send us a pull request. ...
....com/mdn/browser-compat-data and send us a pull request. ...
... us a pull request. ...
...And 3 more matches
IDBCursor.primaryKey - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 3 more matches
IDBCursor.source - Web APIs
Web › API › IDBCursor › source
github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
... a pull request. ...
...And 3 more matches
IDBCursor.update() - Web APIs
Web › API › IDBCursor › update
github.com/mdn/browser-compat-data and send us a pull request. ...
...m/mdn/browser-compat-data and send us a pull request. ...
... a pull request. ...
...And 3 more matches
IDBCursorWithValue.value - Web APIs
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 3 more matches
IDBDatabase.close() - Web APIs
Web › API › IDBDatabase › close
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 3 more matches
IDBDatabase.createObjectStore() - Web APIs
mdn/browser-compat-data and send us a pull request. ...
...er-compat-data and send us a pull request. ...
...uest. ...
...And 3 more matches
IDBDatabase.deleteObjectStore() - Web APIs
mdn/browser-compat-data and send us a pull request. ...
...er-compat-data and send us a pull request. ...
...uest. ...
...And 3 more matches
IDBDatabase.name - Web APIs
Web › API › IDBDatabase › name
//github.com/mdn/browser-compat-data and send us a pull request. ...
...com/mdn/browser-compat-data and send us a pull request. ...
...us a pull request. ...
...And 3 more matches
IDBDatabase.objectStoreNames - Web APIs
/mdn/browser-compat-data and send us a pull request. ...
...ser-compat-data and send us a pull request. ...
...quest. ...
...And 3 more matches
IDBDatabase.onabort - Web APIs
ithub.com/mdn/browser-compat-data and send us a pull request. ...
.../mdn/browser-compat-data and send us a pull request. ...
...a pull request. ...
...And 3 more matches
IDBDatabase.onerror - Web APIs
ithub.com/mdn/browser-compat-data and send us a pull request. ...
.../mdn/browser-compat-data and send us a pull request. ...
...a pull request. ...
...And 3 more matches
IDBDatabase.onversionchange - Web APIs
m/mdn/browser-compat-data and send us a pull request. ...
...wser-compat-data and send us a pull request. ...
...equest. ...
...And 3 more matches
IDBDatabase.transaction() - Web APIs
b.com/mdn/browser-compat-data and send us a pull request. ...
.../browser-compat-data and send us a pull request. ...
...ll request. ...
...And 3 more matches
IDBDatabase.version - Web APIs
ithub.com/mdn/browser-compat-data and send us a pull request. ...
.../mdn/browser-compat-data and send us a pull request. ...
...a pull request. ...
...And 3 more matches
IDBKeyRange.bound() - Web APIs
Web › API › IDBKeyRange › bound
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 3 more matches
IDBKeyRange.lower - Web APIs
Web › API › IDBKeyRange › lower
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 3 more matches
IDBKeyRange.lowerBound() - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 3 more matches
IDBKeyRange.lowerOpen - Web APIs
hub.com/mdn/browser-compat-data and send us a pull request. ...
...dn/browser-compat-data and send us a pull request. ...
...pull request. ...
...And 3 more matches
IDBKeyRange.only() - Web APIs
Web › API › IDBKeyRange › only
//github.com/mdn/browser-compat-data and send us a pull request. ...
...com/mdn/browser-compat-data and send us a pull request. ...
...us a pull request. ...
...And 3 more matches
IDBKeyRange.upper - Web APIs
Web › API › IDBKeyRange › upper
/github.com/mdn/browser-compat-data and send us a pull request. ...
...om/mdn/browser-compat-data and send us a pull request. ...
...s a pull request. ...
...And 3 more matches
IDBKeyRange.upperBound() - Web APIs
ub.com/mdn/browser-compat-data and send us a pull request. ...
...n/browser-compat-data and send us a pull request. ...
...ull request. ...
...And 3 more matches
IDBKeyRange.upperOpen - Web APIs
hub.com/mdn/browser-compat-data and send us a pull request. ...
...dn/browser-compat-data and send us a pull request. ...
...pull request. ...
...And 3 more matches
IDBRequest.result - Web APIs
Web › API › IDBRequest › result
browser-compat-data and send us a pull request. ...
...ompat-data and send us a pull request. ...
.... ...
...And 3 more matches
IDBRequest.source - Web APIs
Web › API › IDBRequest › source
browser-compat-data and send us a pull request. ...
...ompat-data and send us a pull request. ...
.... ...
...And 3 more matches
IDBTransaction.abort() - Web APIs
/browser-compat-data and send us a pull request. ...
...compat-data and send us a pull request. ...
...t. ...
...And 3 more matches
IDBTransaction.mode - Web APIs
n/browser-compat-data and send us a pull request. ...
...-compat-data and send us a pull request. ...
...st. ...
...And 3 more matches
IDBVersionChangeRequest - Web APIs
tructured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
..., please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 3 more matches
element() - CSS: Cascading Style Sheets
Web › CSS › element
send us a pull request. ...
...rerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetelement() ExperimentalChrome No support NoEdge No support NoFirefox Full support 57Prefixed Full support 57Prefixed Prefixed Implemented with the vendor prefix: -moz- No support 29 -- 57Prefixed Notes Prefixed Implemented with the vendor prefix: -moz-Notes -moz-element() is limited to background-image, background, border-image and border-image-source. No support 4 -- 29Prefixed Notes Prefixed Implemented with the vendor prefix: -moz-Notes -moz-element() is ...
... No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android Full support 60Prefixed Full support 60Prefixed Prefixed Implemented with the vendor prefix: -moz- No support 29 -- 60Prefixed Notes Prefixed Implemented with the vendor prefix: -moz-Notes -moz-element() is limited to background-image, background, border-image and border-image-source. No support 4 -- 29Prefixed Notes Pref...
...And 3 more matches
object-fit - CSS: Cascading Style Sheets
ge supports object-fit on img elements only. ...
...ts object-fit on img elements only. ...
...ee Edge issue 13603873 for details.Firefox Full support 36IE No support NoOpera Full support 19 Full support 19 Full support 11.6Prefixed Prefixed Implemented with the vendor prefix: -o-Safari Full support 10WebView Android Full support 4.4.3Chrome Android Full support 31Firefox Android Full support 36Opera Android Full support 19 Full su...
...And 3 more matches
Private Properties - Archive of obsolete content
A private property is a property that is only accessible to member functions of instances of the same class. Unlike other languages, JavaScript does not have native support for private properties. People have come up with several ways to emulate private properties using existing language features. This article discusses two common techniques: one using prefixes, the other closures. Both approaches have drawbacks, they are either not restrictive enough or too restrictive, respectively. A better alternative is to use WeakMap objects, which solve both these problems. However, note that WeakMaps might not be supported by all implementations yet. Also shown here is how to generalize the idea of using WeakMaps, from associating one or more private properties with an object, to associating one or mor...
... one or more private properties are defined. The SDK uses namespaces internally to implement private properties. The final section explains how to work with the particular namespace implementation used by the SDK. It is possible to read this section on its own, but to fully appreciate how namespaces work, and the problem they set out to solve, it is recommended to read the entire article. Using Prefixes A common technique to implement private properties is to prefix each private property name with an underscore. Consider the following example: function Point(x, y) { this._x = x; this._y = y; } The properties _x and _y are intended to be private, and should only be accessed by member functions. To make a private property readable/writable from any function, it's common to define ge...
... define getter/setter functions for the property, respectively: Point.prototype.getX = function () { return this._x; }; Point.prototype.setX = function (x) { this._x = x; }; Point.prototype.getY = function () { return this._y; }; Point.prototype.setY = function (y) { this._y = y; }; The above technique is simple and clearly expresses intent. However, the use of an underscore prefix is just a coding convention and is not enforced by the language: there is nothing to prevent a user from directly accessing a property that is supposed to be private. Using Closures Another common technique, is to define private properties as variables and their getter and setter functions as a closure over these variables: function Point(_x, _y) { this.getX = function () { return ...
...And 2 more matches
Using Dependent Libraries In Extension Components - Archive of obsolete content
nsions/stub/Makefile.in # Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> DEPTH = ../.. ...
...@srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = bsmedberg LIBRARY_NAME = bsmedberg_stub IS_COMPONENT = 1 FORCE_SHARED_LIB = 1 REQUIRES = \ xpcom \ string \ $(NULL) CPPSRCS = bdsStubLoader.cpp EXTRA_DSO_LDOPTS += \ $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \ $(XPCOM_FROZEN_LDOPTS) \ $(NSPR_LIBS) \ $(NULL) include $(topsrcdir)/config/rules.mk DEFINES += -DMOZ_DLL_PREFIX=\"$(DLL_PREFIX)\" extensions/stub/bdsStubLoader.cpp // Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> #include "nscore.h" #include "nsModule.h" #include "prlink.h" #include "nsILocalFile.h" #include "nsStringAPI.h" #include "nsCOMPtr.h" static char const *const kDependentLibraries[] = { // dependent1.dll on windows, libdependent1.so on linux MOZ_DLL_PREFIX "dependent1" MOZ_DL...
...xtensions/stub/bdsStubLoader.cpp // Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> #include "nscore.h" #include "nsModule.h" #include "prlink.h" #include "nsILocalFile.h" #include "nsStringAPI.h" #include "nsCOMPtr.h" static char const *const kDependentLibraries[] = { // dependent1.dll on windows, libdependent1.so on linux MOZ_DLL_PREFIX "dependent1" MOZ_DLL_SUFFIX, MOZ_DLL_PREFIX "dependent2" MOZ_DLL_SUFFIX, nsnull // NOTE: if the dependent libs themselves depend on other libs, the subdependencies // should be listed first. }; // component.dll on windows, libcomponent.so on linux static char kRealComponent[] = MOZ_DLL_PREFIX "component" MOZ_DLL_SUFFIX; nsresult NSGetModule(nsIComponentManager* aCompMgr, nsIFile* aLocation, nsIModule* *aRes...
...And 2 more matches
NSS Tools crlutil
e file. -M Modify existing CRL which can be located in cert db or in arbitrary file. If located in file it should be encoded in ASN.1 encode format. Arguments -B Bypass CA signature checks. -P dbprefix Specify the prefix used on the NSS security database files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -a Use ASCII format or allow the use of ASCII format for input and output. This formatting follows R...
...should be represented in GeneralizedTime format (YYYYMMDDhhmmssZ). Usage The Certificate Revocation List Management Tool's capabilities are grouped as follows, using these combinations of options and arguments. Options and arguments in square brackets are optional, those without square brackets are required. ...
...ion List Management Tool's capabilities are grouped as follows, using these combinations of options and arguments. Options and arguments in square brackets are optional, those without square brackets are required. ...
...And 2 more matches
NSS tools : crlutil
Mozilla › Projects › NSS › tools › crlutil
the cert database -L List existing CRL located in cert database file. -M Modify existing CRL which can be located in cert db or in arbitrary file. If located in file it should be encoded in ASN.1 encode format. -G Arguments Option arguments modify an action and are lowercase. -B Bypass CA signature checks. -P dbprefix Specify the prefix used on the NSS security database files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -a Use ASCII format or allow the use of ASCII format for input and output. This formatting follows RFC #11...
...s are grouped as follows, using these combinations of options and arguments. Options and arguments in square brackets are optional, those without square brackets are required. See "Implemented extensions" for more information regarding extensions and their parameters. ...
...Implemented extensions" for more information regarding extensions and their parameters. ...
...And 2 more matches
Parser API
xpression statement, i.e., a statement consisting of a single expression. interface IfStatement <: Statement { type: "IfStatement"; test: Expression; consequent: Statement; alternate: Statement | null; } An if statement. interface LabeledStatement <: Statement { type: "LabeledStatement"; label: Identifier; body: Statement; } A labeled statement, i.e., a statement prefixed by a break/continue label. interface BreakStatement <: Statement { type: "BreakStatement"; label: Identifier | null; } A break statement. interface ContinueStatement <: Statement { type: "ContinueStatement"; label: Identifier | null; } A continue statement. interface WithStatement <: Statement { type: "WithStatement"; object: Expression; body: Statement; } A...
...an; expression: boolean; } A fat arrow function expression, i.e., `let foo = (bar) => { /* body */ }`. interface SequenceExpression <: Expression { type: "SequenceExpression"; expressions: [ Expression ]; } A sequence expression, i.e., a comma-separated sequence of expressions. interface UnaryExpression <: Expression { type: "UnaryExpression"; operator: UnaryOperator; prefix: boolean; argument: Expression; } A unary operator expression. interface BinaryExpression <: Expression { type: "BinaryExpression"; operator: BinaryOperator; left: Expression; right: Expression; } A binary operator expression. interface AssignmentExpression <: Expression { type: "AssignmentExpression"; operator: AssignmentOperator; left: Pattern; right: Exp...
...: Expression; right: Expression; } A binary operator expression. interface AssignmentExpression <: Expression { type: "AssignmentExpression"; operator: AssignmentOperator; left: Pattern; right: Expression; } An assignment operator expression. interface UpdateExpression <: Expression { type: "UpdateExpression"; operator: UpdateOperator; argument: Expression; prefix: boolean; } An update (increment or decrement) operator expression. interface LogicalExpression <: Expression { type: "LogicalExpression"; operator: LogicalOperator; left: Expression; right: Expression; } A logical operator expression. interface ConditionalExpression <: Expression { type: "ConditionalExpression"; test: Expression; alternate: Expression; consequ...
...And 2 more matches
FileSystemDirectoryEntry - Web APIs
bdirectories, create each child directory in sequence. If you try creating a directory using a full path that includes parent directories that do not exist yet, an error is returned. So create the hierarchy by recursively adding a new path after creating the parent directory. Example In the following code snippet, we create a directory called "Documents." // Taking care of the browser-specific prefixes. window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; window.directoryEntry = window.directoryEntry || window.webkitDirectoryEntry; ... function onFs(fs){ fs.root.getDirectory('Documents', {create:true}, function(directoryEntry){ //directoryEntry.isFile === false //directoryEntry.isDirectory === true //directoryEntry.name === 'Documents' //d...
...ewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetFileSystemDirectoryEntry ExperimentalChrome Full support 8Alternate Name Full support 8Alternate Name Alternate Name Uses the non-standard name: DirectoryEntryEdge Full support 79Prefixed Full support 79Prefixed Prefixed Implemented with the vendor prefix: webkitFirefox Full support 50IE No support NoOpera Full support YesPrefixed Full support YesPrefixed ...
...ed Full support 79Prefixed Prefixed Implemented with the vendor prefix: webkitFirefox Full support 50IE No support NoOpera Full support YesPrefixed Full support YesPrefixed Prefixed Implemented with the vendor prefix: webkitSafari Full support 11.1WebView Android Full support <=37Alternate Name Full support <=37Alternate Name Alternate Name Uses the non-standard name: DirectoryEntryChrome Android Full support ...
...And 2 more matches
IDBEnvironment - Web APIs
ata and send us a pull request. ...
...end us a pull request. ...
...ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetIDBEnvironment DeprecatedNon-standardChrome Full support 24 Full support 24 No support 23 -- 57Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBRequest.onerror - Web APIs
rowser-compat-data and send us a pull request. ...
...mpat-data and send us a pull request. ...
... DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetonerrorChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBRequest.onsuccess - Web APIs
wser-compat-data and send us a pull request. ...
...at-data and send us a pull request. ...
...DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetonsuccessChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBRequest.readyState - Web APIs
ser-compat-data and send us a pull request. ...
...t-data and send us a pull request. ...
...esktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetreadyStateChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBRequest.transaction - Web APIs
er-compat-data and send us a pull request. ...
...-data and send us a pull request. ...
...sktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternettransactionChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBTransaction.objectStore() - Web APIs
er-compat-data and send us a pull request. ...
...-data and send us a pull request. ...
...sktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetobjectStoreChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBTransaction.onabort - Web APIs
rowser-compat-data and send us a pull request. ...
...mpat-data and send us a pull request. ...
... DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetonabortChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBTransaction.oncomplete - Web APIs
ser-compat-data and send us a pull request. ...
...t-data and send us a pull request. ...
...esktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetoncompleteChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
IDBTransaction.onerror - Web APIs
rowser-compat-data and send us a pull request. ...
...mpat-data and send us a pull request. ...
... DesktopMobileChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetonerrorChrome Full support 24 Full support 24 Full support 23Prefixed Prefixed Implemented with the vendor prefix: webkitEdge Full support 12Firefox Full support 16 Full support 16 No support 10 -- 16Prefixed Prefixed Implemented with the vendor prefix: mozIE Partial support 10Opera Full support ...
...And 2 more matches
Node - Web APIs
Web › API › Node
L and XHTML. Node.namespaceURI Read only The namespace URI of this node, or null if it is no namespace. Note: In Firefox 3.5 and earlier, HTML elements are in no namespace. In later versions, HTML elements are in the http://www.w3.org/1999/xhtml/ namespace in both HTML and XML trees. Node.nodePrincipal Obsolete since Gecko 46 A nsIPrincipal representing the node principal. Node.prefix Read only Is a DOMString representing the namespace prefix of the node, or null if no prefix is specified. Node.rootNode Read only Returns a Node object representing the topmost node in the tree, or the current node if it's the topmost node in the tree. This has been replaced by Node.getRootNode(). Methods In addition to the properties below, Node inherits methods from its parent, Event...
...oolean with a value of true if the namespace is the default namespace on the given node or false if not. Node.isEqualNode() Returns a Boolean which indicates whether or not two nodes are of the same type and all their defining data points match. Node.isSameNode() Returns a Boolean value indicating whether or not the two nodes are the same (that is, they reference the same object). Node.lookupPrefix() Returns a DOMString containing the prefix for a given namespace URI, if present, and null if not. When multiple prefixes are possible, the result is implementation-dependent. Node.lookupNamespaceURI() Accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace. Node.normalize(...
...gi") const mistakes = grep(document.body, pattern) console.log(mistakes) Specifications Specification Status Comment DOMThe definition of 'Node' in that specification. Living Standard Added the following methods: getRootNode() DOM4The definition of 'Node' in that specification. Obsolete Removed the following properties: attributes, namespaceURI, prefix, and localName. Removed the following methods: isSupported(), hasAttributes(), getFeature(), setUserData(), and getUserData(). Document Object Model (DOM) Level 3 Core SpecificationThe definition of 'Node' in that specification. Obsolete The methods insertBefore(), replaceChild(), removeChild(), and appendChild() returns one more kind of error (NOT_SUPPORTED_ERR) if called on a...
...And 2 more matches
@document - CSS: Cascading Style Sheets
Web › CSS › @document
rily for user-defined style sheets, though it can be used on author-defined style sheets, too. @document url("https://www.example.com/") { h1 { color: green; } } Syntax An @document rule can specify one or more matching functions. If any of the functions apply to a given URL, the rule will take effect on that URL. The functions available are: url(), which matches an exact URL. url-prefix(), which matches if the document URL starts with the value provided. domain(), which matches if the document URL is on the domain provided (or a subdomain of it). media-document(), with the parameter of video, image, plugin or all. regexp(), which matches if the document URL is matched by the regular expression provided. The expression must match the entire URL. The values provided to the ur...
... matches if the document URL starts with the value provided. domain(), which matches if the document URL is on the domain provided (or a subdomain of it). media-document(), with the parameter of video, image, plugin or all. regexp(), which matches if the document URL is matched by the regular expression provided. The expression must match the entire URL. The values provided to the url(), url-prefix(), domain(), and media-document() functions can be optionally enclosed by single or double quotes. The values provided to the regexp() function must be enclosed in quotes. Escaped values provided to the regexp() function must additionally be escaped from the CSS. For example, a . (period) matches any character in regular expressions. To match a literal period, you would first need to escape it u...
...to escape it using regular expression rules (to \.), then escape that string using CSS rules (to \\.). @document is currently only supported in Firefox; if you wanted to replicate using such functionality in your own non-Firefox browser, you could try using this polyfill by @An-Error94, which uses a combination of a user script, data-* attributes, and attribute selectors. ...
...And 2 more matches
object-position - CSS: Cascading Style Sheets
31Edge Full support 16Firefox Full support 36IE No support NoOpera Full support 19 Full support 19 Full support 11.6Prefixed Prefixed Implemented with the vendor prefix: -o-Safari Full support 10WebView Android Full support 4.4.3Chrome Android Full support 31Firefox Android Full support 36Opera Android Full support ...
... Full support 4.4.3Chrome Android Full support 31Firefox Android Full support 36Opera Android Full support 19 Full support 19 Full support 12Prefixed Prefixed Implemented with the vendor prefix: -o-Safari iOS Full support 10Samsung Internet Android Full support 2.0Support for three-value syntax of positionChrome No support 31 -- 68Edge No support 16 -- 79Firefox No support 36 ...
...value syntax of positionChrome No support 31 -- 68Edge No support 16 -- 79Firefox No support 36 -- 70IE No support NoOpera No support 19 -- 55 No support 19 -- 55 Full support 11.6Prefixed Prefixed Implemented with the vendor prefix: -o-Safari Full support 10WebView Android No support 4.4.3 -- 68Chrome Android No support 31 -- 68Firefox Android Full support 36Opera Android No support 19 -- 48 No suppo...
...And 2 more matches
Creating a cross-browser video player - Developer guides
as clicked, and to move the video to that position by setting its currentTime attribute. Fullscreen The Fullscreen API should be straight forward to use: the user clicks a button, if the video is in fullscreen mode: cancel it, otherwise enter fullscreen mode. Alas it has been implemented in browsers in a number of weird and wonderful ways which requires a lot of extra code to check for various prefixed versions of attributes and methods so as to call the right one. To detect if a browser actually supports the Fullscreen API and that it is enabled, the following may be called: var fullScreenEnabled = !!(document.fullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled || document.webkitSupportsFullscreen || document.webkitFullscreenEnabled || document.createElement(...
...The final tested value, document.createElement('video').webkitRequestFullScreen is required for the last Presto version of Opera (12.14). Note the different letter casing in the various values. The visibility of the fullscreen button depends on whether the browser supports the Fullscreen API and that it is enabled: i...
...The final tested value, document.createElement('video').webkitRequestFullScreen is required for the last Presto version of Opera (12.14). Note the different letter casing in the various values. The visibility of the fullscreen button depends on whether the browser supports the Fullscreen API and that it is enabled: if (!fullScreenEnabled) { full...
...And 2 more matches
Using HTTP cookies - HTTP
Web › HTTP › Cookies
on cross-site requests. Here is an example: Set-Cookie: mykey=myvalue; SameSite=Strict The values of SameSite attribute are case-insensitive. Browsers are migrating to have cookies default to SameSite=Lax. If a cookie is needed to be sent cross-origin, opt out of the SameSite restriction by using the None directive. The None directive requires that the Secure attribute also be used. Cookie prefixes The design of the cookie mechanism is such that a server is unable to confirm that a cookie was set on a secure origin or even to tell where a cookie was originally set. A vulnerable application on a sub-domain can set a cookie with the Domain attribute, which gives access to that cookie on all other subdomains. This mechanism can be abused in a session fixation attack. See session fixation f...
...et on a secure origin or even to tell where a cookie was originally set. A vulnerable application on a sub-domain can set a cookie with the Domain attribute, which gives access to that cookie on all other subdomains. This mechanism can be abused in a session fixation attack. See session fixation for primary mitigation methods. As a defence-in-depth measure, however, it is possible to use cookie prefixes to assert specific facts about the cookie. Two prefixes are available: __Host- If a cookie name has this prefix, it is accepted in a Set-Cookie header only if it is also marked with the Secure attribute, was sent from a secure origin, does not include a Domain attribute, and has the Path attribute set to /. In this way, these cookies can be seen as "domain-locked". __Secure- If a cookie n...
...specific facts about the cookie. Two prefixes are available: __Host- If a cookie name has this prefix, it is accepted in a Set-Cookie header only if it is also marked with the Secure attribute, was sent from a secure origin, does not include a Domain attribute, and has the Path attribute set to /. In this way, these cookies can be seen as "domain-locked". __Secure- If a cookie name has this prefix, it is accepted in a Set-Cookie header only if it is marked with the Secure attribute and was sent from a secure origin. This is weaker than the __Host- prefix. Cookies with these prefixes that are not compliant with their restrictions are rejected by the browser. ...
...And 2 more matches
Set-Cookie - HTTP
onally be wrapped in double quotes and include any US-ASCII characters excluding control characters, Whitespace, double quotes, comma, semicolon, and backslash. Encoding: Many implementations perform URL encoding on cookie values, however it is not required per the RFC specification. It does help satisfying the requirements about which characters are allowed for <cookie-value> though. __Secure- prefix: Cookies names starting with __Secure- (dash is part of the prefix) must be set with the secure flag from a secure page (HTTPS). __Host- prefix: Cookies with names starting with __Host- must be set with the secure flag, must be from a secure page (HTTPS), must not have a domain specified (and therefore aren't sent to subdomains) and the path must be /. Expires=<date> Optional The maximu...
...ould be rejected by the user agent. The following cookie will be rejected if set by a server hosted on originalcompany.com: Set-Cookie: qwerty=219ffwef9w0f; Domain=somecompany.co.uk A cookie for a sub domain of the serving domain will be rejected. ...
...user agent. The following cookie will be rejected if set by a server hosted on originalcompany.com: Set-Cookie: qwerty=219ffwef9w0f; Domain=somecompany.co.uk A cookie for a sub domain of the serving domain will be rejected. ...
...And 2 more matches
<xsl:namespace-alias> - XSLT: Extensible Stylesheet Language Transformations
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes The <xsl:namespace-alias> element is a rarely used device that maps a namespace in the stylesheet to a different namespace in the output tree. The most common use for this element is in generating a stylesheet from another stylesheet. ...
... Optional Attributes None. Type Top-level, must be the child of <xsl:stylesheet> or <xsl:transform>. ...
... Optional Attributes None. Type Top-level, must be the child of <xsl:stylesheet> or <xsl:transform>. ...
...And 2 more matches
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
the stylesheet. No variables are available. The function library is the standard XPath function library. The namespace declarations are determined by the xslt-param-namespace PIs, see below. If the select attribute fails to parse or execute, the PI is ignored (in particular, it does not fall back to the value attribute). ...
...t. No variables are available. The function library is the standard XPath function library. The namespace declarations are determined by the xslt-param-namespace PIs, see below. If the select attribute fails to parse or execute, the PI is ignored (in particular, it does not fall back to the value attribute). ...
...is the standard XPath function library. The namespace declarations are determined by the xslt-param-namespace PIs, see below. If the select attribute fails to parse or execute, the PI is ignored (in particular, it does not fall back to the value attribute). xslt-param-namespace The xslt-param-namespace uses two attributes: prefix The prefix that is mapped. namespace The namespace the prefix maps to. ...
...And 2 more matches
/loader - Archive of obsolete content
ared across modules loaded via this loader. Optional. resolve: provide customized module resolution logic. Optional. id: provide add-on id to attach to loaded modules. Optional. paths The loader needs to be provided with a set of locations to indicate where to find modules loaded using require(). This is provided by a mandatory options.paths hash that represents the mapping between module ID prefixes and locations. There are lots of different possibilities, but the most common setup looks like this: let { Loader } = require('toolkit/loader'); let loader = Loader({ paths: { // Resolve all modules starting with `toolkit/` as follows: // toolkit/foo -> resource://gre/modules/commonjs/toolkit/foo.js // toolkit/foo/bar -> resource://gre/modules/commonjs/toolkit/foo/bar.js ...
...esource:///modules/', // Allow relative URLs and resolve them to add-on root: // ./main -> resource://my-addon/root/main.js './': 'resource://my-addon/root/' } }); The order of keys in paths is irrelevant since they are sorted by keys from longest to shortest to allow overlapping mapping. The example above overlays the base path '' with a different mapping for 'toolkit/' prefixed modules. modules The loader may optionally be provided with a set of module exports. In the SDK we call these "pseudo modules". This feature may be used in a few different ways: To expose an API that doesn't have a JS file with an implementation or is written in an incompatible format such as JSM: let { Loader } = require('toolkit/loader'); let loader = Loader({ modules: { // r...
...tible configuration, like this: let { Loader } = require('toolkit/loader'); let loader = Loader({ // Please note: Illustrated `paths` is expected to be a default base, // but depending on your use case you may have more mappings. paths: { // Resolve all non-relative module requirements to // `resource:///modules/` base URI. '': 'resource:///modules/', // Reserve `toolkit/` prefix for generic, mozilla toolkit modules // and resolve them to `resource://gre/modules/commonjs/toolkit/` URI. 'toolkit/': 'resource://gre/modules/commonjs/toolkit/' }, // Please note: Both `globals` and `modules` are just for illustration // purposes we don't suggest populating them with these values. globals: { // Provide developers with well known `console` object, hopefully ...
...uirer module instance and a version of require exposed to it with this function: let requirer = Module(requirerID, requirerURI); let require = Require(loader, requirer); let boostrap = require(bootstrapID); resolveURI() This function is used by the loader to resolve module URI from an ID using a mapping array generated from the loader's paths option. ...
getAttributeNS - Archive of obsolete content
n getAttributeNSWrapper (thisitem, ns, nsatt) { if (thisitem === null) { return false; } if (thisitem.getAttributeNS) { return thisitem.getAttributeNS(ns, nsatt); } else if (ns === null) { return thisitem.getAttribute(nsatt); } else if (ns === 'http://www.w3.org/XML/1998/namespace') { // This is assumed so don't try to get an xmlns for the 'xml' prefix return thisitem.getAttribute('xml:'+nsatt); // Prefix must be 'xml' per the specs } var attrs2, result; var attrs = thisitem.attributes; var prefixAtt = new RegExp('^(.*):'+nsatt.replace(/\./g, '\\.')+'$'); // e.g., xlink:href // Find any prefixes with the local-name being searched (escape period since only character (besides colon) allowed in an XML Name which needs esca...
...attrs = thisitem.attributes; var prefixAtt = new RegExp('^(.*):'+nsatt.replace(/\./g, '\\.')+'$'); // e.g., xlink:href // Find any prefixes with the local-name being searched (escape period since only character (besides colon) allowed in an XML Name which needs escaping) for (var j = 0; j < attrs.length; j++) { // thisitem's atts // e.g., abc:href, xlink:href while (((result = prefixAtt.exec(attrs[j].nodeName)) !== null) && thisitem.nodeName !== '#document' && thisitem.nodeName !== '#document-fragment') { var xmlnsPrefix = new RegExp('^xmlns:'+result[1]+'$'); // e.g., xmnls:xl, xmlns:xlink // CHECK HIGHER UP FOR XMLNS:PREFIX // Check the current node and if necessary, check for the next matching local name up in the hierar...
...K HIGHER UP FOR XMLNS:PREFIX // Check the current node and if necessary, check for the next matching local name up in the hierarchy (until reaching the document root) while (thisitem.nodeName !== '#document' && thisitem.nodeName !== '#document-fragment') { attrs2 = thisitem.attributes; for (var i = 0; i < attrs2.length; i++) { // Search for any prefixed xmlns declaration on thisitem which match prefixes found above with desired local name if (attrs2[i].nodeName.match(xmlnsPrefix) && attrs2[i].nodeValue === ns ) { // e.g., 'xmlns:xlink' and 'http://www.w3.org/1999/xlink' return attrs[j].nodeValue; } } thisitem = thisitem.parentNode; }...
...eturn attrs[j].nodeValue; } } thisitem = thisitem.parentNode; } } } return ''; // if not found (some implementations return 'null' but this is not standard) } alert(getAttributeNSWrapper (someElement, 'http://www.w3.org/1999/xlink', 'href')); // gets xlink:href, xl:href, etc. on current element, conditionally on whether its prefix matches a declared namespace See also http://www.w3.org/TR/DOM-Level-3-Cor...mespaceURIAlgo ...
Index - Archive of obsolete content
ading subscripts, and exporting/ importing names. We will show how to do each of these things using the built-in Components object provided by Xulrunner application such as Firefox and Thunderbird. 28 Private Properties People have come up with several ways to emulate private properties using existing language features. This article discusses two common techniques: one using prefixes, the other closures. 29 Firefox Compatibility Add-on SDK No summary! 30 Module structure of the SDK Add-on SDK No summary! 32 Porting the Library Detector Add-on SDK, Add-ons, Example, Extensions, Sample code, Tutorial No summary! 33 Program ID No summary! 34 SDK API Lifecycle No summary! ...
... snippets No summary! 193 JavaScript timers JavaScript timers, NeedsBetterPlace No summary! 194 JavaScript Daemons Management DOM, Guide, JavaScript, JavaScript timers, MakeBrowserAgnostic No summary! 195 Label and description Code snippets No summary! 196 LookupNamespaceURI No summary! 197 LookupPrefix No summary! 198 Miscellaneous Add-ons, Code, Code snippets, Extensions, Snippets No summary! 199 Modules No summary! 200 On page load Add-ons, Extensions No summary! 201 Page Loading Code snippets No summary! 202 Post data to window Add-ons, Extensions, NeedsContent No summary! ...
...s well as the syntax for specifying queries. 1661 Multiple Queries XUL, XUL_Template_Guide No summary! 1662 Multiple Rule Example XUL, XUL_Template_Guide No summary! 1663 Multiple Rules XUL, XUL_Template_Guide No summary! 1664 Namespaces XML Namespaces can be used in XUL Templates by binding the namespace URI and prefix to the template element. For example using the following XML document containing a list of people: 1665 RDF Modifications XUL, XUL_Template_Guide No summary! 1666 RDF Query Syntax XUL, XUL_Template_Guide Let's look at a simple query with two statements. Each statement is placed as a direct child of the <query> element within the template. 1667 ...
...ancestors have this pseudo-class applied to them. 2135 :-moz-system-metric() :-moz-system-metric, CSS, CSS:Mozilla Extensions, Non-standard, Obsolete, Pseudo-class, Selector This page was auto-generated because a user created a sub-page to this page. 2136 -moz-windows-compositor @media, CSS, Non-standard, media feature Media: media/visual Accepts min/max prefixes: no 2137 :-moz-system-metric(images-in-menus) CSS, NeedsContent, NeedsExample, Non-standard, Reference, Selector The :-moz-system-metric(images-in-menus) CSS pseudo-class matches an element if the computer's user interface supports images in menus. 2138 :-moz-system-metric(mac-graphite-theme) :-moz-system-metric, CSS, CSS:Mozilla Extensions, Non-standard, Ref...
FC_Initialize
IALIZE_ARGS structure whose members should have the following values: CreateMutex should be NULL. DestroyMutex should be NULL. LockMutex should be NULL. UnlockMutex should be NULL. flags should be CKF_OS_LOCKING_OK. LibraryParameters should point to a string that contains the library parameters. pReserved should be NULL. ...
...RGS structure whose members should have the following values: CreateMutex should be NULL. DestroyMutex should be NULL. LockMutex should be NULL. UnlockMutex should be NULL. flags should be CKF_OS_LOCKING_OK. LibraryParameters should point to a string that contains the library parameters. pReserved should be NULL. The library parameters string has this format: "configdir='dir' certPrefix='prefix1' keyPrefix='prefix2' secmod='file' flags= " Here are some examples. NSS_NoDB_Init(""), which initializes NSS with no databases: "configdir='' certPrefix='' keyPrefix='' secmod='' flags=readOnly,noCertDB,noMod DB,forceOpen,optimizeSpace " Mozilla Firefox initializes NSS with this string (on Windows): "configdir='C:\\Documents and Settings\\wtc\\Application Data\\Mozilla\\Firefox\\Profiles\\de...
...refix2' secmod='file' flags= " Here are some examples. ...
...d='file' flags= " Here are some examples. ...
SpiderMonkey Build Documentation
This is usually the least troublesome thing to do, as it preserves the typical arrangement of lib, bin, and the rest. Note: All directories you pass to configure are recorded in the generated makefile, so you don't need to specify them again until you re-run configure. Building SpiderMonkey as a st...
...This is usually the least troublesome thing to do, as it preserves the typical arrangement of lib, bin, and the rest. Note: All directories you pass to configure are recorded in the generated makefile, so you don't need to specify them again until you re-run configure. Building SpiderMonkey as a static lib...
...This is usually the least troublesome thing to do, as it preserves the typical arrangement of lib, bin, and the rest. Note: All directories you pass to configure are recorded in the generated makefile, so you don't need to specify them again until you re-run configure. Building SpiderMonkey as a static library By default, SpiderMonkey ...
...nabled by default. The js-config script, described below, is the recommended way to determine correct include paths, required libraries, etc. for your embedding to use during compilation. We highly recommend calling the js-config script from your embedding's makefile to set your CFLAGS, LDFLAGS, and so forth. To install SpiderMonkey somewhere other than the default, you must use the configure --prefix option, as described above. Failure to do so may break your js-config.h header or js-config script. Some features detected by the configure script do not work for cross-compilation. Using the js-config script In addition to the SpiderMonkey libraries, header files, and shell, the SpiderMonkey build also produces a shell script named js-config which other build systems can use to find out how ...
nsIXPConnect
[noscript,notxpcom] PRBool defineDOMQuickStubs(in JSContextPtr cx, in JSObjectPtr proto, in PRUint32 flags, in PRUint32 interfaceCount, [array, size_is(interfaceCount)] in nsIIDPtr interfaceArray); jsval evalInSandboxObject(in AString source, in JSContextPtr cx, in nsIXPConnectJSObjectHolder sandbox, in PRBool returnStringOnly); Native code only! void flagSystemFilenamePrefix(in string aFilenamePrefix, in PRBool aWantNativeWrappers); void GarbageCollect(); [noscript,notxpcom] void getCaller(out JSContextPtr aJSContext, out JSObjectPtr aObject); JSVal getCOWForObject(in JSContextPtr aJSContext, in JSObjectPtr aParent, in JSObjectPtr aWrappedObj); Native code only! Obsolete since Gecko 2.0 void getDefaultSecurityManager(out nsIXPC...
...results to come out of the computation (including exceptions) will be coerced into strings created in the sandbox. Return value The result of the evaluation as a jsval. If the caller intends to use the return value from this call, the caller is responsible for rooting the jsval before making a call to this method. ...
...Return value The result of the evaluation as a jsval. If the caller intends to use the return value from this call, the caller is responsible for rooting the jsval before making a call to this method. Exceptions thrown Missing Exception Missing Description flagSystemFilenamePrefix() Preconfigure XPCNativeWrapper automation so that when a scripted caller whose filename starts with filenamePrefix accesses a wrapped native that is not flagged as "system", the wrapped native will be automatically wrapped with an XPCNativeWrapper. void flagSystemFilenamePrefix( in string aFilenamePrefix, in PRBool aWantNativeWrappers ); Parameters aFilenamePrefix The UTF-8 filename prefix to match, which should end with a slash (/) character. aWantNativeWrappers Whether XPConnect should produce ...
... Exceptions thrown Missing Exception Missing Description GarbageCollect() Trigger a JS garbage collection. void GarbageCollect(); Parameters None. ...
Bluetooth.requestDevice() - Web APIs
the criteria. Syntax Bluetooth.requestDevice([options]) .then(function(bluetoothDevice) { ... }) Returns A Promise to a BluetoothDevice object. Parameters options Optional An object that sets options for the device request. The available options are: filters[]: An array of BluetoothScanFilters. This filter consists of an array of BluetoothServiceUUIDs, a name parameter, and a namePrefix parameter. optionalServices[]: An array of BluetoothServiceUUIDs. acceptAllDevices: A Boolean indicating that the requesting script can accept all Bluetooth devices. The default is false. Exceptions TypeError The provided options do not makes sense. For example, options.filters is present and options.acceptAllDevices is true, or if options.filters is not present and options.acceptAl...
...mitted in this context due to security concerns. For example, it is called from insecure origin. Example // Discovery options match any devices advertising: // . The standard heart rate service. // . Both 16-bit service IDs 0x1802 and 0x1803. // . A proprietary 128-bit UUID service c48e6067-5295-48d3-8d5c-0395f61792b1. // . Devices with name "ExampleName". // . ...
...}) .catch(function(error) { console.log("Something went wrong. ...
...}) .catch(function(error) { console.log("Something went wrong. " + error); }); Detailed examples are in the specification. ...
FileSystemEntry - Web APIs
he app. For example, if your app is in http://www.html5rocks.com, open filesystem:http://www.html5rocks.com/temporary/ in a tab. Chrome shows a read-only list of all the files and folders stored the origin of your app. Example To see an example of how toURL() works, see the method description. The snippet below shows you how you can remove a file by name. // Taking care of the browser-specific prefixes. window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; ... // Opening a file system with temporary storage window.requestFileSystem(TEMPORARY, 1024*1024 /*1MB*/, function(fs) { fs.root.getFile('log.txt', {}, function(fileEntry) { fileEntry.remove(function() { console.log('File removed.'); }, onError); }, onError); }, onError); Properties...
...afariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetFileSystemEntry ExperimentalChrome Full support 8Alternate Name Full support 8Alternate Name Alternate Name Uses the non-standard name: EntryEdge Full support 79Prefixed Full support 79Prefixed Prefixed Implemented with the vendor prefix: webkitFirefox Full support 50IE No support NoOpera No support NoSafari Full support 11.1WebView Androi...
... 18Alternate Name Alternate Name Uses the non-standard name: EntryFirefox Android Full support 50Opera Android No support NoSafari iOS Full support 11.3Samsung Internet Android Full support YesPrefixed Full support YesPrefixed Prefixed Implemented with the vendor prefix: webkitcopyTo ExperimentalDeprecatedNon-standardChrome Full support 8Edge Full support 79Firefox No support NoIE No support ...
... No support No supportExperimental. Expect behavior to change in the future.Experimental. Expect behavior to change in the future.Non-standard. Expect poor cross-browser support.Non-standard. Expect poor cross-browser support.Deprecated. Not for use in new websites.Deprecated. Not for use in new websites.Uses a non-standard name.Uses a non-standard name.Requires a vendor prefix or different name for use.Requires a vendor prefix or different name for use. ...
FileSystemFileEntry - Web APIs
peraSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetFileSystemFileEntryChrome Full support 8Alternate Name Full support 8Alternate Name Alternate Name Uses the non-standard name: FileEntryEdge Full support 79Prefixed Full support 79Prefixed Prefixed Implemented with the vendor prefix: webkitFirefox Full support 50IE No support NoOpera No support NoSafari Full support 11.1WebView Androi...
... 18Alternate Name Alternate Name Uses the non-standard name: FileEntryFirefox Android Full support 50Opera Android No support NoSafari iOS Full support 11.3Samsung Internet Android Full support YesPrefixed Full support YesPrefixed Prefixed Implemented with the vendor prefix: webkitcreateWriter DeprecatedNon-standardChrome Full support 8Edge Full support 79Firefox No support 50 -- 52Notes No support 50 -- 52Note...
... ...
...o support No supportNon-standard. Expect poor cross-browser support.Non-standard. Expect poor cross-browser support.Deprecated. Not for use in new websites.Deprecated. Not for use in new websites.See implementation notes.See implementation notes.Uses a non-standard name.Uses a non-standard name.Requires a vendor prefix or different name for use.Requires a vendor prefix or different name for use. ...
Using the Web Speech API - Web APIs
To run the demo, you can clone (or directly download) the Github repo it is part of, open the HTML index file in a supporting desktop browser, or navigate to the live demo URL in a supporting mobile browser like Chrome. Browser support Support for Web Speech API speech recognition is curently limited to Chrome for Desktop and Android -- Chrome has supported it since around version 33 but with prefixed interfaces, so you need to include prefixed versions of them, e.g. webkitSpeechRecognition. HTML and CSS The HTML and CSS for the app is really trivial. We simply have a title, instructions paragraph, and a div into which we output diagnostic messages. <h1>Speech color changer</h1> <p>Tap/click then say a color to change the background color of the app.</p> <div> <p class="output"><em>...d...
... changer</h1> <p>Tap/click then say a color to change the background color of the app.</p> <div> <p class="output"><em>...diagnostic messages</em></p> </div> The CSS provides a very simple responsive styling so that it looks ok across devices. JavaScript Let's look at the JavaScript in a bit more detail. ...
...le responsive styling so that it looks ok across devices. JavaScript Let's look at the JavaScript in a bit more detail. Chrome support As mentioned earlier, Chrome currently supports speech recognition with prefixed properties, therefore at the start of our code we include these lines to feed the right objects to Chrome, and any future implementations that might support the features without a prefix: var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList var SpeechRecognitionEvent = SpeechRecognitionEvent || webkitSpeechRecognitionEvent The grammar The next part of our code defines the grammar we want our app to recognise. The following variable is defined to hold our grammar: var colors = [ 'aqua' , 'azur...
...t is part of, open the HTML index file in a supporting desktop browser, or navigate to the live demo URL in a supporting mobile browser like Chrome, or Firefox OS. Browser support Support for Web Speech API speech synthesis is still getting there across mainstream browsers, and is currently limited to the following: Firefox desktop and mobile support it in Gecko 42+ (Windows)/44+, without prefixes, and it can be turned on by flipping the media.webspeech.synth.enabled flag to true in about:config. Firefox OS 2.5+ supports it, by default, and without the need for any permissions. Chrome for Desktop and Android have supported it since around version 33, without prefixes. HTML and CSS The HTML and CSS are again pretty trivial, simply containing a title, some instructions for...
XPathNSResolver.lookupNamespaceURI() - Web APIs
Return value A DOMString representing the associated namespace URI or null if none is found. ...
... Return value A DOMString representing the associated namespace URI or null if none is found. ...
... Return value A DOMString representing the associated namespace URI or null if none is found. ...
... Return value A DOMString representing the associated namespace URI or null if none is found. ...
:read-only - CSS: Cascading Style Sheets
oidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet:read-onlyChrome Full support 1Edge Full support 13Firefox Full support 78 Full support 78 Full support 1.5Prefixed Prefixed Implemented with the vendor prefix: -moz-IE No support NoOpera Full support 9Safari Full support 4WebView Android Full support <=37Chrome Android Full support 18Fi...
...o support NoOpera Full support 9Safari Full support 4WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 4Prefixed Full support 4Prefixed Prefixed Implemented with the vendor prefix: -moz-Opera Android Full support 10.1Safari iOS Full support 3.2Samsung Internet Android Full support 1.0Legend Ful...
... See also :read-write HTML contenteditable attribute ...
... See also :read-write HTML contenteditable attribute ...
:read-write - CSS: Cascading Style Sheets
idFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet:read-writeChrome Full support 1Edge Full support 13Firefox Full support 78 Full support 78 Full support 1.5Prefixed Prefixed Implemented with the vendor prefix: -moz-IE No support NoOpera Full support 9Safari Full support 4WebView Android Full support <=37Chrome Android Full support 18Fi...
...o support NoOpera Full support 9Safari Full support 4WebView Android Full support <=37Chrome Android Full support 18Firefox Android Full support 4Prefixed Full support 4Prefixed Prefixed Implemented with the vendor prefix: -moz-Opera Android Full support 10.1Safari iOS Full support 3.2Samsung Internet Android Full support 1.0Legend Ful...
... See also :read-only HTML contenteditable attribute ...
... See also :read-only HTML contenteditable attribute ...
-webkit-transform-2d - CSS: Cascading Style Sheets
Examples Basic example @media (-webkit-transform-2d) { div { -webkit-transform: translate(100px, 100px); } } This media feature is only supported by WebKit. ...
... Examples Basic example @media (-webkit-transform-2d) { div { -webkit-transform: translate(100px, 100px); } } This media feature is only supported by WebKit. ...
... Examples Basic example @media (-webkit-transform-2d) { div { -webkit-transform: translate(100px, 100px); } } This media feature is only supported by WebKit. ...
... Examples Basic example @media (-webkit-transform-2d) { div { -webkit-transform: translate(100px, 100px); } } This media feature is only supported by WebKit. ...
initial - CSS: Cascading Style Sheets
Web › CSS › initial
bviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetinitialChrome Full support 1Edge Full support 13Firefox Full support 19 Full support 19 No support 1 -- 24Prefixed Prefixed Implemented with the vendor prefix: -moz-IE No support NoOpera Full support 15Safari Full support 1.2WebView Android Full support 1Chrome Android Full support 18Fi...
...Safari Full support 1.2WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 19 Full support 19 No support 4 -- 24Prefixed Prefixed Implemented with the vendor prefix: -moz-Opera Android Full support 14Safari iOS Full support 1Samsung Internet Android Full support 1.0Legend Full support Full support ...
... See also Use unset to set a property to its inherited value if it inherits, or to its initial value if not. Use revert to reset a property to the value established by the user-agent stylesheet (or by user styles, if any exist). Use inherit to make an element's property the same as its parent. The all property let...
... Full support 1Samsung Internet Android Full support 1.0Legend Full support Full support No support No supportRequires a vendor prefix or different name for use.Requires a vendor prefix or different name for use. See also Use unset to set a property to its inherited value if it inherits, or to its initial value if not. Use revert to reset a property to the value established by the user-agent stylesheet (or by user styles, if any exist). Use inherit to make an element's property the same as its parent. The all property lets you reset all properties to their initial, inheri...
<xsl:stylesheet> - XSLT: Extensible Stylesheet Language Transformations
sl:stylesheet> element (or the equivalent <xsl:transform> element) is the outermost element of a stylesheet. Namespace Declaration A pseudo-attribute required to identify the document as an XSLT stylesheet. Typically this is xmlns:xsl="http://www.w3.org/1999/XSL/Transform". ...
... <xsl:transform> element) is the outermost element of a stylesheet. Namespace Declaration A pseudo-attribute required to identify the document as an XSLT stylesheet. Typically this is xmlns:xsl="http://www.w3.org/1999/XSL/Transform". ...
..."http://www.w3.org/1999/XSL/Transform". Syntax <xsl:stylesheet version="NUMBER" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" id="NAME" extension-element-prefixes="LIST-OF-NAMES" exclude-result-prefixes="LIST-OF-NAMES"> ENTIRE STYLESHEET </xsl:stylesheet> Required Attributes version Specifies the version of XSLT required by this stylesheet. Optional Attributes exclude-result-prefixes Specifies any namespace used in this document that should not be sent to the output document. The list is whitespace separated. extension-element-prefixes Specifies a space-separated list of any namespace prefixes for extension elements in this document. default-collation Specifies the default collation used by all XPath expressions appearing in attributes or text value templates that have...
...pe-annotations Specifies whether type annotations are stripped from the element so the same results are produced whether the source documents have been validated against a schema or not. use-when Determines whether the element and all the nodes that have it as ancestor are excluded from the stylesheet. xpath-default-namespace Specifies the namespace that will be used if the element name is unprefixed or an unprefixed type name within an XPath expression. Type Required outermost element of stylesheet. Specifications Specification Status Comment XSLT 3.0The definition of '<xsl:stylesheet>' in that specification. Recommendation Added the attributes default-mode, expand-text, and use-when. XSLT 2.0 Added the attributes xpath-default-namespa...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
ated by the submodules and creates a single (dynamic) component library: DEPTH = ../../../.. ...
...ponent library: DEPTH = ../../../.. ...
...top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk IS_COMPONENT = 1 MODULE = myextension LIBRARY_NAME = myAdvanced USE_STATIC_LIBS = 1 XPI_NAME = myextension DEFINES += XPCOM_GLUE SHARED_LIBRARY_LIBS = \ $(DIST)/lib/$(LIB_PREFIX)myIntricate_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)myMultifarious_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)xul.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)nss3.$(LIB_SUFFIX) \ $(NULL) CPPSRCS = \ Advanced.cpp \ $(NULL) include $(topsrcdir)/config/rules.mk LOCAL_INCLUDES += \ -I$(srcdir)/../intricate/src \ -I$(srcdir)/../multifarious/src \ $(NULL) The makefile in the advanced/ directory should list the intricate/, multifarious/...
Appendix D: Loading Scripts - Archive of obsolete content
"nsIXMLHttpRequest", "open"); function loadScript(name, context) { // Create the Sandbox let sandbox = Components.utils.Sandbox(context, { sandboxPrototype: context, wantXrays: false }); // Get the caller's filename let file = Components.caller.stack.filename; // Strip off any prefixes added by the sub-script loader // and the trailing filename let directory = file.replace(/.* -> |[^\/]+$/g, ""); let scriptName = directory + name; // Read the script let xmlhttp = XMLHttpRequest("GET", scriptName, false); xmlhttp.overrideMimeType("text/plain"); xmlhttp.send(); let script = xmlhttp.textContent; // Evaluate the script: Components.utils.e...
...me they are loaded which has a significant overhead for large code bases. Although wary authors can choose to cache instances of their modules so that modules are loaded only once globally, this method can be easily misused to re-load scripts for each new window where they would be better loaded only once globally per session. Non-chrome files loaded in this manner will have the current filename prefixed to the filename in their debugging information. For instance, the file "resource://foo/bar.js" loaded from "resource://foo/baz.js" will appear as "resource://foo/baz.js -> resource://foo/bar.js" in stack traces. When loading into a Sandbox object, the same disadvantages apply as above. Examples The following code will load a script into its own context. The script will execute with the secu...
... the sandbox will not be wrapped in XPCNativeWrappers but will still be wrapped in inter-compartment proxies. function loadScript(name, context) { // Create the Sandbox let sandbox = Components.utils.Sandbox(context, { sandboxPrototype: context, wantXrays: false }); // Get the caller's filename let file = Components.caller.stack.filename; // Strip off any prefixes added by the sub-script loader // and the trailing filename let directory = file.replace(/.* -> |[^\/]+$/g, ""); Services.scriptloader.loadSubScript(directory + name, sandbox, "UTF-8"); } loadScript("foo.js", this); JavaScript modules JavaScript modules are used to efficiently load scripts into their own global namespaces. Because these s...
Document Object Model - Archive of obsolete content
xhtml"/> <html:button xmlns:html="http://www.w3.org/1999/xhtml"/> <html:button xmlns:html="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"/> Namespaces are specified using the xmlns attribute. The first button is a XUL element as it has been placed in the XUL namespace. The second element is an XHTML element as it has been given the XHTML namespace. In the third example, the prefix 'html' is mapped to the namespace 'http://www.w3.org/1999/xhtml'. You can also use the prefix syntax with a colon to use a specific namespace . This is used when you are using several namespaces in a document and you need to be more precise with which namespace is meant. This causes an XHTML button to be created for this case. The fourth button is a little confusing, but might clarify that it is...
... The DOM provides a number of namespace related functions similar to the non-namespace ones. ...
...e a specific namespace . This is used when you are using several namespaces in a document and you need to be more precise with which namespace is meant. This causes an XHTML button to be created for this case. The fourth button is a little confusing, but might clarify that it is the URI that is important and not the prefix. The fourth example is a XUL button, not an HTML button, despite what the prefix might say. This is an important distinction. In fact, the actual text used for the prefix is irrelevant when determining what kind of element is used. The DOM provides a number of namespace related functions similar to the non-namespace ones. For example, the getAttributeNS() function is similar to the the getAttribute() function except an additional argument may be supplied to specify an attr...
Using LDAP XPCOM with XULRunner - Archive of obsolete content
ader.cpp: Makefile.in: # Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> DEPTH = ../.. ...
...srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = mozldapstub LIBRARY_NAME = mozldap_stub IS_COMPONENT = 1 FORCE_SHARED_LIB = 1 REQUIRES = \ xpcom \ string \ $(NULL) CPPSRCS = LDAPStubLoader.cpp EXTRA_DSO_LDOPTS += \ $(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \ $(XPCOM_FROZEN_LDOPTS) \ $(NSPR_LIBS) \ $(NULL) include $(topsrcdir)/config/rules.mk DEFINES += -DMOZ_DLL_PREFIX=\"$(DLL_PREFIX)\" LDAPStubLoader.cpp: // Copyright (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> #include "nscore.h" #include "nsModule.h" #include "prlink.h" #include "nsILocalFile.h" #include "nsStringAPI.h" #include "nsCOMPtr.h" static char const *const kDependentLibraries[] = { #ifdef NS_WIN32 MOZ_DLL_PREFIX "nsldap32v50" MOZ_DLL_SUFFIX, MOZ_DLL_PREFIX "nsldappr32v50" MOZ_DLL_SUFF...
...right (c) 2005 Benjamin Smedberg <benjamin@smedbergs.us> #include "nscore.h" #include "nsModule.h" #include "prlink.h" #include "nsILocalFile.h" #include "nsStringAPI.h" #include "nsCOMPtr.h" static char const *const kDependentLibraries[] = { #ifdef NS_WIN32 MOZ_DLL_PREFIX "nsldap32v50" MOZ_DLL_SUFFIX, MOZ_DLL_PREFIX "nsldappr32v50" MOZ_DLL_SUFFIX, #endif //NS_WIN32 #ifdef NS_UNIX MOZ_DLL_PREFIX "ldap50" MOZ_DLL_SUFFIX, MOZ_DLL_PREFIX "prldap50" MOZ_DLL_SUFFIX, #endif //NS_UNIX nsnull }; // component.dll on windows, libcomponent.dll on linux static char kRealComponent[] = MOZ_DLL_PREFIX "mozldap" MOZ_DLL_SUFFIX; nsresult NSGetModule(nsIComponentManager* aCompMgr, nsIFile* aLocation, nsIModule* *aResult) { nsresult rv; nsCOMPtr<nsIFile> libraries; rv =...
Advanced styling effects - Learn web development
with the proprietary -webkit-text-fill-color: transparent; feature, this allows you to clip background images to the shape of the element's text, making for some nice effects. This is not an official standard, but has been implemented across multiple browsers, as it is popular, and used fairly widely by developers. ...
... official standard, but has been implemented across multiple browsers, as it is popular, and used fairly widely by developers. ...
...evelopers. When used in this context, both of the properties would require a -webkit- vendor prefix, even for Non-Webkit/Chrome-based browsers: .text-clip { -webkit-background-clip: text; -webkit-text-fill-color: transparent; } So why have other browsers implemented a -webkit- prefix? Mainly for browser compatibility -- so many web developers have started implementing websites with -webkit- prefixes that it started to look like the other browsers were broken, whereas in actual fact they were following the standards. So they were forced to implement a few such features. This highlights the danger of using non-standard and/or prefixed CSS features in your work -- not only do they cause browser compatibility issues, but they are also subject to change, so your code could break at any time. It...
Supporting older browsers - Learn web development
pport will work, as the browsers that don't have feature query support go away. For now, however, use the approach of doing the older CSS, then overwriting it, for the best support. Older versions of Flexbox In older versions of browsers, you can find previous iterations of the Flexbox specification. ...
...ou can find previous iterations of the Flexbox specification. At the time of writing, this is mostly an issue with Internet Explorer 10, which uses the -ms- prefix for Flexbox. This also means that there are some outdated articles and tutorials in existence; this useful guide helps you check what you are looking at and can also help if you need flex support in very old browsers. ...
...Edge does still understand the old syntax, however, so take care that everything is safely overwritten in your modern grid CSS. ...
Inheritance in JavaScript - Learn web development
nstructor should return Teacher(), as desired, plus we are now inheriting from Person()! Giving Teacher() a new greeting() function To finish off our code, we need to define a new greeting() function on the Teacher() constructor. ...
...eting() function To finish off our code, we need to define a new greeting() function on the Teacher() constructor. ...
... do this is to define it on Teacher()'s prototype -- add the following at the bottom of your code: Teacher.prototype.greeting = function() { let prefix; if (this.gender === 'male' || this.gender === 'Male' || this.gender === 'm' || this.gender === 'M') { prefix = 'Mr.'; } else if (this.gender === 'female' || this.gender === 'Female' || this.gender === 'f' || this.gender === 'F') { prefix = 'Ms.'; } else { prefix = 'Mx.'; } alert('Hello. My name is ' + prefix + ' ' + this.name.last + ', and I teach ' + this.subject + '.'); }; This alerts the teacher's greeting, which also uses an appropriate name prefix for their gender, worked out using a conditional statement. Trying the example out Now that you've entered all the code, try creating an object instance from Teacher(...
Creating our first Vue component - Learn web development
ur data attribute isDone instead of done. So now we need to attach the isDone property to our component. In a similar fashion to how Vue uses {{}} expressions to display JavaScript expressions inside templates, Vue has a special syntax to bind JavaScript expressions to HTML elements and components: v-bind. The v-bind expression looks like this: v-bind:attribute="expression" In other words, you prefix whatever attribute/prop you want to bind to with v-bind:. In most cases, you can use a shorthand for the v-bind property, which is to just prefix the attribute/prop with a colon. So :attribute="expression" works the same as v-bind:attribute="expression". So in the case of the checkbox in our ToDoItem component, we can use v-bind to map the isDone property to the checked attribute on the <input> ...
...e the id is hardcoded. This would result in errors with assistive technology since the id is needed to correctly map labels to their checkboxes. To fix this, we can programmatically set the id in the component data. We can use the lodash package's uniqueid() method to help keep the index unique. This package exports a function that takes in a string and appends a unique integer to the end of the prefix. This will be sufficient for keeping component ids unique. Let's add the package to our project with npm; stop your server and enter the following command into your terminal: npm install --save lodash.uniqueid Note: If you prefer yarn, you could instead use yarn add lodash.uniqueid. We can now import this package into our ToDoItem component. Add the following line at the top of ToDoItem.vue...
...ave lodash.uniqueid Note: If you prefer yarn, you could instead use yarn add lodash.uniqueid. We can now import this package into our ToDoItem component. ...
Adding a new event
ass If you're in case 1 (a simple DOM event), you can skip this section. Add event messages You need to add event messages which are stored by WidgetEvent::message. All messages are defined by macro in "messages" section of BasicEvents.h. Define event class name You need to add an event class name in EventClassList.h. Use NS_EVENT_CLASS macro for adding it. The macro takes two arguments, aPrefix and aName. aPrefix defines prefix of event class name which should be Widget or Internal. Widget should be used if the event class is dispatched from widget. Otherwise, i.e., the event class is just used for internal event class of a DOM event class, it should be Internal. aName defines its event class specific name and it must end with "Event" or "EventBase". The latter is used only for abstru...
... is dispatched from widget. Otherwise, i.e., the event class is just used for internal event class of a DOM event class, it should be Internal. aName defines its event class specific name and it must end with "Event" or "EventBase". The latter is used only for abstruct super event class whose instance will never be created. Please note that aName must not be same as other event classes even if aPrefix is different. I.e., defining both WidgetFooEvent and InternalFooEvent is invalid. Define and implement an event class Then, you need to define and implement an event class. You should choose a good header file from what your event class represents. BasicEvents.h This header file should be used only for defining generic purpose event class such as a common super class of various event classe...
...tored by content. void AssignFooEventData(const InternalFooEvent* aEvent, bool aCopyTargets) This method should copy members from aEvent. First, this method should call its super class's this method. Then, copy the additional members which are defined in the class. If aCopyTargets is false, don't copy its event target related members. All new member variables of event classes must be with "m" prefix. Although, a lot of existing members don't have "m" prefix, but you shouldn't use the legacy local rules. If you need to add methods, it's okay to implement them as inline methods. I.e., you can implement new methods in the header files directly. However, if implementing method isn't small and called from a lot of places, implementing it as inline causes to increase binary size. In this case, y...
How Mozilla's build system works
opsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = layout LIBRARY_NAME = gklayout EXPORT_LIBRARY = 1 IS_COMPONENT = 1 MODULE_NAME = nsLayoutModule CPPSRCS = \ nsLayoutModule.cpp \ $(NULL) SHARED_LIBRARY_LIBS = \ $(DIST)/lib/$(LIB_PREFIX)gkhtmlbase_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmldoc_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmlforms_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmlstyle_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmltable_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \ ...
...UFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmldoc_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmlforms_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmlstyle_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkhtmltable_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkxulbase_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkbase_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkconshared_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkxultree_s.$(LIB_SUFFIX) \ $(DIST)/lib/$(LIB_PREFIX)gkxulgrid_s.$(LIB_SUFFIX) \ $(NULL) include $(topsrcdir)/config/rules.mk SHARED_LIBRARY_LIBS is set to a list of static libraries, which should be linked into this shared...
... Building jar files jar files are used for packaging chrome files (XUL, JavaScript, and CSS). For more information on jar packaging, see this document. Here, we will only cover how to set up a makefile to package jars. Below is an example: DEPTH = ../../../.. ...
Internationalized Domain Names (IDN) Support in Mozilla Browsers
ing of Unicode for Internationalized Domain Names in Applications (IDNA)). The Punycode proposal uses only restricted ASCII characters and numbers (a-z0-9) and a hyphen (-). It was shown to be language independent, superior in compression, compact in code size, round-trip safe, and superior for encoding Chinese/Japanese/Korean characters. The final step of the process is the affixing of the ACE prefix to the output string from the Nameprep/stringprep and Punycode processing. Since the Punycode contains only ASCII characters, it is possible that an output may, though unlikely, coincide with existing domain names. To avoid such a complication, RFC 3490 defines a special prefix "xn--" for the ACE (Punycode) output. Other encodings used different prefixes. e.g. "bq--" for RACE, but all except the ...
...t string from the Nameprep/stringprep and Punycode processing. Since the Punycode contains only ASCII characters, it is possible that an output may, though unlikely, coincide with existing domain names. To avoid such a complication, RFC 3490 defines a special prefix "xn--" for the ACE (Punycode) output. Other encodings used different prefixes. e.g. "bq--" for RACE, but all except the standard ACE prefix "xn--" are now disallowed in IDN. As an example, an output string to be sent to a DNS server for a Japanese domain name, "http://????????.jp", will look like the following in ACE form: http://xn--hckqz9bzb1cyrb.jp Domain Name Registration After the technical standards were established by IETF, the last remaining issue was for domain name registrars to agree on an international guideline on t...
...ains: Using Netscape 7.1 or Mozilla 1.4: Type about:config into the location/URL bar. This will list all the preferences for your current profile. These preferences can be modified or new ones can be created without quitting the browser using the steps described below. Create a new preference item using the menu New > String via a right-mouse click. The name of the preference is: network.IDN_prefix. The value should be "bq--". This will change the default from Puncycode to RACE. Next create another new preference item using the right-mouse click menu New > Boolean. The name of the preference is: network.IDN_testbed. The value should be "true". Now access IDN sites under the .com and .net top domains. You should succeed in reaching the sample sites. Don't forget to set the value of these ...
NSS API Guidelines
es it easier for the developer to learn how to use our functions. This section of the document should grow as we develop our API. First some general rules. These rules are derived from existing coding practices inside the security library, since consistency is more important than debates about what might look nice. Public functions should have the form LAYER_Body(), where LAYER is an all caps prefix for what layer the function lives in, and Body is concatenated English words, where the beginning letter of each word is capitalized (also known as CamelCase). For Example: LAYER_CapitalizedEnglishWords() or CERT_DestroyCertificate(). Data types and typdefs should have the Form LAYERBody, with the same definitions for LAYER as public functions, and Body in camel case English words. For example: ...
...same definitions for LAYER as public functions, and Body in camel case English words. For example: LAYERCapitalizedEnglishWords or SECKEYPrivateKey. Structures should have the same name as their typedefs, with the string Str added to the end. For example LAYERCapitalizedEnglishWordsStr or SECKEYPrivateKeyStr. ...
...For example: LAYER_UPPER_CASE_ENGLISH_WORDS() or DER_CONVERT_BIT_STRING(). Structure members for exposed data structures should have the form capitalizedEnglishWords (the first letter uncapitalized). ...
NSS tools : modutil
s a colon-delimited list of cipher names. Enclose this list in quotation marks if it contains spaces. -dbdir [sql:]directory Specify the database directory in which to access or create security module database files. modutil supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). If the prefix sql: is not used, then the tool assumes that the given databases are in the old format. --dbprefix prefix Specify the prefix used on the database files, such as my_ for my_cert8.db. This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -installdir root-installation-directory Specify the root installation directory relative t...
... Firmware Version: 0.0 Access: NOT Write Protected Login Type: Login required User Pin: Initialized A related command, -rawlist returns information about the database configuration for the modules. (This information can be edited by loading new specs using the -rawadd command.) modutil -rawlist -dbdir sql:/home/my/sharednssdb name="NSS Internal PKCS #11 Module" parameters="configdir=. certPrefix= keyPrefix= secmod=secmod.db flags=readOnly " NSS="trustOrder=75 cipherOrder=100 slotParams={0x00000001=[slotFlags=RSA,RC4,RC2,DES,DH,SHA1,MD5,MD2,SSL,TLS,AES,RANDOM askpw=any timeout=30 ] } Flags=internal,critical" Setting a Default Provider for Security Mechanisms Multiple security modules may provide support for the same security mechanisms. It is possible to set a specific security module ...
...ory Because the SQLite databases are designed to be shared, these are the shared database type. The shared database type is preferred; the legacy format is included for backward compatibility. By default, the tools (certutil, pk12util, modutil) assume that the given security databases follow the more common legacy type. Using the SQLite databases must be manually specified by using the sql: prefix with the given security directory. For example: modutil -create -dbdir sql:/home/my/sharednssdb To set the shared database type as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared database by default, bu...
NSS tools : modutil
Mozilla › Projects › NSS › tools › modutil
uotation marks if it contains spaces. -dbdir [sql:]directory Specify the database directory in which to access or create security module database files. modutil supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). If the prefix sql: is not used, then the tool assumes that the given databases are in the old format. --dbprefix prefix Specify the prefix used on the database files, such as my_ for my_cert8.db. This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -installdir root-installation-dire...
...n: 0.0 Access: NOT Write Protected Login Type: Login required User Pin: Initialized A related command, -rawlist returns information about the database configuration for the modules. (This information can be edited by loading new specs using the -rawadd command.) modutil -rawlist -dbdir sql:/home/my/sharednssdb name="NSS Internal PKCS #11 Module" parameters="configdir=. certPrefix= keyPrefix= secmod=secmod.db flags=readOnly " NSS="trustOrder=75 cipherOrder=100 slotParams={0x00000001=[slotFlags=RSA,RC4,RC2,DES,DH,SHA1,MD5,MD2,SSL,TLS,AES,RANDOM askpw=any timeout=30 ] } Flags=internal,critical" Setting a Default Provider for Security Mechanisms Multiple security modules may provide support for the same security mechanisms. It is possible to set a specific securit...
...e the SQLite databases are designed to be shared, these are the shared database type. The shared database type is preferred; the legacy format is included for backward compatibility. By default, the tools (certutil, pk12util, modutil) assume that the given security databases follow the more common legacy type. Using the SQLite databases must be manually specified by using the sql: prefix with the given security directory. For example: modutil -create -dbdir sql:/home/my/sharednssdb To set the shared database type as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the shared da...
Console messages - Firefox Developer Tools
p for them. Then any messages or errors your source generates will show up in the Web Console with a link back to the original source, not the compressed version. Async stack frames Stack traces show stack frames for async functions separately from those for synchronous functions. When you run code containing an async function, its traces (console.trace or thrown error) are shown with an Async: prefix. CSS Note: CSS warnings and reflow messages are not shown by default, for performance reasons (see bug 1452143). Use the filtering feature to show them. Some CSS messages contain a disclosure triangle at the left of the message. Click it to view more information about the error, as well as which DOM nodes are affected by the error. Reflow events The Web Console also logs reflow events ...
...in a specific string, type in the text box labeled "Filter output". For example, if you entered the string img into the text box, you would have a list something like this: A small "x" icon appears at the right end of the text box when you have entered a string on which to filter the output. Click the "x" icon to clear the filter and show the entire list again. ...
...For example, -/(cool|rad)/ shows only items that do not match the expression /(cool|rad)/. Clearing the log Finally, you can use the trashcan icon on the left to clear the contents of the console. When you clear the console, the console cache is also cleared. This prevents errors that have already been loged from reappearing when you reopen the console. ...
Attr - Web APIs
Web › API › Attr
ages to the console. You should revise your code accordingly. See Deprecated properties and methods for a complete list. Properties name Read only The attribute's name. namespaceURI Read only A DOMString representing the namespace URI of the attribute, or null if there is no namespace. localName Read only A DOMString representing the local part of the qualified name of the attribute. prefix Read only A DOMString representing the namespace prefix of the attribute, or null if no prefix is specified. ownerElement Read only The element holding the attribute. Note: DOM Level 4 removed this property. The assumption was that since you get an Attr object from an Element, you should already know the associated element. As that doesn't hold true in cases like Attr objects being r...
... Gecko 49.0 (Firefox 49.0 / Thunderbird 49.0 / SeaMonkey 2.46). specified Read only This property always returns true. Originally, it returned true if the attribute was explicitly specified in the source code or by a script, and false if its value came from the default one defined in the document's DTD. value The attribute's value. Note: DOM Level 3 defined namespaceURI, localName and prefix on the Node interface. In DOM4 they were moved to Attr. This change is implemented in Chrome since version 46.0 and Firefox since version 48.0. Deprecated properties and methods The following properties have been deprecated. Where available, the appropriate replacement is noted. attributes This property now always returns NULL. childNodes Obsolete since Gecko 14 This property now always...
...ead. setAttributeNode() Use Element.setAttribute() instead. setAttributeNodeNS() Use Element.setAttributeNS() instead. Specifications Specification Status Comment DOMThe definition of 'Attr' in that specification. Living Standard Added ownerElement property back DOM4The definition of 'Attr' in that specification. Obsolete Moved namespaceURI, prefix and localName from Node to this API and removed ownerElement, schemaTypeInfo and isId. Document Object Model (DOM) Level 3 Core SpecificationThe definition of 'Attr' in that specification. Obsolete Initial definition ...
Document.cookie - Web APIs
Web › API › Document › cookie
ink. The none value explicitly states no restrictions will be applied. The cookie will be sent in all requests--both cross-site and same-site. The cookie value string can use encodeURIComponent() to ensure that the string does not contain any commas, semicolons, or whitespace (which are disallowed in cookie values). Some user agent implementations support the following cookie prefixes: __Secure- Signals to the browser that it should only include the cookie in requests transmitted over a secure channel. __Host- Signals to the browser that in addition to the restriction to only use the cookie from a secure origin, the scope of the cookie is limited to a path attribute passed down by the server. If the server omits the path attribute the "directory" of the request URI ...
...ecure origin, the scope of the cookie is limited to a path attribute passed down by the server. If the server omits the path attribute the "directory" of the request URI is used. It also signals that the domain attribute must not be present, which prevents the cookie from being sent to other domains. For Chrome the path attribute must always be the origin. The dash is considered part of the prefix. These flags are only settable with the secure attribute. Note: As you can see from the code above, document.cookie is an accessor property with native setter and getter functions, and consequently is not a data property with a value: what you write is not the same as what you read, everything is always mediated by the JavaScript interpreter. Examples Example #1: Simple usage document.c...
...er its cookies previously stored GET /sample_page.html HTTP/1.1 Host: www.example.org Cookie: cookie_name1=cookie_value1; cookie_name2=cookie_value2 Accept: */* Specifications Specification Status Comment Document Object Model (DOM) Level 2 HTML SpecificationThe definition of 'Document.cookie' in that specification. Obsolete Initial definition Cookie Prefixes Draft ...
IDBVersionChangeEvent.version - Web APIs
Opera for AndroidSafari on iOSSamsung Internetversion DeprecatedNon-standardChrome Full support 12Edge Full support <=18Firefox Full support 16 Full support 16 Full support 10Prefixed Prefixed Implemented with the vendor prefix: mozIE No support NoOpera No support NoSafari No support NoWebView Android Full support YesChrome Android Full support 18Firefox...
... ...
... ...
Using IndexedDB - Web APIs
ving data. Wait for the operation to complete by listening to the right kind of DOM event. Do something with the results (which can be found on the request object). With these big concepts under our belts, we can get to more concrete stuff. Creating and structuring the store Using an experimental version of IndexedDB In case you want to test your code in browsers that still use a prefix, you can use the following code: // In the following line, you should include the prefixes of implementations you want to test. window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. // Moreover, you may need references to some window.IDB* objects: window.IDBTransaction = window...
...Therefore, it is not recommended to use it in production code. It may be preferable to not support a browser than to claim to support it and fail: if (!window.indexedDB) { console.log("Your browser doesn't support a st...
...indow.webkitIDBTransaction || window.msIDBTransaction || {READ_WRITE: "readwrite"}; // This line should only be needed if it is needed to support the object's constants for older browsers window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange; // (Mozilla has never prefixed these objects, so we don't need window.mozIDB*) Beware that implementations that use a prefix may be buggy, or incomplete, or following an old version of the specification. Therefore, it is not recommended to use it in production code. It may be preferable to not support a browser than to claim to support it and fail: if (!window.indexedDB) { console.log("Your browser doesn't support a stable version of IndexedDB. Such and such feature will not be available."); } Opening a database...
Pointer Lock API - Web APIs
daries. It continues to send events regardless of mouse button state. It hides the cursor. Method/properties overview This section provides a brief description of each property and method related to the pointer lock specification. requestPointerLock() The Pointer lock API, similar to the Fullscreen API, extends DOM elements by adding a new method, requestPointerLock(). ...
... calling requestPointerLock() or exitPointerLock(), the pointerlockerror event is dispatched to the document. This is a simple event and contains no extra data. document.addEventListener('pointerlockerror', lockError, false); document.addEventListener('mozpointerlockerror', lockError, false); function lockError(e) { alert("Pointer lock failed"); } Note: until Firefox 50 the above events were prefixed with moz in Firefox. Extensions to mouse events The Pointer lock API extends the normal MouseEvent interface with movement attributes. Two new attributes to mouse events--movementX and movementY--provide the change in mouse positions. The values of the parameters are the same as the difference between the values of MouseEvent properties, screenX and screenY, which are stored in two subsequent...
...m (see source code). The demo looks like this: This demo uses JavaScript to draw a ball on top of an <canvas> element. When you click the canvas, pointer lock is then used to remove the mouse pointer and allow you to move the ball directly using the mouse. Let's see how this works. We set initial x and y positions on the canvas: var x = 50; var y = 50; The pointer lock methods are currently prefixed, so next we'll fork them for the different browser implementations. canvas.requestPointerLock = canvas.requestPointerLock || canvas.mozRequestPointerLock; document.exitPointerLock = document.exitPointerLock || document.mozExitPointerLock; Now we set up an event listener to run the requestPointerLock() method on the canvas when it is clic...
:not() - CSS: Cascading Style Sheets
Web › CSS › :not
ot yet widely supported. ...
... | <id-selector> = <hash-token><class-selector> = '.' <ident-token><attribute-selector> = '[' <wq-name> ']' | '[' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? ...
... | <id-selector> = <hash-token><class-selector> = '.' <ident-token><attribute-selector> = '[' <wq-name> ']' | '[' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? ']'where <attr-matcher> = [ '~' | | | '^' | '$' | '*' ]? ...
:where() - CSS: Cascading Style Sheets
Web › CSS › :where
see is-where. ...
... | <id-selector> = <hash-token><class-selector> = '.' <ident-token><attribute-selector> = '[' <wq-name> ']' | '[' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? ...
... | <id-selector> = <hash-token><class-selector> = '.' <ident-token><attribute-selector> = '[' <wq-name> ']' | '[' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? ']'where <attr-matcher> = [ '~' | | | '^' | '$' | '*' ]? ...
@counter-style - CSS: Cascading Style Sheets
he pre-defined styles aren't fitting their needs. Syntax Descriptors Each @counter-style is identified by a name and has a set of descriptors. system Specifies the algorithm to be used for converting the integer value of a counter to a string representation. negative Lets the author specify symbols to be appended or prepended to the counter representation if the value is negative. prefix Specifies a symbol that should be prepended to the marker representation. Prefixes are added to the representation in the final stage, so in the final representation of the counter, it comes before the negative sign. suffix Specifies, similar to the prefix descriptor, a symbol that is appended to the marker representation. Suffixes come after the marker representation. range Defines th...
...readers. For example, the value of the marker symbol can be read out as numbers or alphabets for ordered lists or as audio cues for unordered lists, based on the value of this descriptor. ...
...For example, the value of the marker symbol can be read out as numbers or alphabets for ordered lists or as audio cues for unordered lists, based on the value of this descriptor. ...
-moz-device-pixel-ratio - CSS: Cascading Style Sheets
The -moz-device-pixel-ratio Gecko-only CSS media feature can be used to apply styles based on the number of device pixels per CSS pixel. Do not use this feature. Use the resolution feature with the dppx unit instead. Note: This media feature is also implemented by Webkit and by IE 11 for Windows Phone 8.1 as -webkit-device-pixel-ratio. ...
...ly styles based on the number of device pixels per CSS pixel. Do not use this feature. Use the resolution feature with the dppx unit instead. Note: This media feature is also implemented by Webkit and by IE 11 for Windows Phone 8.1 as -webkit-device-pixel-ratio. The min and max prefixes as implemented by Gecko are named min--moz-device-pixel-ratio and max--moz-device-pixel-ratio; but the same prefixes as implemented by Webkit are named -webkit-min-device-pixel-ratio and -webkit-max-device-pixel-ratio. ...
...r Windows Phone 8.1 as -webkit-device-pixel-ratio. The min and max prefixes as implemented by Gecko are named min--moz-device-pixel-ratio and max--moz-device-pixel-ratio; but the same prefixes as implemented by Webkit are named -webkit-min-device-pixel-ratio and -webkit-max-device-pixel-ratio. Syntax <number> The number of device pixels per CSS pixel. Media: media/visual Accepts min/max prefixes: yes Examples Basic compatibility example -moz-device-pixel-ratio may be used for compatibility with Firefox older than 16, and alongside -webkit-device-pixel-ratio for compatibility with WebKit-based browsers that do not support dppx. Example: @media (-webkit-min-device-pixel-ratio: 2), /* Webkit-based browsers */ (min--moz-device-pixel-ratio: 2), /* Older Firefox browsers (prio...
@supports - CSS: Cascading Style Sheets
Web › CSS › @supports
<any-value> )where <supports-decl> = ( <declaration> )<supports-selector-fn> = selector( <complex-selector> )where <complex-selector> = <compound-selector> [ <combinator>? <compound-selector> ]*where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
...lass-selector> = '.' <ident-token><attribute-selector> = '[' <wq-name> ']' | '[' <wq-name> <attr-matcher> [ <string-token> | <ident-token> ] <attr-modifier>? ']'where <attr-matcher> = [ '~' | | | '^' | '$' | '*' ]? '='<attr-modifier> = i | s Examples Testing for the support of a given CSS property @supports (animation-name: test) { ... ...
...n> ] <attr-modifier>? ']'where <attr-matcher> = [ '~' | | | '^' | '$' | '*' ]? '='<attr-modifier> = i | s Examples Testing for the support of a given CSS property @supports (animation-name: test) { ... /* CSS applied when animations are supported without a prefix */ @keyframes { /* Other at-rules can be nested inside */ ... } } Testing for the support of a given CSS property or a prefixed version @supports ((perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px)) { ... /* CSS applied when 3D transforms, prefixed or not, are supported */ } Testing for the non-support of a specific CSS property @supports not ((text-align-last: justify) or (-moz-text-align-last: justify)) { ... /* CSS to pr...
outline-color - CSS: Cascading Style Sheets
me for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internetoutline-colorChrome Full support 1Edge Full support 12Firefox Full support 1.5 Full support 1.5 No support 1 -- 3.6Prefixed Prefixed Implemented with the vendor prefix: -moz-IE Full support 8Opera Full support 7Safari Full support 1.2WebView Android Full support 37Chrome Android Full support 18F...
... ...
... ...
Writing Web Audio API code that works in every browser - Developer guides
Furthermore, as a result of the spec being still in flux, some browsers use deprecated properties and method names that are not present in standards-compliant browsers: Safari uses the old method names, Firefox uses the new ones, and Chrome and Opera use both. ...
...Furthermore, as a result of the spec being still in flux, some browsers use deprecated properties and method names that are not present in standards-compliant browsers: Safari uses the old method names, Firefox uses the new ones, and Chrome and Opera use both. ...
...bly works in the future, or at least, works with a minimum amount of changes. Is there a way to satisfy all these constraints at the same time? Probably! Writing for today (and tomorrow) First, get a copy of AudioContext-MonkeyPatch by Chris Wilson. This little library will "normalise" the interfaces for you and make it look as if your code is running in a standards compliant browser, by aliasing prefixed names to the unprefixed versions. And it won't do anything if the unprefixed versions are already present. Once you include it in your page, you can write in "modern Web Audio API" style, and do things such as: var audioContext = new AudioContext(); everywhere, including Chrome/ium, Opera, Safari, and ---of course!--- Firefox. Also, if new methods such as start are not detected in some nodes, ...
The HTML autocomplete attribute - HTML: Hypertext Markup Language
e its own judgement. "name" The field expects the value to be a person's full name. Using "name" rather than breaking the name down into its components is generally preferred because it avoids dealing with the wide diversity of human names and how they are structured; however, you can use the following autocomplete values if you do need to break the name down into its components: "honorific-prefix" The prefix or title, such as "Mrs.", "Mr.", "Miss", "Ms.", "Dr.", or "Mlle.". "given-name" The given (or "first") name. "additional-name" The middle name. "family-name" The family (or "last") name. "honorific-suffix" The suffix, such as "Jr.", "B.Sc.", "PhD.", "MBASW", or "IV". "nickname" A nickname or handle. "email" An email address. "username" A username or accou...
...one number, including the country code. If you need to break the phone number up into its components, you can use these values for those fields: "tel-country-code" The country code, such as "1" for the United States, Canada, and other areas in North America and parts of the Caribbean. "tel-national" The entire phone number without the country code component, including a country-internal prefix. For the phone number "1-855-555-6502", this field's value would be "855-555-6502". "tel-area-code" The area code, with any country-internal prefix applied if appropriate. "tel-local" The phone number without the country or area code. This can be split further into two parts, for phone numbers which have an exchange number and then a number within the exchange. For the phone number "555-6...
... "tel-extension" A telephone extension code within the phone number, such as a room or suite number in a hotel or an office extension in a company. ...
Microformats - HTML: Hypertext Markup Language
age contains a "card" which describes a person or organization named Alice Blogger with a URL of http://alice.example.com/. The parser makes this data available via APIs that can be used for different applications. As in this example, some markup patterns require only a single microformat root class name, which parsers use to find a few generic properties such as name, url, photo. ...
...operties such as name, url, photo. Microformats Prefixes All microformats consist of a root, and a collection of properties. Properties are all optional and potentially multivalued - applications needing a singular value may use the first instance of a property. Hierarchical data is represented with nested microformats, typically as property values themselves. All microformats class names use prefixes. Prefixes are syntax independent from vocabularies, which are developed separately. "h-*" for root class names, e.g. "h-card", "h-entry", "h-feed", and many more. These top-level root classes usually indicate a type and corresponding expected vocabulary of properties. For example: h-card describes a person or organization h-entry describes episodic or date stamped online content like ...
...utes a/href, img/src, object/data etc. attributes over element contents. "dt-*" for datetime properties, e.g. "dt-start", "dt-end", "dt-bday" Special parsing: time element datetime attribute, value-class-pattern and separate date time value parsing for readability. "e-*" for element tree properties where the entire contained element hierarchy is the value, e.g. "e-content". The "e-" prefix can also be mnemonically remembered as "element tree", "embedded markup", or "encapsulated markup". Some microformats examples h-card The h-card microformat represents a a person or organization. The value of each property is defined in HTML using the class property any element can carry Example h-card <p class="h-card"> <img class="u-photo" src="http://example.org/photo.png" alt="" /> ...
Strict mode - JavaScript
makes little sense and is probably undesirable (it might hide a typo, for example), so in strict mode duplicate argument names are a syntax error: function sum(a, a, c) { // !!! syntax error 'use strict'; return a + a + c; // wrong if this code ran } Sixth, a strict mode in ECMAScript 5 forbids octal syntax. ...
...names are a syntax error: function sum(a, a, c) { // !!! ...
...his code ran } Sixth, a strict mode in ECMAScript 5 forbids octal syntax. The octal syntax isn't part of ECMAScript 5, but it's supported in all browsers by prefixing the octal number with a zero: 0644 === 420 and "\045" === "%". In ECMAScript 2015 Octal number is supported by prefixing a number with "0o". i.e. ...
systemLanguage - SVG: Scalable Vector Graphics
ote: If several alternative language objects are enclosed in a <switch> and none of them matches, this may lead to situations where no content is displayed. It is thus recommended to include a "catch-all" choice at the end of such a <switch> which is acceptable in all cases. The attribute evaluates to "true" if one of the language tags indicated by user preferences is a case-insensitive match or prefix (followed by a "-") of one of the language tags given in the value of this parameter. Otherwise it evaluates to "false". Note: The prefix matching rule does not imply that if a user understands a language with a certain tag, that the user will also understand all languages with the tag as prefix. If the attribute is not present, then it implicitly evaluates to "true". If a null string or empty ...
... Multiple languages may be listed for content that is intended for multiple audiences. ...
... Multiple languages may be listed for content that is intended for multiple audiences. ...
simple-prefs - Archive of obsolete content
"Select a directory" } menulist Displayed as a drop-down list. The type of the stored value depends on the default value. The options are specified by a mandatory "options" attribute, that is an array of objects with mandatory attributes "label" and "value" The values of the "value" attributes must be supplied as strings. The values of the "label" attributes prefixed with "{name}_options.", where {name} is the name of the preference, are used as localization keys. If no matching entries are found, the value of the "label" attributes is used verbatim as labels. { "name": "typeOfBreath", "type": "menulist", "title": "Type of breath", "value": 0, "options": [ { "value": "0", "label": "Fire" ...
...ntegration" } ] } radio Displayed as radio buttons. The type of the stored value depends on the default value. The options are specified by a mandatory "options" attribute, that is an array of objects with mandatory attributes "label" and "value" The values of the "value" attributes must be supplied as strings. The values of the "label" attributes prefixed with "{name}_options.", where {name} is the name of the preference, are used as localization keys. If no matching entries are found, the value of the "label" attributes is used verbatim as labels. { "name": "alignment", "type": "radio", "title": "Alignment", "value": "N", "options": [ { "value": "L", "label": "Lawful" }, ...
util/deprecate - Archive of obsolete content
Experimental Functions to deprecate code. Globals Functions deprecateFunction(fun, msg) Dump to the console the error message given in the second argument, prefixed with "DEPRECATED:", and print the stacktrace; then execute the function passed as first argument and returns its value. It does not raise an exception, but just displays the error message and continues to execute the function. This function is mostly used to flag usage of deprecated functions, that are still available but which we intend to remove in a future release. ...
...to execute the function. This function is mostly used to flag usage of deprecated functions, that are still available but which we intend to remove in a future release. Parameters fun : function The function to execute after the error message msg : string The error message to display Returns * : The returned value from fun deprecateUsage(msg) Dump to the console the error message given, prefixed with "DEPRECATED:", and print the stacktrace. It does not raise an exception, but just displays the error message and returns. This function is mostly used to flag usage of deprecated functions that are no longer available. Parameters msg : string The error message to display ...
util/match-pattern - Archive of obsolete content
like file, resource, or data, use a scheme followed by an asterisk, as below. Example pattern Example matching URLs Example non-matching URLs "*" http://example.com/ https://example.com/ ftp://example.com/ http://bar.com/foo.js http://foo.com/ file://example.js resource://me/my-addon/data/file.html data:text/html,Hi there A domain name prefixed with an asterisk and dot matches any URL of that domain or a subdomain, using any of http, https, ftp. Example pattern Example matching URLs Example non-matching URLs "*.example.com" http://example.com/ http://foo.example.com/ https://example.com/ http://example.com/foo ftp://foo.example.com/ ldap://example.com http://example.foo.com/ A ...
...n or a subdomain, using any of http, https, ftp. Example pattern Example matching URLs Example non-matching URLs "*.example.com" http://example.com/ http://foo.example.com/ https://example.com/ http://example.com/foo ftp://foo.example.com/ ldap://example.com http://example.foo.com/ A URL followed by an asterisk matches that URL and any URL prefixed with the pattern. Example pattern Example matching URLs Example non-matching URLs "https://foo.com/*" https://foo.com/ https://foo.com/bar http://foo.com/ https://foo.com https://bar.foo.com/ A scheme followed by an asterisk matches all URLs with that scheme. To match local files, use file://*, and to match files loaded from your add-on's data d...
Extension Etiquette - Archive of obsolete content
o likewise. Strategies to avoid such conflicts include: Avoid shared namespaces where possible Many naming conflicts are best avoided by simply not sharing namespaces. Scripts can be loaded into their own globals, such as CommonJS modules, JavaScript modules, or Sandboxes, to avoid most global variable and prototype conflicts. Expando properties are best avoided using tools such as WeakMaps. Prefix names in shared namespaces When shared namespaces can't be avoided, the simplest solution to prevent conflicts is to use a distinct prefix for all of your names. Class names for HTML elements created by the Cool Beans extension, for instance, might all be prefixed with cool-beans-. Global variables might all be defined as properties of the CoolBeans object. Some namespaces have specific conf...
..., might all be prefixed with cool-beans-. Global variables might all be defined as properties of the CoolBeans object. Some namespaces have specific conflict prevention conventions, which should be followed as appropriate. XPCOM contract IDs, for instance, should always begin with an @, followed by a domain name that the author controls, e.g., "@example.com/foo/bar;1" It is important that the prefix that you use be unlikely to conflict with other code, and that it be indicative of the name of your add-on. Generic prefixes such as myextension-, or short prefixes such as ffx-, are likely to be used elsewhere, and therefore unsuitable to the purpose. Call .noConflict(true) where applicable Many common libraries which create global variables provide a method called noConflict, or similar, ...
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
sessionstore-prefs.js File sets defaults for preferences. This should always be located inside defaults\preferences prefs.xul The preference panel FIXME: Figure 16: Source file structure Deciding the format for your preferences Next you need to determine the names, types, and values for your preferences (Table 6). Each preference should be prefixed with something that uniquely identifies your extension--in this case, we'll use extensions.sessionstore. Table 6: Preference formats FIXME: Make the table cleaner Preference name Type Value extensions.sessionstore.warnOnClear Boolean Activated when deleting sessions. If true, causes a confirmation dialog to appea...
...es In Listing 28, we add a preference that allows a confirmation dialog to appear when we delete sessions. When we get the preference value from JavaScript, we take advantage the XPCOM nslPrefService interface, using the getBoolPref and getIntPref methods as appropriate to the data type. In Listing 28, we get the nslPrefBranch object that lets us read and write all preferences beginning with the prefix extensions.sessionstore., which is what lets us use the getBoolPref method to get the value. FIXME: Listing 28: nslPrefBranch object demonstration Operations check We've revised the install manifest, so we need to reinstall the extension (see the part "Operations checks on revised source files"). Once you've reinstalled it, first open about:config, and confirm that the previous preference valu...
Appendix F: Monitoring DOM changes - Archive of obsolete content
atching nodes become available. * @param {Document} doc The document in which to watch for new nodes. * @optional @default document * * @returns {function} A function which may be called to unregister the * listener. ...
...tyle = Components.utils.getWeakReference(style); return function unwatch() { if (style.get()) { style.get().ownerDocument.removeEventListener('animationstart', listener, false); style.get().parentNode.removeChild(style.get()); } }; } watchNodes.NAMESPACE = 'MozCSSKeyframeRule' in window ? ...
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
(elemNameOrArray, elemAttr) { // Array of elements? Parse each one... if (Array.isArray(elemNameOrArray)) { var frag = doc.createDocumentFragment(); Array.forEach(arguments, function(thisElem) { frag.appendChild(tag.apply(null, thisElem)); }); return frag; } // Single element? Parse element namespace prefix (if none exists, default to defaultNamespace), and create element var elemNs = namespace(elemNameOrArray); var elem = doc.createElementNS(elemNs.namespace || jsonToDOM.defaultNamespace, elemNs.shortName); // Set element's attributes and/or callback functions (eg. onclick) for (var key in elemAttr) { var val = elemAttr[key]; if (nodes && key...
...Event listeners can be defined on the given nodes by passing functions rather than strings to on* attributes: var href = "http://www.google.com/"; var text = "Google"; var nodes = {}; document.documentElement.appendChild( jsonToDOM(["xul:hbox", {}, ["div", {}, ["a", { href: href, key: "link", onclick: function...
XPCOM Objects - Archive of obsolete content
by add-ons. If you want to see the list in your current Firefox installation, just run the following code in the Error Console: var str = ""; for (var i in Components.classes) { str += i + "\n" }; str A run on Firefox 3.6.2 with a few extensions installed yields 876 strings. That's quite a lot. Luckily, you'll only need to know a handful of those for extension development. The @mozilla.org/ prefix is just a way to keep things namespaced. We would use something like @xulschool.com/ to make our own components. Components are either services (static objects) or instances of classes, just like the objects we handle in JS. The method you call on Cc["some-string"] should either be getService or createInstance, depending on what you're asking for. In most cases it is very clear which one to call...
...In most cases it is very clear which one to call, but in case of doubt, look for documentation on it. Those two methods always receive the interface identifier as an argument. Similarly to Cc, Ci (Components.interfaces) is an index of available interfaces. A modified version of the last code snippet produces an even longer list of available interfaces. Just like in component identifiers, the nsI prefix is just a way of keeping things in order. The NS stands for Netscape, Mozilla's predecessor. The "I" stands for interface. Our interfaces should begin with something like xsIHello. An interface is just a definition of a set of attributes and methods that an object implementing it should have. XPCOM components can implement multiple interfaces, and they often do. Let's look at the Preference serv...
CSS3 - Archive of obsolete content
CSS3 is the latest evolution of the Cascading Style Sheets language and aims at extending CSS2.1. It brings a lot of long-awaited novelties, like rounded corners, shadows, gradients, transitions or animations, as well as new layouts like multi-columns, flexible box or grid layouts. Experimental parts are vendor-prefixed and should either be avoided in production environments, or used with extreme caution as both their syntax and semantics can change in the future. Modules and the standardization process CSS Level 2 needed 9 years, from August 2002 to June 2011 to reach the Recommendation status. This was due to the fact that a few secondary features held back the whole specification. In order to accelerate the standardization of non-problematic features, the CSS Working Group of the W3...
...y be postponed to the next iteration of this module. An early list of what could be in the next iteration of the CSS Basic User Interface Module is available. Stable modules A few CSS modules are already fairly stable and have reached one of the three recommendation level of the CSSWG: Candidate Recommendation, Proposed Recommendation or Recommendation. These can be used without prefix and are pretty stable, though a few features can still be dropped at the Candidate Recommendation stage. These modules extend and amend the CSS2.1 specification which build the core of the specification. Together with it, they are the current snapshot of the CSS specification. CSS Backgrounds and Borders Module Level 3 Candidate Recommendation Adds: Support,...
New Security Model for Web Services - Archive of obsolete content
in subdirectories. Any syntax error in the document will result in the rest of the file to be ignored. Since the commands only allow access, the order of processing the "allow" commands that were successfully parsed is never significant. Allowing Web Script Access To permit scripts to access the resources of this server, use the following command: <wsa:allow type="<request-type>" from ="<uri-prefix>"/> The type of request, if specified, will be checked against the type of request being requested by the script, such as "soap", "soapv", or "load". Types must not contain spaces. Specify "any" as the type to permit any requested type of access to resources. The principle URI of the script will be checked for the specified URI prefix. If "from" is not specified, then all scripts will be allow...
...i. Empty the cache by passing in a empty string nsWebScriptsAccess(Implements nsIWebScriptsAccessService) Maintains access information, for servers, in an access-info-cache ( hashtable ). If an entry was not found in the cache creates one by loading the declaration file (web-scripts-access.xml) and extracting information from it (declaration file); requested type and subject princple's prefix are compared to the allowed type and prefix in order to determine access. An entry is created if and only if the declaration file is considered valid (validation based on the syntax described above); an invalid document will result in access denial. Denies script access in the event of an xml-wellformedness error, or validation error, or if the declaration file does not grant access. Reports erro...
SpiderMonkey coding conventions - Archive of obsolete content
Use the SpiderMonkey C++ Coding Style page on wikimo which is more up to date and the canonical source. The SpiderMonkey project owners enforce coding conventions pretty strictly during code reviews. Naming conventions Public function names begin with JS_ followed by capitalized "intercaps", e.g. JS_NewObject. Extern but library-private function names use a js_ prefix and mixed case, e.g. js_SearchScope. Most static function names have unprefixed, mixed-case names: GetChar. But static native methods of JS objects have lowercase, underscore-separated or intercaps names, e.g., str_indexOf. And library-private and static data use underscores, not intercaps (but library-private data do use a js_ prefix). Scalar type names are lowercase and js-prefixed: jsdouble. Aggre...
... Macros are generally ALL_CAPS and underscored, to call out potential side effects, multiple uses of a formal argument, etc. Linkage DLL entry points have their return type expanded within a JS_PUBLIC_API() macro call, to get the right Windows secret type qualifiers in the right places for all build variants. ...
Static Analysis for Windows Code under Linux - Archive of obsolete content
ac_add_options --disable-optimize ac_add_options --disable-tests ac_add_options --disable-embedding-tests ac_add_options --disable-installer ac_add_options --disable-accessibility ac_add_options --disable-vista-sdk-requirements ac_add_options --disable-updater #change this to where your libIDL-config file locate. ...
...imize ac_add_options --disable-tests ac_add_options --disable-embedding-tests ac_add_options --disable-installer ac_add_options --disable-accessibility ac_add_options --disable-vista-sdk-requirements ac_add_options --disable-updater #change this to where your libIDL-config file locate. HOST_LIBIDL_CONFIG=/usr/bin/libIDL-config #Config your moztools position GLIB_PREFIX=$HOME/moztools LIBIDL_PREFIX=$HOME/moztools #disable xpcom stdcall calling convention because of gcc 4.3.0 bug CPPFLAGS="-DMOZ_DISABLE_XPCOM_STDCALL" #Specify the CXX and static analysis #Point CXX to the cross compile g++ with plugin support CXX=$HOME/mingw-install/bin/i686-mingw32-g++ ac_add_options --with-static-checking=$HOME/dehydra/dehydra-gcc/gcc_dehydra.so Then, you can start building your Mozilla. The static chec...
Anonymous Content - Archive of obsolete content
be tied to attributes on the bound element. Whenever the attribute is set or removed on the bound element, the corresponding attribute on the anonymous content is also set or removed. On any anonymous content element in a template, an inherits attribute can be used to specify a comma-separated list of attributes that should be inherited. Attributes with namespaces can be defined using a namespace prefix and the attribute name separate by a colon. For example, on the HTML file upload control, the anonymous textfield can be set up to automatically inherit the value attribute from the bound element. <xbl:binding id="fileUploadControl"> <xbl:content> <html:input type="text" xbl:inherits="value"/> <html:input type="button" value="Browse..."/> </xbl:content> </xbl:binding> Each entry i...
...nt> </xbl:binding> Each entry in the inherits list can either simply list an attribute (such as value in the example above), or it can specify an = separated pair consisting of the attribute on the anonymous content that should be tied to the attribute on the bound element. The anonymous content attribute is listed first. The special value xbl:text can be used in an = separated pair, where the prefix defined is the XBL namespace. When specified on the left-hand side of the pair it indicates that the attribute on the right-hand side should be stored as text nodes underneath the anonymous element. When used on the right-hand side, it indicates that any raw text nodes that are explicit children of the bound element should be coalesced and the resulting value should be stored as the attribute on ...
Elements - Archive of obsolete content
current Firefox implementation. Please edit only if an actual behavior differs from the described one. Please do not edit only on the basis of another XBL specification. <!ELEMENT bindings ( binding* ) > Hierarchy: root element May contain: <binding> The bindings element is the root element of any XBL document. It should usually declare XBL as the default namespace (unless an XBL namespace prefix is used) and it may additionally declare other namespace prefixes used in your binding. bindings contains zero or more binding elements as children. Each binding child element defines a unique binding that can be attached to elements in other documents. An element can have only one binding attached (explicitly or inherited) at one moment. From several bindings only the last in the sequence will...
...id within a binding document. Note that content cannot be inherited, only behavior. display - This attribute specifies how the tag is displayed. By setting this attribute, you can have an element have the layout and display characteristics of an existing element. For example, use the value 'xul:button' to create an element that is displayed like a button. The part before the colon is a namespace prefix so you must declare the XUL namespace as well. Not all tags have a unique display type. The following XUL display types may be used: browser, button, checkbox, description, editor, grippy, iframe, image, label, menu, menuitem, menubar, progressmeter, radio, resizer, scrollbar, scrollbox, spacer, splitter, titlebar, treechildren and treecol. You may also use a number of HTML, MathML and SVG tags. ...
Namespaces - Archive of obsolete content
xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" but here the :xul piece is omitted. This signifies to the XML parser that http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul is the default namespace for the element and its descendant elements (unless further overridden by a default namespace on a descendant element), and that any element without a namespace (i.e., no prefix and colon) belongs to the default namespace. That's why we can write the shorthand <textbox/> instead of <xul:textbox/> in XUL (although the latter is just as correct when not using http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul as the default namespace) -- the XUL namespace is defined as the default on the topmost element. In other words, a default namespace permits a kind of shor...
...s=""/> This second example is semantically equivalent to the first. Now, a second question: what namespaces are the bar, baz, and quux attributes in? <foo bar="value"> <element xmlns="namespace!" baz="value"> <element quux="value"/> </element> </foo> bar is obviously not in a namespace. What about baz and quux? The answer is that they aren't in a namespace either. In fact no unprefixed attribute is ever in a namespace, primarily because XML originally didn't have namespaces, and all XML from that time had to stay in no namespace. This is a source of perennial confusion for XML namespaces. ...
Simple Query Syntax - Archive of obsolete content
deakin/images/t/obselisk.jpg) The numbers are used here for the variable names, but they are really just randomly generated so you can't refer to them in any way. The member data, or results, are held in the variable represented here by '?2'. Three matches have been found so the content will be duplicated three times. There are several attributes in the example XUL content above that have values prefixed with 'rdf:'. Since you can't declare variables in the simple syntax, a different way is used to grab RDF data. The 'rdf:' prefix means look up a predicate pointing out of the node for that result (the child or member node). For example, the label's value attribute has a value of rdf:http://purl.org/dc/elements/1.1/title'. This means look up the value of the predicate http://purl.org/dc/elements...
...example, the label's value attribute has a value of rdf:http://purl.org/dc/elements/1.1/title'. This means look up the value of the predicate http://purl.org/dc/elements/1.1/title' pointing out of the current result. Of course, it should be obvious that this causes the value attribute to be set to the photo's title. You can get other predicates in the same way, just by using the predicate uri and prefixing it with 'rdf:'. You can also combine two in one attribute by separating them with a space or a caret (^) just as you can with the full syntax. For example: <label value="rdf:http://purl.org/dc/elements/1.1/title http://www.xulplanet.com/rdf/country"/> The 'rdf:' form is really equivalent to the <binding> tag in the full syntax. The subject of the binding is the result member resource, the pr...
Adding HTML Elements - Archive of obsolete content
The tags must be entered in lowercase. "Quotes" must be placed around all attribute values. XML requires a trailing slash at the end of tags that have no content. This may be clearer from the examples below. Using HTML elements You can use any HTML tag although some such as head and body are not really useful. So...
...heckbox" value="true"/> <html:table> <html:tr> <html:td> A simple table </html:td> </html:tr> </html:table> These examples will create an image from the file banner.jpg, a checkbox and a single-cell table. You should always use XUL features if they are available and you probably should not use tables for layout in XUL. (There are XUL elements for doing layout). Notice that the prefix html: was added to the front of each tag. This is so that Mozilla knows that this is an HTML tag and not a XUL one. If you left out the html: part, the browser would think that the elements were XUL elements and they would not display because img, input, table, and so on are not valid XUL tags. In XUL, you can add labels with the description or label element. You should use these elements when yo...
assign - Archive of obsolete content
<< XUL Reference home [ Examples | Attributes | Properties | Methods | Related ] For XML templates, specifies an additional variable to assign a value to. For more information, see XML_Assignments Attributes expr, var Examples (example needed) Attributes expr Type: string For XML queries, an XPath expression which returns results. Any namespace prefixes declared on the element may be used within the expression. var Type: string For the XUL assign attribute, this is the variable to assign the value to; otherwise it's a reference to a template variable such as "?name". Inherited from XUL element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equ...
...ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
query - Archive of obsolete content
Archive › Mozilla › XUL › query
ne content element as well as member and/or triple elements. For XML datasources, the query should have an expr attribute and may optionally contain assign elements. For SQL datasources, the query should contain an SQL statement as text. Attributes expr Examples (example needed) Attributes expr Type: string For XML queries, an XPath expression which returns results. Any namespace prefixes declared on the element may be used within the expression. Inherited from XUL element align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes,...
...ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
2006-11-10 - Archive of obsolete content
at he is doing wrong. November 9th: Jonathan Watt responded to his posting stating that he must have the wrong line endings in his mozconfig or some other script fill that he is probably using to run. ...
... doing wrong. November 9th: Jonathan Watt responded to his posting stating that he must have the wrong line endings in his mozconfig or some other script fill that he is probably using to run. ...
Solaris 10 Build Prerequisites - Archive of obsolete content
Run . /opt/jdsbld/bin/env.sh to import the JDS CBE settings into your environment. Build Environment 1. Install Sun Studio 12 or Sun Studio 11 with a patch to avoid a compiler bug. 2. Install CBE. Make some changes to /opt/jdsbld/bin/env.sh. --- env.sh.orig Tue Jul 1 02:38:35 2008 +++ env.sh Tue Jun 24 01:08:01 2008 @@ -95,7 +95,8 @@ echo Setting LD=$LD export LD -PATH="$CBE_PREFIX/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/bin:/usr /sfw/bin:$CCDIR" +PATH="/opt/sfw/bin:$CBE_PREFIX/bin:/usr/ccs/bin:/usr/gnu/bin:/usr/bin:/usr/s bin:/bin:/usr/sfw/bin:$CCDIR" test "x$JDS_CBE_ENV_QUIET" != x1 && \ echo Setting PATH=$PATH export PATH +export PKG_CONFIG_PATH=/opt/sfw/lib/pkgconfig:/usr/lib/pkgconfig 3. Replace the commands in CBE that don't work on Solaris 10. ...
...s dot org/svn/jds/spec-files/branches/gnome-2-20 5. Unpack the extra spec file tarball to the spec file directory. % cd gnome-2-20 % gtar jxvf firefox-solaris-10-spec.tar.bz2 6. Unpack the patch tarball to the patches directory. % cd gnome-2-20/patches % gtar jxvf firefox-3.0-solaris-10-patches.tar.bz2 7. Build pkg-config and gtk-doc from source. Just unpack the source tarball, run "./configure --prefix=/opt/sfw", make and make install. Add /opt/sfw/bin to PATH environment after installation. 8. Build glib/atk/cairo/pango/gtk2/dbus/dbus-glib/firefox. % . /opt/jdsbld/bin/env.sh % pkgtool --download build-only -v solaris10/SFW{name1}.spec % pkgadd -d . {package_name1} % pkgadd -d . {package_name1}-devel % pkgtool --download build-only -v solaris10/SFW{name2}.spec % pkgadd -d . {package_name2} % pk...
Namespaces - Archive of obsolete content
xt <label xmlns="http://www.mozilla.org/keymaster/gat...re.is.only.xul">More text</label> </p> name() Using name() on an XML object returns a QName object (Qualified Name). QName is a global constructor available in JavaScript implementations supporting E4X. QName objects have two properties of particular relevance. The localName property returns the name of the element, without any namespace prefix. ...
...For further information on namespaces in E4X, see Processing XML with E4X. Next is the global XML object. ...
Gecko FAQ - Gecko Redirect 1
s: cite, datetime, lang, hreflang bidirectional text layout, which is only used in Hebrew and Arabic (IBM has begun work to add bidi support in a future release) Style Sheets CSS 1 - full support, except for: the application of styles to HTML column elements the ability to turn off author styles the names of certain Mozilla extension pseudo-classes lack the moz- prefix CSS 2 - partial support is expected and has already been built into Gecko, including support for CSS2 positioning, but no commitment has been made to achieve a specific level of support DOM Level 0 Level 1 Core: full support making EntityReferences available through DOM1; per a provision of the DOM1 spec for XML implementations, Entities will be automatically ...
...well For more information, see the DOM in Mozilla Level 1 HTML DOM 2 - Most of it has already been implemented in Gecko, including support for DOM 2 events, the DOM 2 Style, and the DOM2 Core. DOM 3 support is also planned for a future release. ...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
ce, script-src allows developers to allow trusted sources of script to execute on a page, while font-src controls the sources of web fonts. 144 Fetch metadata request header Fetch Metadata Request Headers, Glossary A fetch metadata request header is a HTTP request header that provides additional information about the context the request originated from. These header names are prefixed with Sec- and thus they are forbidden header names so headers can not be modified from JavaScript. 145 Firefox OS B2G, Boot2Gecko, Firefox OS, Glossary, Infrastructure, Intro Firefox OS is Mozilla's mobile operating system, based on Linux and Firefox's powerful Gecko rendering engine. Firefox OS consists mainly of Gaia, Gecko, and Gonk. 146 First CPU idle Glo...
...und that data, the value is the primitive value that the object wrapper contains. In the context of a variable or property, the value can be either a primitive or an object reference. 480 Variable CodingScripting, Glossary, JavaScript A variable is a named reference to a value. That way an unpredictable value can be accessed through a predetermined name. 481 Vendor Prefix CodingScripting, Glossary Browser vendors sometimes add prefixes to experimental or nonstandard CSS properties and JavaScript APIs, so developers can experiment with new ideas while--in theory--preventing their experiments from being relied upon and then breaking web developers' code during the standardization process. Developers should wait to include the unprefixed property until brow...
Grids - Learn web development
To be on the safe side, you could double up and add both properties to make your code more bulletproof. .container { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-gap: 20p...
...07,232,220); border: 2px solid rgb(79,185,227); } <div class="container"> <div>One</div> <div>Two</div> <div>Three</div> <div>Four</div> <div>Five</div> <div>Six</div> <div>Seven</div> </div> Note: The *gap properties used to be prefixed by grid-, but this has been changed in the spec, as the intention is to make them usable in multiple layout methods. The prefixed versions will be maintained as an alias so will be safe to use for some time. To be on the safe side, you could double up and add both properties to make your code more bulletproof. .container { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-gap: 20px; gap: 20px; } Repeating track listings You can repeat all, or a section of, your track listing using repeat notation. Change...
Advanced form styling - Learn web development
ed as a way to control what OS- or system-level styling was applied to web form controls. Unfortunately, the behavior of this property's original implementations was very different across browsers, making it not very usable. Newer implementations are more consistent in behavior; interestingly enough, both Chromium-based browsers (Chrome, Opera, Edge), Safari, and Firefox all support the -webkit- prefixed version (-webkit-appearance). Firefox settled on this because web developers mostly seemed to be using the -webkit- prefixed version, so it was better for compatibility. If you look at the reference page you'll see a lot of different possible values listed for -webkit-appearance, however by far the most helpful value, and probably the only one you'll use, is none. This stops any control you ap...
... <label for="checkbox">checkbox: </label> <input id="checkbox" name="checkbox" type="checkbox"> </p> <p><input type="submit" value="submit"></p> <p><input type="button" value="button"></p> </form> Applying the following CSS to them removes system-level styling. input { -webkit-appearance: none; appearance: none; } Note: It is a good idea to always include both declarations -- prefixed and unprefixed -- when using a prefixed property. Prefixed usually means "work in progress", so in the future browser vendors may come to a consensus to drop the prefix. The above code is good for future-proofing against such an eventuality. The following live example shows you what they look like in your system -- default on the left, and with the above CSS applied on the right (find it here...
UI pseudo-classes - Learn web development
The full example looks like so: Note: :enabled and :read-write are two more pseudo-classes that you'll probably rarely use, given that they describe the default states of input elements. Radio and checkbox states -- checked, default, indeterminate As we've seen in earlier articles in the module, radio buttons an...
...o-classes, like so: input:-moz-read-only, textarea:-moz-read-only, input:read-only, textarea:read-only { border: 0; box-shadow: none; background-color: white; } textarea:-moz-read-write, textarea:read-write { box-shadow: inset 1px 1px 3px #ccc; border-radius: 5px; } Firefox only supported these pseudo-classes with a prefix up to version 78; at which point it started to support the unprefixed version. The full example looks like so: Note: :enabled and :read-write are two more pseudo-classes that you'll probably rarely use, given that they describe the default states of input elements. Radio and checkbox states -- checked, default, indeterminate As we've seen in earlier articles in the module, radio buttons and checkboxes can be checked or unchecked. But there are a couple of ...
React interactivity: Events and state - Learn web development
} Clicking on the "Add" button in your browser will prove that the addTask() callback function works, but it'd be nice if we could get the alert to show us what we're typing in our input field! This is what we'll do next. Note: We decided to name our callback prop addTask to make it easy to understand what the prop will do. Another common convention you may well come across in React code is to prefix callback prop names with the word on, followed by the name of the event that will cause them to be run. For instance, we could have given our form a prop of onSubmit with the value of addTask. State and the useState hook So far, we've used props to pass data through our components and this has served us just fine. Now that we're dealing with user input and data updates, however, we need someth...
... following terminal command: npm install nanoid Note: If you're using yarn, you'll need the following instead: yarn add nanoid Now we can import nanoid into the top of App.js so we can use it to create unique IDs for our new tasks. First of all, include the following import line at the top of App.js: import { nanoid } from "nanoid"; Now let's update addTask() so that each task ID becomes a prefix todo- plus a unique string generated by nanoid. Update your newTask constant declaration to this: const newTask = { id: "todo-" + nanoid(), name: name, completed: false }; Save everything, and try your app again -- now you can add tasks without getting that warning about duplicate IDs. Detour: counting tasks Now that we can add new tasks, you may notice a problem: our heading reads 3 tasks re...
Gecko Logging
fy one or more special module names without logging level. Special module name append Append new logs to existing log file. sync Print each log synchronously, this is useful to check behavior in real time or get logs immediately before crash. raw Print exactly what has been specified in the format string, without the process/thread/timestamp, etc. prefix. timestamp Insert timestamp at start of each log line. rotate:N This limits the produced log files' size. Only most recent N megabytes of log data is saved. We rotate four log files with .0, .1, .2, .3 extensions. Note: this option disables 'append' and forces 'timestamp'. For example, if you want to specify "sync", "timestamp" and "rotate": set MOZ_LOG="example...
...' size. Only most recent N megabytes of log data is saved. We rotate four log files with .0, .1, .2, .3 extensions. Note: this option disables 'append' and forces 'timestamp'. For example, if you want to specify "sync", "timestamp" and "rotate": set MOZ_LOG="example_logger:3,timestamp,sync,rotate:10" To adjust the logging after Firefox has started, you can set prefs under the logging. prefix. For example, setting logging.foo to 3 will set the log module foo to start logging at level 3. The special boolean prefs logging.config.sync and logging.config.add_timestamp can be used to control the sync and timestamp properties described above. Redirecting logging output to a file Logging output can be redirected to a file by passing its path via an environment variable. By default loggi...
Communicating with frame scripts
ncMessage() function: // frame script sendAsyncMessage("my-addon@me.org:my-e10s-extension-message"); sendAsyncMessage() takes one mandatory parameter, which is the name of the message. All messages share the same namespace, so to avoid conflicts with other code, you'll need to ensure that the names you use are unique. If you're using the message manager in an add-on, a good way to do that is to prefix messages with your add-on's ID. After the name, you can pass detailed data as a string or a JSON-serializable object, and after that you can pass any objects it wants to pass to content as CPOWs. The example below sends a message named "my-e10s-extension-message", with a data payload containing details and tag properties, and exposes the event.target object as a CPOW: // frame script addEventL...
...age method: // chrome script window.messageManager.broadcastAsyncMessage("my-addon@me.org:message-from-chrome"); These methods takes one mandatory parameter, which is the message name. All messages share the same namespace, so to avoid conflicts with other code, you'll need to ensure that the names you use are unique. If you're using the message manager in an add-on, a good way to do that is to prefix messages with your add-on's ID. After the message name, you can pass detailed data as a string or a JSON-serializable object: // chrome script messageManager.sendAsyncMessage("my-addon@me.org:message-from-chrome", { details : "some more details" }); To receive a message from chrome, a frame script uses the global addMessageListener() function. This takes two parameters: the name of the messa...
Memory reporting
Obviously, if you increment you have to zero the values at some point. When using a struct, its constructor is the obvious place for this. You could even put the nsMallocSizeOfFun in FooBarSizes to reduce the number of arguments. Sometimes it's difficult and/or not worth measuring every member of an object of in a Foo::SizeOfExcludingThis method...
...nsMallocSizeOfFun in FooBarSizes to reduce the number of arguments. Sometimes it's difficult and/or not worth measuring every member of an object of in a Foo::SizeOfExcludingThis method. This is ok, but it's worth adding a comment explaining this to the method. Occasionally you do want to compute sizes analytically instead of using moz_malloc_size_of. In that case, use ComputedSizeOf as the prefix for the function name. It's important that no memory is measured twice; this can lead to strange results in about:memory. Avoiding double measurement is easy in tree-like structures. In graph-like structures (where an object might be pointed to by more than one other object) it gets more difficult, and might even require some way to mark objects that have been counted (and then a way to unmark...
Profiling with the Firefox Profiler
chmark information and on its last line it output the result of the profiling, you can filter it with tail -n 1 and redirect it to a file to prevent printing it in your shell. The expected size of the output is around 100 of MB. To add symbols to your build, you need to call ./scripts/profile-symbolicate.py available in B2G repository. $ GECKO_OBJDIR=<objdir> PRODUCT_OUT=<objdir> TARGET_TOOLS_PREFIX= \ ./scripts/profile-symbolicate.py -o run.symb.cleo run.cleo Clone Cleopatra and start the server with ./run_webserver.sh. Access Cleopatra from your web browser by loading the page localhost:8000, and upload run.symb.cleo to render the profile with most of the symbol information. Native stack vs. label stack The profiler periodically samples the stack of the selected threads in Firefox...
...ing a profile. To do so, paste the layer dump into the "Enter your profile data here" text field on the front page of Cleopatra: The resulting "profile" will have the Layer Tree view enabled (but nothing else). This is useful in cases where you want to gain a quick visual understanding of a layer dump without having to take a profile. On B2G, each line of a layer dump in adb logcat output is prefixed with something like I/Gecko (30593):. Cleopatra doesn't currently understand this prefix, so it needs to be removed before pasting. Display List Dump the display list after each refresh with the texture data. This can be used to debug correctness problems. Contribute Source is located in tools/profiler. The Bugzilla components are Core::Gecko Profile for the profiler backend, and DevT...
NSPR LOG MODULES
ime. These controls should be set in the NSPR_LOG_MODULES environment variable at execution time to affect NSPR's log service for your application. all The name all enables all log modules. To enable all log module calls to PR_LOG, set the variable as follows: set NSPR_LOG_MODULES=all:5 timestamp Including timestamp results in a timestamp of the form "2015-01-15 21:24:26.049906 UTC - " prefixing every logged line. append Including append results in log entries being appended to the existing contents of the file referenced by NSPR_LOG_FILE. If not specified, the existing contents of NSPR_LOG_FILE will be lost as a new file is created with the same filename. sync The name sync enables unbuffered logging. This ensures that all log messages are flushed to the operating system as they...
...tents of NSPR_LOG_FILE will be lost as a new file is created with the same filename. sync The name sync enables unbuffered logging. This ensures that all log messages are flushed to the operating system as they are written, but may slow the program down. bufsize:size The name bufsize:size sets the log buffer to size. Examples Log everything from the Toolkit::Storage component that happens, prefixing each line with the timestamp when it was logged to the file /tmp/foo.log (which will be replaced each time the executable is run). set NSPR_LOG_MODULES=timestamp,mozStorage:5 set NSPR_LOG_FILE=/tmp/foo.log Logging with Try Server For mochitest, edit variable NSPR_LOG_MODULES in testing/mochitest/runtests.py before pushing to try. You would be able to download the log file as an artifact...
PR_strtod
Ties are broken by the IEEE round-even rule. The string is scanned up to the first unrecognized character. ...
...ameters The function has these parameters: s00 The input string to be scanned. se A pointer that, if not NULL, will be assigned the address of the last character scanned in the input string. Returns The result of the conversion is a PRFloat64 value equivalent to the input string. If the parameter se is not NULL the location it references is also set. Description PR_strtod converts the prefix of the input decimal string pointed to by s00 to a nearest double-precision floating point number. Ties are broken by the IEEE round-even rule. The string is scanned up to the first unrecognized character. If the value of se is not (char **) NULL, PR_strtod stores a pointer to the character terminating the scan in *se. If the answer would overflow, a properly signed HUGE_VAL (infinity) is returne...
NSS 3.35 release notes
d secmod.db. Parallel database access, by multiple applications, is forbidden as it will likely result in data corruption. SQL: The newer file format, based on SQLite, using filenames cert9.db, key4.and and pkcs11.txt. Parallel database access, by multiple applications, is supported. ...
...it will likely result in data corruption. SQL: The newer file format, based on SQLite, using filenames cert9.db, key4.and and pkcs11.txt. Parallel database access, by multiple applications, is supported. Applications using NSS may explicitly request to use a specific database format, by adding a type prefix to the database directory, provided at NSS initialization time. Without a prefix, the default database type will be used (DBM in versions prior to 3.35, and SQL in version 3.35 and later.) When using the SQL type (either explicitly, or because of the new default), with a database directory which already contains a DBM type database, NSS will automatically perform a one time migration of the information contained in the DBM files to the newer SQL files. If a master password...
NSS Tools pk12util
Availability See the release notes for the platforms this tool is available on. Synopsis pk12util -i p12File [-h tokenname] [-v] [common-options] or pk12util -o p12File -n certname [-c keyCipher] [-C certCipher] [-m | --key_len keyLen] [-n | --cert_key_len certKeyLen] [common-options] or pk12util -l p12File [-h tokenname] [-r] [common-options] where [common-options] = [-d dir] [-P dbprefix] [-k slotPasswordFile | -K slotPassword] [-w p12filePasswordFile | -W p12filePassword] Syntax To run the PKCS #12 Tool, type ther command pk12util option [arguments] where option and arguments are combinations of the options and arguments listed in the following section. Three of the options, -i, -o, and -l, should be considered commands of the pk12util invocation. Each command takes sever...
...vate key from from the p12file file. Arguments -n certname Specify the nickname of the cert and private key to export. -d dir Specify the database directory into which to import to or export from certificates and keys. If not specified the directory defaults to $HOME/.netscape (when $HOME exists in the environment), or to ./.netscape (when $HOME does not exist in the environment). -P prefix Specify the prefix used on the cert8.db and key3.db files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -h tokenname Specify the name of the token to import into or export from -v Enable debug logging when importing -k slotPasswordFile Specify the text file containing the ...
NSS tools : signver
Mozilla › Projects › NSS › tools › signver
he PKCS#7 signature. -V Verifies the digital signature. -d [sql:]directory Specify the database directory which contains the certificates and keys. signver supports two types of databases: the legacy security databases (cert8.db, key3.db, and secmod.db) and new SQLite databases (cert9.db, key4.db, and pkcs11.txt). If the prefix sql: is not used, then the tool assumes that the given databases are in the old format. -a Sets that the given signature file is in ASCII format. -i input_file Gives the input file for the object with signed data. -o output_file Gives the output file to which to write the results. -s signature_file Gives the inp...
...e the SQLite databases are designed to be shared, these are the shared database type. The shared database type is preferred; the legacy format is included for backward compatibility. By default, the tools (certutil, pk12util, modutil) assume that the given security databases follow the more common legacy type. Using the SQLite databases must be manually specified by using the sql: prefix with the given security directory. For example: # signver -A -s signature -d sql:/home/my/sharednssdb To set the shared database type as the default type for the tools, set the NSS_DEFAULT_DB_TYPE environment variable to sql: export NSS_DEFAULT_DB_TYPE="sql" This line can be set added to the ~/.bashrc file to make the change permanent. Most applications do not use the sha...
Installing Pork
S: make WARNINGS_AS_ERRORS= "-Wp,-W0,-K" are options that get passed to MCPP. See the MCPP manual. In particular, -K tells MCPP to add the macro annotations we use to get exact source positions. C++ files from other projects can be preprocessed with gcc -E -Wp,-W0,-K. Building a 32-bit MCPP on a 64-bit system This is dark magic, and I hope I've got it right. First I built GCC in a separate --prefix=/builds/gcc-3.4.6-installed. Note: once you do this, you can only use this version of GCC in -m32 mode. Apply this patch: NOTE: this doesn't seem necessary in the latest version; CPPFLAGS is already an argument. Index: src/set_mcpp.sh =================================================================== --- src/set_mcpp.sh (revision 78) +++ src/set_mcpp.sh (working copy) @@ -35,14 +35,14...
...x${gcc_maj_ver}${gcc_min_ver}_predef_old.h fi if test ${host_system} = SYS_CYGWIN; then If you don't do this, MCPP will get the wrong set of automatic definitions and you'll end up with an unpleasant hybrid x86-64/i686 build system. $ export PATH=/builds/gcc-3.4.6-installed/bin:$PATH $ export CPPFLAGS=-m32 $ CC=gcc34 CXX=g++34 CPPFLAGS=-m32 LDFLAGS=-m32 ../src/configure --enable-replace-cpp --prefix=/builds/gcc-3.4.6-installed --target=i686-pc-linux $ make $ make install program_transform_name= ...
JS_AddArgumentFormatter
mentsVA, and JS_PushArgumentsVA. Syntax JSBool JS_AddArgumentFormatter(JSContext *cx, const char *format, JSArgumentFormatter formatter); void JS_RemoveArgumentFormatter(JSContext *cx, const char *format); Name Type Description cx JSContext * The context in which to install the formatter. format const char * The format string prefix that should be handled by formatter, or whose handler should be removed. formatter JSArgumentFormatter The function to be used to convert arguments described by the given format. This function is described in more detail below. Description JS_AddArgumentFormatter establishes formatter as the conversion function for format strings beginning with format in the context cx. On su...
... removes any conversion functions associated with format. Callback Syntax JSBool (*JSArgumentFormatter)(JSContext *cx, const char *format, JSBool fromJS, jsval **vpp, va_list *app); Name Type Description cx JSContext * The context in which the conversion is being performed. format const char * The tail of the format string whose prefix is associated with this formatting function. fromJS JSBool JS_TRUE if the conversion function should convert from jsval values to C values; JS_FALSE if the conversion function should convert from C values to jsval values. vpp jsval ** In-out parameter. A pointer into an array of jsval values. app va_list * In-out parameter. A pointer to an argument poi...
Redis Tips
nservative calculation, I multiply all the bytes I think I might store and multiply by 10, which antirez once recommended as a worst-case factor for data structure overhead. ...
... Even if I have a private redis db for this app, this is descriptively useful and adds a measure of safety. If I ever have more values to store per email than just the password, I could use a hash, with a key like ptu:identity:<email>. In the case where you want to do something akin to a join, like, say, associate an email and a remote url to st...
nsIApplicationCacheNamespace
the namespace, such as a fallback. How this attribute is used varies depending on the namespace type. If the data is a URI, this attribute should be the URI's asciiSpec. Read only. itemType unsigned long A bit field indicating one or more namespace types. Must be one or more of the constants defined under Constants on this page. Read only. namespaceSpec ACString The prefix of this namespace. This should be the asciiSpec of the URI prefix. Read only. Constants Constant Value Description NAMESPACE_BYPASS 1 Items matching this namespace can be fetched from the network when loading from this cache. The data attribute is not used. NAMESPACE_FALLBACK 2 Items matching this namespace can be fetched from the network when ...
... loads of resources in this namespace should be placed into the application cache. This can be combined with NAMESPACE_FALLBACK to provide a fallback entry in the data attribute. Methods init() Initializes the namespace. void init( in unsigned long itemType, in ACString namespaceSpec, in ACString data ); Parameters itemType The namespace type. namespaceSpec The namespace's prefix. data The data to associate with the namespace. See also Offline resources in Firefox nsIApplicationCache nsIApplicationCacheContainer nsIApplicationCacheChannel nsIApplicationCacheService nsIDOMOfflineResourceList ...
nsIFeedResult
toolkit/components/feeds/nsIFeedResult.idlScriptable This interface provides access to HTTP and parsing metadata for a feed or entry. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0) Method overview void registerExtensionPrefix(in AString aNamespace, in AString aPrefix); Attributes Attribute Type Description bozo boolean The feed processor sets the bozo bit when a feed triggers a fatal error during XML parsing. There may still be feed metadata and entries that were parsed before the error occurred. doc nsIFeedContainer The parsed feed or entry. null if a non-feed was processed. headers nsIProperties The HT...
... It's generally intended for use by clients designed to work with specific feeds. uri nsIURI The address from which the feed was fetched. version AString The version of the feed; null if a non-feed is processed. This value will be one of the following: atom, rss2, rss09, rss091, rss091userland, rss092, rss1, atom03, atomEntry, rssItem Methods registerExtensionPrefix() Registers a prefix for a namespace used to access an extension in the feed or entry. Warning: This method is not implemented at this time. void registerExtensionPrefix( in AString aNamespace, in AString aPrefix ); Parameters aNamespace The namespace for the extension. aPrefix The prefix used to access the extension. See also nsISupports nsIFeedContainer nsIURI nsIPr...
nsIMsgFolder
void compactAllOfflineStores(in nsIMsgWindow aMsgWindow,in nsISupportsArray aOfflineFolderArray); void emptyTrash(in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener); void rename(in AString name, in nsIMsgWindow msgWindow); void renameSubFolders( in nsIMsgWindow msgWindow, in nsIMsgFolder oldFolder); AString generateUniqueSubfolderName(in AString prefix,in nsIMsgFolder otherFolder); void updateSummaryTotals(in boolean force); void summaryChanged(); long getNumUnread(in boolean deep); long getTotalMessages(in boolean deep); void clearNewMessages(); void clearRequiresCleanup(); void setFlag(in unsigned long flag); void clearFlag(in unsigned long flag); boolean getFlag...
... long getNumUnread(in boolean deep); getTotalMessages() Get the total number of messages in this folder, or in all su...
Document.createNSResolver() - Web APIs
used as a context for namespace resolution. Return value nsResolver is an XPathNSResolver object. Notes Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document. This adapter works like the DOM Level 3 method lookupNamespaceURI on nodes in resolving the namespaceURI from a given prefix using the current information available in the node's hierarchy at the time lookupNamespaceURI is called. Also correctly resolves the implicit xml prefix. Note, XPath defines QNames without prefix to match only elements in the null namespace. There is no way in XPath to pick up the default namespace as applied to a regular element reference (e.g., p[@id='_myid'] for xmlns='http://www.w3.org/1999...
...pplied to a regular element reference (e.g., p[@id='_myid'] for xmlns='http://www.w3.org/1999/xhtml'). To match default elements in a non-null namespace, you either have to refer to a particular element using a form such as *namespace-uri()=http://www.w3.org/1999/xhtml and name()=p[@id='_myid'] (this approach works well for dynamic XPath expressions where the namespaces might not be known) or use prefixed name tests, and create a namespace resolver mapping the prefix to the namespace. Read more on how to create a user defined namespace resolver if you wish to take the latter approach. createNSResolver was introduced in DOM Level 3. See also document.evaluate Introduction to using XPath in JavaScript Specifications Specification Status Comment Document Object ...
Element - Web APIs
Web › API › Element
iately following the given one in the tree, or null if there's no sibling node. Element.outerHTML Is a DOMString representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string. Element.part Represents the part identifier(s) of the element (i.e. set using the part attribute), returned as a DOMTokenList. Element.prefix Read only A DOMString representing the namespace prefix of the element, or null if no prefix is specified. NonDocumentTypeChildNode.previousElementSibling Read only Is a Element, the element immediately preceding the given one in the tree, or null if there is no sibling element. Element.scrollHeight Read only Returns a Number representing the scroll view height of an element. Element.scr...
...n indicating if the element can receive input focus via the tab key. Element.tagName Read only Returns a String with the name of the tag for the given element. Element.undoManager Read only Returns the UndoManager associated with the element. Element.undoScope Is a Boolean indicating if the element is an undo scope host, or not. Note: DOM Level 3 defined namespaceURI, localName and prefix on the Node interface. In DOM4 they were moved to Element. This change is implemented in Chrome since version 46.0 and Firefox since version 48.0. Properties included from Slotable The Element interface includes the following property, defined on the Slotable mixin. Slotable.assignedSlotRead only Returns a HTMLSlotElement representing the <slot> the node is inserted in. Event handlers ...
HTMLOrForeignElement.dataset - Web APIs
ute is the name of the same HTML attribute, but in camelCase and with no dashes, dots, etc. In addition to the information below, you'll find a how-to guide for using HTML data attributes in our article Using data attributes. Name conversion dash-style to camelCase conversion A custom data attribute name is transformed to a key for the DOMStringMap entry with the following rules The prefix data- is removed (including the dash); For any dash (U+002D) followed by an ASCII lowercase letter a to z, the dash is removed, and the letter is transformed into its uppercase counterpart; Other characters (including other dashes) are left unchanged. camelCase to dash-style conversion The opposite transformation, which maps a key to an attribute name, uses the following rules: R...
...removed, and the letter is transformed into its uppercase counterpart; Other characters (including other dashes) are left unchanged. camelCase to dash-style conversion The opposite transformation, which maps a key to an attribute name, uses the following rules: Restriction: Before the transformation, a dash must not be immediately followed by an ASCII lowercase letter a to z; The prefix data- is added; Any ASCII uppercase letter A to Z is transformed into a dash, followed by its lowercase counterpart; Other characters are left unchanged. The restriction in the rules above ensures that the two transformations are the inverse one of the other. For example, the attribute named data-abc-def corresponds to the key abcDef. Accessing values Attributes can be set and read...
IDBVersionChangeEvent - Web APIs
snippet, we make a request to open a database, and include handlers for the success and error cases. Upon a version change (after an upgradedneeded event), the success event will implement the IDBVersionChangeEvent interface. For a full working example, see our To-do Notifications app (view example live.) var note = document.querySelector("ul"); // In the following line, you should include the prefixes of implementations you want to test. window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. // Moreover, you may need references to some window.IDB* objects: window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; window.IDBKeyRang...
... || window.webkitIndexedDB || window.msIndexedDB; // DON'T use "var indexedDB = ..." if you're not in a function. ...
Pinch zoom gestures - Web APIs
if (evCache[i].pointerId == ev.pointerId) { evCache.splice(i, 1); break; } } } Event logging These functions are used to send event activity to the application's window (to support debugging and learning about the event flow). ...
...ging These functions are used to send event activity to the application's window (to support debugging and learning about the event flow). ...
Using WebGL extensions - Web APIs
WebGL, like its sister APIs (OpenGL and OpenGL ES), supports extensions. A complete list of extensions is available in the khronos webgl extension registry. Note: In WebGL, unlike in other GL APIs, extensions are only available if explicitly requested. Canonical extension names, vendor prefixes and preferences Extensions may be supported by browser vendors before being officially ratified (but only when they are in draft stage). In that case, their name can be prefixed by the vendor prefix (MOZ_, WEBKIT_, etc.) or the extension is only available once a browser preference has been toggled. If you wish to work with the bleeding edge of extensions, and want to keep working on upon ratification (assuming, of course, that the extension doesn't change in incompatible ways), that you query the can...
...to keep working on upon ratification (assuming, of course, that the extension doesn't change in incompatible ways), that you query the canonical extension name as well as the vendor extension name. For instance: var ext = ( gl.getExtension('OES_vertex_array_object') || gl.getExtension('MOZ_OES_vertex_array_object') || gl.getExtension('WEBKIT_OES_vertex_array_object') ); Note that, vendor prefix have been discouraged more and more and thus most browser implement experimental extensions behind a feature flag rather than vendor prefix. The feature flags are: webgl.enable-draft-extensions in Firefox chrome://flags/#enable-webgl-draft-extensions in Chromium based browsers (Chrome, Opera). Naming conventions WebGL extensions are prefixed with "ANGLE", "OES", "EXT" or "WEBGL". These pr...
Improving compatibility using WebRTC adapter.js - Web APIs
While the WebRTC specification is relatively stable, not all browsers have fully implemented all of its features. In addition, some browsers still have prefixes on some or all WebRTC APIs. While you can manually code around these issues, there is an easier way. The WebRTC organization provides on GitHub the WebRTC adapter to work around compatibility issues in different browsers' WebRTC implementations. The adapter is a JavaScript shim which lets your code to be written to the specification so that it will "just work" in all browsers with WebRTC support. There's no need to conditionally use prefixed APIs or implement other workarounds. Note: Since there is ongoing fluidity in functionality and naming of API terms in WebRTC and supporting browsers, use of this adapter is generally recommended.
...fixed APIs or implement other workarounds. Note: Since there is ongoing fluidity in functionality and naming of API terms in WebRTC and supporting browsers, use of this adapter is generally recommended. The adapter is provided under a BSD-style license. What adapter.js does For each version of each browser that supports WebRTC, adapter.js implements the needed polyfills, establishes the non-prefixed names of APIs, and applies any other changes needed to make the browser run code written to the WebRTC specification. For example, on Firefox versions older than 38, the adapter adds the RTCPeerConnection.urls property; Firefox doesn't natively support this property until Firefox 38, while on Chrome, the adapter adds support for the Promise based API is added if it's not present. These are jus...
XPathEvaluator.createExpression() - Web APIs
This method compiles an XPathExpression which can then be used for (repeated) evaluations of the XPath expression. Syntax XPathExpression XPathEvaluator.createExpression(expression, resolver); Parameters expression A DOMString representing representing the XPath expression to be created. resolver Optional Permits translation of all prefixes, including the xml namespace prefix, within the XPath expression into appropriate namespace URIs. ...
... Example The following example shows the use of the evaluate() method. ...
XPathEvaluator.evaluate() - Web APIs
th expression on the given node or document and returns an XPathResult. Syntax XPathResult XPathEvaluator.evaluate(expression, contextNode, resolver, type, result); Parameters expression A DOMString representing the XPath expression to be parsed and evaluated. contextNode A Node representing the context to use for evaluating the expression. resolver Optional Permits translation of all prefixes, including the xml namespace prefix, within the XPath expression into appropriate namespace URIs. type Optional Specifies the type of result to be returned by evaluating the expression. This must be one of the XPathResult.Constants. result Optional Allows to specify a result object which may be reused and returned by this method. If this is specified as null or the implementation does not r...
...presenting the result of evaluating the XPath expression. Exceptions INVALID_EXPRESSION_ERR If the expression is not legal according to the rules of the XPathEvaluator, an XPathException of type INVALID_EXPRESSION_ERR is raised. TYPE_ERR In case result cannot be converted to the specified type, an XPathException of type TYPE_ERR is raised. NAMESPACE_ERR If the expression contains namespace prefixes which cannot be resolved by the specified XPathNSResolver, a DOMException of type NAMESPACE_ERROR is raised. WRONG_DOCUMENT_ERR If the provided context node is from a document that is not supported by the XPathEvaluator, a DOMException of type WRONG_DOCUMENT_ERR is raised. NOT_SUPPORTED_ERR If the provided context node is not a type permitted as an XPath context node or the request type is ...
XPathNSResolver - Web APIs
Specifications Specification Status Comment Document Object Model (DOM) Level 3 XPath SpecificationThe definition of 'XPathNSResolver' in that specification. ...
... Specifications Specification Status Comment Document Object Model (DOM) Level 3 XPath SpecificationThe definition of 'XPathNSResolver' in that specification. ...
:is() (:matches(), :any()) - CSS: Cascading Style Sheets
Web › CSS › :is
Note: :matches() was renamed to :is() in CSSWG issue #3258. The :is() CSS pseudo-class function takes a selector list as its argument, and selects any element that can be selected by one of the selectors in that list. This is useful for writing large selectors in a more compact form. Note that currently browsers support this functionality as :matches(), or through an older, prefixed pseudo-class -- :any(), including older versions of Chrome, Firefox, and Safari. :any() works in exactly the same way as :matches()/:is(), except that it requires vendor prefixes and doesn't support complex selectors. /* Selects any paragraph inside a header, main or footer element that is being hovered */ :is(header, main, footer) p:hover { color: red; cursor: pointer; } /* The above is equivalent to...
...ursor: pointer; } Syntax :is( <complex-selector-list> )where <complex-selector-list> = <complex-selector>#where <complex-selector> = <compound-selector> [ <combinator>? <compound-selector> ]*where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
Linear-gradient Generator - CSS: Cascading Style Sheets
('data-state')="==" (update_output)="" *="" **="" +="" ++i)="" 4)="" 500);="" :="" <="" activeaxis.deleteactivepoint();="" activeaxis.updatepointcolor(color);="" activeaxis.updatepointposition(color);="" add_axis_btn.removeattribute('data-state');="" axes_menu="getElemById('gradient-axes');" axesmanager.init();="" box="" button="getElemById('canvas-bg');" button.addeventlistener('click',="" code="prefix" container="" container.setattribute('data-alpha',="" container;="" createstartaxis(-18);="" createstartaxis(18);="" delete_point_btn="getElemById('delete-point');" delete_point_btn.addeventlistener('click',="" delete_point_btn.setattribute('data-state',="" dropdownmanager.init();="" dropdownmanager.subscribe('axis-unit',="" for(var="" function="" function()="" functions="" general="" gradient="[...
...lidermanager.subscribe('point-position',="" k="0;" len="lg_axes.length;" len;="" lg_axes[i].shortcut.style.left="60" lg_axes[i].updateabsoluteposition();="" lg_axes[i].updateonresize();="" methods="" output="getElemById('output');" output.children[index].children[1].textcontent="code;" output.children[index].style.height="output.children[index].children[1].scrollHeight" output;="" point="" pre="" prefix)="" resizecontainer="function" resizecontainer()="" resizecontainer);="" resizecontainer,="" resizeend="function" resizeend()="" resizeend);="" return="" return;="" setaddaxisbutton();="" setaxisunit);="" setdeleteaxisbutton();="" setdeletebuttonstate="function" setdeletebuttonstate('disabled');="" setdeletebuttonstate(state)="" setdeletepointbutton="function" setdeletepointbutton()="" setdeletep...
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
Value Demo Browser Description attachment div{ color: black; -moz-appearance: attachment; -webkit-appearance: attachment; } <div>Lorem</div> Safari borderless-attachment div{ color: black; -moz-appearance: borderless-attachment; -webkit-appearance: bor...
...extfield-multiline; } <div>Lorem</div> Firefox Use textarea instead. -apple-pay-button div{ color: black; -webkit-appearance: -apple-pay-button; } <div>Lorem</div> Safari iOS and macOS only. Available on the web starting in iOS 10.1 and macOS 10.12.1 Obsolete values The following values were at some point implemented for a prefixed property, but are no longer supported. Value Browser Description button-arrow-down Firefox Removed in Firefox 64 button-arrow-next Firefox Removed in Firefox 64 button-arrow-previous Firefox Removed in Firefox 64 button-arrow-up Firefox Removed in Firefox 64 button-focus Firefox Re...
mask-border - CSS: Cascading Style Sheets
a bitmap-based mask border! Pretty neat, isn't it?</div> CSS To match the size of a single diamond, we will use a value of 90 divided by 3, or 30, for slicing the image into corner and edge regions. A repeat value of round will make the mask slices fit evenly, i.e., without clipping or gaps. ...
...or: lavender; border: 18px solid salmon; padding: 10px; /* Prefixed longhand properties currently supported in Chromium -webkit-mask-box-image-source: url(https://udn.realityripple.com/samples/2d/fd08a3134c.png); -webkit-mask-box-image-slice: 30 fill; -webkit-mask-box-image-width: 20px; -webkit-mask-box-image-repeat: round; -webkit-mask-box-image-outset: 1px; */ /* Prefixed shorthand property currently supported in Chromium */ -webkit-mask-box-image: url("https://udn.realityripple.com/samples/2d/fd08a3134c.png") /* source */ 30 fill / /* slice */ 20px / /* width */ 1px /* outset */ round; /* repeat */ /* Updated standard shorthand property, not supported anywhere yet */ mask-border: url("https://u...
ruby-position - CSS: Cascading Style Sheets
es Internet Explorer 9 and later support an old draft values: inline (equivalent of having display: inline on the ruby), and above (synonym of the modern over).Opera No support NoSafari No support NoNotes No support NoNotes Notes Safari implements a non-standard, prefixed, version of ruby-position, -webkit-ruby-position: it has two properties: before and after (both equivalent, for ltr and rtl scripts to the standard over value used with ruby-align: start).WebView Android No support NoChrome Android No support NoFirefox Android Full support ...
...hrome Android No support NoFirefox Android Full support 38Opera Android No support NoSafari iOS No support NoNotes No support NoNotes Notes Safari implements a non-standard, prefixed, version of ruby-position, -webkit-ruby-position: it has two properties: before and after (both equivalent, for ltr and rtl scripts to the standard over value used with ruby-align: start).Samsung Internet Android No support Nointer-character ExperimentalChrome No support NoEdge No support ...
Using device orientation with 3D transforms - Developer guides
ment 100px down, so the rotateY value should be -gamma Finally, the order of the three different rotations is very important to accurately convert an orientation to a 3D rotation: rotateZ, then rotateX and then rotateY. Here's a simple code snippet to sum it up: var elem = document.getElementById("view3d"); window.addEventListener("deviceorientation", function(e) { // remember to use vendor-prefixed transform property elem.style.transform = "rotateZ(" + ( e.alpha - 180 ) + "deg) " + "rotateX(" + e.beta + "deg) " + "rotateY(" + ( -e.gamma ) + "deg)"; }); Orientation compensation Compensating the orientation of the device can be useful to create parallax effects or augmented reality. This is achieved by inverting the previous order of rotations and negating the alpha value: ...
... "rotateY(" + ( -e.gamma ) + "deg)"; }); Orientation compensation Compensating the orientation of the device can be useful to create parallax effects or augmented reality. ...
Mobile Web Development - Developer guides
Web › Guide › Mobile
mplement visual effects like gradients and shadows without images. Mobile APIs Finally, you can take advantage of the new possibilities offered by mobile devices, such as orientation and geolocation. ...
... browsers: Try to avoid using browser-specific features, such as vendor-prefixed CSS properties. If you do need to use these features, check whether other browsers implement their own versions of these features, and target them too. For browsers that don't support these features, provide an acceptable fallback. For example, if you set a gradient as a background for some text using a vendor-prefixed property like -webkit-linear-gradient, it's best to include the other vendor-prefixed versions of the linear-gradient() property. If you don't do that, at least make sure that the default background contrasts with the text: that way, the page will at least be usable in a browser which is not targeted by your linear-gradient rule. See this list of Gecko-specific properties, and this list of Web...
Resource URLs - HTTP
Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. ...
...very user. There may also be large incompatibilities between implementations and the behavior may change in the future. Resource URLs, URLs prefixed with the resource: scheme, are used by Firefox and Firefox browser extensions to load resources internally, but some of the information is available to sites the browser connects to as well. Syntax Resource URLs are composed of two parts: a prefix (resource:), and a URL pointing to the resource you want to load: resource://<url> An example: resource://gre/res/svg.css When arrows are found in the resource URL's ('->'), it means that the first file loaded the next one: resource://<File-loader> -> <File-loaded> Please refer to Identifying resources on the web for more general details. In this article, we focus on resource URIs, which a...
Basics of HTTP - HTTP
the years. Resources and URIs A brief introduction to the concept of resources, identifiers, and locations on the web. Identifying resources on the Web Describes how web resources are referenced and how to locate them. Data URIs A specific kind of URI that directly embeds the resource it represents. Data URIs are very convenient, but have some caveats. Resource URLs Resource URLs, those prefixed with the resource scheme are used by Firefox and Firefox browser extensions to load resources internally, but is also available to some sites the browser connects to as well. Separating identity and location of a resource: The Alt-Svc HTTP header Most of the time the identity and location of a web resource are shared, this can be changed with the Alt-Svc header. MIME types Since HTTP/1.0, d...
...t of the time the identity and location of a web resource are shared, this can be changed with the Alt-Svc header. MIME types Since HTTP/1.0, different types of content can be transmitted. This article explains how this is accomplished using the Content-Type header and the MIME standard. Choosing between www and non-www URLs This article provides guidance on how to choose whether to use a www-prefixed domain or not, along with the consequences of that choice. Flow of an HTTP session This fundamental article describes a typical HTTP session: What happens under the hood when you click on a link in your browser. HTTP Messages HTTP Messages transmitted during requests or responses have a very clear structure. This introductory article describes this structure, its purpose, and its possibilit...
If-Match - HTTP
Web › HTTP › Headers › If-Match
r makes the request conditional. For GET and HEAD methods, the server will send back the requested resource only if it matches one of the listed ETags. For PUT and other non-safe methods, it will only upload the resource in this case. The comparison with the stored ETag uses the strong comparison algorithm, meaning two files are considered identical byte to byte only. If a listed ETag has the W/ prefix indicating a weak entity tag, it will never match under this comparison algorithm. There are two common use cases: For GET and HEAD methods, used in combination with a Range header, it can guarantee that the new ranges requested comes from the same resource than the previous one. If it doesn't match, then a 416 (Range Not Satisfiable) response is returned. For other methods, and in particula...
...2 (Precondition Failed) response is returned. Header type Request header Forbidden header name no Syntax If-Match: <etag_value> If-Match: <etag_value>, <etag_value>, ... Directives <etag_value> Entity tags uniquely representing the requested resources. They are a string of ASCII characters placed between double quotes (like "675af34563dc-tr34"). They may be prefixed by W/ to indicate that they are "weak", i.e. that they represent the resource semantically, but not byte-for-byte. However, in an If-Match header, weak entity tags will never match. * The asterisk is a special value representing any resource. Examples If-Match: "bfc13a64729c4290ef5b2c2730249c88ca92d82d" If-Match: "67ab43", "54ed21", "7892dd" If-Match: * Specifications Specifi...
HTTP Index - HTTP
Web › HTTP › Index
ed over the years, adding new functionality and new semantics by creating new HTTP methods or headers. 5 Choosing between www and non-www URLs Guide, HTTP, URL A recurring question among website owners is whether to choose non-www or www URLs. This page provides some advice on what's best. 6 Data URLs Base64, Guide, HTTP, Intermediate, URL Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents. 7 Evolution of HTTP Guide, HTTP, NeedsUpdate, NeedsUpdate(HTTP/3) HTTP (HyperText Transfer Protocol) is the underlying protocol of the World Wide Web. HTTP has evolved from an early protocol to exchange files in a semi-trusted laboratory environment, to the modern maze of the Internet, n...
... the nature and format of a document, file, or assortment of bytes. 10 Incomplete list of MIME types Audio, File Types, Files, HTTP, MIME, MIME Types, PHP, Reference, Text, Types, Video Here is a list of MIME types, associated by type of documents, ordered by their common extensions. 11 Resource URLs Guide, HTTP, Intermediate, Resource Resource URLs, URLs prefixed with the resource: scheme, are used by Firefox and Firefox browser extensions to load resources internally, but some of the information is available to sites the browser connects to as well. 12 Browser detection using the user agent Compatibility, HTTP, Web Development Serving different Web pages or services to different browsers is usually a bad idea. The Web is meant to b...
Private class fields - JavaScript
Syntax class ClassWithPrivateField { #privateField } class ClassWithPrivateMethod { #privateMethod() { return 'hello world' } } class ClassWithPrivateStaticField { static #PRIVATE_STATIC_FIELD } Examples Private static fields Private fields are accessible on the class constructor from inside the class declaration itself. ...
...The # is a part of the name itself. It is used for declaration and accessing as well. The encapsulation is enforced by the language. It is a syntax error to refer to # names from out of scope. class ClassWithPrivateField { #privateField constructor() { this.#privateField = 42 this.#randomField = 666 // Syntax error } } const instance = new ClassWithPrivateField() insta...
<mo> - MathML
Web › MathML › Element › mo
There is no visual effect for this attribute, but it specifies whether the operator is a fence (such as parentheses). Allowed values are true or false. form Specifies the role of the operator in an enclosed expression, which affects spacing and other default properties. For ordinary operators (+, -, etc. ) you usually do not need to specify this attribute explicitly. Possible values are: prefix, for opening fences. (It is the default value if the operator is the first argument in a <mrow> element with more than one argument.) infix, for separators. (It is the default value if the operator is not included in a <mrow> element.) postfix, closing fences. (It is the default value if the operator is the last argument in a <mrow> element with more than one argument.) href Used to set...
.... symmetric If stretchy is true, this attribute specifies whether the operator should be vertically symmetric around the imaginary math axis (centered fraction line). The default value is true if stretchy is set to true and otherwise false. Allowed values are true or false. Examples <math> <mrow> <mn>5</mn> <mo>+</mo> <mn>5</mn> </mrow> <mrow> <mo> [ </mo> <!-- default form value: prefix --> <mrow> <mn> 0 </mn> <mo> ; </mo> <!-- default form value: infix --> <mn> 1 </mn> </mrow> <mo> ) </mo> <!-- default form value: postfix --> </mrow> </math> Specifications Specification Status Comment MathML 3.0The definition of 'mo' in that specification. Recommendation Current specification MathML 2.0The definition of 'mo' in th...
<mpadded> - MathML
The MathML <mpadded> element is used to add extra padding and to set the general adjustment of position and size of enclosed contents. Attributes class, id, style Provided for use with stylesheets. depth Sets or increments the depth. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . height Sets or increments the height. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . href Used to set a hyperlink to a specified URI. lspace Sets or increments the horizontal position. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . mathbackground The background color. You can use #rgb, #rrggbb and HTML color names. mathcolor The text color. You can use #rgb, #rrggbb and...
...nts the horizontal position. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . mathbackground The background color. You can use #rgb, #rrggbb and HTML color names. mathcolor The text color. You can use #rgb, #rrggbb and HTML color names. voffset Sets or increments the vertical position. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . width Sets or increments the width. Possible values: Any length or an increment/decrement (a length prefixed with "+" or "-") . Pseudo-units It is possible to use the keywords "depth", "height", and "width" as a pseudo-unit for the attributes depth, height, lspace, voffset, and width. They represent each length of the same-named dimension. Prior to Gecko 7.0 (Firefox 7.
Subresource Integrity - Web security
er changes of any kind at all having been made to those files. Using Subresource Integrity You use the Subresource Integrity feature by specifying a base64-encoded cryptographic hash of a resource (file) you're telling the browser to fetch, in the value of the integrity attribute of any <script> or <link> element. An integrity value begins with at least one string, with each string including a prefix indicating a particular hash algorithm (currently the allowed prefixes are sha256, sha384, and sha512), followed by a dash, and ending with the actual base64-encoded hash. Note: An integrity value may contain multiple hashes separated by whitespace. A resource will be loaded if it matches one of those hashes. Example integrity string with base64-encoded sha384 hash: sha384-oqVuAfXRKap7fdgcCY...
...actual base64-encoded hash. Note: An integrity value may contain multiple hashes separated by whitespace. A resource will be loaded if it matches one of those hashes. Example integrity string with base64-encoded sha384 hash: sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC So oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC is the "hash" part, and the prefix sha384 indicates that it's a sha384 hash. Note: An integrity value's "hash" part is, strictly speaking, a cryptographic digest formed by applying a particular hash function to some input (for example, a script or stylesheet file). But it's common to use the shorthand "hash" to mean cryptographic digest, so that's what's used in this article. Tools for generating SRI hashes You can generate S...
Contributor's Guide - Archive of obsolete content
...
Working with Events - Archive of obsolete content
osition: button }); } This wildcard feature does not yet work for the tabs or windows modules. Adding Listeners in Constructors Event emitters may be modules, as is the case for the ready event above, or they may be objects returned by constructors. In the latter case the options object passed to the constructor typically defines properties whose names are the names of supported event types prefixed with "on": for example, "onOpen", "onReady" and so on. Then in the constructor you can assign a listener function to this property as an alternative to calling the object's on() method. For example: the ActionButton object emits an event when the button is clicked. The following add-on creates a button and assigns a listener to the onClick property of the options object supplied to the button...
Guides - Archive of obsolete content
ompartments can be used to improve security, and about the built-in SDK module loader, known as Cuddlefish. Classes and Inheritance Learn how classes and inheritance can be implemented in JavaScript, using constructors and prototypes, and about the helper functions provided by the SDK to simplify this. Private Properties Learn how private properties can be implemented in JavaScript using prefixes, closures, and WeakMaps, and how the SDK supports private properties by using namespaces (which are a generalization of WeakMaps). Content Processes The SDK was designed to work in an environment where the code to manipulate web content runs in a different process from the main add-on code. This article highlights the main features of that design. Testing the Add-on SDK Learn how to run the...
context-menu - Archive of obsolete content
It is easy to find out which menu items are constructed by the addon-sdk module because they have the class addon-context-menu-item. The difficult part it to identify those that belong to your extension. One way to achieve this it to utilize the data attribute of Item class constructor, which conveniently maps to the value attribute of the underlying xul element. So if data consists of unique prefix and the desired tooltip text, it is just a matter of kicking in the right moment. const { getMostRecentBrowserWindow } = require("sdk/window/utils"); var cm = require("sdk/context-menu"); var uuid = require('sdk/util/uuid').uuid(); var uuidstr = uuid.number.substring(1,37); cm.Item({ data: uuidstr+"This is a tooltip", label: "Just a tigger, will never show up", contentScript: 'self.on("c...
console/plain-text - Archive of obsolete content
An instance of the console is injected globally into addon's contexts. Globals Constructors PlainTextConsole(print) Creates a console instance. ...
cfx to jpm - Archive of obsolete content
In most respects this is the same as the old cfx logic. However there are a few differences, because old compatibility shims have been removed. Requiring local modules Suppose your add-on is structured into separate modules: my-addon lib main.js utils.js When you want to use the "utils" module in "main.js", you should use a path relative to "main.js", and prefix the path with "./" to indicate that it's a relative path: var utils = require("./utils"); However, with cfx you are also allowed to omit the "./": var utils = require("utils"); // this will not work with jpm! This second form will not work with jpm. Requiring modules from test code Similarly, suppose you've written some tests for your add-on: my-addon lib my-addon.js ...
jpm - Archive of obsolete content
tring) generated on the addons.mozilla.org key management page. This value should be guarded with care and never checked into version control. If your secret is compromised, another developer could upload add-ons to your account. You should revoke and regenerate compromised API credentials immediately. On the AMO key management page, this value is labeled "JWT Secret". --api-url-prefix=http://.../api An optional API URL prefix in case you'd like to use a pre-production signing API. For example, you could pass https://addons-dev.allizom.org/api/v3 to use the dev instance of addons.mozilla.org. --xpi=/path/to/file.xpi An XPI file to sign. When no file is specified, a new XPI will be generated from the current directory (or --addon-dir). ...
Localization - Archive of obsolete content
Nom monster_name_description= Quel est le nom du monstre ? Now when the browser's locale is set to "en-US", users see this in the Add-ons Manager: When the browser's locale is set to "fr", they see this: The menulist and the radio preference types have options. The label attribute of each option is displayed to the user. If the locale file has a entry with the value of the label attribute prefixed with "{name}_options." as its key, where {name} is the name of the preference, its value is used as a localized label. Using identifiers If the localization system can't find an entry for a particular identifier using the current locale, then it just returns the identifier itself. This has the nice property that you can write localizable, fully functional add-ons without having to write any ...
IsDefaultNamespace - Archive of obsolete content
. ...
Preferences - Archive of obsolete content
la Suite (not Firefox and Thunderbird), copy them to (appdir)/defaults/pref in your install script. For Firefox/Thunderbird, just put them in myext.xpi/defaults/preferences/. They will be copied and registered with the preferences system automatically. More about preferences "branches" Preference names consist of a few strings separated with dots, and related preferences usually share the same prefix. For example, most accessibility preferences in Mozilla start with "accessibility." This means that all existing preferences can be imagined as if they were in a tree, like this: + | +-- accessibility | | | +-- typeaheadfind | | | | | +-- autostart (accessibility.typeaheadfind.autostart) | | | | | +-- enablesound (a...
QuerySelector - Archive of obsolete content
...
xml:base support in old browsers - Archive of obsolete content
3 : 2; // If the file protocol has an extra slashe, prepare to also skip it in the separator search var att2 = att.indexOf('/', protocolPos+skipfile); // Find first path separa...
Extension Versioning, Update and Compatibility - Archive of obsolete content
https then the hash must be made using one of the sha family of algorithms. The hashing algorithm used is put at the start of the string and separated from the hash by a :. <em:updateHash>sha256:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e64ad2e3a0b60120ca271ce6e6</em:updateHash> Note: the value of updateHash, must start with the string of hashing algorithm, it is a common error to delete this prefix, when setting new value to updateHash:sha256:78fc1d2887eda35b4ad2e3a0b60120ca271ce6e64ad2e3a0b60120ca271ce6e6 When a hash is specified the downloaded file is compared with the hash and an error shown if it does not match. There are quite a few tools you may use to generate hashes: Various Unix flavors include sha1sum, sha256sum and so on. Windows users should consider HashTab for interactive...
Interaction between privileged and non-privileged pages - Archive of obsolete content
var mainWindow = window.Qu...
Migrating from Internal Linkage to Frozen Linkage - Archive of obsolete content
quals(otherString, CaseInsensitiveCompare)) return NS_OK; // woot, we're equal in all things but case When using unicharutils from frozen-linkage code, link against the unicharutil_external_s static library. The frozen string API doesn't implement the Left(), Mid(), or Right() signatures. Use StringHead(), Substring(), and StringTail() instead: nsString buffer = someString; - nsCAutoString prefix;- buffer.Left(prefix, 4); + const nsDependentSubstring prefix = StringHead(buffer, 4); The frozen string API doesn't use nsSubstringTuple objects and maintains all strings in a contiguous buffer. This means that the + operator is not implemented, nor are the PromiseFlatString functions or classes around any more. Use += or Append() instead of using +, and use nsString or nsCString instead of Pro...
Adding Events and Commands - Archive of obsolete content
st like HTML, is to place the handler in the XUL code: <overlay id="xulschoolhello-browser-overlay" onload="XulSchoolChrome.BrowserOverlay.init();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> We prefer the first method because it keeps a better separation of content and behavior. Also, note that the addEventListener method receives the event name without the "on" prefix, while element attributes do have the prefix. There's a long list of events you can listen to, and which you use depend on the situation. Elements only implement the events that are relevant to them, but there are several events that are implemented for most elements. These are some notable events you should keep in mind: oncommand. This is one of the most important and commonly used events in...
Index of archived content - Archive of obsolete content
Forms related code snippets HTML in XUL for rich tooltips HTML to DOM IsDefaultNamespace JS XPCOM JavaScript Debugger Service JavaScript timers JavaScript Daemons Management Label and description LookupNamespaceURI LookupPrefix Miscellaneous Modules On page load Page Loading Post data to window Preferences Progress Listeners QuerySelector Rosetta Running applications SVG Animation SVG General Scrollbar Sidebar StringView Tabbox ...
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
ons/venkman'] 0 files updated, 0 files merged, 0 files removed, 0 files unresolved Updated to revision 06ea5135b7f3c9a639c483183ceb9802abee621b. ...
No Proxy For configuration - Archive of obsolete content
":80" or "*:80" are not supported. all non-FQDN hosts, such as intranet hosts The string "<local>" (without quotes) "<local>" Bypasses the proxy for all hostnames which have no periods in them. For example: "https://myCompanyIntranet/" Formats that are not accepted Example Domain filters with interior wildcards www.*.com IP address string prefixes 127. or 10.0.* IP addresses with wildcards in quads 10.*.*.* Preferences Name network.proxy.no_proxies_on Default value localhost, 127.0.0.1 By default "localhost" and "127.0.0.1" are excluded, since most people assume these should connect to the local system. Note: When IPv6 support is added, additional addresses will need to be added and...
In-Depth - Archive of obsolete content
allow them to use the technology for the UI of Mozilla. All of the properties follow the W3C's standards for vendor extensions, which is why they all begin with -moz. This is only a list of properties which may be useful to you; it is in no way all of the Mozilla specific properties available. Other sites which list Mozilla specific CSS properties XulPlanet.com [dead link, 26.03.13] Mozilla-prefixed properties on the standard track 26.03.13 -moz-appearance Makes a widget look like it's from your operating system. Possible are (This is probably an incomplete list): none - (!important may be needed) Will override the operating system default. Use this when you want one or two controls to look different from the operating systems defaults. button, checkbox-container, checkbox, dialog, dualbu...
Installing Dehydra - Archive of obsolete content
mirrors) wget http://www.netgull.com/gcc/releases/gcc-4.5.3/gcc-4.5.3.tar.bz2 tar -jxvf gcc-4.5.3.tar.bz2 # apply PLUGIN_FINISH_DECL patch wget https://bug559964.bugzilla.mozilla.o....cgi?id=457606 -O finish_decl.diff cd gcc-4.5.3 patch -p0 < ../finish_decl.diff # build GCC cd .. mkdir gcc-objdir mkdir gcc-dist cd gcc-objdir ../gcc-4.5.3/configure --disable-bootstrap --enable-languages=c,c++ --prefix=$PWD/../gcc-dist make make install Building Dehydra and Treehydra Building Dehydra requires SpiderMonkey development headers from the previous step. CXX should point to your copy of GCC 4.5. It is recommended to get the latest Dehydra sources by checking out from Mercurial. (Obsolete Dehydra releases can be found on the Mozilla ftp site.) hg clone http://hg.mozilla.org/rewriting-and-analysis/deh...
Document Loading - From Load Start to Finding a Handler - Archive of obsolete content
ask the category manager whether it has an entry for the desired content type under the NS_CONTENT_LISTENER_CATEGORYMANAGER_ENTRY key. If it does, we instantiate that component using its contractid (via CreateInstance) and call TryContentListener on it. If we find no content listener willing to handle the data, we look for a content handler (using CreateInstance on NS_CONTENT_HANDLER_CONTRACTID_PREFIX + aContentType and expecting back an nsIContentHandler). If a handler is found, we call HandleContent on it to give it a chance to take over the load. If it does so, we abort the entire dispatch process right here and cancel the necko request; we will not be getting a stream listener to stream data into, since the content handler has taken over completely. If at this point we do not have an nsI...
Creating a Help Content Pack - Archive of obsolete content
rdf:about, this looks exactly like a top-level entry definition. The difference is a result of how RDF works. In RDF data describes data. Top-level entries describe the root node, urn:root; nested entries describe other entries. You can refer to an entry by giving the entry a unique rdf:ID attribute. Then, to describe that entry, you set an rdf:about attribute to the value of the entry's rdf:ID, prefixed by a #. Nesting as described above works exactly the same no matter how deeply or shallowly nested your entry is. Nesting theoretically can work to any number of levels, but for practical reasons nesting is limited to roughly 20 levels. If you're coming anywhere close to this limit, however, you probably should be considering exactly why you need so much nesting. The Table of Contents File T...
jspage - Archive of obsolete content
over:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; (function(){var a=function(b){var c=b.relatedTarget;if(c==undefined){return true;}if(c===false){return false;}return($type(this)!="document"&&c!=this&&c.prefix!="xul"&&!this.hasChild(c)); };Element.Events=new Hash({mouseenter:{base:"mouseover",condition:a},mouseleave:{base:"mouseout",condition:a},mousewheel:{base:(Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}}); })();Element.Properties.styles={set:function(a){this.setStyles(a);}};Element.Properties.opacity={set:function(a,b){if(!b){if(a==0){if(this.style.visibility!="hidden"){this.style.visibilit...
Metro browser chrome tests - Archive of obsolete content
work test checks will run after the completion of each individual test insuring tests clean up properly. For more information on test execution see the main test exectuon loop in head.js. Adding a new browser chrome test to the tree To add a new metro browser chrome test add the test file to the BROWSER_TESTS variable in /browser/metro/base/tests/mochitest/Makefile.in. Your test file name must be prefixed with "browser_", and must have a file extension of ".js". Files that don't match this pattern will be ignored by the test harness. Using a descriptive file name is strongly encouraged instead of just using a bug number. ...
How to Write and Land Nanojit Patches - Archive of obsolete content
gs on tracemonkey and tamarin-redux. These follow-up landings on tracemonkey and tamarin-redux will overwrite any changes made to nanojit in tracemonkey and tamarin-redux! So, do not land nanojit changes directly to the tracemonkey and tamarin-redux repositories! The following files in TraceMonkey are from Nanojit: Everything in js/src/nanojit/ Everything in js/src/vprof/ Scenario 0: a common prefix for all scenarios Make private clones of all three repositories: nanojit-central, tracemonkey and tamarin-redux. Here's how to clone and build nanojit-central: $ hg clone ssh://hg.mozilla.org/projects/nanojit-central $ cd nanojit-central $ autoconf $ mkdir build $ cd build $ ../configure $ make $ make check Learn and setup automated testing for all three repositories. Write a script for copyi...
Plug-n-Hack Phase1 - Archive of obsolete content
You can see an example of a configuration document in the ZAP PnH addon. There's another (possibly out of date) example here. An example manifest (for OWASP ZAP) is: { "toolName":"OWASP ZAP", "protocolVersion":"0.2", "features":{ "proxy":{ "PAC":"http://localhost:8080/proxy.pac", "CACert":"http://localhost:8080/OTHER/core/other/rootcert/" }, "commands":{ "prefix":"zap", "manifest":"http://localhost:8080/OTHER/mitm/other/service/" } } } The top level manifest includes optional links to a proxy PAC and a root CA certificate. It also optionally links to another manifest which describes the commands the browser can invoke. Serving manifests from outside of your tool You may want to serve manifests from a separate webserver (e.g. for testing); Plu...
RDF Datasource How-To - Archive of obsolete content
the DLL's NSRegisterSelf() method, you simply call the component manager's RegisterComponent() method: extern "C" PR_IMPLEMENT(nsresult) NSRegisterSelf(nsISupports* aServiceManager, const char* aPath) { nsresult rv; ... // Assume compMgr refers to the component manager rv = compMgr->RegisterComponent(kMyDataSourceCID, "My Data Source", NS_RDF_DATASOURCE_PROGID_PREFIX "my-datasource", aPath, PR_TRUE, PR_TRUE); ... } Replace kMyDataSourceCID with your datasource's CLSID. Replace "My Data Source" with a descriptive string that should appear in the registry. Finally, replace "my-datasource" with a value appropriate for your datasource. This value, when prefixed with "rdf:", is a datasource identifier, and may be used with nsIRDFService::GetDataSou...
Frequently Asked Questions - Archive of obsolete content
Mozilla show an "XML Parsing Error" message instead of SVG? This is an XML debugging message to help XML authors correct errors in their XML documents. Mozilla will show this message when there's an XML well formedness error in the file it tried to load. (It doesn't mean there's an error in Mozilla.) There are many different XML errors, but the most common one in SVG files is "XML Parsing Error: prefix not bound to a namespace". This is (almost certainly) because the 'xmlns:xlink' attribute has been used in the file without including the following two namespace bindings on the root <svg> tag. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> Make sure all your SVG files have these bindings. For more information see this link. Why am I asked to choose a prog...
File object - Archive of obsolete content
to work with. Directories and pipelines are considered special files. Pipelines either begin or end with the pipe (|) symbol. Description Filenames are specified as strings that have an implementation defined format. Use of standard "file:" URLs is encouraged. If no argument is supplied to the constructor, the current working directory is the file object that is returned. Examples of possible prefix strings are "/" to indicate the Unix root directory, "c:" to specify a Windows drive letter, and "file:" to indicate a file URL. When a file is constructed, leading and trailing spaces are removed from the filename, so new File(" abc.txt ") just creates a file called abc.txt. Filenames starting and ending with the pipe symbol (|) are interpreted as pipes. Readable pipelines (i.e. pipe to pr...
Install Object - Archive of obsolete content
manifest. In particular plugin developers should see how to package a plugin as an extension. Install Use the Install object to manage the downloading and installation of software with the XPI Installation Manager. Overview The Install object is used primarily in installation scripts. In all cases, the Install object is implicit--like the window object in regular web page scripts--and needn't be prefixed to the object methods. The following two lines, for example, are equivalent: f = getFolder("Program"); f = Install.getFolder("Program"); An installation script is composed of calls to the Install object, and generally takes the following form: Initialize the installation Call initInstall with the name of the installation and the necessary registry and version information. ...
Learn XPI Installer Scripting by Example - Archive of obsolete content
nstall scripts mustinitialize, add the files to be installed, and execute. Note also that when you call methods on the Install--as you do so often in installation scripts (getFolder, initInstall, addFile, and performInstall are all examples of common Install object methods)--the Install object is implicit; like the window object in regular web page scripts, the Install object does not need to be prefixed to the method. Initializing the Installation All installations must begin with initInstall(). The initInstall() method on the Install object creates a new installation for the specified software and version. In the browser.xpi installation, this function appears at line 20: var err = initInstall("Netscape Seamonkey", "Browser", "6.0.0.2000110807"); If you call a method on the Install objec...
expr - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › expr
...
Building accessible custom components in XUL - Archive of obsolete content
me pattern. The role attribute itself is in the XHTML 2 namespace. We will need to declare the namespace (xmlns:x2="http://www.w3.org/TR/xhtml2") so we can add an xhtml2:role attribute to each XUL element. The role attribute value is also in a namespace. We will need to declare this namespace as well (xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"), and then use this namespace prefix (wairole:) as part of the role attribute value. This will become clearer with some concrete examples: The grid element is the container for the entire control; it gets a role of "wairole:spreadsheet". Some of the description elements are row headers, and others are column headers. They each get the appropriate role, "wairole:rowheader" or "wairole:columnheader". Each label element is an individu...
XUL Events - Archive of obsolete content
most XUL elements. The events listeners can be attached using addEventListener and removed using removeEventListener. Some of the events can be attached using attributes as well. When attaching event listeners using attributes, be aware that only one listener can be attached at a time. Any previously attached listeners are disconnected. The attribute name is the event name with an 'on' prefix. XUL event reference subpages broadcastThe broadcast event is executed when the attributes of the element (such as a broadcaster) being listened to are changed. The event handler should be placed on an observer.CheckboxStateChangeThe CheckboxStateChange event is executed when the state of a <checkbox> element has changed.closeThe close event is executed when a request has been mad...
findbar - Archive of obsolete content
...
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
ed as well as the syntax for specifying queries. 930 Multiple Queries XUL, XUL_Template_Guide No summary! 931 Multiple Rule Example XUL, XUL_Template_Guide No summary! 932 Multiple Rules XUL, XUL_Template_Guide No summary! 933 Namespaces XML Namespaces can be used in XUL Templates by binding the namespace URI and prefix to the template element. For example using the following XML document containing a list of people: 934 RDF Modifications XUL, XUL_Template_Guide No summary! 935 RDF Query Syntax XUL, XUL_Template_Guide Let's look at a simple query with two statements. Each statement is placed as a direct child of the <query> element within the template.</query> 93...
Introduction to XUL - Archive of obsolete content
lares the menubar. The menubar contains a single menu called "File". This menu contains a single menu item that has a simple JavaScript onclick handler attached to it. This handler fires when the menu is selected by the user, and it dumps the text "Hello world!" to the debug console. (See Menu Bars and Menus for details.) Finally there is an HTML iframe. Note that the frame is qualified with the prefix html:, since it is an HTML object being used inside a default XUL namespace. The frame also has a special attribute called flex, which indicates how much the frame is allowed to stretch to consume available space inside its window. (See The Box System for details). Idealistic Future Direction Ideally, packages of XUL UI descriptions could be shipped in a single file something like <?xml versio...
List of commands - Archive of obsolete content
d_charNext cmd_selectCharPrevious cmd_selectCharNext cmd_beginLine cmd_endLine cmd_selectBeginLine cmd_selectEndLine cmd_wordPrevious cmd_wordNext cmd_selectWordPrevious cmd_selectWordNext cmd_scrollPageUp cmd_scrollPageDown cmd_scrollLineUp cmd_scrollLineDown cmd_movePageUp cmd_movePageDown cmd_selectPageUp cmd_selectPageDown Other commands The following list other commands (prefixed by cmd_ or Browser:) which have not been categorized here yet (though they are in the alphabetical list below): http://lxr.mozilla.org/seamonkey/sou...barOverlay.xul http://lxr.mozilla.org/seamonkey/sou...t/navigator.js http://lxr.mozilla.org/seamonkey/sou...torOverlay.xul http://lxr.mozilla.org/seamonkey/sou...onalToolbar.js http://lxr.mozilla.org/seamonkey/sou...rceOverlay.xul http://...
Methods - Archive of obsolete content
ent.getElementsByTagName DOM:element.getElementsByTagNameNS DOM:element.getFeature FIXME: brokenLink DOM:element.getUserData DOM:element.hasAttribute DOM:element.hasAttributeNS DOM:element.hasAttributes DOM:element.hasChildNodes DOM:element.insertBefore DOM:element.isEqualNode DOM:element.isSameNode DOM:element.isSupported DOM:element.lookupNamespaceURI DOM:element.lookupPrefix DOM:element.normalize DOM:element.removeAttribute DOM:element.removeAttributeNode DOM:element.removeAttributeNS DOM:element.removeChild DOM:element.removeEventListener DOM:element.replaceChild DOM:element.setAttribute DOM:element.setAttributeNode DOM:element.setAttributeNodeNS DOM:element.setAttributeNS DOM:element.setUserData ...
Property - Archive of obsolete content
ment.clientWidth DOM:element.cloneNode DOM:element.firstChild DOM:element.firstElementChild DOM:element.lastChild DOM:element.lastElementChild DOM:element.localName DOM:element.namespaceURI DOM:element.nextElementSibling DOM:element.nextSibling DOM:element.nodeName DOM:element.nodeType DOM:element.nodeValue DOM:element.ownerDocument DOM:element.parentNode DOM:element.prefix DOM:element.previousElementSibling DOM:element.previousSibling DOM:element.scrollHeight DOM:element.scrollLeft DOM:element.scrollTop DOM:element.scrollWidth DOM:element.tagName DOM:element.textContent ...
Attribute Substitution - Archive of obsolete content
<< PreviousNext >> So far, attribute replacement in an action body has been used to replace an entire attribute with the value of a variable. However, you may also replace only part of attribute's value, or use multiple variables in one attribute. For instance, to include a prefix before a variable value, you can use: <label value="My name is ?name"/> The effect will be that the ?name part of the attribute will be replaced by the value of the variable ?name. For instance, if the value of ?name is 'Jake', then the attribute value will be 'My name is Jake'. You can include multiple variables in one attribute if desired: <label value="My name is ?name and my age is ?age"/> This technique will work for any variable replacement in the action body, except for the uri attribute since t...
Namespaces - Archive of obsolete content
XML Namespaces can be used in XUL Templates by binding the namespace URI and prefix to the template element. For example using the following XML document containing a list of people: <people xmlns="www.example.com/people"> <person name="Napoleon Bonaparte" gender="male"/> <person name="Cleopatra" gender="female"/> <person name="Julius Caesar" gender="male"/> <person name="Ferdinand Magellan" gender="male"/> <person name="Laura Secord" gender="female"/> </people> <listbox datasources="people.xml" ref="*" querytype="xml"> <template xmlns:ns="www.example.com/people"> <query expr="ns:person"/> <action> <listitem uri="?" label="?ns:name"/> </action> </template> </listbox> Once added to the template element the namespaces can then be referenced inside temple ru...
SQLite Templates - Archive of obsolete content
t to one of two possible types of values. First, it may a file URL pointing to a file on disk. In this case, you will often be setting the datasources attribute dynamically after determining the file path. (If you intend to set it by script, you must set datasources in the XUL to rdf:null). The second method involves using a special url form: profile:filename.sqlite This form with the 'profile' prefix is used to refer to files in the profile directory. This is useful for user data, and is suitable as you do not need to calculate where this directory is located. The file within this directory is specified after the colon, in this case 'filename.sqlite'. Sqlite files typically have the 'sqlite' extension. As with XML datasources, the ref attribute isn't currently used for Sqlite sources, so you ...
Sorting Results - Archive of obsolete content
c:parseType="Date">1125966767295<r:date> </rdf:Description> </rdf:RDF> You can also specify parseType="Integer" for numbers which will allow sorting numerically. By specifing different types for different values, you can sort alphabetically, numerically or by date. If you are using the simple RDF query syntax, there are no variables, so you need to specify the full predicate including the rdf: prefix in the sort attribute. For instance: <treecol id="name" label="Name" sort="rdf:http://purl.org/dc/elements/1.1/title" flex="1"/> Note that all of this discussion about sorting only applies to tree builders. For other elements or content trees, sorting is done by placing the attributes on the root element. Content Sorting For content builders (templates that do not use flags="dont-build-content")...
Using Recursive Templates - Archive of obsolete content
could use multiple rules as well, in order to generate different output for each level. In this next example, an assign element is used to assign the local name of the node is to the variable ?type. In an XPath expression, the period refers to the context node. For an assign element, the context is the the result node. The local-name function retrieves the tag of the element without the namespace prefix. In this case, there isn't a namespace prefix, so the name function could be used instead. <vbox datasources="people.xml" ref="*" querytype="xml"> <template> <query expr="*"> <assign var="?type" expr="local-name(.)"/> </query> <rule> <where subject="?type" rel="equals" value="group"/> <action> <groupbox uri="?"> <caption label="?name"/> </...
XML Templates - Archive of obsolete content
er sign) and uses that node as the source XML node instead of a separate file. Otherwise the data included inline and the template are the same. Note the only change is that the addition of the xmlns attribute on the data; this is used to clear the namespace used for the elements in the data, otherwise they become XUL elements. You can also specify a namespace. If so, you will need to ensure that prefixes are defined within the template as well, so that they can be used in the XPath expressions. The namespace prefixes that may be used in an XPath expression are those that are defined on the query or assign element where the expression is used. Be aware that when XML data is included inline as in this example, the content may be displayed and may affect the layout of other parts of the window. Y...
textbox (Toolkit autocomplete) - Archive of obsolete content
The components are set with the autocomple...
Textbox (XPFE autocomplete) - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData addSession( session ) Obsolete since Gecko 26 Return type: nsIAutoCompleteSession Adds a new session object to the autocomplete widget...
XBL Attribute Inheritance - Archive of obsolete content
flexibility of the textbox and the label of the button to be different for each use of the binding. In addition, changing the value of the attributes on the searchbox with a script will update the textbox and button also. You can add the inherits attribute to as many elements as you wish, to inherit any number of attributes. Note how the inherits attribute has been placed in the XBL namespace, by prefixing it with 'xbl:'. The namespace should be declared somewhere earlier, usually on the bindings element. The next example demonstrates this. <bindings xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <xbl:binding id="buttonBinding"> <xbl:content> <xul:button label="OK" xbl:inherits="label"/> </xbl:content> </xbl:bi...
Using Visual Studio as your XUL IDE - Archive of obsolete content
u do this. 5. Problems that need to be solved There are still some problems for which I did not find a solution yet. 5.1 Localization using DTD You will get validation errors in Visual Studio, if you are localizing your XUL files. That has to do with the way Mozilla implemented localization: < !DOCTYPE window SYSTEM "chrome://loomo/locale/main.dtd"> Visual Studio doesn't recognize the chrome URI prefix, what will give you an error at the previous line ("The URI prefix is not recognized"). As VS doesn't know how the chrome protocol works it can't detect where the dtd file is really located and thus will give you errors wherever you use the entities that are declared in this file. 5.2 Text preprocessor The Mozilla Build System includes a Text preprocessor. As preprocessor directives are not valid...
action - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
arrowscrollbox - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
bbox - Archive of obsolete content
Archive › Mozilla › XUL › bbox
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
binding - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related TBD ...
bindings - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related TBD ...
box - Archive of obsolete content
Archive › Mozilla › XUL › box
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements vbox, hbox ...
broadcaster - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
broadcasterset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
browser - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData addProgressListener( listener ) Return type: no return value Add a progress listener to the browser which will moni...
button - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIAccessibleProvider, nsIDOMXULButtonElement ...
caption - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements groupbox, checkbox ...
checkbox - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIAccessibleProvider, nsIDOMXULCheckboxElement ...
colorpicker - Archive of obsolete content
You may use onc...
column - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements grid, columns, rows, row ...
columns - Archive of obsolete content
...
command - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related XUL:List of commands ...
commandset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
conditions - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
content - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Relacionados TBD ...
datepicker - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIDOMXULControlElement ...
deck - Archive of obsolete content
Archive › Mozilla › XUL › deck
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related stack ...
description - Archive of obsolete content
Typically, this will cause the text to appear bold. indent This class causes the t...
dialog - Archive of obsolete content
cancelDialo...
dialogheader - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements dialog, window ...
dropmarker - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
editor - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIAccessibleProvider ...
grid - Archive of obsolete content
Archive › Mozilla › XUL › grid
...
grippy - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
groupbox - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIAccessibleProvider ...
hbox - Archive of obsolete content
Archive › Mozilla › XUL › hbox
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements box, vbox ...
iframe - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related nsIAccessibleProvider ...
image - Archive of obsolete content
Archive › Mozilla › XUL › image
This typically looks like an exclamation mark. This and the other ...
key - Archive of obsolete content
Archive › Mozilla › XUL › key
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Details on key, keycode, and modifiers attributes For example, consider the following key: <key key="r" modifiers="shift"/> This key w...
keyset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
label - Archive of obsolete content
Archive › Mozilla › XUL › label
These classes should be used instead of changing the style of the ele...
listbox - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData addItemToSelection( item ) Return type: no return value Selects the given item, without deselecting any other items that are already...
listcell - Archive of obsolete content
Specify the image using the image attribute. Not...
listcol - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements listbox, listcell, listcols, listhead, listheader, listitem ...
listcols - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements listbox, listcell, listcol, listhead, listheader, listitem ...
listhead - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements listbox, listcell, listcol, listcols, listheader, listitem ...
listheader - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements listbox, listcell, listcol, listcols, listhead, listitem ...
listitem - Archive of obsolete content
These classes should be used instead of changing the style of the e...
member - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
menu - Archive of obsolete content
Archive › Mozilla › XUL › menu
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData appendItem( label, value ) Return type: element Creates a new item and adds it to the end of the existing list of ite...
menubar - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements menu, menuitem, menulist, menupopup, menuseparator Interfaces nsIAccessibleProvider ...
menuitem - Archive of obsolete content
Specify the image using the image attribute. m...
menulist - Archive of obsolete content
You...
menupopup - Archive of obsolete content
moveTo( x, y ) Return type: n...
menuseparator - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements menu, menubar, menuitem, menulist, menupopup Interfaces nsIAccessibleProvider, nsIDOMXULContainerItemElement, ns...
notification - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData close() Return type: no return value Closes the notification or findbar and removes it from its enclosing notificationbox or findbar. ...
notificationbox - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData appendNotification( label , value , image , priority , buttons, eventCallback ) Return type: element Create a new notification and dis...
observes - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
page - Archive of obsolete content
Archive › Mozilla › XUL › page
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
panel - Archive of obsolete content
Archive › Mozilla › XUL › panel
moveTo( x, y ) Return type: n...
param - Archive of obsolete content
Archive › Mozilla › XUL › param
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
popupset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements popup, menupopup ...
preference - Archive of obsolete content
You can handle this if y...
preferences - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Preferences System documentation: Introduction: Getting Started | Examples | Troubleshooting Reference: prefwindow | pr...
prefpane - Archive of obsolete content
after the overlay is merged.) Yo...
prefwindow - Archive of obsolete content
...
progressmeter - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIAccessibleProvider ...
queryset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
radio - Archive of obsolete content
Archive › Mozilla › XUL › radio
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements radiogroup, checkbox Interfaces nsIAccessibleProvider, nsIDOMXULSelectControlItemElement, nsIDOMXULLabeledContro...
radiogroup - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData appendItem( label, value ) Return type: element Creates a new item and adds it to the end of the existing list of it...
resizer - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
richlistbox - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData addItemToSelection( item ) Return type: no return value Selects the given item, without deselecting any other items that are alread...
richlistitem - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIAccessibleProvider, nsIDOMXULSelectControlItemElement ...
row - Archive of obsolete content
Archive › Mozilla › XUL › row
...
rows - Archive of obsolete content
Archive › Mozilla › XUL › rows
...
rule - Archive of obsolete content
Archive › Mozilla › XUL › rule
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
scale - Archive of obsolete content
Archive › Mozilla › XUL › scale
dec...
script - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
scrollbar - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
scrollbox - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
scrollcorner - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
separator - Archive of obsolete content
These classes should be used instead of changing the style of the e...
spacer - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements separator, splitter ...
spinbuttons - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
splitter - Archive of obsolete content
These classes should be used instead of changing the style of the e...
stack - Archive of obsolete content
Archive › Mozilla › XUL › stack
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related deck ...
statusbar - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements statusbarpanel Interfaces nsIAccessibleProvider ...
<statusbarpanel> - Archive of obsolete content
These classes should be used instead of changing the style of the e...
stringbundle - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related XUL Property Files ...
stringbundleset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
tab - Archive of obsolete content
Archive › Mozilla › XUL › tab
Also, "unhiding" a tab leads to u...
tabbox - Archive of obsolete content
...
tabbrowser - Archive of obsolete content
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData addProgressListener( listener ) Return type: no return value Add a progress listener to the browser which will monito...
tabpanel - Archive of obsolete content
...
tabpanels - Archive of obsolete content
...
tabs - Archive of obsolete content
Archive › Mozilla › XUL › tabs
de(), getAttributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData advanceSelectedTab( dir, wrap ) Return type: no return value If the argument dir is set to 1, the currently selected tab changes to th...
template - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
textbox - Archive of obsolete content
These classes should be used instead of changing the style of the e...
textnode - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
timepicker - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Interfaces nsIDOMXULControlElement ...
titlebar - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
toolbar - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Style classes chromeclass-toolbar When this class is used, the toolbar will be hidden when a window is opened by setting the...
toolbarbutton - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarspacer, toolbarspring, ...
toolbargrippy - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarspacer, toolbarspring, tool...
toolbaritem - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbargrippy, toolbarpalette, toolbarseparator, toolbarset, toolbarspacer, toolbarspring, to...
toolbarpalette - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarseparator, toolbarset, toolbarspacer, toolbarspring, toolb...
toolbarseparator - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarset, toolbarspacer, toolbarsprin...
toolbarset - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarspacer, toolbo...
toolbarspacer - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarspring, tool...
toolbarspring - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements toolbar, toolbarbutton, toolbargrippy, toolbaritem, toolbarpalette, toolbarseparator, toolbarset, toolbarsp...
toolbox - Archive of obsolete content
Y...
tooltip - Archive of obsolete content
moveTo( x, y ) Return type: no ...
tree - Archive of obsolete content
Archive › Mozilla › XUL › tree
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData startEditing( row, column ) Return type: no return value Activates user editing of the given cell, which is specified by row index numb...
treecell - Archive of obsolete content
...
treechildren - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Example <tree flex="1"> <treecols> <treecol id="sender" label="Sender" flex="1"/> <treecol id="subject" label="Subject" flex="...
treecol - Archive of obsolete content
This class should be used instead of changing the style of the elemen...
treecols - Archive of obsolete content
Interfaces nsIAccessibleProvider ...
treeitem - Archive of obsolete content
...
treerow - Archive of obsolete content
...
treeseparator - Archive of obsolete content
...
triple - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
vbox - Archive of obsolete content
Archive › Mozilla › XUL › vbox
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related Elements box, hbox ...
where - Archive of obsolete content
Archive › Mozilla › XUL › where
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData ...
window - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData See also: DOM window object methods Note The error message "XML Parsing Error: undefined entity...<window" can be caused by a missing o...
wizard - Archive of obsolete content
This is equivalen...
wizardpage - Archive of obsolete content
ributeNodeNS(), getAttributeNS(), getBoundingClientRect(), getClientRects(), getElementsByAttribute, getElementsByAttributeNS, getElementsByClassName(), getElementsByTagName(), getElementsByTagNameNS(), getFeature, getUserData, hasAttribute(), hasAttributeNS(), hasAttributes(), hasChildNodes(), insertBefore(), isDefaultNamespace(), isEqualNode, isSameNode, isSupported(), lookupNamespaceURI, lookupPrefix, normalize(), querySelector(), querySelectorAll(), removeAttribute(), removeAttributeNode(), removeAttributeNS(), removeChild(), removeEventListener(), replaceChild(), setAttribute(), setAttributeNode(), setAttributeNodeNS(), setAttributeNS(), setUserData Related wizard ...
2006-10-27 - Archive of obsolete content
ce to it as need, assuming the host has some available. Firefox 2 wont build under Solaris 10 x86 October 26: Alex was trying to build Firefox 2 source on a Solaris 10 x86 machine but was not successful with the build. He has already built Firefox 1.5.0.7 on the same machine with no problems. The following is his configuration script that he used to build Firefox 2 on Solaris. ...
NPN_PostURL - Archive of obsolete content
arget parameter. For HTTP URLs only, the browser resolves this method as the HTTP server method POST, which transmits data to the server. The data to post can be contained either in a local temporary file or a new memory buffer. To post to a temporary file, set the flag file to true, the buffer buf to the path name string for a file, and len to the length of the path string. The file-type URL prefix "file://" is optional. MS Windows and OS X If a file is posted with any protocol other than FTP, the file must be text with Unix-style line breaks ('\n' separators only). To post data from a memory buffer, set the flag file to false, the buffer buf to the data to post, and len to the length of buffer. Possible URL types include HTTP (similar to an HTML form submission), mail (sending mail), ...
Writing a plugin for Mac OS X - Archive of obsolete content
is used by the NPAPI headers to build properly on Mac OS X. If you don't define it, they won't be interpreted correctly. This is easy to miss in the sample project's build settings. Symbol visibility Symbol visibility is a common problem for people trying to get NPAPI plugins working. Some symbols must be visible as standard C symbols so the browser can find them, which means they need to be prefixed by an underscore, and must not have the C++ obfuscation that is generated by the C++ compiler. The three symbols that must always be visible are: NP_Initialize() NP_GetEntryPoints() NP_Shutdown() The sample plugin is written entirely in C, using a standard Xcode build configuration, so by default all of its symbols are C-style and visible. If you want to implement your plugin in C++ or...
Element - Archive of obsolete content
Archive › RSS › Module › Slash › Element
RSS Slash Module Elements NOTE: In the list of elements below the slash XML Namespace prefix is used (since it is a popular choice). However, use of slash as the XML Namespace prefix is NOT necessary. You are free to to choose your own prefix for this. A B C <slash:comments> (RSS Slash Module Comments Element) D <slash:department> (RSS Slash Module Department Element) E F G H <slash:hit_parade> (RSS Slash Hit Parade Department Element) I J K L M N O P Q R S <slash:section> (RSS Slash Module Section Element) T U V W X Y Z ...
Element - Archive of obsolete content
RSS Well-Formed Web Module Elements NOTE: In the list of elements below the wfw XML Namespace prefix is used (since it is a popular choice). However, use of wfw as the XML Namespace prefix is NOT necessary. You are free to to choose your own prefix for this. A B C <wfw:comment> (RSS Well-Formed Web Module Comment Element) <wfw:commentRss> (RSS Well-Formed Web Module Comment RSS Element) D E F G H I J K L M N O P Q R S T U V W X Y Z ...
Module - Archive of obsolete content
RSS Module List RSS Modules are microformats injected into an RSS document through the use of XML namespaces. They are ways of extending RSS. Below is a list of the popular RSS modules. ...
SAX - Archive of obsolete content
ent: namespace='" + uri + "', localName='" + localName + "', qName='" + qName + "'"); }, characters: function(value) { print("characters: " + value); }, processingInstruction: function(target, data) { print("processingInstruction: target='" + target + "', data='" + data + "'"); }, ignorableWhitespace: function(whitespace) { // don't care }, startPrefixMapping: function(prefix, uri) { // don't care }, endPrefixMapping: function(prefix) { // don't care }, // nsISupports QueryInterface: function(iid) { if(!iid.equals(Components.interfaces.nsISupports) && !iid.equals(Components.interfaces.nsISAXContentHandler)) throw Components.results.NS_ERROR_NO_INTERFACE; return this; } }; Start parsing The XML Reade...
Common Firefox theme issues and solutions - Archive of obsolete content
ake the following changes in videocontrols.css or the pause and mute buttons will break in Firefox 10. Change the style rules: .playButton[paused] {...} .muteButton[muted] {...} To: .playButton[paused="true"] {...} .muteButton[muted="true"] {...} Error console warnings Unknown namespace for videocontrols.css The error console is reporting the following issue: Warning: Unknown namespace prefix 'html'. Ruleset ignored due to bad selector. Source file: chrome://global/skin/media/videocontrols.css The solution to this issue is to add the following name space to the second line of the file right after, and in addition to, the existing @namespace: @namespace html url("http://www.w3.org/1999/xhtml"); You can generate the error console message by going to Mozilla's Mission page. If you ar...
-moz-windows-compositor - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using Windows with the DWM compositor, this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
:-moz-system-metric() - Archive of obsolete content
This page was auto-generated because a user created a sub-page to this page. Note: Since Firefox 58, this pseudo-class is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. ...
-moz-mac-graphite-theme - Archive of obsolete content
The -moz-mac-graphite-theme Gecko-only CSS media feature can be used to apply styles based on whether the user has the Mac OS X "Graphite" theme enabled. Syntax <integer> If the user has configured their device to use the "Graphite" appearance on Mac OS X, this is 1. If the user is using the standard blue appearance, or is not on Mac OS X, this is 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-maemo-classic - Archive of obsolete content
The -moz-maemo-classic Gecko-only CSS media feature can be used to apply styles based on whether the user agent is using the original Maemo theme. Syntax <integer> If the user agent is using Maemo with the original theme, this is 1. If it's using the newer Fremantle theme, this is 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-os-version - Archive of obsolete content
version of Microsoft Windows. ...
-moz-scrollbar-end-backward - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the device's user interface displays a backward arrow button at the end of scrollbars, this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-scrollbar-end-forward - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the device's user interface displays a forward arrow button at the end of scrollbars, this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-scrollbar-start-backward - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the device's user interface displays a backward arrow button at the beginning of scrollbars, this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-scrollbar-start-forward - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the device's user interface displays a forward arrow button at the beginning of scrollbars, this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-scrollbar-thumb-proportional - Archive of obsolete content
this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the device's user interface displays the thumb of scrollbars proportionally (that is, sized based on the percentage of the document that is visible), this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-touch-enabled - Archive of obsolete content
As of Firefox 73, this feature is no longer supported. Use pointer: coarse instead. Syntax <integer> If the device supports touch events (for a touch screen), this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no Example You might use this feature to render your buttons slightly larger if the user is on a touch-screen device, to make them more finger-friendly. button { padding: .5em; } @media (-moz-touch-enabled) { button { padding: 1em; } } ...
-moz-windows-accent-color-in-titlebar - Archive of obsolete content
ome code). See bug 1396066 for more details. ...
-moz-windows-classic - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using Windows unthemed (in classic mode instead of using uxtheme), this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-default-theme - Archive of obsolete content
Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using one of the default Windows themes--Luna, Royale, Zune, or Aero (including Vista Basic, Vista Advanced, and Aero Glass)--this is 1. Otherwise it's 0. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-glass - Archive of obsolete content
Note: Since Firefox 58, this media feature is no longer available to web content -- it is only available internally (e.g. to XUL / chrome code). See bug 1396066 for more details. Syntax <integer> If the user is using Windows Glass theme, this is 1; otherwise it's 0. Note that this only exists for Windows 7 and earlier. Media: media/visual Accepts min/max prefixes: no ...
-moz-windows-theme - Archive of obsolete content
-windows-theme Gecko-only CSS media feature is useful for customizing application skins and other chrome code to work well with the user's Windows theme. Syntax The -moz-windows-theme feature is specified as a keyword value that Indicates which Windows theme is currently being used. Values aero luna-blue luna-olive luna-silver royale generic zune Media: media/visual Accepts min/max prefixes: no ...
Troubleshooting XForms Forms - Archive of obsolete content
or an <xf:instance src="...">, check the following: As with inline instance, make sure the instance of the form control ref binding expression matches the namespace of the data. If form controls are within repeat, check that you are using attribute nodeset for the repeat instead of attribute ref. If the instance is not in the empty namespace (xmlns=""), then all binding expressions must use a prefix bound to the namespace. XPath 1.0 expressions do not have a default namespace, so a prefix must always be specified if the namespace is not the empty namespace. If your binding expression starts with a /, make sure the first thing is the name of the root node of the instance. If your binding expression contains a /, look for any containing xf:group, xf:repeat, xf:input or other elements that se...
Fixing Table Inheritance in Quirks Mode - Archive of obsolete content
ere it is necessary to author documents in "quirks" mode, but the breaking of table inheritance is not desired, authors can use Gecko's standards support to overcome the table-font rule shown above. The value -moz-initial is a proprietary value used to apply the user's (or browser's) default setting for a given property to an element. Because it is not actually part of CSS, it is marked with the prefix -moz- in order to avoid confusion about what is or isn't part of CSS. Overcoming Legacy Behavior All that is needed is a rule that overrides the -moz-initial values with the CSS2 value inherit. This value is used to force an element to use the same value as its parent element for a given property. /* Rule to fix quirks-mode inheritance behavior */ table, caption { font-size: inherit; font-...
Parsing microformats in JavaScript - Archive of obsolete content
he parent property node. Otherwise this is the microformat node. datatype "HTML" if the search should be done using innerHTML(), or "text" to use innerText(). The default is "text". Return value A string containing the property's value. emailGetter() Specifically retrieves an email address from a microformat node. This removes the subject if one is specified, as well as the mailto: prefix. email = Microformats.parser.emailGetter(propnode, parentnode); Parameters propnode The DOM node to check. parentnode The property's parent node. If it is a subproperty, this is the parent property node. Otherwise this is the microformat node. Return value A string containing the email address. HTMLGetter() Retrieves all the HTML from a particular DOM node. html = M...
RDF in Mozilla FAQ - Archive of obsolete content
n RDF/XML file's URL, then the RDF service will create an RDF/XML datasource and asynchronously parse it. The datasource will remain "cached" until the last reference to the datasource is released. If the URI argument refers to a built-in datasource, the RDF service will use the XPCOM Component Manager to load a component whose ContractID is constructed using the "special" URI and the well-known prefix@mozilla.org/rdf/datasource;1?name=</code>. For example, rdf:foo Would load: @mozilla.org/rdf/datasource;1?name=foo As with RDF/XML datasources, a datasource that is retrieved this way is "cached" by the RDF service until the last reference is dropped. How do I create a datasource from an RDF/XML file? You can either create an RDF/XML datasource using the RDF service's GetDataSource() met...
Windows Media in Netscape - Archive of obsolete content
avoid browser-specific detection mechanisms like this. Summary: Cross Browser Use of Windows Media Player in IE and Netscape 7.1 Don't use proprietary DOM sniffs such as looking for document.all-- this will rule out Netscape 7.1. When scripting the player, ensure that you use the syntax document.PlayerElementName.property as opposed to PlayerElementName.property. Merely adding document. as a prefix to player scripting calls solves the namespacing difference between Netscape 7.1 and IE. Both Netscape 7.1 and IE handle the nonstandard HTML format script for event in script HTML tags. An example is the usage of close captioning. In the case of close captioning media content, the player API Player.closedCaption.CaptioningID = "CapText"; is not supported, and the workaround is to capture event...
Crisp pixel art look with image-rendering - Game development
th and height. If the canvas was created with a 128 pixel width, for example, we would set the CSS width to 512px if we wanted a 4x scale. Set the <canvas> element's image-rendering CSS property to some value that does not make the image blurry. Either crisp-edges or pixelated will work. Check out the image-rendering article for more information on the differences between these values, and which prefixes to use depending on the browser. An example Let's have a look at an example. The original image we want to upscale looks like this: Here's some HTML to create a simple canvas: <canvas id="game" width="128" height="128"></canvas> CSS to size the canvas and render a crisp image: canvas { width: 512px; height: 512px; image-rendering: -moz-crisp-edges; image-rendering: -webkit-cris...
Visual-js game engine - Game development
Now you can use On-Page-Editor (nice for visual setup , checking positions and dimensions - not for logic ) . manual start from cmd : ser...
Fetch metadata request header - MDN Web Docs Glossary: Definitions of Web-related terms
A fetch metadata request header is a HTTP request header that provides additional information about the context the request originated from. These header names are prefixed with Sec- and thus they are forbidden header names so headers can not be modified from JavaScript. Fetch metadata request headers provide the server with additional information about where the request originated from, enabling it to ignore potentially malicious requests. The following are fetch metadata request headers: Sec-Fetch-Site Sec-Fetch-Mode Sec-Fetch-User Sec-Fetch-Dest ...
MDN Web Docs Glossary: Definitions of Web-related terms
nt Truthy TTL TURN Type Type coercion Type conversion U UDP (User Datagram Protocol) UI undefined Unicode URI URL URN Usenet User agent UTF-8 UX V Validator Value Variable Vendor Prefix Viewport Visual Viewport VoIP W W3C WAI WCAG Web performance Web server Web standards WebAssembly WebDAV WebExtensions WebGL WebIDL WebKit WebM WebP WebRTC WebSockets WebVTT WHATWG Whit...
Beginner's guide to media queries - Learn web development
ed to create layouts that respond to different screen sizes. For example, to change the body text color to red if the viewport is exactly 600 pixels, you would use the following media query. @media screen and (width: 600px) { body { color: red; } } Open this example in the browser, or view the source. The width (and height) media features can be used as ranges, and therefore be prefixed with min- or max- to indicate that the given value is a minimum, or a maximum. For example, to make the color blue if the viewport is narrower than 600 pixels, use max-width: @media screen and (max-width: 600px) { body { color: blue; } } Open this example in the browser, or view the source. In practice, using minimum or maximum values is much more useful for responsive design...
What is a web server? - Learn web development
vers cater to specific website categories like blogs, wikis, or eCommerce; others, called CMSs (content management systems), are more generic. If you're building a dynamic website, take the time to choose technology that fits your needs. Unless you want to learn web server programming (which is an exciting area in itself!), you don't need to create your own application server. That's just Unknown prefix: Wikipedia.. Next steps Now that you are familiar with web servers, you could: read up on how much it costs to do something on the web learn more about various software you need to create a website move on to something practical like how to upload files on a web server. ...
Object-oriented JavaScript for beginners - Learn web development
ame, gender, and age, so it is convenient to only have to define those features once. You can also define the same feature separately in different classes, as each definition of that feature will be in a different namespace. For example, a student's greeting might be of the form "Yo, I'm [firstName]" (e.g Yo, I'm Sam), whereas a teacher might use something more formal, such as "Hello, my name is [Prefix] [lastName], and I teach [Subject]." (e.g Hello, My name is Mr Griffiths, and I teach Chemistry). Note: The fancy word for the ability of multiple object types to implement the same functionality is polymorphism. Just in case you were wondering. You can now create object instances from your child classes. For example: In the rest of the article, we'll start to look at how OOP theory can be...
Client-Server Overview - Learn web development
The remainder of the response header includes information about the response (e.g. when it was generated), the server, and how it expects the browser to handle the page (e...
Working with Svelte stores - Learn web development
y } from 'svelte' let myStoreContent = '' const unsubscribe = myStore.subscribe(value => myStoreContent = value) onDestroy(unsubscribe) </script> {myStoreContent} That's too much boilerplate for Svelte! Being a compiler, Svelte has more resources to make our lives easier. In this case Svelte provides the reactive $store syntax, also known as auto-subscription. In simple terms, you just prefix the store with the $ sign and Svelte will generate the code to make it reactive automatically. So our previous code block can be replaced with this: <script> import myStore from './stores.js' </script> {$myStore} And $myStore will be fully reactive. This also applies to your own custom stores. If you implement the subscribe() and set() methods, like we'll do later, the reactive $store syntax...
Dynamic behavior in Svelte: working with variables and props - Learn web development
when the component is instantiated and the script is executed, but after that, their values are not modified: let totalTodos = todos.length let completedTodos = todos.filter(todo => todo.completed).length We could recalculate them after toggling and removing todos, but there's an easier way to do it. We can tell Svelte that we want our totalTodos and completedTodos variables to be reactive by prefixing them with $:. Svelte will generate the code to automatically update them whenever data they depend on is changed. Note: Svelte uses the $: JavaScript label statement syntax to mark reactive statements. Just like the export keyword being used to declare props, this may look a little alien. This is another example in which Svelte takes advantage of valid JavaScript syntax and gives it a new pu...
Implementing feature detection - Learn web development
can compare it to our css-feature-detect-finished.html code (see also the live version). When you save everything and try out your example, you should see the flexbox layout applied to the page if the browser supports modern flexbox, and the float layout if not. Note: Often such an approach is overkill for a minor feature detection problem -- you can often get away with using multiple vendor prefixes and fallback properties, as described in CSS fallback behavior and Handling CSS prefixes. @supports In recent times, CSS has had its own native feature detection mechanism introduced -- the @supports at-rule. This works in a similar manner to media queries (see also Responsive design problems) -- except that instead of selectively applying CSS depending on a media feature like a resolution, ...
Cross browser testing - Learn web development
d), higher tech strategies (automation, using dedicated testing apps), and testing with user groups. Handling common HTML and CSS problems With the scene set, we'll now look specifically at the common cross-browser problems you will come across in HTML and CSS code, and what tools can be used to prevent problems from happening, or fix problems that occur. This includes linting code, handing CSS prefixes, using browser dev tools to track down problems, using polyfills to add support into browsers, tackling responsive design problems, and more. Handling common JavaScript problems Now we'll look at common cross-browser JavaScript problems and how to fix them. This includes information on using browser dev tools to track down and fix problems, using polyfills and libraries to work around problem...
Adding a new CSS property
em. The style system is the part of the code in Gecko that is responsible for producing a computed value for every property for every element. See the Gecko Overview for more information about the style system. This document assumes that you have a specifcation for the property available. Issues about how to write such a specification (including things such as whether it is appropriate to use prefixes or when properties should be inherited by default) are not covered here. If you need more details on any of the points mentioned here, a good place to find them is by looking at other changes in the version control history of the files mentioned. Getting started First, you'll want to add an appropriate test entry to property_database.js. See the documentation at the top of the file and the ...
Browser chrome tests
o reduce the side effects of the testing code and "clean up" after yourself, to avoid influencing other tests. The comparison functions are identical to those supported by Mochitests, see how the comparison functions work in the Mochitest documentation for more details. The EventUtils helper functions are available on the EventUtils object defined in the global scope. The test file name must be prefixed with "browser_", and must have a file extension of ".js". Files that don't match this pattern will be ignored by the test harness. Using a descriptive file name is strongly encouraged instead of just using a bug number. You can collect common utils and helpers in a file called head.js, that must live in the same folder as the browser-chrome tests. This file will be injected into the test scope...
Configuring Build Options
/mozilla/mozconfig-firefox Calling the file .mozconfig (with a leading dot) is also supported, but this is not recommended because it may make the file harder to find. This will also help when troubleshooting because people will want to know which build options you have selected and will assume that you have put them in your mozconfig file. mozconfig contains two types of options: Options prefixed with mk_add_options are passed to client.mk. The most important of these is MOZ_OBJDIR, which controls where your application gets built (also known as the object directory). Options prefixed with ac_add_options are passed to configure, and affect the build process. Building with an objdir This means that the source code and object files are not intermingled in your directory system and yo...
Old Thunderbird build
e editor. Then just re-run the mach command above (you can do the addition before running mach for the first time). Running To run your build, you can use ./mozilla/mach run There are various command line parameters you can add, e.g. to specify a profile. Various temporary files, libraries, and the Thunderbird executable will be found in your object directory (under comm-central/), which is prefixed with obj-. The exact name depends on your system and OS. For example, a Mac user may get an object directory name of obj-x86_64-apple-darwin10.7.3/. The Thunderbird executable in particular, and its dependencies, are located under the dist/bin folder under the object directory. To run the executable from your comm-central working directory: Windows: obj-.../dist/bin/thunderbird.exe Linux: ...
Simple Instantbird build
mand above (you may need to clobber (see below), or you can do the addition before running make for the first time). Running To run your build, you can use ./mozilla/mach run There are various command line parameters you can add, e.g. to specify a profile. Various temporary files, libraries, and the Instantbird executable will be found in your object directory (under comm-central/), which is prefixed with obj-. The exact name depends on your system and OS. For example, a Mac user may get an object directory name of obj-x86_64-apple-darwin10.7.3/. The Instantbird executable in particular, and its dependencies, are located under the dist/bin folder under the object directory. To run the executable from your comm-central working directory: Windows: obj-.../dist/bin/instantbird.exe Linux: ...
Simple Thunderbird build
x may take several hours. Tips for making builds faster. The executable will be at the location listed under Running below. Running To run your build, you can use ./mach run There are various command line parameters you can add, e.g. to specify a profile. Various temporary files, libraries, and the Thunderbird executable will be found in your object directory (under comm-central/), which is prefixed with obj-. The exact name depends on your system and OS. For example, a Mac user may get an object directory name of obj-x86_64-apple-darwin10.7.3/. The Thunderbird executable in particular, and its dependencies are located under the dist/bin folder under the object directory. To run the executable from your comm-central working directory: Windows: obj-.../dist/bin/thunderbird.exe Linux: o...
The Firefox codebase: CSS Guidelines
dark arrow panels and autocomplete panels. :root[lwt-sidebar-brighttext]: dark sidebars. If you'd like a different shade of a themed area and no CSS variable is adequate, using colors with alpha transparency is usually a good idea, as it will preserve the original theme author's color hue. Variables For clarity, CSS variables that are only used when a theme is enabled have the --lwt- prefix. Layout & performance Layout Mixing XUL flexbox and HTML flexbox can lead to undefined behaviour. CSS selectors When targetting the root element of a page, using :root is the most performant way of doing so. Reflows and style flushes See Performance best practices for Firefox front-end engineers for more information about this. Misc Text aliasing When convenient, avoid setting the opaci...
ESLint
Errors If your code fails an ESLint rule, you'll get an error similar to this: /gecko/toolkit/mozapps/installer/js-compare-ast.js 18:39 error 'snarf' is not defined. no-undef (eslint) If you don't understand a rule, you can look it up on eslint.org for more information about it. Mozilla Specific Rules There are some rules that are specific for the Mozilla code-base. These have the prefix mozilla/. More information: Outline details of the rules Rule Source Code Common issues and how to solve them My editor says that "mozilla/whatever" is unknown Run ./mach eslint --setup Restart your editor If that doesn't work, check that you have your editor pointing to the correct node_modules folder. Node.js is not recognized Add it to your PATH environment variable by runnin...
Eclipse CDT
to the C/C++ perspective (i.e. window layout) via the menubar by selecting "Window > Open Perspective > C/C++". Upgrading GDB on Mac The ancient, barely maintained Apple fork of GDB that comes with Xcode on Mac is really horrible. If you use Mac, you may want to build the latest FSF version of GDB and set Eclipse to use that GDB for debugging. One suggested configuration for building GDB is '--prefix="$HOME" --disable-debug --with-python=/usr' (create an optimized build with support for Python (so that you can use python to much better control when you break etc.), and install it in $HOME/bin). That done, open the workspace preferences, select "C/C++ > Debug > GDB", and set "GDB Debugger" to the full path of your new gdb executable. GDB unexpectedly detaching If GDB starts ignoring your bre...
Interface Compatibility
e different depending on the consumers and the languages involved. Web Content APIs which are visible to web content are not modified, except as a last resort when inherent security vulnerabilities or incompatibility with other browsers make it the only option. Any changes, including new features, must have super-review. One exception to this rule is APIs which are explicitly shipped with Mozilla prefixes as a technology preview. This includes CSS properties that begin with the -moz- prefix (e.g. -moz-box-shadow), or JavaScript APIs that begin with the moz prefix (e.g. canvasrenderingcontext.mozDrawText). These APIs may be removed or replaced with standard interfaces in future releases of Mozilla. Jetpack The Jetpack SDK and APIs are not yet complete. The stable version 1.0 of the Jetpack SDK ...
CSS <display-xul> component
See this Firefox Site Compatibil...
Chrome-only CSS reference
Mozilla › Gecko › Chrome › CSS
It is short hand for the overflow-clip-box-inline and overflow-clip-box-block properties.overflow-clip-box-blockThe overflow-clip-box-block CSS property specifies relative to which box the clipping happens when there is an overflow -- in the bloc...
How to get a stacktrace for a bug report
e report you submitted. To access all of your submitted reports type "about:crashes" into the Firefox address bar and press enter. Firefox should open a list of IDs for your submitted crash reports. Copy two or three of the IDs for the appropriate crashes and paste them into your Bugzilla report. Please check the listed times to avoid copying the ID of an unrelated crash report. You can prefix a "bp-" to the beginning of an ID to make Bugzilla turn it into a link: bp-a70759c6-1295-4160-aa30-bc4772090918 How to get the crash ID if Firefox crashes on startup If Firefox crashes on startup you can still access your submitted crash reports. Crash reports are accessible from all Firefox profiles, so if a new profile does not crash you can use it to access them throug...
Extending a Protocol
mozilla::ipc::IPCResult RecvEcho(const nsCString& aString, EchoParent::EchoResolver&& aResolver); mozilla::ipc::IPCResult Recv__delete__() override; void ActorDestroy(ActorDestroyReason aWhy) override; private: ~EchoParent() = default; bool mActorAlive; }; } // end of namespace dom } // end of namespace mozilla #endif Now, and add ...
Integrated Authentication
ge in SPNEGO authentication with the browser. This list is intended to be configured by an IT department prior to distributing Mozilla to end-users. The preferences are: pref("network.negotiate-auth.trusted-uris", site-list); pref("network.negotiate-auth.delegation-uris", site-list); pref("network.automatic-ntlm-auth.trusted-uris", site-list); where, site-list is a comma-separated list of URL prefixes or domains of the form: site-list = "mydomain.com, https://myotherdomain.com" network.negotiate-auth.trusted-uris lists the sites that are permitted to engage in SPNEGO authentication with the browser, and network.negotiate-auth.delegation-uris lists the sites for which the browser may delegate user authorization to the server. network.automatic-ntlm-auth.trusted-uris lists the trusted sites...
Creating localizable web applications
they are translating. You can explain where the string will appear in the application, or what the variables used in the string will be replaced with. Put comments in the same line as the gettext function call (inline comments, in PHP these are /* ... */), or one line directly above the gettext function call (block comments, in PHP they start with # ... or // ...). In either way, use a consistent prefix for localization-related comments, e.g. "L10n". When extracting strings with xgettext you will be able to include only comments starting with this prefix using the --add-comments=PREFIX option, for example xgettext --add-comments=L10n. Snippet 1. Bad: <h1> <a href="<?= $locale_conf->url('/') ?>"> <img src="/static/img/logo.png" alt="<?= _("Mozilla Labs Personas"); ?>" /> </a> </h1> Sn...
browser.urlbar.trimURLs
Firefox 7.0 Status: Active; last updated 2012-04-03 Introduction: Pushed to Nightly on 2011-06-23 Bugs: bug 665580 Values true (default) If the active url is exactly the domain name, the trailing slash (/) behind the top level domain will be hidden. If the address starts with http:// and neither starts with a ftp. subdomain nor contains @ (usually for ftp login information), the http:// prefix will be hidden. Examples: https://www.example.org/ becomes https://www.example.org, http://www.example.org/foobar becomes www.example.org/foobar and http://ftp.example.org/foobar remains unchanged. false All parts of the url are shown. ...
Using JSS
Mozilla › Projects › NSS › JSS › Using JSS
o it only required NSPR. JSS versions 3.1 and later link dynamically with NSS, so they also require the NSS shared libraries. The exact library names vary according to the convention for each platform. For example, the NSPR library is called nspr4.dll or libnspr4.dll on Windows and libnspr4.so on Solaris. The following table gives the core names of the libraries, omitting the platform-specific prefix and suffix. JSS Dependencies Core Library Name Description Binary Release Location nspr4 NSPR OS abstraction layer http://ftp.mozilla.org/pub/mozilla.org/nspr/releases plc4 NSPR standard C library replacement functions plds4 NSPR data structure types nss3 NSS crypto, P...
NSS_3.12_release_notes.html
hared db update fails if user opens database R/W but never supplies a password Bug 392522: Integrity hashes must be updated when passwords are changed. ...
NSS 3.16 release notes
ms.h NSS_CMSSignerInfo_Verify - verify the signature of a single SignerInfo. It just verifies the signature, assuming that the certificate has been verified already. New Macros in sslproto.h TLS_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_3DES_EDE_CBC_SHA, etc. - cipher suites that were first defined in SSL 3.0 can now be referred to with their official IANA names in TLS, with the TLS_ prefix. Previously, they had to be referred to with their names in SSL 3.0, with the SSL_ prefix. Notable Changes in NSS 3.16 ECC is enabled by default. It is no longer necessary to set the environment variable NSS_ENABLE_ECC=1 when building NSS. To disable ECC, set the environment variable NSS_DISABLE_ECC=1 when building NSS. Bug 903885: (CVE-2014-1492) In a wildcard certificate, the wildcard ...
NSS sources building testing
.mozilla.org/projects/nspr hg clone https://hg.mozilla.org/projects/nss After the above commands complete, you should have two local directories, named nspr and nss, next to each other. (Historical information: NSPR and NSS source code have recently been re-organized into a new directory structure. In past versions, all files were located in a directory hierarchy that started with the "mozilla" prefix. The NSPR base library was located in directory mozilla/nsprpub. The subdirectories dbm, security/dbm, security/coreconf, security/nss were part of the NSS sources.) The nss directory contains the following important subdirectories: nss/coreconf Contains knowledge for cross platform building. nss/lib Contains all the library code that is used to create the runtime libraries used by appli...
nss tech note5
ted: 16, 24, 32 bytes. You can also look at a sample program illustrating encryption Hash / Digest Include headers #include "nss.h" #include "pk11pub.h" Make sure NSS is initialized.The simplest Init function, in case you don't need a NSS database is NSS_NoDB_Init(".") <big>Create Digest context</big>. Some of the digest algorithm identifiers are (without the SEC_OID_ prefix) : MD2, MD5, SHA1, SHA256, SHA384, SHA512. PK11Context* DigestContext = PK11_CreateDigestContext(SEC_OID_MD5); <big>Digest the data</big> <big>SECStatus s = PK11_DigestBegin(DigestContext); s = PK11_DigestOp(DigestContext, data, sizeof data); s = PK11_DigestFinal(DigestContext, digest, &len, sizeof digest); /* now, digest contains the 'digest', and len contains the length of...
NSS PKCS11 Functions
kenDescription='Backup'" as your module spec here to open the database ./mybackup on the fly. The slot ID will be calculated for you by SECMOD_OpenUserDB(). Typical parameters here are configdir, tokenDescription and flags. a Full list is below: configDir The location of the databases for this token. If configDir is not specified, and noCertDB and noKeyDB is not specified, the load will fail. certPrefix Cert prefix for this token. keyPrefix Prefix for the key database for this token. (if not specified, certPrefix will be used). tokenDescription The label value for this token returned in the CK_TOKEN_INFO structure with an internationalize string (UTF8). This value will be truncated at 32 bytes (no NULL, partial UTF8 characters dropped). You should specify a user friendly name here as this is the...
NSS_Initialize
Name NSS_Initialize - initialize NSS. Syntax SECStatus NSS_Initialize(const char *configdir, const char *certPrefix, const char *keyPrefix, const char *secmodName, PRUint32 flags); Parameters NSS_Initialize has five parameters: configdir [in] the directory where the certificate, key, and module databases live. To-do: document the "sql:" prefix. certPrefix [in] prefix added to the beginning of the certificate database, for example, "https-server1-". keyPrefix [in] prefix added to the beginning of the key database, for example, "https-server1-". secmodName [in] name of the security module database, usually "secmod.db". flags [in] bit flags that specify how NSS should be initialized. Descr...
NSS tools : ssltab
rrent directory. The files are named cert.0x, where x is the sequence number of the certificate. If the -s option is used with -h, two separate parts are printed for each record: the plain hex/ASCII output, and the parsed SSL output. -x Turn on hex/ASCII printing of undecoded data inside parsed SSL records. Used only with the -s option. This option uses the same output format as the -h option. -l prefix Turn on looping; that is, continue to accept connections rather than stopping after the first connection is complete. -p port Change the default rendezvous port (1924) to another port. The following are well-known port numbers: * HTTP 80 * HTTPS 443 * SMTP 25 * FTP 21 * IMAP 143 * IMAPS 993 (IMAP over SSL) * NNTP 119 * NNTPS 563 (NNTP over SSL) Usage and Examples You can use the SSL Debugging Too...
NSS tools : ssltap
rrent directory. The files are named cert.0x, where x is the sequence number of the certificate. If the -s option is used with -h, two separate parts are printed for each record: the plain hex/ASCII output, and the parsed SSL output. -x Turn on hex/ASCII printing of undecoded data inside parsed SSL records. Used only with the -s option. This option uses the same output format as the -h option. -l prefix Turn on looping; that is, continue to accept connections rather than stopping after the first connection is complete. -p port Change the default rendezvous port (1924) to another port. The following are well-known port numbers: * HTTP 80 * HTTPS 443 * SMTP 25 * FTP 21 * IMAP 143 * IMAPS 993 (IMAP over SSL) * NNTP 119 * NNTPS 563 (NNTP over SSL) Usage and Examples You can use the SSL Debugging Too...
NSS Tools certutil
marks if it contains spaces. -d directory Specify the database directory containing the certificate and key database files. On Unix the Certificate Database Tool defaults to $HOME/.netscape (that is, ~/.netscape). On Windows NT the default is the current directory. The cert8.db and key3.db database files must reside in the same directory. -P dbprefix Specify the prefix used on the cert8.db and key3.db files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -e Check a certificate's signature during the process of validating a certificate. -f password-file Specify...
NSS Tools modutil
d to ensure that bypassing the prompts will cause no security lapses or loss of database integrity. Arguments -dbdir directory Specify the database directory in which to access or create security module database files. On Unix, the Security Module Database Tool defaults to the user's Netscape directory. Windows NT has no default directory, so -dbdir must be used to specify a directory. -dbprefix prefix Specify the prefix used on the cert8.db and key3.db files (for example, my_cert8.db and my_key3.db). This option is provided as a special case. Changing the names of the certificate and key databases is not recommended. -libfile library-file Specify a path to the DLL or other library file containing the implementation of the PKCS #11 interface module that is being added to the database. ...
NSS tools : ssltap
Mozilla › Projects › NSS › tools › ssltap
of the certificate. If the -s option is used with -h, two separate parts are printed for each record: the plain hex/ASCII output, and the parsed SSL output. -x Turn on hex/ASCII printing of undecoded data inside parsed SSL records. Used only with the -s option. This option uses the same output format as the -h option. -l prefix Turn on looping; that is, continue to accept connections rather than stopping after the first connection is complete. -p port Change the default rendezvous port (1924) to another port. The following are well-known port numbers: * HTTP 80 * HTTPS 443 * SMTP 25 * FTP 21 * IMAP 143 ...
Pork
on Linux, but in theory it should be possible to make it work on other systems. Note: Pork is not presently used at Mozilla. Please refer to the oink link below for a more up-to-date toolchain. Pork is based on the Elsa (and Oink) tool chain, and the MCPP preprocessor. As of October 2009 Oink incorporates the Pork functionality into its standard distribution; look for files and tests having the prefix "xform". Documentation Installing Pork Download, installation and dependency info for Pork Pork Tools Description of rewriting tools Pork Tool Development in progress page... Old Pork Page Pork details that haven't been moved to MDC Renaming With Pork Sample pork application TODOs Pork 1.0 release tracking bug P...
Tutorial: Embedding Rhino
ring getClassName() { return "Counter"; } Dynamic properties Dynamic properties are defined by methods beginning with jsGet_ or jsSet_. The method jsGet_count defines thecount property. public int jsGet_count() { return count++; } The expression c.count in the JavaScript code above results in a call to this method. Defining JavaScript "methods" Methods can be defined using the jsFunction_ prefix. Here we define resetCount for JavaScript. public void jsFunction_resetCount() { count = 0; } The call c.resetCount() above calls this method. Adding Counter to RunScript Now take a look at the RunScript4 example. It's the same as RunScript except for two additions. The method ScriptableObject.defineClass uses a Java class to define the Counter "class" in the top-level scope: ScriptableObje...
Scripting Java
js> java.MyClass [JavaPackage java.MyClass] Only if you attempt to use this object as a class will an error be reported. External Packages and Classes External packages and classes can also be used as in Rhino. Make sure your .jar or .class file is on you classpath then you may import them into your JavaScript application. ...
Future directions
api.h and jsfriendapi.h into header files in js/public. Much more cleanup and organization is still required. Practical coding bits Experimental language features New language features (ES6+) and APIs often get added to SpiderMonkey while the spec is still being drafted, or before the feature has stabilized. This is good, because it helps the spec work. For these features: Do not add vendor prefixes. See http://hsivonen.iki.fi/vendor-prefixes/ for an extended argument. Disable the feature before the Beta channel. Nightly and Aurora are the good channels for experimental work. NSPR The plan is to make SpiderMonkey not depend on NSPR. No fundamental blockers currently exist, but ctypes is still using NSPR's runtime library loading facilities. Directories and filenames See https://wiki.
Bytecode Descriptions
new arrow function. newTarget matters only if the arrow function uses the expression new.target. It should be the current value of new.target, so that the arrow function inherits new.target from the enclosing scope. (If new.target is illegal here, the value doesn't matter; use null.) The function indicated by funcIndex must be an arrow function. Format: JOF_OBJECT SetFunName Operands: (FunctionPrefixKind prefixKind) Stack: fun, name => fun Set the name of a function. fun must be a function object. name must be a string, Int32 value, or symbol (like the result of JSOp::ToId). Implements: SetFunctionName, used e.g. to name methods with computed property names. InitHomeObject Stack: fun, homeObject => fun Initialize the home object for functions with super bindings. fun must be a method, gett...
JSDBGAPI
FrameScopeChain JS_GetFrameCallObject JS_GetFrameThis JS_GetFrameFunction JS_GetFrameFunctionObject JS_IsConstructorFrame JS_IsDebuggerFrame JS_GetFrameReturnValue JS_SetFrameReturnValue JS_GetFrameCalleeObject JS_GetScriptFilename JS_GetScriptBaseLineNumber JS_GetScriptLineExtent JS_GetScriptVersion JS_GetTopScriptFilenameFlags JS_GetScriptFilenameFlags JS_FlagScriptFilenamePrefix JSFILENAME_NULL JSFILENAME_SYSTEM JSFILENAME_PROTECTED Evaluating debug code JS_EvaluateInStackFrame Examining object properties typedef JSPropertyDesc JSPD_ENUMERATE JSPD_READONLY JSPD_PERMANENT JSPD_ALIAS JSPD_ARGUMENT JSPD_VARIABLE JSPD_EXCEPTION JSPD_ERROR typedef JSPropertyDescArray JS_PropertyIterator JS_GetPropertyDesc JS_GetPropertyDescArray JS_PutPro...
Web Replay
here other parts of Gecko need to know about it or interact with it. There are, however, areas where Gecko development is impacted by Replay. This section describes the main areas where ongoing development can break Replay and cause its tests to fail. needinfo? :bhackett on Bugzilla with any questions or concerns. On treeherder, Web Replay tests currently only run on MacOS opt builds, and are prefixed with browser_dbg_rr. Calls to new library functions Most non-deterministic behaviors in a recorded/replayed process are captured by redirecting the system library functions which the process calls into -- rewriting their machine code so they invoke a record/replay specific function with the same signature, which records any results of the function and then replays those results later without ...
Gecko object attributes
attributes by nsIAccessible.getAttributes() method. Object attributes are relevant for the entire subtree of the object they are on, unless they are overridden by a descendent with the same object attribute. This is in contrast to text attributes, which apply only to substrings in a text object. Object Attributes List ARIA attributes All ARIA attributes used on DOM element (i.e., any attribute prefixed by 'aria-') are exposed as object attributes; name is preserved except the 'aria-' prefix is cut. Common attributes class The class name for an element from HTML, XUL, SVG, etc. This is useful for retrieving Microformat semantics for an element. display Similar with display CSS style. Applied to: any visible accessible id Any value, defined by UI/content developers. Used to indicate a...
The Places database
laces component wants to reference a URL, whether visited or not, it refers to this table. Each entry has an optional reference to the moz_favicon table to identify the favicon of the page. No two entries may have the same value in the url column. moz_hosts: One entry in this table is created each time you visit a new host. It contains the host url, frequency of access, if typed or not, and it's prefix (https://, ftp://, etc). History tables moz_historyvisits: One entry in this table is created each time you visit a page. It contains the date, referrer, and other information specific to that visit. It contains a reference to the moz_places table which contains the URL and other global statistics. See History service design for more information. Bookmarks Tables moz_bookmarks: This ta...
Querying Places
te unsigned long endTimeReference readonly attribute boolean hasEndTime readonly attribute PRTime absoluteEndTime attribute AString searchTerms readonly attribute boolean hasSearchTerms attribute long minVisits attribute long maxVisits attribute boolean onlyBookmarked attribute boolean domainIsHost attribute AUTF8String domain readonly attribute boolean hasDomain attribute boolean uriIsPrefix attribute nsIURI uri readonly attribute boolean hasUri attribute boolean annotationIsNot attribute AUTF8String annotation readonly attribute boolean hasAnnotation readonly attribute unsigned long folderCount Basic Query Configuration Options const unsigned short GROUP_BY_DAY = 0 const unsigned short GROUP_BY_HOST = 1 const unsigned short GROUP_BY_DOMAIN = 2 const unsigned short GROU...
XPCOM changes in Gecko 2.0
place. As of Gecko 1.9.1, this is no longer the case, however; you can now register for profile-after-change using the Category Manager. See Receiving startup notifications for details. To add a category entry, you must insert the following line to your chrome.manifest: category profile-after-change MyComponent @foobar/mycomponent;1 Important: Formerly, the contract id of the category entry was prefixed with "service," if the component was implemented as a service. This prefix needs to be dropped when migrating to chrome.manifest. Changed category names The XPCOM category manager is used to register certain global helper objects. Because chrome.manifest is a space-delimited format, category names with spaces cannot be registered. Therefore the following categories have changed: Old name New...
Index
Mozilla › Tech › XPCOM › Index
e, XPCOM Interface Reference Called after each entry or item is processed. If the document is a standalone item or entry, the HandleFeedAtFirstEntry() method will not already have been called, and the received nsIFeedEntry will have a null parent value. 611 nsIFeedResult Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference Registers a prefix for a namespace used to access an extension in the feed or entry. 612 nsIFeedResultListener Interfaces, Interfaces:Scriptable, XPCOM, XPCOM API Reference, XPCOM Interface Reference Called when feed processing is complete. Even if an error occurred during processing, there may be valid data available for feed-level data or entries processed before the error occurred. If you do...
NS_NewLocalFile
automatically resolved. aResult [out] A reference to the newly created nsILocalFile instance. Return Values The NS_NewLocalFile function returns NS_OK if successful. Otherwise, it returns an error code. NS_ERROR_FILE_UNRECOGNIZED_PATH Indicates that the specified path is invalid. This error is returned if a relative file path is passed to NS_NewLocalFile. Remarks On UNIX systems, the prefix "~/" is supported as a shorthand for the user's home directory. Example Code // Create a local file that references c:\foo.txt nsresult rv; nsCOMPtr<nsILocalFile> file; rv = NS_NewLocalFile(nsEmbedString(L"c:\\foo.txt"), PR_FALSE, getter_AddRefs(file)); if (NS_FAILED(rv)) return rv; Note: GCC requires the -fshort-wchar option to compile this example since PRUnichar is a...
NS_NewNativeLocalFile
ly resolved. aResult [out] A reference to the newly created nsILocalFile instance. Return Values The NS_NewNativeLocalFile function returns NS_OK if successful. Otherwise, it returns an error code. NS_ERROR_FILE_UNRECOGNIZED_PATH Indicates that the specified path is invalid. This error is returned if a relative file path is passed to NS_NewNativeLocalFile. Remarks On UNIX systems, the prefix "~/" is supported as a shorthand for the user's home directory. If you use this function on Windows 2000 or later, you would not be able to handle file names containing characters outside the default code page even though the OS has no problem dealing with them. Do not use this function (on Windows) unless it is guaranteed that the full path involved is always ASCII. Example Code // Create a l...
nsACString
n which it is used. If used with XPIDL, then the character encodings of the corresponding XPIDL data types applies. nsACString may even hold data with embedded null bytes. Thus, the length of the data contained in the nsACString should be determined by calling the nsACString::Length() method. The methods defined on nsACString are implemented as inline wrappers around the XPCOM string functions, prefixed with NS_CString. See, for example, NS_CStringGetData. See also nsACString::Length() NS_CStringGetData nsEmbedCString ...
nsAString
ntext in which it is used. If used with XPIDL, then the character encodings of the corresponding XPIDL data types applies. nsAString may even hold data with embedded null values. Thus, the length of the data contained in the nsAString should be determined by calling the nsAString::Length method. The methods defined on nsAString are implemented as inline wrappers around the XPCOM string functions, prefixed with NS_String. See, for example, NS_StringGetData. See Also nsAString::Length, EndReading, NS_StringGetData, nsEmbedString ...
nsEmbedCString
s class specializes. Methods nsEmbedCString Constructors for nsEmbedCString. get The get function returns a const pointer to the string's null-terminated, internal buffer. Operators operator= This operator is a shortcut for the inherited nsACString::Assign family of functions. Remarks The methods defined on nsEmbedCString are implemented as inline wrappers around the XPCOM string functions, prefixed with NS_CString. See, for example, NS_CStringContainerInit. See Also NS_CStringContainerInit, nsACString ...
nsEmbedString
e this class specializes. Methods nsEmbedString Constructors for nsEmbedString. get The get function returns a const pointer to the string's null-terminated, internal buffer. Operators operator= This operator is a shortcut for the inherited nsAString::Assign family of functions. Remarks The methods defined on nsEmbedString are implemented as inline wrappers around the XPCOM string functions, prefixed with NS_String. See, for example, NS_StringContainerInit. See Also NS_StringContainerInit, nsAString ...
nsIDOMChromeWindow
None. setCursor() Sets the mouse cursor to the specified cursor. The mouse cursor is locked to the specified cursor if it's not "auto". At that time, the cursor has been never changed by cursor moving. After you call this method with "auto", the cursor will be unlocked. void setCursor( in DOMString cursor ); Parameters cursor You can specify same values of CSS cursor property (including -moz- prefixed values). And there are special values: "grab", "grabbing" and "spinning". But they might be dropped in the future version, if you use the values, you should use -moz-* value instead. ...
nsIDOMEvent
unchanged. void initEvent( in DOMString eventTypeArg, in boolean canBubbleArg, in boolean cancelableArg ); Parameters eventTypeArg Specifies the event type. This type may be any event type currently defined in this specification or a new event type. The string must be an XML name. Any new event type must not begin with any upper, lower, or mixed case version of the string "DOM". This prefix is reserved for future DOM event sets. It is also strongly recommended that third parties adding their own events use their own prefix to avoid confusion and lessen the probability of conflicts with other new events. canBubbleArg Specifies whether or not the event can bubble. cancelableArg Specifies whether or not the event's default action can be prevented. Violates the XPCOM interface ...
nsIDOMNode
Map Read only. childNodes nsIDOMNodeList Read only. firstChild nsIDOMNode Read only. lastChild nsIDOMNode Read only. localName DOMString Read only. namespaceURI DOMString Read only. nextSibling nsIDOMNode Read only. nodeName DOMString Read only. nodeType unsigned short Read only. nodeValue DOMString ownerDocument nsIDOMDocument Read only. parentNode nsIDOMNode Read only. prefix DOMString previousSibling nsIDOMNode Read only. Constants Constant Value Description ELEMENT_NODE 1 ATTRIBUTE_NODE 2 TEXT_NODE 3 CDATA_SECTION_NODE 4 ENTITY_REFERENCE_NODE 5 ENTITY_NODE 6 PROCESSING_INSTRUCTION_NODE 7 COMMENT_NODE 8 DOCUMENT_NODE 9 DOCUMENT_TYPE_NODE 10 DOCUMENT_FRAGMENT_NODE 11 NOTATION_NODE 12 Methods appendChild() ns...
nsIDOMXPathEvaluator
d by createNSResolver(), or a user defined name space resolver. Read more on Implementing a User Defined Namespace Resolver if you wish to take the latter approach. Return value An XPath expression, as an nsIDOMXPathExpression object. createNSResolver() Creates an nsIDOMXPathExpression which resolves name spaces with respect to the definitions in scope for a specified node. It is used to resolve prefixes within the XPath itself, so that they can be matched with the document. null is common for HTML documents or when no name space prefixes are used. nsIDOMXPathNSResolver createNSResolver( in nsIDOMNode nodeResolver ); Parameters nodeResolver The node to be used as a context for name space resolution. Return value A name space resolver. evaluate() Evaluate the specified XPath express...
nsIFeedContainer
ibing contributors to the feed or entry. fields nsIWritablePropertyBag2 Provides access to all the fields found in the document. Common Atom and RSS fields are normalized, including some namespaced extensions such as "dc:subject" and "content:encoded". Consumers can avoid normalization by checking the feed type and accessing specific fields. Common namespaces are accessed using prefixes, such as get("dc:subject");. See nsIFeedResult.registerExtensionPrefix() for more information about prefixes. id AString A string that identifies the feed or entry. Not all feeds have these, but all major feed formats have IDs for each entry. link nsIURI A URI containing the primary link for the feed or entry. links nsIArray An array of all links...
nsIFile
as removing .. and . components on Unix). As of Gecko 1.7, this method is only implemented under UNIX builds (except for Mac OSX). This method will fail if the path does not exist. void normalize(); Parameters None. Exceptions thrown NS_ERROR_FILE_TARGET_DOES_NOT_EXIST Indicates that the file path does not exist. NS_ERROR_FILE_DESTINATION_NOT_DIR Indicates that a component of the path prefix is not a directory. NS_ERROR_FILE_ACCESS_DENIED Read or search permission was denied for a component of the path prefix. renameTo() This method moves this file to a new location within the same volume. This method is identical to moveTo except that if this file or directory is moved to a a different volume, it fails and if this method succeeds, this instance will not updated to point to the...
nsINavHistoryQuery
tead of all, multiple queries may be passed to the nsINavHistoryService method nsINavHistoryService.executeQueries(). tagsAreNot boolean If true, the results include only items that are not tagged with the specified tags. If false, only tags in the tags list are included in the results. uri nsIURI This is a URI to match, to, for example, find out every time you visited a given URI. Use uriIsPrefix to control whether this is an exact match. uriIsPrefix boolean Controls the interpretation of uri. When unset (default), the URI will request an exact match of the specified URI. When set, any history entry beginning in uri will match. For example http://bar.com/foo will match http://bar.com/foo as well as http://bar.com/foo/baz.gif. Constants Constant Value Description TIME_RELATIVE_EP...
nsITextInputProcessor
pressed, this value should be the text when such modifiers causing suppressing text input are not pressed. For example, Ctrl+C should be "c", Ctrl+Shift+Cshould be "C", AltGr+C may be "(C)" and then, Ctrl+AltGr+C should be "(C)". When you dispatch non-printable key events, this value should be one of the key names defined by DOM Level 3 KeyboardEvent key Values or registered by Gecko with "Moz" prefix. code Optional, but should be specified when you emulate PC keyboard operation. The value should be one of the physical key names defined by DOM Level 3 KeyboardEvent code Values. keyCode Optional, but should be specified when you dispatch printable key events. When you emulate PC keyboard, deciding the value may be complicated. Although the rules to decide the keyCode value are different o...
nsIURIFixupInfo
performed. Read only. keywordAsSent AString The keyword used for the search (post trimming etc.); empty string if no keyword search is performed. Read only. fixupChangedProtocol boolean If we changed the protocol; instead of using one raw from the input. Read only. fixupCreatedAlternateURI boolean If we created an alternative URI. Potentially adding a prefix and/or suffix; set by the browser.fixup.alternate.prefix and .suffix prefs, their defaults "www." and ".com", respectively. Read only. originalInput AUTF8String The original input. Read only. ...
nsIWebNavigation
a bitwise combination of the load flags defined above. (Undefined bits are reserved for future use.) Generally you will pass LOAD_FLAGS_NONE for this parameter. referrer The referring URI. If this argument is null, then the referring URI will be inferred internally. postData If the URI corresponds to a HTTP request, then this stream is appended directly to the HTTP request headers. It may be prefixed with additional HTTP headers. This stream must contain a \r\n sequence separating any HTTP headers from the HTTP request body. This parameter may be null. headers If the URI corresponds to a HTTP request, then any HTTP headers contained in this stream are set on the HTTP request. The HTTP header stream is formatted as: ( HEADER \r\n )* This parameter may be null. reload() Tells the Object ...
nsIWindowsRegKey
ility of the consumer setting the HKEY to ensure that it is a valid HKEY. WARNING: Setting the key does not close() the old key. Native code only! valueCount unsigned long This attribute returns the number of values under this key. Read only. Constants Root key constants The values for these keys correspond to the values from WinReg.h in the MS Platform SDK. The ROOT_KEY_ prefix corresponds to the HKEY_ prefix in the MS Platform SDK. This interface is not restricted to using only these root keys. Constant Value Description ROOT_KEY_CLASSES_ROOT 0x80000000 ROOT_KEY_CURRENT_USER 0x80000001 ROOT_KEY_LOCAL_MACHINE 0x80000002 Access constants Values for the mode parameter passed to the open() and create()...
XUL Overlays
Mozilla › Tech › XUL › Overlays
"> <menupopup id="menu_FilePopup"> <menuitem name="New"/> <menuitem name="Open"/> <menuitem name="Save"/> <menuitem name="Close"/> <menuitem name="Super Stream Player"/> </menupopup> </menu> ... If you are developing a Mozilla extension, note that the ID namespace is shared by all the extensions. So, in order to avoid unpredicted behaviors you will probably benefit from using a unique prefix for the IDs of the XUL elements of your extension. For instance, you can use the name of your extension, or an abbreviation of it. Loading overlays Overlays can be loaded explicitly or dynamically. When you load an overlay explicitly, it means that you intend to make it available every time the base file is loaded. Since one of the main purposes of overlays is to provide UI for additions or compo...
libmime content type handlers
d is necessary for Content Type Handler Plugin development. /* * This interface is implemented by content type handlers that will be * called upon by libmime to process various attachments types. ...
WebIDL bindings
lared as RootedTypedArray<TypedArrayType> (e.g. RootedTypedArray<Int16Array>). Typed arrays on the heap need to be traced. Dictionary types A dictionary argument is represented by a const reference to a struct whose name is the dictionary name in the mozilla::dom namespace. The struct has one member for each of the dictionary's members with the same name except the first letter uppercased and prefixed with "m". The members that are required or have default values have types as described under the corresponding WebIDL type in this document. The members that are not required and don't have default values have those types wrapped in Optional<>. Dictionary return values are represented by an out parameter whose type is a non-const reference to the struct described above, with all the members th...
Plug-in Basics - Plugins
o encounters data of a MIME type registered for a plug-in (either embedded in an HTML page or in a separate file), it dynamically loads the plug-in code into memory, if it hasn't been loaded already, and it creates a new instance of the plug-in. Gecko calls the plug-in API function NP_Initialize when the plug-in code is first loaded. By convention, all of the plug-in specific functions have the prefix "NPP", and all of the browser-specific functions have the prefix "NPN". Note: NP_Initialize and NP_Shutdown are not technically a part of the function table that the plug-in hands to the browser. The browser calls them when the plug-in software is loaded and unloaded. These functions are exported from the plug-in DLL and accessed with a system table lookup, which means that they are not related...
URLs - Plugins
g HTTP or upload files to a remote server using FTP. The browser resolves this method as the HTTP server method POST, which transmits data to the server. The data to post can be contained either in a local temporary file or a new memory buffer. To post a file, set the flag file to true, the buffer buf to the path name string for a file, and len to the length of the path string. The file-type URL prefix "file://" is optional. NPN_PostURL is typically asynchronous: it returns immediately and only later handles the request and calls NPP_Notify (which, in turn, calls NPP_URLNotify). NPError NPN_PostURL(NPP instance, const char *url, const char *target, uint32 len, const char *buf, NPBool file); The instance, url, and target parameters have the same definitions as those of NPN_GetURL. The buf ...
Browser Console - Firefox Developer Tools
ent: "Error!", onClick: logError }); function logError() { console.error("something went wrong!"); } If you build this as an XPI file, then open the Browser Console, then open the XPI file in Firefox and install it, you'll see a widget labeled "Error!" in the Add-on bar: Click the icon. You'll see output like this in the Browser Console: For Add-on SDK-based add-ons only, the message is prefixed with the name of the add-on ("log-error"), making it easy to find all messages from this add-on using the "Filter output" search box. By default, only error messages are logged to the console, although you can change this in the browser's preferences. Browser Console command line The Browser Console command line is disabled by default. To enable it set the devtools.chrome.enabled preference ...
Aggregate view - Firefox Developer Tools
, how many objects of a specific class were allocated. Type This is the default view, which looks something like this: It groups the things on the heap into types, including: JavaScript objects: such as Function or Array DOM elements: such as HTMLSpanElement or Window Strings: listed as "strings" JavaScript sources: listed as "JSScript" Internal objects: such as "js::Shape". These are prefixed with "js::". Each type gets a row in the table, and rows are ordered by the amount of memory occupied by objects of that type. For example, in the screenshot above you can see that JavaScript Objects account for most memory, followed by strings. The "Total Count" column shows you the number of objects of each category that are currently allocated. The "Total Bytes" column shows you the nu...
Network request list - Firefox Developer Tools
as well. URL Use the Filter URLs box in the toolbar. You can focus it by clicking in the filter box, or by pressing Ctrl + F (or Cmd + F on a Mac); then start typing. The list of network requests is filtered to include only requests that contain your filter string, in either the Domain or the File portions. You can filter requests that don't contain your filter string by prefixing your query with the "-" operator. For example, the query "-google.com" will show all requests that don't have "google.com" in the URL. Request properties Use the search box in the toolbar. See next section. Filtering by properties The search box recognizes specific keywords, which can be used to filter the requests by specific request properties. Those keywords are foll...
Examine and edit CSS - Firefox Developer Tools
xamine grid layouts for more on this. To view user-agent styles (i.e., browser-default CSS rules), enable "Inspector > Show Browser Styles" under the developer tool settings panel. (Note that this setting is independent of the "Browser styles" checkbox in the Computed view.) User-agent styles are displayed 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. It represents the CSS properties assigned to the element via its style attribute. This also gets the target icon: , giving you a convenient way to highlight the currently selected element in the page. Filtering rules There's a box at the top of the Rules view labeled "Filter Styles":...
Attr.namespaceURI - Web APIs
Web › API › Attr › namespaceURI
the DOM Level 2 method Element.setAttributeNS. Per the Namespaces in XML specification, an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it has no namespace. The DOM does not handle or enforce namespace validation per se. It is up to the DOM application to do any validation necessary. Note too that the namespace prefix, once it is associated with a particular node, cannot be changed. Specifications Specification Status Comment DOMThe definition of 'Attr: namespaceURI' in that specification. Living Standard ...
BaseAudioContext.currentTime - Web APIs
oContext interface returns a double representing an ever-increasing hardware timestamp in seconds that can be used for scheduling audio playback, visualizing timelines, etc. It starts at 0. Syntax var curTime = baseAudioContext.currentTime; Example var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); // Older webkit/blink browsers require a prefix ... console.log(audioCtx.currentTime); Reduced time precision To offer protection against timing attacks and fingerprinting, the precision of audioCtx.currentTime might get rounded depending on browser settings. In Firefox, the privacy.reduceTimerPrecision preference is enabled by default and defaults to 20us in Firefox 59; in 60 it will be 2ms. // reduced time precision (2ms) in Firefox ...
BaseAudioContext.destination - Web APIs
ering device such as your device's speakers. Syntax baseAudioContext.destination; Value An AudioDestinationNode. Example Note: for a full example implementation, see one of our Web Audio Demos on the MDN Github repo, like voice-change-o-matic. var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); // Older webkit/blink browsers require a prefix var oscillatorNode = audioCtx.createOscillator(); var gainNode = audioCtx.createGain(); oscillatorNode.connect(gainNode); gainNode.connect(audioCtx.destination); Specifications Specification Status Comment Web Audio APIThe definition of 'destination' in that specification. Working Draft ...
BaseAudioContext.listener - Web APIs
turns an AudioListener object that can then be used for implementing 3D audio spatialization. Syntax baseAudioContext.listener; Value An AudioListener object. Example Note: for a full Web Audio spatialization example, see our panner-node demo. var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); // Older webkit/blink browsers require a prefix ... var myListener = audioCtx.listener; Specifications Specification Status Comment Web Audio APIThe definition of 'listener' in that specification. Working Draft ...
BaseAudioContext.sampleRate - Web APIs
g the audio context's sample rate, in samples per second. Example Note: for a full Web Audio example implementation, see one of our Web Audio Demos on the MDN Github repo, like panner-node. Try entering audioCtx.sampleRate into your browser console. var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); // Older webkit/blink browsers require a prefix ... console.log(audioCtx.sampleRate); Specifications Specification Status Comment Web Audio APIThe definition of 'sampleRate' in that specification. Working Draft ...
CSSCounterStyleRule - Web APIs
or defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string. CSSCounterStyleRule.negative Is a DOMString object that contains the serialization of the negative descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string. CSSCounterStyleRule.prefix Is a DOMString object that contains the serialization of the prefix descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string. CSSCounterStyleRule.suffix Is a DOMString object that contains the serialization of the suffix descriptor defined for the associated rule. If the descriptor was not specified in the ass...
CSSNamespaceRule - Web APIs
The CSSNamespaceRule interface describes an object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). Syntax The syntax is described using the WebIDL format. interface CSSNamespaceRule : CSSRule { readonly attribute DOMString namespaceURI; readonly attribute DOMString? prefix; }; Properties As a CSSRule, CSSNamespaceRule also implements the properties of that interface. It has some specific properties: CSSNamespaceRule.namespaceURI Returns a DOMString containing the text of the URI of the given namespace. CSSNamespaceRule.prefix Returns a DOMString with the name of the prefix associated to this namespace. If there is no such prefix, returns null. Methods As a CSSRule, CSSNamespaceRule als...
Managing screen orientation - Web APIs
.5em; } } And here's the result Portrait Landscape Note: The orientation media query actually applies based on the orientation of the browser window (or iframe) not the orientation of the device. Locking the screen orientation Warning: This API is experimental and currently available on Firefox OS and Firefox for Android with a moz prefix, and for Internet Explorer on Windows 8.1 and above with a ms prefix. Some devices (mainly mobile devices) can dynamically change the orientation of the screen based on their own orientation, ensuring that the user will always be able to read what's on the screen. While this behavior is perfectly suited for text content, there is some content that can be negatively affected by such a change. F...
CanvasRenderingContext2D - Web APIs
CanvasRenderingContext2D.webkitBackingStorePixelRatio The backing store size in relation to the canvas element. See High DPI Canvas. CanvasRenderingContext2D.webkitGetImageDataHD Intended for HD backing stores, but removed from canvas specifications. CanvasRenderingContext2D.webkitPutImageDataHD Intended for HD backing stores, but removed from canvas specifications. Gecko only Prefixed APIs CanvasRenderingContext2D.mozCurrentTransform Sets or gets the current transformation matrix, see CanvasRenderingContext2D.currentTransform. CanvasRenderingContext2D.mozCurrentTransformInverse Sets or gets the current inversed transformation matrix. CanvasRenderingContext2D.mozImageSmoothingEnabled See CanvasRenderingContext2D.imageSmoothingEnabled. CanvasRenderingConte...
Drawing text - Web APIs
rawn in the current text style. The following code snippet shows how you can measure a text and get its width. function draw() { var ctx = document.getElementById('canvas').getContext('2d'); var text = ctx.measureText('foo'); // TextMetrics object text.width; // 16; } Gecko-specific notes In Gecko (the rendering engine of Firefox, Firefox OS and other Mozilla based applications), some prefixed APIs were implemented in earlier versions to draw text on a canvas. These are now deprecated and removed, and are no longer guaranteed to work. << PreviousNext >> ...
Pixel manipulation with canvas - Web APIs
oomctx.drawImage(canvas, Math.min(Math.max(0, x - 5), img.width - 10), Math.min(Math.max(0, y - 5), img.height - 10), 10, 10, 0, 0, 200, 200); Because anti-aliasing is enabled by default, we might want to disable the smoothing to see clear pixels. You can toggle the checkbox to see the effect of the imageSmoothingEnabled property (which needs prefixes for different browsers). Zoom example <canvas id="canvas" width="300" height="227"></canvas> <canvas id="zoom" width="300" height="227"></canvas> <div> <label for="smoothbtn"> <input type="checkbox" name="smoothbtn" checked="checked" id="smoothbtn"> Enable image smoothing </label> </div> var img = new Image(); img.src = 'https://mdn.mozillademos.org/files/5397/rhino.jpg'; img.onload =...
DOMImplementation.createDocument() - Web APIs
teDocument() method creates and returns an XMLDocument. Syntax var doc = document.implementation.createDocument(namespaceURI, qualifiedNameStr, documentType); Parameters namespaceURI Is a DOMString containing the namespace URI of the document to be created, or null if the document doesn't belong to one. qualifiedNameStr Is a DOMString containing the qualified name, that is an optional prefix and colon plus the local root element name, of the document to be created. documentType Optional Is the DocumentType of the document to be created. It defaults to null. Example var doc = document.implementation.createDocument ('http://www.w3.org/1999/xhtml', 'html', null); var body = document.createElementNS('http://www.w3.org/1999/xhtml', 'body'); body.setAttribute('id', 'abc'); d...
Document.createExpression() - Web APIs
This method compiles an XPathExpression which can then be used for (repeated) evaluations. Syntax xpathExpr = document.createExpression(xpathText, namespaceURLMapper); Parameters xpathText is a string which is the XPath expression to be compiled. namespaceURLMapper is a function which maps a namespace prefix to a namespace URL (or null if none needed). Firefox 3 note Prior to Firefox 3, you could call this method on documents other than the one you planned to run the XPath against. Under Firefox 3, you must call it on the same document. Return value XPathExpression ...
Document.evaluate() - Web APIs
Web › API › Document › evaluate
Syntax var xpathResult = document.evaluate( xpathExpression, contextNode, namespaceResolver, resultType, result ); xpathExpression is a string representing the XPath to be evaluated. contextNode specifies the context node for the query (see the XPath specification). It's common to pass document as the context node. namespaceResolver is a function that will be passed any namespace prefixes and should return a string representing the namespace URI associated with that prefix. It will be used to resolve prefixes within the XPath itself, so that they can be matched with the document. null is common for HTML documents or when no namespace prefixes are used. resultType is an integer that corresponds to the type of result XPathResult to return. Use named constant properties, such as X...
Element.closest() - Web APIs
Web › API › Element › closest
v in div, here it is the div-03 itself var r3 = el.closest("article > div"); // returns the closest ancestor which is a div and has a parent article, here it is the div-01 var r4 = el.closest(":not(div)"); // returns the closest ancestor which is not a div, here it is the outmost article Polyfill For browsers that do not support Element.closest(), but carry support for element.matches() (or a prefixed equivalent, meaning IE9+), a polyfill exists: if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector; } if (!Element.prototype.closest) { Element.prototype.closest = function(s) { var el = this; do { if (Element.prototype.matches.call(el, s)) return el; el = el.parentElement ...
Element.localName - Web APIs
Web › API › Element › localName
"fill:#aaa" id="circle"/> </svg:svg> <textarea id="text" rows="4" cols="55"/> </body> </html> Notes The local name of a node is that part of the node's qualified name that comes after the colon. Qualified names are typically used in XML as part of the namespace(s) of the particular XML documents. For example, in the qualified name ecomm:partners, partners is the local name and ecomm is the prefix: <ecomm:business id="soda_shop" type="brick_n_mortar" xmlns:ecomm="http://example.com/ecomm"> <ecomm:partners> <ecomm:partner id="1001">Tony's Syrup Warehouse </ecomm:partner> </ecomm:partner> </ecomm:business> Note: In Gecko 1.9.2 and earlier, the property returns the upper-cased version of the local name for HTML elements in HTML DOMs (as opposed to XHTML elements in XML DOMs). ...
Element.namespaceURI - Web APIs
ements in HTML documents is null. In later versions, in compliance with HTML5, it is http://www.w3.org/1999/xhtml as in XHTML. You can create an element with the specified namespaceURI using the DOM Level 2 method document.createElementNS. The DOM does not handle or enforce namespace validation per se. It is up to the DOM application to do any validation necessary. Also note that the namespace prefix, once it is associated with a particular element, cannot be changed. Specifications Specification Status Comment DOMThe definition of 'Element: namespaceURI' in that specification. Living Standard ...
Element.removeAttributeNode() - Web APIs
oved Attr node. Example // Given: <div id="top" align="center" /> var d = document.getElementById("top"); var d_align = d.getAttributeNode("align"); d.removeAttributeNode(d_align); // align is now removed: <div id="top" /> Notes If the removed attribute has a default value, it is immediately replaced. The replacing attribute has the same namespace URI and local name, as well as the original prefix, when applicable. There is no removeAttributeNodeNS method; the removeAttributeNode method can remove both namespaced attributes and non-namespaced attributes. DOM methods dealing with element's attributes: Not namespace-aware, most commonly used methods Namespace-aware variants (DOM Level 2) DOM Level 1 methods for dealing with Attr nodes directly (seldom used) DOM Level 2 namespace-aware m...
Element.setAttributeNS() - Web APIs
value is the desired string value of the new attribute. ...
Gamepad.buttons - Web APIs
Web › API › Gamepad › buttons
ized to the range 0.0 - 1.0, with 0.0 representing a button that is not pressed, and 1.0 representing a button that is fully pressed. Syntax readonly attribute GamepadButton[] buttons; Example The following code is taken from my Gamepad API button demo (you can view the demo live, and find the source code on Github.) Note the code fork -- in Chrome Navigator.getGamepads needs a webkit prefix and the button values are stores as an array of double values, whereas in Firefox Navigator.getGamepads doesn't need a prefix, and the button values are stored as an array of GamepadButton objects; it is the GamepadButton.value or GamepadButton.pressed properties of these we need to access, depending on what type of buttons they are. In this simple example I've just allowed either. function game...
GamepadButton - Web APIs
pressed, and 1.0 representing a button that is fully pressed. GamepadButton.pressed Read only A Boolean value indicating whether the button is currently pressed (true) or unpressed (false). Example The following code is taken from my Gamepad API button demo (you can view the demo live, and find the source code on Github.) Note the code fork -- in Chrome Navigator.getGamepads needs a webkit prefix and the button values are stored as an array of double values, whereas in Firefox Navigator.getGamepads doesn't need a prefix, and the button values are stored as an array of GamepadButton objects; it is the GamepadButton.value or GamepadButton.pressed properties of these we need to access, depending on what type of buttons they are. In this simple example I've just allowed either. function game...
Using the Gamepad API - Web APIs
e thing in Chrome you have to keep polling it and then only use the Gamepad object in code when it is available. We have done this below using Window.setInterval(); once the object is available the gamepad info is outputted, the game loop is started, and the interval is cleared using Window.clearInterval(). Note that in older versions of Chrome Navigator.getGamepads() is implemented with a webkit prefix. We attempt to detect and handle both the prefixed version and the standard version of the function for backwards compatibility. var interval; if (!('ongamepadconnected' in window)) { // No gamepad events available, poll instead. interval = setInterval(pollGamepads, 500); } function pollGamepads() { var gamepads = navigator.getGamepads ? navigator.getGamepads() : (navigator.webkitGetGame...
HTMLMediaElement - Web APIs
r has played, if any. HTMLMediaElement.preload Is a DOMString that reflects the preload HTML attribute, indicating what data should be preloaded, if any. Possible values are: none, metadata, auto. HTMLMediaElement.preservesPitch Is a Boolean that determines if the pitch of the sound will be preserved. If set to false, the pitch will adjust to the speed of the audio. This is implemented with prefixes in Firefox (mozPreservesPitch) and WebKit (webkitPreservesPitch). HTMLMediaElement.readyState Read only Returns a unsigned short (enumeration) indicating the readiness state of the media. HTMLMediaElement.seekable Read only Returns a TimeRanges object that contains the time ranges that the user is able to seek to, if any. HTMLMediaElement.seeking Read only Returns a Boolean that indica...
HTMLScriptElement - Web APIs
unction that imports new scripts within a document creating a <script> node immediately before the <script> that hosts the following code (through document.currentScript). These scripts will be asynchronously executed. For more details, see the defer and async properties. ...
Dragging and Dropping Multiple Items - Web APIs
These interfaces will only work with Gecko based browsers. Mozilla supports the ability to drag multiple items using some additional non-standard methods. These are methods that mirror the types property as well as the getData(), setData() and clearData() methods, however, they take an additional argument that specifies the index of the item to retrieve, modify or remove. The drag processing described in this document use the DataTransfer interface. This processing does not use the DataTransferItem interface nor the DataTransferItemList interface. ...
Recommended Drag Types - Web APIs
Dragging Text For dragging text, use the text/plain type. The second data parameter should be the dragged string. ...
LocalFileSystem - Web APIs
hat your app cannot read, or write the files of another app's files. Your app cannot access files in an arbitrary folder (such as, My Pictures, My Documents) on the user's hard drive either. For more information about restrictions, see the Basic Concepts article. Example The following is a code snippet that shows how you can request a file system storage. //Taking care of the browser-specific prefix window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem; // The first parameter defines the type of storage: persistent or temporary // Next, set the size of space needed (in bytes) // initFs is the success callback // And the last one is the error callback // for denial of access and other errors. window.requestFileSystem(window.PERSISTENT, 1024*1024,onInitFs,err...
LocalFileSystemSync - Web APIs
ileSystemSync object from within a web worker. The global methods in the window object requestFileSystemSync() and resolveLocalFileSystemSyncURL() methods are exposed to the Worker's global scope. Calling window.requestFileSystemSync() for creates new storage for your web app. For more concepts, see the counterpart article for the asynchronous API. Example //Taking care of the browser-specific prefix window.requestFileSystemSync = window.requestFileSystemSync || window.webkitRequestFileSystemSync; // The first parameter defines the type of storage: persistent or temporary // Next, set the size of space needed (in bytes) // initFs is the success callback // And the last one is the error callback // for denial of access and other errors. var fs = requestFileSystemSync(TEMPORARY, 1024*1024 /*...
Recording a media element - Web APIs
ses the video being captured by the user's camera to be displayed in the preview box. Since the <video> element is muted, the audio won't play. The "Download" button's link is then set to refer to the stream as well. Then, in line 8, we arrange for preview.captureStream() to call preview.mozCaptureStream() so that our code will work on Firefox, on which the MediaRecorder.captureStream() method is prefixed. Then a new Promise which resolves when the preview video starts to play is created and returned. Line 10 When the preview video begins to play, we know there's media to record, so we respond by calling the startRecording() function we created earlier, passing in the preview video stream (as the source media to be recorded) and recordingTimeMS as the number of milliseconds of media to record.
Microsoft API extensions - Web APIs
Note: These APIs will only work in Microsoft applications, and are not on a standards track. ...
Navigator.getUserMedia() - Web APIs
ck When the call fails, the function specified in the errorCallback is invokedwith a MediaStreamError object as its sole argument; this object is is modeled on DOMException. See {anch("Errors")}} below for a list of the errors which can occur. Return value undefined. Errors Examples Width and height Here's an example of using getUserMedia(), including code to cope with various browsers' prefixes. Note that this is the deprecated way of doing it: See the Examples section under the MediaDevices.getUserMedia() for modern examples. navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; if (navigator.getUserMedia) { navigator.getUserMedia({ audio: true, video: { width: 1280, height:...
Navigator.registerProtocolHandler() - Web APIs
The browser requires that the handler's URL be over HTTPS. SyntaxError The %s placeholder is missing from the handler URL. Permitted schemes For security reasons, registerProtocolHandler() restricts which schemes can be registered. A custom scheme may be registered as long as: The custom scheme's name begins with web+ The custom scheme's name includes at least 1 letter after the web+ prefix The custom scheme has only lowercase ASCII letters in its name. For example, web+burger, as shown in the Example below. Otherwise, the scheme must be one of the following: bitcoin geo im irc ircs magnet mailto mms news nntp openpgp4fpr sip sms smsto ssh tel urn webcal wtai xmpp Example If your site is burgers.example.com, you can register a protocol handler for it t...
Node.localName - Web APIs
Web › API › Node › localName
"fill:#aaa" id="circle"/> </svg:svg> <textarea id="text" rows="4" cols="55"/> </body> </html> Notes The local name of a node is that part of the node's qualified name that comes after the colon. Qualified names are typically used in XML as part of the namespace(s) of the particular XML documents. ...
Node.lookupNamespaceURI() - Web APIs
The Node.lookupNamespaceURI() method accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Syntax var namespace = node.lookupNamespaceURI(prefix); Parameters prefix The prefix to look for. If this parameter is null, the method will return the default namespace URI, if any. Return value A DOMString containing the the namespace URI. If the prefix is not found, it returns null. Specifications Specification Status Comment DOMThe definition of 'Node: lookupNamespaceURI' in that specification. Living Standard ...
Node.namespaceURI - Web APIs
Web › API › Node › namespaceURI
ibutes with the method Element.setAttributeNS. Per the Namespaces in XML specification, an attribute does not inherit its namespace from the element it is attached to. If an attribute is not explicitly given a namespace, it has no namespace. The DOM does not handle or enforce namespace validation per se. It is up to the DOM application to do any validation necessary. Note too that the namespace prefix, once it is associated with a particular node, cannot be changed. Specifications Specification Status Comment Document Object Model (DOM) Level 3 Core SpecificationThe definition of 'Node.namespaceURI' in that specification. Obsolete Specifies the behavior when it's set to null. Document Object Model (DOM) Level 2 Core SpecificationThe definition of 'D...
PointerEvent.pointerType - Web APIs
ing strings: "mouse" The event was generated by a mouse device. "pen" The event was generated by a pen or stylus device. "touch" The event was generated by a touch, such as a finger. If the device type cannot be detected by the browser, the value can be an empty string (""). If the browser supports pointer device types other than those listed above, the value should be vendor-prefixed to avoid conflicting names for different types of devices. Example This example illustrates using the value of the pointerType property to call the appropriate pointer type processing function. targetElement.addEventListener('pointerdown', function(event) { // Call the appropriate pointer type handler switch (event.pointerType) { case 'mouse': process_pointer_mouse(event); ...
ProcessingInstruction - Web APIs
The ProcessingInstruction interface represents a processing instruction; that is, a Node which embeds an instruction targeting a specific application but that can be ignored by any other applications which don't recognize the instruction. A processing instruction is different from the XML declaration. User-defined processing instructions cannot begin with "xml", as xml-prefixed processing-instruction target names are reserved by the XML specification for particular, standard uses (see, for example, <?xml-stylesheet ?>). The ProcessingInstruction interface inherits methods and properties from Node. <div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 10%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; p...
RTCIdentityErrorEvent.idp - Web APIs
The read-only property RTCIdentityErrorEvent.idp returns the DOMString describing the domain name of the identity provider (idp) generating the error response event. Firefox implements the interface of this property under the following name: RTCPeerConnectionIdentityErrorEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. Syntax var idp = event.idp; event.idp = "developer.mozilla.org"; Example pc.onidpassertionerror = function( ev ) { alert("The idp named '" + ev.idp + "' encountered an error " + "while generating an assertion."); } ...
RTCIdentityErrorEvent.loginUrl - Web APIs
The read-only property RTCIdentityErrorEvent.loginUrl is a DOMString giving the URL where the user can complete the authentication. It can be null and is provided by the identity provider (idp). Firefox implements the interface of this property under the following name: RTCPeerConnectionIdentityErrorEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. Syntax var loginUrl = event.loginUrl; event.loginUrl = "https://developer.mozilla.org/fakeURL"; Example pc.onidpassertionerror = function( ev ) { alert("The idp requested an authentication" + " to be performed at th3 URL '" + ev.url + ...
RTCIdentityErrorEvent.protocol - Web APIs
The read-only property RTCIdentityErrorEvent.protocol is a DOMString describing the Idp protocol in use. Firefox implements the interface of this property under the following name: RTCPeerConnectionIdentityErrorEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. Syntax var protocol = event.protocol; event.protocol = "idp.html"; Example pc.onidpassertionerror = function( ev ) { alert("The idp uses the following protocol '" + ev.protocol + "."); } ...
RTCIdentityErrorEvent - Web APIs
The RTCIdentityErrorEvent interface represents an error associated with the identity provider (idP). This is usually for an RTCPeerConnection. Two events are sent with this type: idpassertionerror and idpvalidationerror. Firefox implements this interface under the following name: RTCPeerConnectionIdentityErrorEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. Properties A RTCIdentityErrorEvent being an Event, this event also implements these properties. RTCIdentityErrorEvent.idp Read only Is a DOMString describing the domain name of the identity provider (idp) generating the error response. RTCIdentityErrorEvent.loginUrl Read only Is a DOMString giving the URL where the user can compl...
RTCIdentityEvent.assertion - Web APIs
The read-only property RTCIdentityEvent.assertion returns the DOMString containing a blob being the coded assertion associated with the event. Firefox implements the interface this property belongs to under the following name: RTCPeerConnectionIdentityEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. Syntax var blob = event.assertion; Example pc.onidentityresult = function( ev ) { alert("A new identity assertion (blob: '" + ev.assertion + "') has been generated."); } ...
RTCIdentityEvent - Web APIs
The RTCIdentityEvent interface represents an identity assertion generated by an identity provider (idP). This is usually for an RTCPeerConnection. The only event sent with this type is identityresult.. Firefox implements this interface under the following name: RTCPeerConnectionIdentityEvent. It is likely that it will correct this name when it will unprefix RTCPeerConnection, once spec and implementation will have been stabilized. Properties A RTCIdentityEvent being an Event, this event also implements these properties. RTCIdentityEvent.assertion Read only Returns the DOMString containing a blob being the assertion generated. Methods A RTCIdentityEvent being an Event, this event also implements these properties. There is no specific RTCIdentityEvent method. Examples pc.onident...
Screen.orientation - Web APIs
The orientation read-only property of the Screen interface returns the current orientation of the screen. Syntax var orientation = window.screen.orientation; Return value An instance of ScreenOrientation representing the orientation of the screen. Note that older, prefixed versions returned a DOMString equivalent to ScreenOrientation.type. Example var orientation = (screen.orientation || {}).type || screen.mozOrientation || screen.msOrientation; if (orientation === "landscape-primary") { console.log("That looks good."); } else if (orientation === "landscape-secondary") { console.log("Mmmh... the screen is upside down!"); } else if (orientation === "portrait-secondary" || orientation === "portrait-primary") { console.log("Mmmh... you should rotate your device to landscape"); } el...
URL - Web APIs
Web › API › URL
cifying the URL as a string when calling its constructor, or by providing a relative URL and a base URL. You can then easily read the parsed components of the URL or make changes to the URL. If a browser doesn't yet support the URL() constructor, you can access a URL object using the Window interface's Window.URL property. Be sure to check to see if any of your target browsers require this to be prefixed. Note: This feature is available in Web Workers. Constructor new URL() Creates and returns a URL object referencing the URL specified using an absolute URL string, or a relative URL string and a base URL string. Properties hash A USVString containing a '#' followed by the fragment identifier of the URL. host A USVString containing the domain (that is the hostname) followed by (if ...
ValidityState.patternMismatch - Web APIs
't conform to the constraints set by the pattern value, the patternMismatch property will be true. Examples Given the following: <p> <label>Enter your phone number in the format (123)456-7890 (<input name="tel1" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-digit area code" size="2"/>)- <input name="tel2" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-digit prefix" size="2"/> - <input name="tel3" type="tel" pattern="[0-9]{4}" placeholder="####" aria-label="4-digit number" size="3"/> </label> </p> Here we have 3 sections for a north American phone number with an implicit label encompassing all three components of the phone number, expecting 3-digits, 3-digits and 4-digits respectively, as defined by the pattern attribute set on each. If the values are...
ValidityState.typeMismatch - Web APIs
straints set by the element's type attribute. If the type attribute expects specific strings, such as the email and url types and the value don't doesn't conform to the constraints set by the type, the typeMismatch property will be true. The email input type expects one or more valid email addresses, depending on whether the multiple attribute is present. A valid email address includes an email prefix and a domain, with or without a top level domain. If the value of the email input is not an empty string, a single valid e-mail address, or one or more comma separated email address if the multiple attribute is present, there is a typeMismatch. The url input type expects one or more valid email URLs, depending on whether the multiple attribute is present. A valid URL includes a protocol, optiona...
WebGLRenderingContext.getActiveUniform() - Web APIs
truct. E.g. uniform struct { float foo; vec4 bar; } c; will result in c.foo and c.bar. Arrays of structs or arrays: each entry of the array will generate its own entries. E.g. uniform struct { float foo; vec4 bar; } d[2]; will result in: d[0].foo d[0].bar d[1].foo d[1].bar Uniform blocks: one entry for each member. If the uniform block has an instance name, the block name is prefixed. E.g. uniform Block { float foo; }; will result in foo, and uniform Block { float bar; } e; will result in Block.bar. The size attribute of the return value corresponds to the length of the array for uniforms declared as arrays. Otherwise, it is 1 (this includes interface blocks instanced with arrays). Exceptions gl.INVALID_VALUE is generated if the program WebGLProgram is invalid (not li...
WebRTC API - Web APIs
bRTC are still evolving, and because each browser has different levels of support for codecs and WebRTC features, you should strongly consider making use of the Adapter.js library provided by Google before you begin to write your code. Adapter.js uses shims and polyfills to smooth over the differences among the WebRTC implementations across the environments supporting it. Adapter.js also handles prefixes and other naming differences to make the entire WebRTC development process easier, with more broadly compatible results. The library is also available as an NPM package. To learn more about Adapter.js, see Improving compatibility using WebRTC adapter.js. WebRTC concepts and usage WebRTC serves multiple purposes; together with the Media Capture and Streams API, they provide powerful multimedi...
Window.window - Web APIs
Web › API › Window › window
ame window object: window.window window.window.window window.window.window.window // ... In web pages, the window object is also a global object. This means: global variables of your script are in fact properties of window: var global = {data: 0}; alert(global === window.global); // displays "true" you can access built-in properties of the window object without having to type window. prefix: setTimeout("alert('Hi!')", 50); // equivalent to using window.setTimeout. alert(window === window.window); // displays "true" The point of having the window property refer to the object itself, was likely to make it easy to refer to the global object. Otherwise, you'd have to do a manual var window = this; assignment at the top of your script. Another reason, is that without this propert...
XMLSerializer.serializeToString() - Web APIs
ment DocumentFragment Element Comment Text ProcessingInstruction Attr If any other type is encountered, a TypeError exception is thrown. Notes on the resulting XML There are some things worth noting about the XML output by serializeToString(): For XML serializations, Element and Attr nodes are always serialized with their namespaceURI intact. This may mean that a previously-specified prefix or default namespace may be dropped or altered. The resulting XML is compatible with the HTML parser. Elements in the HTML namespace that have no child nodes (thereby representing empty tags) are serialized with both begin and end tags ("<someelement></someelement>") instead of using the empty-element tag ("<someelement/>"). Specifications Specification Status Comment ...
XPathEvaluator.createNSResolver() - Web APIs
This method adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document. This adapter works like the DOM Level 3 method Node.lookupNamespaceURI() in resolving the namespace URI from a given prefix using the current information available in the node's hierarchy at the time the method is called, also correctly resolving the implicit xml prefix. Syntax XPathNSResolver XPathEvaluator.createNSResolver(nodeResolver); Parameters nodeResolver A Node to be used as a context for namespace resolution. Return value An XPathNSResolver object which resolves namespaces with respect to the definitions in scope for a specified node. Specifications Specification Status Comment ...
XPathExpression.evaluate() - Web APIs
presenting the result of evaluating the XPath expression. Exceptions INVALID_EXPRESSION_ERR If the expression is not legal according to the rules of the XPathEvaluator, an XPathException of type INVALID_EXPRESSION_ERR is raised. TYPE_ERR In case result cannot be converted to the specified type, an XPathException of type TYPE_ERR is raised. NAMESPACE_ERR If the expression contains namespace prefixes which cannot be resolved by the specified XPathNSResolver, a DOMException of type NAMESPACE_ERROR is raised. WRONG_DOCUMENT_ERR If the provided context node is from a document that is not supported by the XPathEvaluator, a DOMException of type WRONG_DOCUMENT_ERR is raised. NOT_SUPPORTED_ERR If the provided context node is not a type permitted as an XPath context node or the request type is ...
XPathExpression - Web APIs
Objects of this type are created by calling XPathEvaluator.createExpression(). Methods XPathExpression.evaluate() Evaluates the XPath expression on the given node or document. ...
Generating HTML - Web APIs
needed, namely for the XML elements. Since there is no HTML namespace, and using the XHTML namespace would force the XSL to create an XML document that would not behave like a HTML document, the xsl:output in the XSL Stylesheet will make sure the resulting document will be handled as HTML. For the XML elements, our own namespace is needed, http://devedge.netscape.com/2002/de, and it is given the prefix myNS (xmlns:myNS="http://devedge.netscape.com/2002/de"). Figure 2 XML file :(example2.xml)view example | view source XML Document (example2.xml): <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="example2.xsl"?> <myNS:Article xmlns:myNS="http://devedge.netscape.com/2002/de"> <myNS:Title>My Article</myNS:Title> <myNS:Authors> <myNS:Author company="Foopy Corp.">Mr. Foo<...
Web applications and ARIA FAQ - Accessibility
wn ARIA will not change any styles, as with any HTML attributes, CSS can take advantage of ARIA attributes as element selectors. This may provide a convenient mechanism to style ARIA-enabled widgets. .tab-panel[aria-hidden="true"] { display: none; } .tab-panel[aria-hidden="false"] { display: block; } What about validation? The new attributes introduced in ARIA, such as role and those prefixed with aria-, aren't officially part of the HTML 4 or XHTML 4 specifications. As a result, pages that include ARIA may not validate using tools such as the W3C's Markup Validator. The first potential solution to this problem is to avoid placing ARIA roles and states in your markup directly. Instead, use JavaScript to dynamically add ARIA to your page, as shown in the answer to Can you show me an...
Custom properties (--*): CSS variables - CSS: Cascading Style Sheets
Web › CSS › --*
Custom properties are scoped to the element(s) they are declared on, and participate in the cascade: the value of such a custom property is that from the declaration decided by the cascading algorithm. Initial valuesee proseApplies toall elementsInheritedyesComputed valueas specified with variables substitutedAnimation typediscrete Syntax --somekeyword: left; --somecolor: #0000ff; --somecomplexvalue: 3px 6px rgb(20, 32, 54); <declaration-value> This value matches any sequence of one or more tokens, so long as the sequence does not contain an unallowed token. ...
::-webkit-file-upload-button - CSS: Cascading Style Sheets
The ::-webkit-file-upload-button CSS pseudo-element represents the button of an <input> of type="file". This pseudo-element is non-standard and only supported in WebKit/Blink compatible browsers like Chrome, Opera and Safari (indicated by the -webkit prefix). Syntax selector::-webkit-file-upload-button Examples HTML <form> <label for="fileUpload">Upload file</label><br> <input type="file" id="fileUpload"> </form> CSS input, label { display: block; } input[type=file]::-webkit-file-upload-button { border: 1px solid grey; background: #FFFAAA; } Below is the example for you to try. The screenshot to the left shows what the button will look like if you are without access to Chrome, Opera or Safari. ScreenshotLive sample Specifications Not part of any standard. ...
::-webkit-search-cancel-button - CSS: Cascading Style Sheets
The clear button is only shown on non-empty search <input> elements. Syntax selector::-webkit-search-cancel-button Specifications Not part of any standard. ...
::-webkit-search-results-button - CSS: Cascading Style Sheets
The search results button is only shown on search <input> elements that have a results attribute. Syntax selector::-webkit-search-results-button Specifications Not part of any standard. ...
::slotted() - CSS: Cascading Style Sheets
Web › CSS › ::slotted
slot */ ::slotted(*) { font-weight: bold; } /* Selects any <span> placed inside a slot */ ::slotted(span) { font-weight: bold; } Syntax ::slotted( <compound-selector-list> )where <compound-selector-list> = <compound-selector>#where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
:focus-visible - CSS: Cascading Style Sheets
le an element matches the :focus pseudo-class and the UA (User Agent) determines via heuristics that the focus should be made evident on the element. (Many browsers show a "focus ring" by default in this case.) This selector is useful to provide a different focus indicator based on the user's input modality (mouse vs. keyboard). Note that Firefox supports similar functionality through an older, prefixed pseudo-class -- :-moz-focusring. Syntax :focus-visible Examples Basic example In this example, the :focus-visible selector uses the UA's behavior to determine when to match. Compare what happens when you click on the different controls with a mouse, versus when you tab through them using a keyboard. Note the difference in behavior from elements styled with :focus. <input value="Default st...
:has() - CSS: Cascading Style Sheets
Web › CSS › :has
e <relative-selector-list> = <relative-selector>#where <relative-selector> = <combinator>? <complex-selector>where <combinator> = '>' | '+' | '~' | [ '|' ]<complex-selector> = <compound-selector> [ <combinator>? <compound-selector> ]*where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
:host() - CSS: Cascading Style Sheets
Web › CSS › :host()
Selects a shadow root host, only if it is matched by the selector argument */ :host(.special-custom-element) { font-weight: bold; } Syntax :host( <compound-selector-list> )where <compound-selector-list> = <compound-selector>#where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
:host-context() - CSS: Cascading Style Sheets
a .dark-theme class is applied to the document body */ p { color: #000; } :host-context(body.dark-theme) p { color: #fff; } Syntax :host-context( <compound-selector-list> )where <compound-selector-list> = <compound-selector>#where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
:nth-child() - CSS: Cascading Style Sheets
omplex-selector-list> ]? )where <nth> = <an-plus-b> | even | odd<complex-selector-list> = <complex-selector>#where <complex-selector> = <compound-selector> [ <combinator>? <compound-selector> ]*where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
:nth-last-child() - CSS: Cascading Style Sheets
omplex-selector-list> ]? )where <nth> = <an-plus-b> | even | odd<complex-selector-list> = <complex-selector>#where <complex-selector> = <compound-selector> [ <combinator>? <compound-selector> ]*where <compound-selector> = [ <type-selector>? <subclass-selector>* [ <pseudo-element-selector> <pseudo-class-selector>* ]* ]!<combinator> = '>' | '+' | '~' | [ '|' ]where <type-selector> = <wq-name> | <ns-prefix>? '*'<subclass-selector> = <id-selector> | <class-selector> | <attribute-selector> | <pseudo-class-selector><pseudo-element-selector> = ':' <pseudo-class-selector><pseudo-class-selector> = ':' <ident-token> | ':' <function-token> <any-value> ')'where <wq-name> = <ns-prefix>? <ident-token><ns-prefix> = [ <ident-token> | '*' ]? | <id-selector> = <hash-token><class-selector> = '.' <ident-token><att...
system - CSS: Cascading Style Sheets
will use the algorithm, symbols, and other properties of the lower-alpha counter style, but will remove the period ('.') after the counter representation, and enclose the characters in paranthesis; like (a), (b), etc. HTML <ul class="list"> <li>One</li> <li>Two</li> <li>Three</li> <li>Four</li> <li>Five</li> </ul> CSS @counter-style alpha-modified { system: extends lower-alpha; prefix: "("; suffix: ") "; } ul { list-style: alpha-modified; } Result Specifications Specification Status Comment CSS Counter Styles Level 3The definition of 'system' in that specification. Candidate Recommendation Initial definition. ...
-ms-high-contrast - CSS: Cascading Style Sheets
being displayed in high contrast mode, and with what color variation. High Contrast Mode is a specialized display mode that prioritizes making content as legible as possible by dynamically replacing foreground and background colors with a user-specified theme. For web content, theme colors are mapped to content types. This media feature applies to bitmap media types. It does not accept min/max prefixes. Syntax The -ms-high-contrast media feature is specified as one of the following values. Values none ... No longer supported as of Microsoft Edge 18. active Indicates that the subsequent styling rules will be applied when the system is placed in high contrast mode with any color variation. black-on-white Indicates that the subsequent styling rules will be applied when the sy...
-webkit-animation - CSS: Cascading Style Sheets
The -webkit-animation Boolean CSS media feature is a Chrome extension whose value is true if vendor-prefixed CSS animations are supported. Apple has a description in Safari CSS Reference. Note: This media feature is only supported by WebKit. If possible, use an @supports feature query instead. Syntax The -webkit-animation media feature is a Boolean whose value is true if the vendor-prefixed CSS animation properties are supported. Values true The browser supports -webkit prefixed CSS animations. false The browser doesn't support these prefixed CSS animations. Examples @media (-webkit-animation) { /* CSS to use if animations are supported */ } Specifications Not part of any standard. ...
-webkit-device-pixel-ratio - CSS: Cascading Style Sheets
The -webkit-device-pixel-ratio is a non-standard Boolean CSS media feature which is an alternative to the standard resolution media feature. Note: This media feature is a WebKit feature. If possible, use the resolution media feature query instead. Syntax The -webkit-device-pixel-ratio feature is specified as a <number> value. It is a range feature, meaning that you can also use the prefixed -webkit-min-device-pixel-ratio and -webkit-max-device-pixel-ratio variants to query minimum and maximum values, respectively. Values <number> The number of device pixels used to represent each CSS px. Although the value is a <number>, and thus doesn't syntactically allow units, its implicit unit is dppx. Implementation /* A unit of "dppx" is implied: */ @media (-webkit-min-device-pixel-...
-webkit-transform-3d - CSS: Cascading Style Sheets
The -webkit-transform-3d Boolean CSS media feature is a Chrome extension whose value is true if vendor-prefixed CSS 3D transforms are supported. Note: This media feature is only supported by WebKit and Blink. If possible, use an @supports feature query instead. Syntax -webkit-transform-3d is a Boolean CSS media feature whose value is true if the browser supports -webkit prefixed CSS 3D transforms. Values true The browser supports the 3D CSS transforms with the -webkit prefix. false The 3D CSS transforms prefixed with -webkit are not supported by the browser. Examples @media (-webkit-transform-3d) { .foo { transform-style: preserve-3d; } } @media (-webkit-transform-3d: 1) { .foo { transform-style: preserve-3d; } } Specifications Specification ...
aspect-ratio - CSS: Cascading Style Sheets
Examples The example below is contained in an <iframe>, which creates its own viewport. Resize the <iframe> to see aspect-ratio in action. ...
color-index - CSS: Cascading Style Sheets
The color-index CSS media feature can be used to test the number of entries in the output device's color lookup table. Syntax The color-index feature is specified as an <integer> value representing the number of entries in the output device's color lookup table. (This value is zero if the device does not use such a table.) It is a range feature, meaning that you can also use the prefixed min-color-index and max-color-index variants to query minimum and maximum values, respectively. Examples Basic example HTML <p>This is a test.</p> CSS p { color: black; } @media (color-index) { p { color: red; } } @media (min-color-index: 15000) { p { color: #1475ef; } } Result Custom stylesheet This HTML will apply a special stylesheet for devices that have at least 256 colors...
color - CSS: Cascading Style Sheets
Web › CSS › @media › color
The color CSS media feature can be used to test the number of bits per color component (red, green, blue) of the output device. Syntax The color feature is specified as an <integer> value that represents the number of bits per color component (red, green, blue) of the output device. If the device is not a color device, the value is zero. It is a range feature, meaning that you can also use the prefixed min-color and max-color variants to query minimum and maximum values, respectively. Note: If the various color components are represented by different numbers of bits, the smallest number is used. For example, if a display uses 5 bits for blue and red and 6 bits for green, then the device is considered to use 5 bits per color component. If the device uses indexed colors, the minimum number of...
device-aspect-ratio - CSS: Cascading Style Sheets
The device-aspect-ratio CSS media feature can be used to test the width-to-height aspect ratio of an output device. Syntax The device-aspect-ratio feature is specified as a <ratio>. It is a range feature, meaning that you can also use the prefixed min-device-aspect-ratio and max-device-aspect-ratio variants to query minimum and maximum values, respectively. Examples article { padding: 1rem; } @media screen and (min-device-aspect-ratio: 16/9) { article { padding: 1rem 5vw; } } Specifications Specification Status Comment Media Queries Level 4The definition of 'device-aspect-ratio' in that specification. Candidate Recommendation Deprecated in Media Queries Level 4. Media QueriesThe definition of 'device-aspect-ratio' in that specificati...
device-height - CSS: Cascading Style Sheets
Examples This HTML applies a special stylesheet for devices that are shorter than 800 pixels. ...
device-width - CSS: Cascading Style Sheets
Examples This HTML applies a special stylesheet for devices that are narrower than 800 pixels. ...
height - CSS: Cascading Style Sheets
Web › CSS › @media › height
The height CSS media feature can be used to apply styles based on the height of the viewport (or the page box, for paged media). Syntax The height feature is specified as a <length> value representing the viewport height. It is a range feature, meaning that you can also use the prefixed min-height and max-height variants to query minimum and maximum values, respectively. Examples HTML <div>Watch this element as you resize your viewport's height.</div> CSS /* Exact height */ @media (height: 360px) { div { color: red; } } /* Minimum height */ @media (min-height: 25rem) { div { background: yellow; } } /* Maximum height */ @media (max-height: 40rem) { div { border: 2px solid blue; } } Result Specifications Specification Status Comment ...
monochrome - CSS: Cascading Style Sheets
Web › CSS › @media › monochrome
The monochrome CSS media feature can be used to test the number of bits per pixel in the monochrome frame buffer of the output device. Syntax The monochrome feature is specified as an <integer> representing the number of bits per pixel in the monochrome frame buffer. If the device is not a monochrome device, the value is zero. It is a range feature, meaning that you can also use the prefixed min-monochrome and max-monochrome variants to query minimum and maximum values, respectively. Examples HTML <p class="mono">Your device supports monochrome pixels!</p> <p class="no-mono">Your device doesn't support monochrome pixels.</p> CSS p { display: none; } /* Any monochrome device */ @media (monochrome) { p.mono { display: block; color: #333; } } /* Any non-monochrome device */ ...
resolution - CSS: Cascading Style Sheets
Web › CSS › @media › resolution
The resolution CSS media feature can be used to test the pixel density of the output device. Syntax The resolution feature is specified as a <resolution> value representing the pixel density of the output device. It is a range feature, meaning that you can also use the prefixed min-resolution and max-resolution variants to query minimum and maximum values, respectively. Examples HTML <p>This is a test of your device's pixel density.</p> CSS /* Exact resolution */ @media (resolution: 150dpi) { p { color: red; } } /* Minimum resolution */ @media (min-resolution: 72dpi) { p { text-decoration: underline; } } /* Maximum resolution */ @media (max-resolution: 300dpi) { p { background: yellow; } } Result Specifications Specification Status Comment ...
width - CSS: Cascading Style Sheets
Web › CSS › @media › width
The width CSS media feature can be used to test the width of the viewport (or the page box, for paged media). Syntax The width feature is specified as a <length> value representing the viewport width. It is a range feature, meaning that you can also use the prefixed min-width and max-width variants to query minimum and maximum values, respectively. Examples HTML <div>Watch this element as you resize your viewport's width.</div> CSS /* Exact width */ @media (width: 360px) { div { color: red; } } /* Minimum width */ @media (min-width: 35rem) { div { background: yellow; } } /* Maximum width */ @media (max-width: 50rem) { div { border: 2px solid blue; } } Result Specifications Specification Status Comment Media Queries Level 4The de...
At-rules - CSS: Cascading Style Sheets
Web › CSS › At-rule
/ @IDENTIFIER (RULE); /* Example: tells browser to use UTF-8 character set */ @charset "utf-8"; There are several at-rules, designated by their identifiers, each with a different syntax: @charset -- Defines the character set used by the style sheet. @import -- Tells the CSS engine to include an external style sheet. @namespace -- Tells the CSS engine that all its content must be considered prefixed with an XML namespace. Nested at-rules -- A subset of nested statements, which can be used as a statement of a style sheet as well as inside of conditional group rules: @media -- A conditional group rule that will apply its content if the device meets the criteria of the condition defined using a media query. @supports -- A conditional group rule that will apply its content if the bro...
Attribute selectors - CSS: Cascading Style Sheets
ute name of attr whose value is a whitespace-separated list of words, one of which is exactly value. [attr|=value] Represents elements with an attribute name of attr whose value can be exactly value or can begin with value immediately followed by a hyphen, - (U+002D). It is often used for language subcode matches. [attr^=value] Represents elements with an attribute name of attr whose value is prefixed (preceded) by value. [attr$=value] Represents elements with an attribute name of attr whose value is suffixed (followed) by value. [attr*=value] Represents elements with an attribute name of attr whose value contains at least one occurrence of value within the string. [attr operator value i] Adding an i (or I) before the closing bracket causes the value to be compared case-insensitively (...
Using CSS animations - CSS: Cascading Style Sheets
two times are so important, they have special aliases: from and to. Both are optional. If from/0% or to/100% is not specified, the browser starts or finishes the animation using the computed values of all attributes. You can optionally include additional keyframes that describe intermediate steps between the start and end of the animation. Examples Note: Some older browsers (pre-2017) may need prefixes; the live examples you can click to see in your browser include the -webkit prefixed syntax. Making text slide across the browser window This simple example styles the <p> element so that the text slides in from off the right edge of the browser window. Note that animations like this can cause the page to become wider than the browser window. To avoid this problem put the element to be anima...
Box alignment in grid layout - CSS: Cascading Style Sheets
, and gap. This allows them to be used for other layout methods where a gap between items makes sense. The updated properties have not yet been implemented in all browsers. Therefore, to use the gap properties in grid layout, you should use the grid-row-gap, grid-column-gap and grid-gap versions to ensure full compatibility. You could double up the properties and use both as you would for vendor prefixes. Reference CSS Properties justify-content align-content place-content justify-items align-items place-items justify-self align-self place-self row-gap column-gap gap Glossary Entries Cross Axis Main Axis Guides Alignment in grid layout External Resources Box alignment cheatsheet CSS Grid, Flexbox and Box Alignment Thoughts on partial implementations of Box ...
CSS Box Alignment - CSS: Cascading Style Sheets
anged in this way. The gap property is a shorthand for row-gap and column-gap, which allows us to set these properties at once: row-gap column-gap gap In the below example, a grid layout uses the gap shorthand to set a 10px gap between row tracks, and a 2em gap between column tracks. In this example I am using the grid-gap property in addition to gap. The gap properties were originally prefixed with grid- in the Grid Layout specification and some browsers only support these prefixed versions. grid-row-gap grid-column-gap grid-gap The prefixed versions will be maintained as an alias of the unprefixed ones, however you can always double up in the way that you would with vendor prefixes, adding the grid-gap property and then the gap property with the same values. Also, be aware t...
Using feature queries - CSS: Cascading Style Sheets
which checks for both of these things. The following rule will only return true if both shape-outside: circle() and display: grid are supported by the browser. You can also use or, if one property out of a selection could match to enable the CSS you want to use: @supports (property1: value) or (property2: value) { CSS rules to apply } This can be particularly useful if a feature is vendor prefixed, as you can test for the standard property plus any vendor prefixes. Limitations of feature queries The @supports rule tests to see if the browser can parse one or more property/value pairs, and therefore if it claims to support the feature(s). If the property and value pair is understood by the browser it returns a positive response. Therefore feature queries cannot be used to check if a b...
CSS Counter Styles - CSS: Cascading Style Sheets
CSS Counter Styles is a module of CSS that lets you define your own counter styles. Reference Properties counter-increment counter-reset At-rules @counter-style system additive-symbols negative prefix suffix range pad speak-as fallback Guides Using CSS counters Describes how to use counters to number any HTML element or to perform complex counting. Specifications Specification Status Comment CSS Counter Styles Level 3 Candidate Recommendation Initial definition. ...
Cross-browser Flexbox mixins - CSS: Cascading Style Sheets
This article provides a set of mixins for those who want to mess around with flexbox using the native support of current browsers. This set uses: Fallbacks using 2009 'box' syntax (FF and Older WebKit) and prefixed syntaxes (IE10, WebKit browsers without flex wrapping) Final standards syntax (FF, Safari, Chrome, IE11+, Edge, Opera) This was inspired by: http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/ With help from: http://w3.org/tr/css3-flexbox/ http://the-echoplex.net/flexyboxes/ http://msdn.microsoft.com/en-us/library/ie/hh772069(v=vs.85).aspx http://css-tricks.com/using-flexbox/ A Complete Guide to Flexbox | CSS-Tricks Visual Guide to CSS3 Flexbox: Flexbox Playground | Note: Mixins are not currently supported natively in browsers. Instead, you will n...
Basic Concepts of grid layout - CSS: Cascading Style Sheets
ers or alleys between grid cells can be created using the column-gap and row-gap properties, or the shorthand gap. In the below example, I am creating a 10-pixel gap between columns and a 1em gap between rows. .wrapper { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 10px; row-gap: 1em; } Note: When grid first shipped in browsers the column-gap, row-gap and gap were prefixed with the grid- prefix as grid-column-gap, grid-row-gap and grid-gap respectively. Browsers are updating to remove this prefix, however the prefixed versions will be maintained as aliases making them safe to use. At the present time, some browsers do not support the unprefixed versions which is why the live examples in this guide use grid- prefixed versions. <div class="wrapper"> <div>One...
Line-based placement with CSS Grid - CSS: Cascading Style Sheets
the grid with: .item { grid-column: 1 / -1; } Gutters or Alleys The CSS Grid Specification includes the ability to add gutters between column and row tracks with the grid-column-gap and grid-row-gap properties. These specify a gap that acts much like the column-gap property in multi-column layout. Note: When grid first shipped in browsers the column-gap, row-gap and gap properties were prefixed with the grid- prefix as grid-column-gap, grid-row-gap and grid-gap respectively. Browsers are updating their rendering engines to remove this prefix, however the prefixed versions will be maintained as aliases, making them safe to use. At the present time, some browsers do not support the unprefixed versions, which is why the live examples in this guide use grid- prefixed versions. Gaps o...
CSS Images - CSS: Cascading Style Sheets
s Comment CSS Images Module Level 4 Working Draft Added image-resolution, conic-gradient(), and image() CSS Images Module Level 3 Candidate Recommendation Added image-orientation, image-rendering, object-fit and object-position Compatibility StandardThe definition of 'CSS Gradients' in that specification. Living Standard Standardizes the -webkit prefixed gradient value functions CSS Values and Units Module Level 3The definition of '<url>' in that specification. Candidate Recommendation CSS Level 2 (Revision 1)The definition of '<uri>' in that specification. Recommendation CSS Level 1The definition of '<url>' in that specification. Recommendation Initial definition ...
Browser compatibility and Scroll Snap - CSS: Cascading Style Sheets
In this initial example we have used the old specification alongside the current specification in order to make scroll snapping work in all browsers which support some form of scroll snapping. The example adds the scroll-snap-points-y and scroll-snap-destination properties, which are deprecated, to m...
CSS selectors - CSS: Cascading Style Sheets
|| column combinator, grid structural selectors, logical combinators, location, time-demensional, resource state, linguistic and UI pseudo-classes, modifier for ASCII case-sensitive and case-insensitive attribute value selection. Selectors Level 3 Recommendation Added the ~ general sibling combinator and tree-structural pseudo-classes. Made pseudo-elements use a :: double-colon prefix. Additional attribute selectors CSS Level 2 (Revision 1) Recommendation Added the > child and + adjacent sibling combinators. Added the universal and attribute selectors. CSS Level 1 Recommendation Initial definition. See the pseudo-class and pseudo-element specification tables for details on those. ...
Using media queries - CSS: Cascading Style Sheets
er agent, output device, or environment. For instance, you can apply specific styles to widescreen monitors, computers that use mice, or to devices that are being used in low-light conditions. This example applies styles when the user's primary input mechanism (such as a mouse) can hover over elements: @media (hover: hover) { ... } Many media features are range features, which means they can be prefixed with "min-" or "max-" to express "minimum condition" or "maximum condition" constraints. For example, this CSS will apply styles only if your browser's viewport width is equal to or narrower than 12450px: @media (max-width: 12450px) { ... } If you create a media feature query without specifying a value, the nested styles will be used as long as the feature's value is not zero (or none, in Lev...
Microsoft CSS extensions - CSS: Cascading Style Sheets
Microsoft-only properties (avoid using on websites) Note: These properties will only work in Microsoft applications, and are not on a standards track. ...
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
ad (@counter-style)paddingpadding-blockpadding-block-endpadding-block-startpadding-bottompadding-inlinepadding-inline-endpadding-inline-startpadding-leftpadding-rightpadding-top@pagepage-break-afterpage-break-beforepage-break-insidepaint()paint-orderpath()pc<percentage>perspectiveperspective()perspective-originplace-contentplace-itemsplace-self::placeholderpointer-eventspolygon()<position>positionprefix (@counter-style)ptpxQQquotesRradradial-gradient()range (@counter-style)<ratio>:read-only:read-writerect()remrepeat()repeating-linear-gradient()repeating-radial-gradient():requiredresize<resolution>revertrgb()rgba():rightright@right-bottom:rootrotaterotate()rotate3d()rotateX()rotateY()rotateZ()row-gapSssaturate()scalescale()scale3d()scaleX()scaleY()scaleZ():scopescroll-behaviorscroll-marginscroll-...
animation-duration - CSS: Cascading Style Sheets
tion: 10s, 35s, 230ms; Values <time> The time that an animation takes to complete one cycle. This may be specified in either seconds (s) or milliseconds (ms). The value must be positive or zero and the unit is required. A value of 0s, which is the default value, indicates that no animation should occur. Note: Negative values are invalid, causing the declaration to be ignored. Some early, prefixed, implementations may consider them as identical to 0s. Note: When you specify multiple comma-separated values on an animation-* property, they will be assigned to the animations specified in the animation-name property in different ways depending on how many there are. For more information, see Setting multiple animation property values. Formal definition Initial value0sApplies toall elem...
box-flex-group - CSS: Cascading Style Sheets
Instead, distribution of space inside the flex container is now handled using flex-basis, flex-grow, and flex-shrink. Specifications Not part of any standard. ...
box-lines - CSS: Cascading Style Sheets
Web › CSS › box-lines
olumns. Formal definition Initial valuesingleApplies tobox elementsInheritednoComputed valueas specifiedAnimation typediscrete Formal syntax single | multiple Examples Simple usage example In the original version of the spec, box-lines allowed you to specify that you wanted your flex container's children to wrap onto multiple lines. This was only supported in WebKit-based browsers, with a prefix. div { display: box; box-orient: horizontal; box-lines: multiple; } The modern flexbox equivalent is flex-wrap. Specifications Not part of any standard. ...
break-inside - CSS: Cascading Style Sheets
ort No supportExperimental. Expect behavior to change in the future.Experimental. Expect behavior to change in the future. Notes on compatibility Prior to Firefox 65, the older property of page-break-inside will work in Firefox to prevent breaks in columns, as well as pages. Add both properties for backwards compatibility. For older WebKit-based browsers, the prefixed property -webkit-column-break-inside can be used to control column breaks. ...
<color> - CSS: Cascading Style Sheets
entcolor;"> The color of this text is blue. <div style="background:currentcolor; height:9px;"></div> This block is surrounded by a blue border. </div> Result RGB colors The RGB color model defines a given color according to its red, green, and blue components. An optional alpha component represents the color's transparency. Syntax RGB colors can be expressed through both hexadecimal (prefixed with #) and functional (rgb(), rgba()) notations. Note: As of CSS Colors Level 4, rgba() is an alias for rgb(). In browsers that implement the Level 4 standard, they accept the same parameters and behave the same way. Hexadecimal notation: #RRGGBB[AA] R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0-9, A-F). A is optional. For example, #ff0000 is equivalent to #f...
column-gap (grid-column-gap) - CSS: Cascading Style Sheets
ive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Initially a part of Multi-column Layout, the definition of column-gap has been broadened to include multiple layout methods. Now specified in Box Alignment, it may be used in Multi-column, Flexible Box, and Grid layouts. CSS Grid Layout initially defined the grid-column-gap property. This prefixed property is being replaced by column-gap. However, in order to support browsers that implemented grid-column-gap and not column-gap for grid, you will need to use the prefixed property. Syntax /* Keyword value */ column-gap: normal; /* <length> values */ column-gap: 3px; column-gap: 2.5em; /* <percentage> value */ column-gap: 3%; /* Global values */ column-gap: inherit; column-gap: initia...
content - CSS: Cascading Style Sheets
Web › CSS › content
; content: none; /* <image> values */ content: url("http://www.example.com/test.png"); content: linear-gradient(#e66465, #9198e5); /* alt text for generated content, added in the Level 3 specification */ content: url("http://www.example.com/test.png") / "This is the alt text"; /* values below can only be applied to generated content using ::before and ::after */ /* <string> value */ content: "prefix"; /* <counter> values */ content: counter(chapter_counter); content: counters(section_counter, "."); /* attr() value linked to the HTML attribute value */ content: attr(value string); /* Language- and position-dependent keywords */ content: open-quote; content: close-quote; content: no-open-quote; content: no-close-quote; /* Except for normal and none, several values can be used simultaneousl...
cross-fade() - CSS: Cascading Style Sheets
oss-fade() function allows for multiple images and for each image to have transparency values independent of the other values. This was not always the case. The original syntax, which has been implemented in some browsers, only allowed for two images, with the sum of the transparency of those two images being exactly 100%. The original syntax is supported in Safari and supported with the -webkit- prefix in Chrome, Opera, and other blink-based browsers. cross-fade(url(white.png), url(black.png), 0%); /* fully black */ cross-fade(url(white.png), url(black.png), 25%); /* 25% white, 75% black */ cross-fade(url(white.png), url(black.png), 50%); /* 50% white, 50% black */ cross-fade(url(white.png), url(black.png), 75%); /* 75% white, 25% black */ cross-fade(url(white.png), url(black.png), 100%);...
font - CSS: Cascading Style Sheets
Web › CSS › font
font values caption The system font used for captioned controls (e.g., buttons, drop-downs, etc.). icon The system font used to label icons. menu The system font used in menus (e.g., dropdown menus and menu lists). message-box The system font used in dialog boxes. small-caption The system font used for labeling small controls. status-bar The system font used in window status bars. Prefixed system font keywords Browsers often implement several more, prefixed, keywords: Gecko implements -moz-window, -moz-document, -moz-desktop, -moz-info, -moz-dialog, -moz-button, -moz-pull-down-menu, -moz-list, and -moz-field. Formal definition Initial valueas each of the properties of the shorthand:font-style: normalfont-variant: normalfont-weight: normalfont-stretch: normalfont-size: mediuml...
gap (grid-gap) - CSS: Cascading Style Sheets
Web › CSS › gap
CSS property sets the gaps (gutters) between rows and columns. It is a shorthand for row-gap and column-gap. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. CSS Grid Layout initially defined the grid-gap property. This prefixed property is being replaced by gap. However, in order to support browsers that implemented grid-gap and not gap for grid, you will need to use the prefixed property as in the interactive example above. Syntax /* One <length> value */ gap: 20px; gap: 1em; gap: 3vmin; gap: 0.5cm; /* One <percentage> value */ gap: 16%; gap: 100%; /* Two <length> values */ gap: 20px 10px; gap: 1em 0.5em; gap: 3...
mask-border-outset - CSS: Cascading Style Sheets
appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to move the mask away from the inner edge of the element's border box -- you can use it to make the mask start from part way across the border, rather than the inside of it. mask-border-outset: 1rem; Chromium-based browsers support an outdated version of this property -- mask-box-image-outset -- with a prefix: -webkit-mask-box-image-outset: 1rem; Note: The mask-border page features a working example (using the out-of-date prefixed border mask properties supported in Chromium), so you can get an idea of the effect. Specifications Specification Status Comment CSS Masking Module Level 1The definition of 'mask-border-outset' in that specification. Candidate Recommendat...
mask-border-repeat - CSS: Cascading Style Sheets
supported anywhere yet. When it eventually starts to be supported, it will serve to define how the border mask slice will repeat around the border -- i.e. will it just repeat, or be scaled slightly so a whole number of slices fits, or be stretched so one slice fits? mask-border-repeat: round; Chromium-based browsers support an outdated version of this property -- mask-box-image-repeat -- with a prefix: -webkit-mask-box-image-repeat: round; Note: The mask-border page features a working example (using the out-of-date prefixed border mask properties supported in Chromium), so you can get an idea of the effect. Specifications Specification Status Comment CSS Masking Module Level 1The definition of 'mask-border-repeat' in that specification. Candidate Recommenda...
mask-border-slice - CSS: Cascading Style Sheets
e> = <number> | <percentage> Examples Basic usage This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define the size of the slices taken from the source image, and used to create the border mask. mask-border-slice: 30 fill; Chromium-based browsers support an outdated version of this property -- mask-box-image-slice -- with a prefix: -webkit-mask-box-image-slice: 30 fill; Note: The mask-border page features a working example (using the out-of-date prefixed border mask properties supported in Chromium), so you can get an idea of the effect. Note: The fill keyword needs to be included if you want the element's content to be visible. Specifications Specification Status Comment CSS Masking Mo...
mask-border-source - CSS: Cascading Style Sheets
-angle> = <angle-percentage>{1,2}<angle-percentage> = <angle> | <percentage> Examples Basic usage This property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define the source of the border mask. mask-border-source: url(image.jpg); Chromium-based browsers support an outdated version of this property -- mask-box-image-source -- with a prefix: -webkit-mask-box-image-source: url(image.jpg); Note: The mask-border page features a working example (using the out-of-date prefixed border mask properties supported in Chromium), so you can get an idea of the effect. Specifications Specification Status Comment CSS Masking Module Level 1The definition of 'mask-border-source' in that specification. Candidate R...
mask-border-width - CSS: Cascading Style Sheets
property doesn't appear to be supported anywhere yet. When it eventually starts to be supported, it will serve to define the width of the border mask -- setting this to a different value to mask-border-slice will cause the slices to be scaled to fit the border mask. mask-border-width: 30 fill; Chromium-based browsers support an outdated version of this property -- mask-box-image-width -- with a prefix: -webkit-mask-box-image-width: 20px; Note: The mask-border page features a working example (using the out-of-date prefixed border mask properties supported in Chromium), so you can get an idea of the effect. Specifications Specification Status Comment CSS Masking Module Level 1The definition of 'mask-border-width' in that specification. Candidate Recommendatio...
overflow-wrap - CSS: Cascading Style Sheets
interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Note: In contrast to word-break, overflow-wrap will only create a break if an entire word cannot be placed on its own line without overflowing. The property was originally a nonstandard and unprefixed Microsoft extension called word-wrap, and was implemented by most browsers with the same name. It has since been renamed to overflow-wrap, with word-wrap being an alias. Syntax /* Keyword values */ overflow-wrap: normal; overflow-wrap: break-word; overflow-wrap: anywhere; /* Global values */ overflow-wrap: inherit; overflow-wrap: initial; overflow-wrap: unset; The overflow-wrap property is...
row-gap (grid-row-gap) - CSS: Cascading Style Sheets
Web › CSS › row-gap
The row-gap CSS property sets the size of the gap (gutter) between an element's grid rows. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. CSS Grid Layout initially defined the grid-row-gap property. This prefixed property is being replaced by row-gap. However, in order to support browsers that implemented grid-row-gap and not row-gap for grid, you will need to use the prefixed property as in the interactive example above. Syntax /* <length> values */ row-gap: 20px; row-gap: 1em; row-gap: 3vmin; row-gap: 0.5cm; /* <percentage> value */ row-gap: 10%; /* Global values */ row-gap: inherit; row-gap: initial; row-gap...
text-overflow - CSS: Cascading Style Sheets
...
text-transform - CSS: Cascading Style Sheets
lso, diphthongs with an accent on the first vowel lose the accent and gain a diaeresis on the second vowel (??/??). In Greek (el), the lowercase sigma character has two forms: ? and ?. ? is used only when sigma terminates a word. When applying text-transform: lowercase to an uppercase sigma (?), the browser needs to choose the right lowercase form based on context. in Irish (ga), certain prefixed letters remain in lowercase when the base initial is capitalized, so for example text-transform: uppercase will change ar aon tsli to AR AON tSLI and not, as one might expect, AR AON TSLI (Firefox only). In some cases, a hyphen is also removed upon uppercasing: an t-uisce transforms to AN tUISCE (and the hyphen is correctly reinserted by text-transform: lowercase). The language is defined by ...
EXSLT
t allow testing, matching, and replacing text using JavaScript style regular expressions.Sets (set)The EXSLT Sets package offers functions that let you perform set manipulation.Strings (str)The EXSLT Strings package provides functions that allow the manipulation of strings. EXSLT modules To use an EXSLT function, you need to declare the namespace the function is in, and then use the appropriate prefix when calling the function. For example, to use the regular expressions package: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:regexp="http://exslt.org/regular-expressions"> <xsl:template match="/"> ... <xsl:value-of select="regexp:replace(/root/@value, 'before', 'gi', 'AFTER')"/> ... </xsl:template> </xsl:sty...
WAI ARIA Live Regions/API Support - Developer guides
provided Points to the root of the atomic container that this object is in. This will always be an ancestor of the current object. aria-atomic on ancestor element event-from-input "true" | "false" (described more below) Browser could not calculate this Was the root cause of this event explicit user input? Does not require author's cooperation. The "container-" prefix is so named because the attribute describes what the final computed property of similar name is for that node. This means that the AT does not need to traverse up the parent chain to get this information. At this time, for properties where the container-[name] attribute has not been set, the AT must have code to fall back on the default value as defined in the W3C spec. Determining if event was f...
Constraint validation - Developer guides
se the method field.setCustomValidity() to set the result of the validation: an empty string means the constraint is satisfied, and any other string means there is an error and this string is the error message to display to the user. Constraint combining several fields: Postal code validation The postal code format varies from one country to another. Not only do most countries allow an optional prefix with the country code (like D- in Germany, F- in France or Switzerland), but some countries have postal codes with only a fixed number of digits; others, like the UK, have more complex structures, allowing letters at some specific positions. Note: This is not a comprehensive postal code validation library, but rather a demonstration of the key concepts. As an example, we will add a script ch...
HTML5 Parser - Developer guides
Web › Guide › HTML › HTML5 › HTML5 Parser
compatible HTML tokenization. If you omit quotes on the last attribute value, you must have a space before the closing slash. <circle fill=green /> is OK but <circle fill=red/> is not. Attributes starting with xmlns have absolutely no effect on what namespace elements or attributes end up in, so you don't need to use attributes starting with xmlns. Attributes in the XLink namespace must use the prefix xlink (e.g. xlink:href). Element names must not have prefixes or colons in them. The content of SVG script elements is tokenized like they are tokenized in XML--not like the content of HTML script elements is tokenized. When an SVG or MathML element is open <![CDATA[...]]> sections work the way they do in XML. You can use this to hide text content from older browsers that don't support SVG or ...
Index - Developer guides
Web › Guide › Index
16 Audio and video manipulation Audio, Canvas, Examples, Guide, HTML5, Media, Video, Web Audio API, WebGL, developer recommendation The ability to read the pixel values from each frame of a video can be very useful. 17 Event developer guide DOM, Event, Guide, NeedsUpdate, events Events refers both to a design pattern used for the as...
User input and controls - Developer guides
en locks that have been set. Note: More information about the Screen Orientation API can be found in Managing screen orientation. Fullscreen You might need to present an element of your application (such as a <video>, for example) in fullscreen mode. You can achieve this by calling Element.requestFullscreen() on that element. ...
HTML attribute: pattern - HTML: Hypertext Markup Language
e, not just any subset, as if a ^(?: were implied at the start of the pattern and )$ at the end. Examples Given the following: <p> <label>Enter your phone number in the format (123)456-7890 (<input name="tel1" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-digit area code" size="2"/>)- <input name="tel2" type="tel" pattern="[0-9]{3}" placeholder="###" aria-label="3-digit prefix" size="2"/> - <input name="tel3" type="tel" pattern="[0-9]{4}" placeholder="####" aria-label="4-digit number" size="3"/> </label> </p> Here we have 3 sections for a north American phone number with an implicit label encompassing all three components of the phone number, expecting 3-digits, 3-digits and 4-digits respectively, as defined by the pattern attribute set on each. If the values are...
<button>: The Button element - HTML: Hypertext Markup Language
Web › HTML › Element › button
Boolean attribute specifies that the form is not to be validated when it is submitted. If this attribute is specified, it overrides the novalidate attribute of the button's form owner. This attribute is also available on <input type="image"> and <input type="submit"> elements. formtarget HTML5 If the button is a submit button, this attribute is a author-defined name or standardized, underscore-prefixed keyword indicating where to display the response from submitting the form. This is the name of, or keyword for, a browsing context (a tab, window, or <iframe>). If this attribute is specified, it overrides the target attribute of the button's form owner. The following keywords have special meanings: _self: Load the response into the same browsing context as the current one. This is the defa...
<col> - HTML: Hypertext Markup Language
Web › HTML › Element › col
zero and b to the position of the column in the table, e.g. td:nth-child(2) { text-align: right; } to right-align the second column. If the table does use a colspan attribute, the effect can be achieved by combining adequate CSS attribute selectors like [colspan=n], though this is not trivial. bgcolor The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property. char This attribute is used to set the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored. charoff This at...
<colgroup> - HTML: Hypertext Markup Language
Web › HTML › Element › colgroup
columns in the table and b is the ordinal position of this column in the table. Only after this selector the text-align property can be used. If the table does use a colspan attribute, the effect can be achieved by combining adequate CSS attribute selectors like [colspan=n], though this is not trivial. bgcolor The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property. char This attribute specifies the alignment of the content in a column group to a character. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored, though it ...
<input type="file"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › file
le files, the value represents the first file in the list of files they selected. The other files can be identified using the input's HTMLInputElement.files property. Note: If multiple files are selected, the string represents the first selected file. JavaScript can access the other files through the input's files property. If no file is yet selected, the string is "" (empty). The string is prefixed with C:\fakepath\, to prevent malicious software from guessing the user's file structure. Additional attributes In addition to the common attributes shared by all <input> elements, inputs of type file also support the following attributes: Attribute Description accept One or more unique file type specifiers describing file types to allow capture What...
<input type="image"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › image
created with <input type="image">, two extra data points are submitted to the server automatically by the browser -- x and y. You can see this in action in our X Y coordinates example. When you click on the image to submit the form, you'll see the data appended to the URL as parameters, for example ?x=52&y=55. If the image input has a name attribute, then keep in mind that the specified name is prefixed on every attribute, so if the name is position, then the returned coordinates would be formatted in the URL as ?position.x=52&position.y=55. This, of course, applies to all other attributes as well. These are the X and Y coordinates of the image that the mouse clicked on to submit the form, where (0,0) is the top-left of the image. These can be used when the position the image was clicked on i...
<input type="radio"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › radio
By default, radio buttons (and checkboxes) are styled with the operating system's native styles for those controls. By specifying appearance: none, you can remove the native styling altogether, and create your own styles for them. Here we've used a border along with border-radius and a transition to create a nice animating radio selection. Notice also how the :...
<table>: The Table element - HTML: Hypertext Markup Language
Web › HTML › Element › table
table is displayed on the left side of the document; center: the table is displayed in the center of the document; right: the table is displayed on the right side of the document. Set margin-left and margin-right to auto or margin to 0 auto to achieve an effect that is similar to the align attribute. bgcolor The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property. border This integer attribute defines, in pixels, the size of the frame surrounding the table. If set to 0, the frame attribute is set to void. To achieve a similar effect, use the CSS border shorthand property. cellpadding This attribute define...
<tbody>: The Table Body element - HTML: Hypertext Markup Language
Web › HTML › Element › tbody
f this attribute is not set, the left value is assumed. As this attribute is deprecated, use the CSS text-align property instead. Note: The equivalent text-align property for the align="char" is not implemented in any browsers yet. See the text-align's browser compatibility section for the <string> value. bgcolor The background color of the table. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. As this attribute is deprecated, use the CSS background-color property instead. char This attribute is used to set the character to align the cells in a column on. Typical values for this include a period (.) when attempting to align numbers or monetary values. If align is not set to char, this attribute is ignored. ch...
<td>: The Table Data Cell element - HTML: Hypertext Markup Language
Web › HTML › Element › td
ve the same effect as the char value, give the text-align property the same value you would use for the char. Unimplemented in CSS3. axis This attribute contains a list of space-separated strings. Each string is the id of a group of cells that this header applies to. bgcolor This attribute defines the background color of each cell in a column. It is a 6-digit hexadecimal RGB code, prefixed by a '#'. One of the predefined color kewords can also be used. To achieve a similar effect, use the CSS background-color property. char The content in the cell element is aligned to a character. Typical values include a period (.) to align numbers or monetary values. If align is not set to char, this attribute is ignored. charoff This attribute is used to shift column data to th...
<tfoot>: The Table Foot element - HTML: Hypertext Markup Language
Web › HTML › Element › tfoot
e same effect as the left, center, right or justify values, use the CSS text-align property on it. To achieve the same effect as the char value, in CSS3, you can use the value of the char as the value of the text-align property Unimplemented. bgcolor This attribute defines the background color of each cell of the column. It is one of the 6-digit hexadecimal code as defined in sRGB, prefixed by a '#'. One of the sixteen predefined color strings may be used: black = "#000000" green = "#008000" silver = "#C0C0C0" lime = "#00FF00" gray = "#808080" olive = "#808000" white = "#FFFFFF" yellow = "#FFFF00" maroon = "#800000" navy = "#000080" re...
<th> - HTML: Hypertext Markup Language
Web › HTML › Element › th
ce HTML5 This attribute contains a list of space-separated strings. Each string is the id of a group of cells that this header applies to. Note: Do not use this attribute as it is obsolete in the latest standard: use the scope attribute instead. bgcolor This attribute defines the background color of each cell in a column. It consists of a 6-digit hexadecimal code as defined in sRGB and is prefixed by '#'. This attribute may be used with one of sixteen predefined color strings: black = "#000000" green = "#008000" silver = "#C0C0C0" lime = "#00FF00" gray = "#808080" olive = "#808000" white = "#FFFFFF" yellow = "#FFFF00" maroon = "#800000" navy = "#000080" ...
<thead>: The Table Head element - HTML: Hypertext Markup Language
Web › HTML › Element › thead
e same effect as the left, center, right or justify values, use the CSS text-align property on it. To achieve the same effect as the char value, in CSS3, you can use the value of the char as the value of the text-align property Unimplemented. bgcolor This attribute defines the background color of each cell of the column. It is one of the 6-digit hexadecimal code as defined in sRGB, prefixed by a '#'. One of the sixteen predefined color strings may be used: black = "#000000" green = "#008000" silver = "#C0C0C0" lime = "#00FF00" gray = "#808080" olive = "#808000" white = "#FFFFFF" yellow = "#FFFF00" maroon = "#800000" navy = "#000080" re...
Choosing between www and non-www URLs - HTTP
addup would serve the same content as http://example.org/whaddup, but with an additional <link> element in the head: <link href="http://example.org/whaddup" rel="canonical"> Unlike the previous case, browser history will consider non-www and www URLs as independent entries. Make your page work for both With these techniques, you can configure your server to respond correctly for both, the www-prefixed and the non-www-prefixed domains. It is good advice to do this since you can't predict which URL users will type in their browser's URL bar. It is a matter of choosing which type you want to use as your canonical location, then redirecting the other type to it. Deciding the case This is a very subjective topic it could be considered a bikeshedding issue. If you wish to read deeper, please see...
Data URLs - HTTP
Data URLs, URLs prefixed with the data: scheme, allow content creators to embed small files inline in documents. They were formerly known as "data URIs" until that name was retired by the WHATWG. Note: Data URLs are treated as unique opaque origins by modern browsers, rather than inheriting the origin of the settings object responsible for the navigation. Syntax Data URLs are composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[<mediatype>][;base64],<data> The mediatype is a MIME type string, such as 'image/jpeg' for a JPEG image file. If omitted, defaults to text/plain;charset=US-ASCII If the data is textual, you can simply embed the text (using the appropriate entities or escapes based o...
Evolution of HTTP - HTTP
s of the HTTP protocol appearing in 2016: Support of Alt-Svc allows the dissociation of the identification and the location of a given resource, allowing for a smarter CDN caching mechanism. The introduction of Client-Hints allows the browser, or client, to proactively communicate information about its requirements, or hardware constraints, to the server. The introduction of security-related prefixes in the Cookie header, now helps guarantee a secure cookie has not been altered. This evolution of HTTP proves its extensibility and simplicity, liberating creation of many applications and compelling the adoption of the protocol. The environment in which HTTP is used today is quite different from that seen in the early 1990s. HTTP's original design proved to be a masterpiece, allowing the Web...
HTTP conditional requests - HTTP
validation may be complex, as it involves knowing the importance of the different elements of a page, but is very useful towards optimizing cache performance. Conditional headers Several HTTP headers, called conditional headers, lead to conditional requests. These are: If-Match Succeeds if the ETag of the distant resource is equal to one listed in this header. By default, unless the etag is prefixed with 'W/', it performs a strong validation. If-None-Match Succeeds if the ETag of the distant resource is different to each listed in this header. By default, unless the etag is prefixed with 'W/', it performs a strong validation. If-Modified-Since Succeeds if the Last-Modified date of the distant resource is more recent than the one given in this header. If-Unmodified-Since Succeeds if t...
If-None-Match - HTTP
update problem. Header type Request header Forbidden header name no Syntax If-None-Match: "<etag_value>" If-None-Match: "<etag_value>", "<etag_value>", ... If-None-Match: * Directives <etag_value> Entity tags uniquely representing the requested resources. They are a string of ASCII characters placed between double quotes (Like "675af34563dc-tr34") and may be prefixed by W/ to indicate that the weak comparison algorithm should be used (This is useless with If-None-Match as it only uses that algorithm). * The asterisk is a special value representing any resource. They are only useful when uploading a resource, usually with PUT, to check if another resource with the identity has already been uploaded before. Examples If-None-Match: "bfc13a64729c4290ef5b2c...
If-Range - HTTP
Web › HTTP › Headers › If-Range
last fragment has been received. Header type Request header Forbidden header name no Syntax If-Range: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT If-Range: <etag> Directives <etag> An entity tag uniquely representing the requested resource. It is a string of ASCII characters placed between double quotes (Like "675af34563dc-tr34") and may be prefixed by W/ to indicate that the weak comparison algorithm should be used. <day-name> One of "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", or "Sun" (case-sensitive). <day> 2 digit day number, e.g. "04" or "23". <month> One of "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" (case sensitive). <year> 4 digit year number, e.g. "1990" or "2016". <hour> 2 digit h...
Sec-Fetch-Dest - HTTP
The Sec-Fetch-Dest fetch metadata header indicates the request's destination, that is how the fetched data will be used. ...
Sec-Fetch-Mode - HTTP
The Sec-Fetch-Mode fetch metadata header indicates the request's mode. ...
Sec-Fetch-Site - HTTP
The Sec-Fetch-Site fetch metadata header indicates the relationship between a request initiator's origin and the origin of the resource. Header type Fetch Metadata Request Header Forbidden header name yes, since it has prefix Sec- CORS-safelisted response header CORS-safelisted request header Syntax Sec-Fetch-Site: cross-site Sec-Fetch-Site: same-origin Sec-Fetch-Site: same-site Sec-Fetch-Site: none Values cross-site same-origin same-site none This request does not relate to any context like site, origin, or frame. This can happen when user had initiated this request by, e.g. directly entering a URL in the address bar, opening a bookmark, or draging-and-dropping a file into the browser window. Examples TODO Specific...
Sec-Fetch-User - HTTP
?0 The navigation request was triggered by a user activation. ...
SameSite cookies - HTTP
,QSA,CO=RewriteRule;03;https://www.example.org;30/;SameSite=None;Secure] [...] RewriteRule "^admin/(.*)\.html$" "admin/index.php?nav=$1 [NC,L,QSA,CO=RewriteRule;09;https://www.example.org:30/;SameSite=Strict;Secure] Specifications Specification Title RFC 6265, section 4.1: Set-Cookie HTTP State Management Mechanism draft-ietf-httpbis-rfc6265bis-05 Cookie Prefixes, Same-Site Cookies, and Strict Secure Cookies ...
HTTP headers - HTTP
Web › HTTP › Headers
HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Whitespace before the value is ignored. Custom proprietary headers have historically been used with an X- prefix, but this convention was deprecated in June 2012 because of the inconveniences it caused when nonstandard fields became standard in RFC 6648; others are listed in an IANA registry, whose original content was defined in RFC 4229. IANA also maintains a registry of proposed new HTTP headers. Headers can be grouped according to their contexts: General headers apply to both requests and responses, but with no relation to the data transmitted in the body. Request headers contain more i...
HTTP Messages - HTTP
Web › HTTP › Messages
methods. POST / HTTP/1.1 GET /background.png HTTP/1.0 HEAD /test.html?query=alibaba HTTP/1.1 OPTIONS /anypage.html HTTP/1.0 A complete URL, known as the absolute form, is mostly used with GET when connected to a proxy. GET http://developer.mozilla.org/docs/Web/HTTP/Messages HTTP/1.1 The authority component of a URL, consisting of the domain name and optionally the port (prefixed by a ':'), is called the authority form. It is only used with CONNECT when setting up an HTTP tunnel. CONNECT developer.mozilla.org:80 HTTP/1.1 The asterisk form, a simple asterisk ('*') is used with OPTIONS, representing the server as a whole. OPTIONS * HTTP/1.1 The HTTP version, which defines the structure of the remaining message, acting as an indicator of the expected versi...
HTTP resources and specifications - HTTP
hing Proposed Standard RFC 5861 HTTP Cache-Control Extensions for Stale Content Informational RFC 8246 HTTP Immutable Responses Proposed Standard RFC 7235 Hypertext Transfer Protocol (HTTP/1.1): Authentication Proposed Standard RFC 6265 HTTP State Management Mechanism Defines Cookies Proposed Standard Draft spec Cookie Prefixes IETF Draft Draft spec Same-Site Cookies IETF Draft Draft spec Deprecate modification of 'secure' cookies from non-secure origins IETF Draft RFC 2145 Use and Interpretation of HTTP Version Numbers Informational RFC 6585 Additional HTTP Status Codes Proposed Standard RFC 7538 The Hypertext Transfer Protocol Status Code 308...
414 URI Too Long - HTTP
Web › HTTP › Status › 414
The HTTP 414 URI Too Long response status code indicates that the URI requested by the client is longer than the server is willing to interpret. There are a few rare conditions when this might occur: when a client has improperly converted a POST request to a GET request with long query information, when the client has descended into a loop of redirection (for example, a redirected URI prefix that points to a suffix of itself), or when the server is under attack by a client attempting to exploit potential security holes. Status 414 URI Too Long Specifications Specification Title RFC 7231, section 6.5.12: 414 URI Too Long Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content ...
HTTP
Web › HTTP
HTTP session. Connection management in HTTP/1.x Describes the three connection management models available in HTTP/1.x, their strengths, and their weaknesses. Reference Browse through detailed HTTP reference documentation. HTTP Headers HTTP message headers are used to describe a resource, or the behavior of the server or the client. Custom proprietary headers can be added using the X- prefix; others in an IANA registry, whose original content was defined in RFC 4229. IANA also maintains a registry of proposed new HTTP message headers. HTTP Request Methods The different operations that can be done with HTTP: GET, POST, and also less common requests like OPTIONS, DELETE, or TRACE. HTTP Status Response Codes HTTP response codes indicate whether a specific HTTP request has been succe...
A re-introduction to JavaScript (JS tutorial) - JavaScript
eate block-scoped variables. Operators JavaScript's numeric operators are +, -, *, / and % which is the remainder operator (which is the same as modulo.) Values are assigned using =, and there are also compound assignment statements such as += and -=. These extend out to x = x operator y. x += 5; x = x + 5; You can use ++ and -- to increment and decrement respectively. These can be used as a prefix or postfix operators. The + operator also does string concatenation: 'hello' + ' world'; // "hello world" If you add a string to a number (or other value) everything is converted into a string first. This might trip you up: '3' + 4 + 5; // "345" 3 + 4 + '5'; // "75" Adding an empty string to something is a useful way of converting it to a string itself. Comparisons in JavaScript can be ...
Expressions and operators - JavaScript
he standard arithmetic operations (+, -, *, /), JavaScript provides the arithmetic operators listed in the following table: Arithmetic operators Operator Description Example Remainder (%) Binary operator. Returns the integer remainder of dividing the two operands. 12 % 5 returns 2. Increment (++) Unary operator. Adds one to its operand. If used as a prefix operator (++x), returns the value of its operand after adding one; if used as a postfix operator (x++), returns the value of its operand before adding one. If x is 3, then ++x sets x to 4 and returns 4, whereas x++ returns 3 and, only then, sets x to 4. Decrement (--) Unary operator. Subtracts one from its operand. The return value is analogous to that for the increment operator. ...
Grammar and types - JavaScript
s, or constructing higher-level data structures from string contents. // Basic literal string creation `In JavaScript '\n' is a line-feed.` // Multiline strings `In JavaScript, template strings can run over multiple lines, but double and single quoted strings cannot.` // String interpolation var name = 'Bob', time = 'today'; `Hello ${name}, how are you ${time}?` // Construct an HTTP request prefix used to interpret the replacements and construction POST`http://foo.org/bar?a=${a}&b=${b} Content-Type: application/json X-Credentials: ${credentials} { "foo": ${foo}, "bar": ${bar}}`(myOnReadyStateChangeHandler); You should use string literals unless you specifically need to use a String object. See String for details on String objects. Using special characters in strings...
Numbers and dates - JavaScript
NTISSA = 0B00000000011111111111111111111111; // 8388607 Octal numbers Octal number syntax uses a leading zero. If the digits after the 0 are outside the range 0 through 7, the number will be interpreted as a decimal number. var n = 0755; // 493 var m = 0644; // 420 Strict mode in ECMAScript 5 forbids octal syntax. Octal syntax isn't part of ECMAScript 5, but it's supported in all browsers by prefixing the octal number with a zero: 0644 === 420 and "\045" === "%". In ECMAScript 2015, octal numbers are supported if they are prefixed with 0o, e.g.: var a = 0o10; // ES2015: 8 Hexadecimal numbers Hexadecimal number syntax uses a leading zero followed by a lowercase or uppercase Latin letter "X" (0x or 0X). If the digits after 0x are outside the range (0123456789ABCDEF), the following Synta...
Working with objects - JavaScript
f a specific property. You can define getters and setters on any predefined core object or user-defined object that supports the addition of new properties. Getters and setters can be either defined using object initializers, or added later to any object at any time using a getter or setter adding method. When defining getters and setters using object initializers all you need to do is to prefix a getter method with get and a setter method with set. Of course, the getter method must not expect a parameter, while the setter method expects exactly one parameter (the new value to set). For instance: var o = { a: 7, get b() { return this.a + 1; }, set c(x) { this.a = x / 2; } }; console.log(o.a); // 7 console.log(o.b); // 8 <-- At this point the get b() method is initiate...
Inheritance and the prototype chain - JavaScript
rty: f hasOwnProperty(), isPrototypeOf: f isPrototypeOf(), propertyIsEnumerable: f propertyIsEnumerable(), toLocaleString: f toLocaleString(), toString: f toString(), valueOf: f valueOf() } } We can now use the new operator to create an instance of doSomething() based on this prototype. To use the new operator, simply call the function normally except prefix it with new. Calling a function with the new operator returns an object that is an instance of the function. Properties can then be added onto this object. Try the following code: function doSomething(){} doSomething.prototype.foo = "bar"; // add a property onto the prototype var doSomeInstancing = new doSomething(); doSomeInstancing.prop = "some value"; // add a property onto the object consol...
Public class fields - JavaScript
log(instance.instanceField) // expected output: "instance field" Fields without initializers are initialized to undefined. class ClassWithInstanceField { instanceField } const instance = new ClassWithInstanceField() console.assert(instance.hasOwnProperty('instanceField')) console.log(instance.instanceField) // expected output: "undefined" Like properties, field names may be computed. const PREFIX = 'prefix' class ClassWithComputedFieldName { [`${PREFIX}Field`] = 'prefixed field' } const instance = new ClassWithComputedFieldName() console.log(instance.prefixField) // expected output: "prefixed field" When initializing fields this refers to the class instance under construction. Just as in public instance methods, if you're in a subclass you can access the superclass prototype using ...
Warning: 08/09 is not a legal ECMA-262 octal constant - JavaScript
ls and octal escape sequences are deprecated and will present an additional deprecation warning. ...
JavaScript error reference - JavaScript
are deprecatedSyntaxError: "use strict" not allowed in function with non-simple parametersSyntaxError: "x" is a reserved identifierSyntaxError: JSON.parse: bad parsingSyntaxError: Malformed formal parameterSyntaxError: Unexpected tokenSyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# insteadSyntaxError: a declaration in the head of ...
Rest parameters - JavaScript
ax allows us to represent an indefinite number of arguments as an array. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax function f(a, b, ...theArgs) { // ... } Description A function's last parameter can be prefixed with ... which will cause all remaining (user supplied) arguments to be placed within a "standard" JavaScript array. Only the last parameter can be a "rest parameter". function myFun(a, b, ...manyMoreArgs) { console.log("a", a) console.log("b", b) console.log("manyMoreArgs", manyMoreArgs) } myFun("one", "two", "three", "four", "five", "six") // Console Output: // a, one // b, two // m...
String.raw() - JavaScript
(But it is not identical; see explanations in this issue.) It's used to get the raw string form of template strings, that is, substitutions (e.g. ${foo}) are processed, but escapes (e.g. \n) are not. Syntax String.raw(callSite, ...substitutions) String.raw`templateString` Parameters callSite Well-formed template call site object, like { raw: ['foo', 'bar', 'baz'] }. ...substitutions Contains substitution values. templateString A template string, optionally with substitutions (${...}). ...
Symbol.for() - JavaScript
...
eval() - JavaScript
onsole.log('x is ', eval(str)); // z is 42 x is 420 Last expression is evaluated eval() returns the value of the last expression evaluated. var str = 'if ( a ) { 1 + 1; } else { 1 + 2; }'; var a = true; var b = eval(str); // returns 2 console.log('b is : ' + b); a = false; b = eval(str); // returns 3 console.log('b is : ' + b); eval as a string defining function requires "(" and ")" as prefix and suffix var fctStr1 = 'function a() {}' var fctStr2 = '(function a() {})' var fct1 = eval(fctStr1) // return undefined var fct2 = eval(fctStr2) // return a function Specifications Specification ECMAScript (ECMA-262)The definition of 'eval' in that specification. ...
Decrement (--) - JavaScript
interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax Operator: x-- or --x Description If used postfix, with operator after operand (for example, x--), the decrement operator decrements and returns the value before decrementing. If used prefix, with operator before operand (for example, --x), the decrement operator decrements and returns the value after decrementing. Examples Postfix decrement let x = 3; y = x--; // y = 3 // x = 2 Prefix decrement let a = 2; b = --a; // a = 1 // b = 1 Specifications Specification ECMAScript (ECMA-262)The definition of 'Decrement operator' in that specification. ...
Increment (++) - JavaScript
interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax Operator: x++ or ++x Description If used postfix, with operator after operand (for example, x++), the increment operator increments and returns the value before incrementing. If used prefix, with operator before operand (for example, ++x), the increment operator increments and returns the value after incrementing. Examples Postfix increment let x = 3; y = x++; // y = 3 // x = 4 Prefix increment let a = 2; b = ++a; // a = 3 // b = 3 Specifications Specification ECMAScript (ECMA-262)The definition of 'Increment operator' in that specification. ...
Operator precedence - JavaScript
Call left-to-right ... ( ... ) Optional chaining left-to-right ?. 19 new (without argument list) right-to-left new ... 18 Postfix Increment n/a ... ++ Postfix Decrement ... -- 17 Logical NOT right-to-left ! ... Bitwise NOT ~ ... Unary Plus + ... Unary Negation - ... Prefix Increment ++ ... Prefix Decrement -- ... typeof typeof ... void void ... delete delete ... await await ... 16 Exponentiation right-to-left ... ** ... 15 Multiplication left-to-right ... * ... Division ... / ... Remainder ... % ... 14 Addition left-to-right .
Unary plus (+) - JavaScript
ax Operator: +x Description Although unary negation (-) also can convert non-numbers, unary plus is the fastest and preferred way of converting something into a number, because it does not perform any other operations on the number. It can convert string representations of integers and floats, as well as the non-string values true, false, and null. Integers in both decimal and hexadecimal (0x-prefixed) formats are supported. Negative numbers are supported (though not for hex). Using the operator on BigInt values throws a TypeError. If it cannot parse a particular value, it will evaluate to NaN. Examples Usage with numbers const x = 1; const y = -1; console.log(+x); // 1 console.log(+y); // -1 Usage with non-numbers +true // 1 +false // 0 +null // 0 +function(val){ return val } // NaN...
Expressions and operators - JavaScript
perator creates an instance of a constructor. new.target In constructors, new.target refers to the constructor that was invoked by new. super The super keyword calls the parent constructor. ...obj Spread syntax allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) are expected. Increment and decrement Postfix/prefix increment and postfix/prefix decrement operators. A++ Postfix increment operator. A-- Postfix decrement operator. ++A Prefix increment operator. --A Prefix decrement operator. Unary operators A unary operation is operation with only one operand. delete The delete operator deletes a property from an object. void The void operator discards an expression's return value. typeof T...
label - JavaScript
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Note: Labeled loops or blocks are very uncommon. Usually function calls can be used instead of loop jumps. Syntax label : statement label Any JavaScript identifier that is not a reserved word. statement A JavaScript statement. break can be used with any labeled statement, and continue can be used with looping labeled statements. ...
<mstyle> - MathML
Web › MathML › Element › mstyle
oes not apply to <mtable> or <mstack>. index cannot be set on <mstyle>. src and alt on <mglyph> cannot be set on <mstyle>. actiontype on <maction> cannot be set on <mstyle>. Examples Using displaystyle and mathcolor to effect style changes in the layout of the whole sum. ...
Web video codec guide - Web media technologies
eo file. The key frames are full frames, which are used to repair any damage or artifact residue that's currently visible. Aliasing Aliasing is a general term for anything that upon being reconstructed from the encoded data does not look the same as it did before compression. There are many forms of aliasing; the most common ones you may see include: Moire patterns A Unknown prefix: Moire pattern. is a large-scale spatial interference pattern produced when a pattern in the source image and the manner in which the encoder operates are slightly out of alignment spatially. The artifacts generated by the encoder then introduce strange, swirling effects in the source image's pattern upon decoding. Staircase effect The staircase effect is a spatial arti...
OpenSearch description format
earch query as key/value pairs. When specifying values, you can use {searchTerms} to insert the search terms entered by the user in the search bar. moz:SearchForm The URL for the site's search page for which the plugin. This lets Firefox users visit the web site directly. Note: Since this element is Firefox-specific, and not part of the OpenSearch specification, we use the moz: XML namespace prefix in the example above to ensure that other user agents that don't support this element can safely ignore it. Autodiscovery of search plugins Web sites with search plugins can advertise them so Firefox users can easily install the plugins. To support autodiscovery, add a <link> element for each plugin to the <head> of your web page: <link rel="search" type="application/opensearchdescri...
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
You can achieve the same effect using SVG filters. <p class="blur">Time to clean my glasses</p> <svg height="0"> <defs> <filter id="wherearemyglasses" x="0" y="0"> <feGaussianBlur in="SourceGraphic" stdDeviation="1"/> </filter> </defs> </svg> You can apply the SVG and the CSS filter in the same class: .blur { filter: url(#wherea...
lang - SVG: Scalable Vector Graphics
Web › SVG › Attribute › lang
espace is used and the one without is ignored. In SVG 1.1 there was a lang attribute defined with a different meaning and only applying to <glyph> elements. That attribute specified a list of languages in BCP 47 format. The glyph was meant to be used if the xml:lang attribute exactly matched one of the languages given in the value of this parameter, or if the xml:lang attribute exactly equaled a prefix of one of the languages given in the value of this parameter such that the first tag character following the prefix was "-". All elements are using this attribute. <svg viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <text lang="en-US">This is some English text</text> </svg> Usage notes Value <language-tag> Default value None Animatable No ...
name - XPath
Web › XPath › Functions › name
turns a string representing the QName of the first node in a given node-set. Syntax name( [node-set] ) Arguments node-set (optional) The QName of the first node in this node-set will be returned. If this argument is omitted, the current context node will be used. Returns A string representing the QName of a node. Notes The QName is the node's qualified name, including its namespace prefix and its local name. Defined XPath 1.0 4.1 Gecko support Supported. ...
XPath snippets - XPath
Otherwise, you have to provide your own implementation of XPathNSResolver. If you are using XMLHttpRequest to read a local or remote XML file into a DOM tree (as described in Parsing and serializing XML), the first argument...
<xsl:attribute> - XSLT: Extensible Stylesheet Language Transformations
<xsl:choose> or <xsl:apply-templates> etc.). Syntax <xsl:attribute name=NAME namespace=URI> TEMPLATE </xsl:attribute> Required Attributes name Specifies the name of the attribute to be created in the output document. The name must be a valid QName. Optional Attributes namespace Defines the namespace URI for this attribute in the output document. You cannot set the related namespace prefix with this element. Type Instruction, appears within a template or an <xsl:attribute-set> element. Defined XSLT, section 7.1.3. Gecko support Supported. ...
Index - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Index
f the stylesheet. It can be useful for debugging. 38 <xsl:namespace-alias> Element, Reference, XSLT, namespace-alias The <xsl:namespace-alias> element is a rarely used device that maps a namespace in the stylesheet to a different namespace in the output tree. The most common use for this element is in generating a stylesheet from another stylesheet. To prevent a normally xsl:-prefixed literal result element (which should simply be copied as-is to the result tree) from being misunderstood by the processor, it is assigned a temporary namespace which is appropriately re-converted back to the XSLT namespace in the output tree. 39 <xsl:number> Element, Number, Reference, XSLT The <xsl:number> element counts things sequentially. It can also be used to quickly ...
An Overview - XSLT: Extensible Stylesheet Language Transformations
sm for assigning a shorthand name to the namespace in the stylesheet heading. Thus a full example of the opening stylesheet element might look like this. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> The xmlns pseudo-attribute maps the shorthand name xsl onto the full namespace for use throughout the document that follows. Thus the stylesheet element above is prefixed with xsl:. Although xsl is the conventionally used shorthand name (called the prefix), it is not mandatory and it is quite possible to choose a different one. The examples in this article all assume the use of the xsl prefix. All XSLT transformations are performed on trees, not documents. The XSLT transformation engine, called the processor, does not work directly on documents. Before trans...
Understanding WebAssembly text format - WebAssembly
al f64) local.get 0 local.get 1 local.get 2) The instruction local.get 0 would get the i32 parameter, local.get 1 would get the f32 parameter, and local.get 2 would get the f64 local. There is another issue here -- using numeric indices to refer to items can be confusing and annoying, so the text format allows you to name parameters, locals, and most other items simply by including a name prefixed by a dollar symbol ($) just before the type declaration. Thus you could rewrite our previous signature like so: (func (param $p1 i32) (param $p2 f32) (local $loc f64) ...) And then could write local.get $p1 instead of local.get 0, etc. (Note that when this text gets converted to binary, though, the binary will contain only the integer.) Stack machines Before we can write a function body, ...