Search completed in 0.97 seconds.
1990 results for "url":
Your results are loading. Please wait...
URL.createObjectURL() - Web APIs
the url.createobjecturl() static method creates a domstring containing a url representing the object given in the parameter.
... the url.createobjecturl() static method creates a domstring containing a url representing the object given in the parameter.
... the url.createobjecturl() static method creates a domstring containing a url representing the object given in the parameter.
...And 19 more matches
URL.revokeObjectURL() - Web APIs
the url.revokeobjecturl() static method releases an existing object url which was previously created by calling url.createobjecturl().
... the url.revokeobjecturl() static method releases an existing object url which was previously created by calling url.createobjecturl().
...ct url which was previously created by calling url.createobjecturl().
...And 7 more matches
browser.urlbar.trimURLs
the preference browser.urlbar.trimurls controls whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) are hidden.
...wser.urlbar.trimurls controls whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) are hidden.
...vel domain will be hidden.
URLs - Plugins
« previousnext » this chapter describes retrieving urls and displaying them on specified target pages, posting data to an http server, uploading files to an ftp server, and sending mail.
... « previousnext » this chapter describes retrieving urls and displaying them on specified target pages, posting data to an http server, uploading files to an ftp server, and sending mail.
... « previousnext » this chapter describes retrieving urls and displaying them on specified target pages, posting data to an http server, uploading files to an ftp server, and sending mail.
...And 117 more matches
<input type="url"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › url
<input> elements of type url are used to let the user enter and edit a url.
...ut> elements of type url are used to let the user enter and edit a url.
...tive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
...And 97 more matches
url - Archive of obsolete content
experimental construct, validate, and parse urls.
... experimental construct, validate, and parse urls.
... experimental construct, validate, and parse urls.
...And 82 more matches
URL - Web APIs
Web › API › URL
the url interface is used to parse, construct, normalize, and encode urls.
... the url interface is used to parse, construct, normalize, and encode urls.
... the url interface is used to parse, construct, normalize, and encode urls.
...And 64 more matches
What is a URL? - Learn web development
this article discusses uniform resource locators (urls), explaining what they are and how they're structured.
... this article discusses uniform resource locators (urls), explaining what they are and how they're structured.
... this article discusses uniform resource locators (urls), explaining what they are and how they're structured.
...And 60 more matches
url() - CSS: Cascading Style Sheets
Web › CSS › url()
the url() css function is used to include a file.
... the url() css function is used to include a file.
... the url() css function is used to include a file.
...And 42 more matches
URL API - Web APIs
Web › API › URL API
the url api is a component of the url standard, which defines what constitutes a valid uniform resource locator and the api that accesses and manipulates urls.
... the url api is a component of the url standard, which defines what constitutes a valid uniform resource locator and the api that accesses and manipulates urls.
... the url api is a component of the url standard, which defines what constitutes a valid uniform resource locator and the api that accesses and manipulates urls.
...And 39 more matches
URIs and URLs - Archive of obsolete content
corresponds---changes over time, provided that the conceptual mapping is not changed in the process.
...or" (url) refers to the subset of uri that identify resources via a representation of their primary access mechanism (e.g., their network "location"), rather than identifying the resource by name or by some other attribute(s) of that resource.
... primary access mechanism (e.g., their network "location"), rather than identifying the resource by name or by some other attribute(s) of that resource.
...And 38 more matches
URL() - Web APIs
Web › API › URL › URL
the url() constructor returns a newly created url object representing the url defined by the parameters.
... the url() constructor returns a newly created url object representing the url defined by the parameters.
... the url() constructor returns a newly created url object representing the url defined by the parameters.
...And 28 more matches
<url> - CSS: Cascading Style Sheets
Web › CSS › url
the <url> css data type denotes a pointer to a resource, such as an image or a font.
... the <url> css data type denotes a pointer to a resource, such as an image or a font.
... the <url> css data type denotes a pointer to a resource, such as an image or a font.
...And 25 more matches
NPN_GetURL - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary asks the browser to create a stream for the specified url.
... « gecko plugin api reference « plug-in side plug-in api summary asks the browser to create a stream for the specified url.
... « gecko plugin api reference « plug-in side plug-in api summary asks the browser to create a stream for the specified url.
...And 24 more matches
URLUtilsReadOnly - Web APIs
the obsolete urlutilsreadonly interface previously defined utility methods for working with urls.
... the obsolete urlutilsreadonly interface previously defined utility methods for working with urls.
... the obsolete urlutilsreadonly interface previously defined utility methods for working with urls.
...And 22 more matches
The Chrome URL - Archive of obsolete content
« previousnext » the following section will describe how to refer to xul documents and other chrome files.
... « previousnext » the following section will describe how to refer to xul documents and other chrome files.
... « previousnext » the following section will describe how to refer to xul documents and other chrome files.
...And 21 more matches
NPN_GetURLNotify - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary requests creation of a new stream with the contents of the specified url; gets notification of the result.
... « gecko plugin api reference « browser side plug-in api summary requests creation of a new stream with the contents of the specified url; gets notification of the result.
... « gecko plugin api reference « browser side plug-in api summary requests creation of a new stream with the contents of the specified url; gets notification of the result.
...And 20 more matches
NPN_PostURL - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary posts data to a url.
... « gecko plugin api reference « plug-in side plug-in api summary posts data to a url.
... « gecko plugin api reference « plug-in side plug-in api summary posts data to a url.
...And 20 more matches
URLSearchParams - Web APIs
the urlsearchparams interface defines utility methods to work with the query string of a url.
... the urlsearchparams interface defines utility methods to work with the query string of a url.
...the urlsearchparams interface defines utility methods to work with the query string of a url.
...And 20 more matches
Data URLs - HTTP
data urls, urls prefixed with the data: scheme, allow content creators to embed small files inline in documents.
... data urls, urls prefixed with the data: scheme, allow content creators to embed small files inline in documents.
... data urls, urls prefixed with the data: scheme, allow content creators to embed small files inline in documents.
...And 18 more matches
NPP_URLNotify - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary notifies the plug-in instance of the completion of a url request.
... « gecko plugin api reference « plug-in side plug-in api summary notifies the plug-in instance of the completion of a url request.
... « gecko plugin api reference « plug-in side plug-in api summary notifies the plug-in instance of the completion of a url request.
...And 17 more matches
nsIStandardURL
netwerk/base/public/nsistandardurl.idlscriptable this interface defines the interface to an url with the standard file path format common to protocols like http, ftp, and file.
... netwerk/base/public/nsistandardurl.idlscriptable this interface defines the interface to an url with the standard file path format common to protocols like http, ftp, and file.
...etwerk/base/public/nsistandardurl.idlscriptable this interface defines the interface to an url with the standard file path format common to protocols like http, ftp, and file.
...And 17 more matches
NPN_PostURLNotify - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary posts data to a url, and receives notification of the result.
... « gecko plugin api reference « plug-in side plug-in api summary posts data to a url, and receives notification of the result.
... « gecko plugin api reference « plug-in side plug-in api summary posts data to a url, and receives notification of the result.
...And 16 more matches
URLSearchParams.set() - Web APIs
the set() method of the urlsearchparams interface sets the value associated with a given search parameter to the given value.
... the set() method of the urlsearchparams interface sets the value associated with a given search parameter to the given value.
...e.
...And 16 more matches
RTCIceServers.urls - Web APIs
Web › API › RTCIceServer › urls
the rtciceserver dictionary's urls property specifies the url or urls of the servers to be used for ice negotiations.
... the rtciceserver dictionary's urls property specifies the url or urls of the servers to be used for ice negotiations.
... the rtciceserver dictionary's urls property specifies the url or urls of the servers to be used for ice negotiations.
...And 15 more matches
Modifying Web Pages Based on URL - Archive of obsolete content
to follow this tutorial you'll need to have learned the basics of jpm.
...hat match a particular pattern (for example, "http://example.org/") as they are loaded, use page-mod module.
...t scripts to run whose job is to interact with web content.
...And 13 more matches
nsIURLFormatter
toolkit/components/urlformatter/public/nsiurlformatter.idlscriptable this interface exposes methods to substitute variables in url formats.
...lic/nsiurlformatter.idlscriptable this interface exposes methods to substitute variables in url formats.
...0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) variable names can contain 'a-z' letters and '_' characters.
...And 13 more matches
URL.host - Web APIs
Web › API › URL › host
the host property of the url interface is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', followed by the port of the url.
... the host property of the url interface is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', followed by the port of the url.
... the host property of the url interface is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', followed by the port of the url.
...And 13 more matches
URLSearchParams() - Web APIs
the urlsearchparams() constructor creates and returns a new urlsearchparams object.
... the urlsearchparams() constructor creates and returns a new urlsearchparams object.
... the urlsearchparams() constructor creates and returns a new urlsearchparams object.
...And 13 more matches
Response.url - Web APIs
Web › API › Response › url
the url read-only property of the response interface contains the url of the response.
... the url read-only property of the response interface contains the url of the response.
... the url read-only property of the response interface contains the url of the response.
...And 12 more matches
Event.msConvertURL() - Web APIs
non-standard this feature is non-standard and is not on a standards track.
...change in the future.
... the msconverturl method instructs the html paste operation on how to modify the src attribute that corresponds to each file in the clipboarddata.files collection, allowing otherwise inaccessible files to be converted to blob or data uris.
...And 11 more matches
NPN_GetValueForURL - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary provides information to a plugin which is associated with a given url, for example the cookies or preferred proxy.
... « gecko plugin api reference « browser side plug-in api summary provides information to a plugin which is associated with a given url, for example the cookies or preferred proxy.
... « gecko plugin api reference « browser side plug-in api summary provides information to a plugin which is associated with a given url, for example the cookies or preferred proxy.
...And 10 more matches
NPN_SetValueForURL - Archive of obsolete content
« gecko plugin api reference « browser side plug-in api summary allows a plugin to change the stored information associated with a url, in particular its cookies.
... « gecko plugin api reference « browser side plug-in api summary allows a plugin to change the stored information associated with a url, in particular its cookies.
... « gecko plugin api reference « browser side plug-in api summary allows a plugin to change the stored information associated with a url, in particular its cookies.
...And 10 more matches
nsIURL
netwerk/base/public/nsiurl.idlscriptable this interface provides convenience methods that further break down the path portion of nsiuri.
...ebasename.fileextension#ref http://host/directory/filebasename.fileextension;param \ \ / \ ----------------------- \ | / \ filename / ---------------------------- | filepath you can get a nsiurl from an nsiuri, using the queryinterface() method: var myuri = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice) .newuri("http://developer.mozilla.org", null, null); try { var myurl = myuri.queryinterface(components.interfaces.nsiurl); } catch(e) { // the uri is not an url } or using instanceof:...
...hod: var myuri = components.classes["@mozilla.org/network/io-service;1"] .getservice(components.interfaces.nsiioservice) .newuri("http://developer.mozilla.org", null, null); try { var myurl = myuri.queryinterface(components.interfaces.nsiurl); } catch(e) { // the uri is not an url } or using instanceof: if (myuri instanceof components.interfaces.nsiurl) { // your code here } method overview autf8string getcommonbasespec(in nsiuri auritocompare); autf8string getrelativespec(in nsiuri auritocompare); attributes attribute type description directory autf8string directory portion of a url.
...And 10 more matches
Choosing between www and non-www URLs - HTTP
a recurring question among website owners is whether to choose non-www or www urls.
... a recurring question among website owners is whether to choose non-www or www urls.
...o, do i have to choose one or the other for my web site?
...And 10 more matches
openLocationLastURL.jsm
this component has been removed from the platform in firefox 29.
... this component has been removed from the platform in firefox 29.
... this component has been removed from the platform in firefox 29.
...And 9 more matches
FileSystemEntry.toURL() - Web APIs
the filesystementry interface's method tourl() creates and returns a string containing a url which can be used to identify the file system entry.
... the filesystementry interface's method tourl() creates and returns a string containing a url which can be used to identify the file system entry.
... the filesystementry interface's method tourl() creates and returns a string containing a url which can be used to identify the file system entry.
...And 9 more matches
RTCIceServer.url - Web APIs
Web › API › RTCIceServer › url
the obsolete rtciceserver dictionary's url property specifies the url of a single ice server to be used while negotiating connections.
...ngle ice server to be used while negotiating connections.
...s removed from the specification in june 2013 but is still broadly used in older examples and books, so we include documentation here to help adapt old code to new browsers.
...And 9 more matches
URL.href - Web APIs
Web › API › URL › href
the href property of the url interface is a usvstring containing the whole url.
... the href property of the url interface is a usvstring containing the whole url.
... the href property of the url interface is a usvstring containing the whole url.
...And 9 more matches
URL.origin - Web APIs
Web › API › URL › origin
the origin read-only property of the url interface returns a usvstring containing the unicode serialization of the origin of the represented url.
... the origin read-only property of the url interface returns a usvstring containing the unicode serialization of the origin of the represented url.
... the origin read-only property of the url interface returns a usvstring containing the unicode serialization of the origin of the represented url.
...And 9 more matches
URLSearchParams.toString() - Web APIs
the tostring() method of the urlsearchparams interface returns a query string suitable for use in a url.
... the tostring() method of the urlsearchparams interface returns a query string suitable for use in a url.
...ble for use in a url.
...And 8 more matches
nsIExternalURLHandlerService
uriloader/exthandler/nsiexternalurlhandlerservice.idlscriptable the external url handler service is used for finding platform-specific applications for handling particular urls.
... uriloader/exthandler/nsiexternalurlhandlerservice.idlscriptable the external url handler service is used for finding platform-specific applications for handling particular urls.
... uriloader/exthandler/nsiexternalurlhandlerservice.idlscriptable the external url handler service is used for finding platform-specific applications for handling particular urls.
...And 7 more matches
Document.URL - Web APIs
Web › API › Document › URL
the url read-only property of the document interface returns the document location as a string.
... the url read-only property of the document interface returns the document location as a string.
... the url read-only property of the document interface returns the document location as a string.
...And 7 more matches
HTMLCanvasElement.toDataURL() - Web APIs
the htmlcanvaselement.todataurl() method returns a data uri containing a representation of the image in the format specified by the type parameter (defaults to png).
...ype parameter (defaults to png).
...ments are ignored.
...And 7 more matches
URL.hash - Web APIs
Web › API › URL › hash
the hash property of the url interface is a usvstring containing a '#' followed by the fragment identifier of the url.
... the hash property of the url interface is a usvstring containing a '#' followed by the fragment identifier of the url.
... the hash property of the url interface is a usvstring containing a '#' followed by the fragment identifier of the url.
...And 7 more matches
URL.pathname - Web APIs
Web › API › URL › pathname
the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
...And 7 more matches
URL.pathname - Web APIs
the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
... the pathname property of the url interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
...And 7 more matches
start_url - Web app manifests
type string mandatory no the start_url member is a string that represents the start url of the web application — the prefered url that should be loaded when the user launches the web application (e.g., when the user taps on the web application's icon from a device's application menu or homescreen).
... type string mandatory no the start_url member is a string that represents the start url of the web application — the prefered url that should be loaded when the user launches the web application (e.g., when the user taps on the web application's icon from a device's application menu or homescreen).
...epresents the start url of the web application — the prefered url that should be loaded when the user launches the web application (e.g., when the user taps on the web application's icon from a device's application menu or homescreen).
...And 7 more matches
URL - MDN Web Docs Glossary: Definitions of Web-related terms
uniform resource locator (url) is a text string that specifies where a resource (such as a web page, image, or video) can be found on the internet.
... uniform resource locator (url) is a text string that specifies where a resource (such as a web page, image, or video) can be found on the internet.
... uniform resource locator (url) is a text string that specifies where a resource (such as a web page, image, or video) can be found on the internet.
...And 6 more matches
Response.useFinalURL - Web APIs
the usefinalurl property of the response interface contains a boolean stating whether this is the final url of the response.
... the usefinalurl property of the response interface contains a boolean stating whether this is the final url of the response.
... the usefinalurl property of the response interface contains a boolean stating whether this is the final url of the response.
...And 6 more matches
URL.hostname - Web APIs
Web › API › URL › hostname
the hostname property of the url interface is a usvstring containing the domain name of the url.
... the hostname property of the url interface is a usvstring containing the domain name of the url.
... the hostname property of the url interface is a usvstring containing the domain name of the url.
...And 6 more matches
URL.password - Web APIs
Web › API › URL › password
the password property of the url interface is a usvstring containing the password specified before the domain name.
... the password property of the url interface is a usvstring containing the password specified before the domain name.
... the password property of the url interface is a usvstring containing the password specified before the domain name.
...And 6 more matches
URL.port - Web APIs
Web › API › URL › port
the port property of the url interface is a usvstring containing the port number of the url.
... the port property of the url interface is a usvstring containing the port number of the url.
... the port property of the url interface is a usvstring containing the port number of the url.
...And 6 more matches
URL.search - Web APIs
Web › API › URL › search
the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the parameters of the url.
... the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the parameters of the url.
... the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the parameters of the url.
...And 6 more matches
URL.search - Web APIs
Web › API › URL › search?q=123
the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the parameters of the url.
... the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the parameters of the url.
... the search property of the url interface is a search string, also called a query string, that is a usvstring containing a '?' followed by the parameters of the url.
...And 6 more matches
URL.toString() - Web APIs
Web › API › URL › toString
the url.tostring() stringifier method returns a usvstring containing the whole url.
... the url.tostring() stringifier method returns a usvstring containing the whole url.
... the url.tostring() stringifier method returns a usvstring containing the whole url.
...And 6 more matches
Request.url - Web APIs
Web › API › Request › url
the url read-only property of the request interface contains the url of the request.
... the url read-only property of the request interface contains the url of the request.
... the url read-only property of the request interface contains the url of the request.
...And 5 more matches
URL.protocol - Web APIs
Web › API › URL › protocol
the protocol property of the url interface is a usvstring representing the protocol scheme of the url, including the final ':'.
... the protocol property of the url interface is a usvstring representing the protocol scheme of the url, including the final ':'.
... the protocol property of the url interface is a usvstring representing the protocol scheme of the url, including the final ':'.
...And 5 more matches
URL.toJSON() - Web APIs
Web › API › URL › toJSON
the tojson() method of the url interface returns a usvstring containing a serialized version of the url, although in practice it seems to have the same effect as url.tostring().
... the tojson() method of the url interface returns a usvstring containing a serialized version of the url, although in practice it seems to have the same effect as url.tostring().
... the tojson() method of the url interface returns a usvstring containing a serialized version of the url, although in practice it seems to have the same effect as url.tostring().
...And 5 more matches
URL.username - Web APIs
Web › API › URL › username
the username property of the url interface is a usvstring containing the username specified before the domain name.
... the username property of the url interface is a usvstring containing the username specified before the domain name.
... the username property of the url interface is a usvstring containing the username specified before the domain name.
...And 5 more matches
Using URL values for the cursor property - CSS: Cascading Style Sheets
gecko 1.8 supports url values for the css cursor property on windows and linux.
... gecko 1.8 supports url values for the css cursor property on windows and linux.
... gecko 1.8 supports url values for the css cursor property on windows and linux.
...And 5 more matches
<base>: The Document Base URL element - HTML: Hypertext Markup Language
Web › HTML › Element › base
the html <base> element specifies the base url to use for all relative urls in a document.
... the html <base> element specifies the base url to use for all relative urls in a document.
... <head> that doesn't contain another <base> element.
...And 5 more matches
Resource URLs - HTTP
non-standard this feature is non-standard and is not on a standards track.
... non-standard this feature is non-standard and is not on a standards track.
...ng the web: it will not work for every user.
...And 5 more matches
FileReader.readAsDataURL() - Web APIs
the readasdataurl method is used to read the contents of the specified blob or file.
... the readasdataurl method is used to read the contents of the specified blob or file.
...he readasdataurl method is used to read the contents of the specified blob or file.
...And 4 more matches
FileReaderSync.readAsDataURL() - Web APIs
the readasdataurl() method of the filereadersync interface allows to read file or blob objects in a synchronous way into an domstring representing a data url.
... the readasdataurl() method of the filereadersync interface allows to read file or blob objects in a synchronous way into an domstring representing a data url.
... the readasdataurl() method of the filereadersync interface allows to read file or blob objects in a synchronous way into an domstring representing a data url.
...And 4 more matches
RTCIceCandidateStats.url - Web APIs
the rtcicecandidatestats dictionary's url property specifies the url of the ice server from which the described candidate was obtained.
... the rtcicecandidatestats dictionary's url property specifies the url of the ice server from which the described candidate was obtained.
... the rtcicecandidatestats dictionary's url property specifies the url of the ice server from which the described candidate was obtained.
...And 4 more matches
RTCIdentityErrorEvent.loginUrl - Web APIs
the read-only property rtcidentityerrorevent.loginurl is a domstring giving the url where the user can complete the authentication.
...iving the url where the user can complete the authentication.
...re the user can complete the authentication.
...And 4 more matches
Report.url - Web APIs
Web › API › Report › url
the url read-only property of the report interface returns the url of the document that generated the report.
... the url read-only property of the report interface returns the url of the document that generated the report.
... the url read-only property of the report interface returns the url of the document that generated the report.
...And 4 more matches
URL.searchParams - Web APIs
Web › API › URL › searchParams
the searchparams readonly property of the url interface returns a urlsearchparams object allowing access to the get decoded query arguments contained in the url.
... the searchparams readonly property of the url interface returns a urlsearchparams object allowing access to the get decoded query arguments contained in the url.
... the searchparams readonly property of the url interface returns a urlsearchparams object allowing access to the get decoded query arguments contained in the url.
...And 4 more matches
URLSearchParams.append() - Web APIs
the append() method of the urlsearchparams interface appends a specified key/value pair as a new search parameter.
... the append() method of the urlsearchparams interface appends a specified key/value pair as a new search parameter.
... search parameter.
...And 4 more matches
URLSearchParams.delete() - Web APIs
the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
... the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
... the delete() method of the urlsearchparams interface deletes the given search parameter and all its associated values, from the list of all search parameters.
...And 4 more matches
URLSearchParams.getAll() - Web APIs
the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
... the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
... the getall() method of the urlsearchparams interface returns all the values associated with a given search parameter as an array.
...And 4 more matches
URLSearchParams.has() - Web APIs
the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
... the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
... the has() method of the urlsearchparams interface returns a boolean that indicates whether a parameter with the specified name exists.
...And 4 more matches
XMLHttpRequest.responseURL - Web APIs
the read-only xmlhttprequest.responseurl property returns the serialized url of the response or the empty string if the url is null.
... the read-only xmlhttprequest.responseurl property returns the serialized url of the response or the empty string if the url is null.
... the read-only xmlhttprequest.responseurl property returns the serialized url of the response or the empty string if the url is null.
...And 4 more matches
Getting the page URL in NPAPI plugin - Archive of obsolete content
sometimes, you want to restrict an npapi plugin to be loadable only from a certain url or domain or scheme.
... sometimes, you want to restrict an npapi plugin to be loadable only from a certain url or domain or scheme.
...ant to restrict an npapi plugin to be loadable only from a certain url or domain or scheme.
...And 3 more matches
nsIURLParser
netwerk/base/public/nsiurlparser.idlscriptable specifies the interface to an url parser that attempts to follow the definitions of rfc 2396.
...sionlen); void parsepath(in string path, in long pathlen, out unsigned long filepathpos, out long filepathlen, out unsigned long parampos, out long paramlen, out unsigned long querypos, out long querylen, out unsigned long refpos, out long reflen); void parseserverinfo(in string serverinfo, in long serverinfolen, out unsigned long hostnamepos, out long hostnamelen, out long port); void parseurl(in string spec, in long speclen, out unsigned long schemepos, out long schemelen, out unsigned long authoritypos, out long authoritylen, out unsigned long pathpos, out long pathlen); void parseuserinfo(in string userinfo, in long userinfolen, out unsigned long usernamepos, out long usernamelen, out unsigned long passwordpos, out long passwordlen); methods the string to parse in the methods m...
...hpos filepathlen parampos obsolete since gecko 9.0 paramlen obsolete since gecko 9.0 querypos querylen refpos reflen parseserverinfo() serverinfo = <hostname>:<port> void parseserverinfo( in string serverinfo, in long serverinfolen, out unsigned long hostnamepos, out long hostnamelen, out long port ); parameters serverinfo serverinfolen hostnamepos hostnamelen port parseurl() breaks the url string up into its 3 major components: a scheme, an authority section (hostname, and so on.), and a path.
...And 3 more matches
EventSource.url - Web APIs
Web › API › EventSource › url
the url read-only property of the eventsource interface returns a domstring representing the url of the source.
... the url read-only property of the eventsource interface returns a domstring representing the url of the source.
... the url read-only property of the eventsource interface returns a domstring representing the url of the source.
...And 3 more matches
File.getAsDataURL() - Web APIs
Web › API › File › getAsDataURL
summary the getasdataurl provides a data: url that encodes the entire contents of the referenced file.
... summary the getasdataurl provides a data: url that encodes the entire contents of the referenced file.
... summary the getasdataurl provides a data: url that encodes the entire contents of the referenced file.
...And 3 more matches
PasswordCredential.iconURL - Web APIs
the iconurl read-only property of the passwordcredential interface returns a usvstring containing a url pointing to an image for an icon.
... the iconurl read-only property of the passwordcredential interface returns a usvstring containing a url pointing to an image for an icon.
... the iconurl read-only property of the passwordcredential interface returns a usvstring containing a url pointing to an image for an icon.
...And 3 more matches
Urlbar-icons - Archive of obsolete content
« xul reference home [ examples | attributes | properties | methods | related ] the location of ui elements like the bookmarks, feed and go buttons.
... « xul reference home [ examples | attributes | properties | methods | related ] the location of ui elements like the bookmarks, feed and go buttons.
...ference home [ examples | attributes | properties | methods | related ] the location of ui elements like the bookmarks, feed and go buttons.
...And 2 more matches
HashChangeEvent.newURL - Web APIs
the newurl read-only property of the hashchangeevent interface returns the new url to which the window is navigating.
... the newurl read-only property of the hashchangeevent interface returns the new url to which the window is navigating.
... the newurl read-only property of the hashchangeevent interface returns the new url to which the window is navigating.
...And 2 more matches
HashChangeEvent.oldURL - Web APIs
the oldurl read-only property of the hashchangeevent interface returns the previous url from which the window was navigated.
... the oldurl read-only property of the hashchangeevent interface returns the previous url from which the window was navigated.
... the oldurl read-only property of the hashchangeevent interface returns the previous url from which the window was navigated.
...And 2 more matches
MerchantValidationEvent.validationURL - Web APIs
the merchantvalidationevent property validationurl is a read-only string value providing the url from which to fetch the payment handler-specific data needed to validate the merchant.
... the merchantvalidationevent property validationurl is a read-only string value providing the url from which to fetch the payment handler-specific data needed to validate the merchant.
... the merchantvalidationevent property validationurl is a read-only string value providing the url from which to fetch the payment handler-specific data needed to validate the merchant.
...And 2 more matches
URLSearchParams.get() - Web APIs
the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
... the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
... the get() method of the urlsearchparams interface returns the first value associated to the given search parameter.
...And 2 more matches
URLUtilsReadOnly.href - Web APIs
the urlutilsreadonly.href read-only property is a stringifier that returns a domstring containing the whole url.
... the urlutilsreadonly.href read-only property is a stringifier that returns a domstring containing the whole url.
... the urlutilsreadonly.href read-only property is a stringifier that returns a domstring containing the whole url.
...And 2 more matches
URLUtilsReadOnly.pathname - Web APIs
the urlutilsreadonly.pathname read-only property returns a domstring containing an initial '/' followed by the path of the url.
... the urlutilsreadonly.pathname read-only property returns a domstring containing an initial '/' followed by the path of the url.
... the urlutilsreadonly.pathname read-only property returns a domstring containing an initial '/' followed by the path of the url.
...And 2 more matches
SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead - JavaScript
the javascript warning "using //@ to indicate sourceurl pragmas is deprecated.
... the javascript warning "using //@ to indicate sourceurl pragmas is deprecated.
... the javascript warning "using //@ to indicate sourceurl pragmas is deprecated.
...And 2 more matches
nsIFileURL
netwerk/base/public/nsifileurl.idlscriptable provides access to the underlying nsifile object corresponding to a url.
... netwerk/base/public/nsifileurl.idlscriptable provides access to the underlying nsifile object corresponding to a url.
... netwerk/base/public/nsifileurl.idlscriptable provides access to the underlying nsifile object corresponding to a url.
...fileurl.idlscriptable provides access to the underlying nsifile object corresponding to a url.
Client.url - Web APIs
Web › API › Client › url
the url read-only property of the client interface returns the url of the current service worker client.
... the url read-only property of the client interface returns the url of the current service worker client.
... the url read-only property of the client interface returns the url of the current service worker client.
...icationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: 'window' }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe definition of 'url' in that specification.
ServiceWorker.scriptURL - Web APIs
returns the serviceworker serialized script url defined as part of serviceworkerregistration.
... returns the serviceworker serialized script url defined as part of serviceworkerregistration.
... returns the serviceworker serialized script url defined as part of serviceworkerregistration.
...turns the serviceworker serialized script url defined as part of serviceworkerregistration.
URLSearchParams.entries() - Web APIs
the entries() method of the urlsearchparams interface returns an iterator allowing iteration through all key/value pairs contained in this object.
... the entries() method of the urlsearchparams interface returns an iterator allowing iteration through all key/value pairs contained in this object.
...) method of the urlsearchparams interface returns an iterator allowing iteration through all key/value pairs contained in this object.
...ters none.
URLSearchParams.forEach() - Web APIs
the foreach() method of the urlsearchparams interface allows iteration through all values contained in this object via a callback function.
...method of the urlsearchparams interface allows iteration through all values contained in this object via a callback function.
... iteration through all values contained in this object via a callback function.
...r, with the param value provided as its parameter.
URLSearchParams.keys() - Web APIs
the keys() method of the urlsearchparams interface returns an iterator allowing iteration through all keys contained in this object.
... the keys() method of the urlsearchparams interface returns an iterator allowing iteration through all keys contained in this object.
... the keys() method of the urlsearchparams interface returns an iterator allowing iteration through all keys contained in this object.
...web workers.
URLSearchParams.sort() - Web APIs
the urlsearchparams.sort() method sorts all key/value pairs contained in this object in place and returns undefined.
...ntained in this object in place and returns undefined.
...defined.
...chparams.sort(); parameters none.
URLSearchParams.values() - Web APIs
the values() method of the urlsearchparams interface returns an iterator allowing iteration through all values contained in this object.
... the values() method of the urlsearchparams interface returns an iterator allowing iteration through all values contained in this object.
... the values() method of the urlsearchparams interface returns an iterator allowing iteration through all values contained in this object.
... syntax searchparams.values(); parameters none.
URLUtilsReadOnly.hash - Web APIs
the urlutilsreadonly.hash read-only property returns a domstring containing a '#' followed by the fragment identifier of the url.
... the urlutilsreadonly.hash read-only property returns a domstring containing a '#' followed by the fragment identifier of the url.
...ash read-only property returns a domstring containing a '#' followed by the fragment identifier of the url.
... returns a domstring containing a '#' followed by the fragment identifier of the url.
URLUtilsReadOnly.host - Web APIs
the urlutilsreadonly.host read-only property returns a domstring containing the host, that is the hostname, a ':', and the port of the url.
... the urlutilsreadonly.host read-only property returns a domstring containing the host, that is the hostname, a ':', and the port of the url.
...lutilsreadonly.host read-only property returns a domstring containing the host, that is the hostname, a ':', and the port of the url.
...ad-only property returns a domstring containing the host, that is the hostname, a ':', and the port of the url.
URLUtilsReadOnly.hostname - Web APIs
the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
... the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
... the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
...the urlutilsreadonly.hostname read-only property returns a domstring containing the domain of the url.
URLUtilsReadOnly.origin - Web APIs
the urlutilsreadonly.origin read-only property is a domstring containing the unicode serialization of the origin of the represented url, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified).
... the urlutilsreadonly.origin read-only property is a domstring containing the unicode serialization of the origin of the represented url, that is, for http and https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified).
..., if explicitely specified).
...fied).
URLUtilsReadOnly.port - Web APIs
the urlutilsreadonly.port read-only property returns a domstring containing the port number of the url.
... the urlutilsreadonly.port read-only property returns a domstring containing the port number of the url.
... the urlutilsreadonly.port read-only property returns a domstring containing the port number of the url.
... the urlutilsreadonly.port read-only property returns a domstring containing the port number of the url.
URLUtilsReadOnly.protocol - Web APIs
the urlutilsreadonly.protocol read-only property returns a domstring containing the protocol scheme of the url, including the final ':'.
... the urlutilsreadonly.protocol read-only property returns a domstring containing the protocol scheme of the url, including the final ':'.
... the urlutilsreadonly.protocol read-only property returns a domstring containing the protocol scheme of the url, including the final ':'.
...donly.protocol read-only property returns a domstring containing the protocol scheme of the url, including the final ':'.
URLUtilsReadOnly.search - Web APIs
the urlutilsreadonly.search read-only property returns a domstring containing a '?' followed by the parameters of the url.
... the urlutilsreadonly.search read-only property returns a domstring containing a '?' followed by the parameters of the url.
... the urlutilsreadonly.search read-only property returns a domstring containing a '?' followed by the parameters of the url.
...lutilsreadonly.search read-only property returns a domstring containing a '?' followed by the parameters of the url.
URLUtilsReadOnly.toString() - Web APIs
the urlutilsreadonly.tostring() stringifier method returns a domstring containing the whole url.
... the urlutilsreadonly.tostring() stringifier method returns a domstring containing the whole url.
... the urlutilsreadonly.tostring() stringifier method returns a domstring containing the whole url.
... the urlutilsreadonly.tostring() stringifier method returns a domstring containing the whole url.
WebSocket.url - Web APIs
Web › API › WebSocket › url
the websocket.url read-only property returns the absolute url of the websocket as resolved by the constructor.
... the websocket.url read-only property returns the absolute url of the websocket as resolved by the constructor.
... the websocket.url read-only property returns the absolute url of the websocket as resolved by the constructor.
... the websocket.url read-only property returns the absolute url of the websocket as resolved by the constructor.
Warning: -file- is being assigned a //# sourceMappingURL, but already has one - JavaScript
the javascript warning "-file- is being assigned a //# sourcemappingurl, but already has one." occurs when a source map has been specified more than once for a given javascript source.
... the javascript warning "-file- is being assigned a //# sourcemappingurl, but already has one." occurs when a source map has been specified more than once for a given javascript source.
...are often combined and minified to make delivering them from the server more efficient.
net/url - Archive of obsolete content
experimental enables you to read content from a uri.
...ame type sync boolean if this option is set to true, the promise returned will be resolved synchronously.
Custom about: URLs - Archive of obsolete content
this page describes how to register a new about: url for your extension.
... this page describes how to register a new about: url for your extension.
browser.urlbar.formatting.enabled
the preference browser.urlbar.formatting.enabled controls whether the domain name including the top level domain is highlighted in the address bar by coloring it black and the other parts grey.
...lean default value: true exists by default: yes application support:firefox 6.0 status: active; last updated 2012-04-03 introduction: pushed to nightly on 2011-05-03 bugs: bug 451833 values true (default) the domain name including the top level domain is highlighted in the address bar by coloring it black and the other parts grey.
unparsed-entity-url - XPath
xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
... xslt/xpath reference: xslt elements, exslt functions, xpath functions, xpath axes the unparsed-entity-url() function returns the uri of the unparsed entity with the given name.
hourLeadingZero - Archive of obsolete content
« xul reference hourleadingzero type: boolean a read only value indicating whether a leading zero should be displayed before the hour when it is less than 10.
nsIUrlListManagerCallback
toolkit/components/url-classifier/public/nsiurllistmanager.idlscriptable interface for a class that manages updates of the url classifier database.
Index - Web APIs
Web › API › Index
viceworker life cycle.
...vice workers, service worker api, serviceworker the add() method of the cache interface takes a url, retrieves it, and adds the resulting response object to the given cache.
...bjects tracked by the cachestorage object in the order they were created.
...And 388 more matches
nsIMsgMessageService
objects that implements nsimsgmessageservice give the user top level routines related to messages like copying, displaying, attachment's manipulation, printing, streaming the message content to eml format string, etc.
... objects that implements nsimsgmessageservice give the user top level routines related to messages like copying, displaying, attachment's manipulation, printing, streaming the message content to eml format string, etc.
...ce give the user top level routines related to messages like copying, displaying, attachment's manipulation, printing, streaming the message content to eml format string, etc.
...And 69 more matches
nsIMessenger
s.classes["@mozilla.org/messenger;1"] .createinstance(components.interfaces.nsimessenger); in thunderbird, a global nsimessenger object is defined as messenger via the createmessenger function in mailwindow.js.
...la.org/messenger;1"] .createinstance(components.interfaces.nsimessenger); in thunderbird, a global nsimessenger object is defined as messenger via the createmessenger function in mailwindow.js.
... .createinstance(components.interfaces.nsimessenger); in thunderbird, a global nsimessenger object is defined as messenger via the createmessenger function in mailwindow.js.
...And 68 more matches
Starting WebLock
sed to its clients.
...erface needs to include the following functionality: lock - enable web locking so that any browser in the gecko application is restricted to the white list of website domains.
...atesites - allows the enumeration of all sites in the white list.
...And 59 more matches
Using files from web applications - Web APIs
rtswith('image/')){ continue } const img = document.createelement("img"); img.classlist.add("obj"); img.file = file; preview.appendchild(img); // assuming that "preview" is the div output where the content will be displayed.
... image specifying the file for the image; this will let us fetch the images for actual upload later.
...w thumbnail to the preview area of our document.
...And 48 more matches
Creating regular expressions for a microsummary generator - Archive of obsolete content
warning: microsummary support was removed in gecko 6.0 (firefox 6.0 / thunderbird 6.0 / seamonkey 2.3) a regular expression is a special kind of string (i.e.
...efox 6.0 / thunderbird 6.0 / seamonkey 2.3) a regular expression is a special kind of string (i.e.
...er strings.
...And 47 more matches
Add to iPhoto
tion long integer type used to represent indexes into lists.
...ect.
...urns a cfstringref, which is a pointer to the new string, and accepts, as input, three parameters: an allocator, which is a pointer to a routine that will allocate the memory to contain the new object (we use the ctypes.voidptr_t type for this), a pointer to the unicode string to copy into the new string object (ctypes.jschar.ptr), and the length of the unicode string in characters.
...And 47 more matches
widget - Archive of obsolete content
itizen.
... in the future firefox may allow the user to drag widgets from the add-on bar to other toolbars.
... creation, the widget is automatically added to the add-on bar.
...And 42 more matches
panel - Archive of obsolete content
ing to its show and hide events.
...ents.
...extension.
...And 41 more matches
Proxy Auto-Configuration (PAC) file - HTTP
a proxy auto-configuration (pac) file is a javascript function that determines whether web browser requests (http, https, and ftp) go directly to the destination or are forwarded to a web proxy server.
... a proxy auto-configuration (pac) file is a javascript function that determines whether web browser requests (http, https, and ftp) go directly to the destination or are forwarded to a web proxy server.
... a proxy auto-configuration (pac) file is a javascript function that determines whether web browser requests (http, https, and ftp) go directly to the destination or are forwarded to a web proxy server.
...And 41 more matches
Install Manifests - Archive of obsolete content
t use a valid version format will not be installed.
...on format will not be installed.
...add-on.
...And 39 more matches
Index - Archive of obsolete content
46 indexed-db add-on sdk exposes the indexeddb api to add-ons.
...dd-on sdk query the add-on's environment and access arguments passed to it.
...s arguments passed to it.
...And 39 more matches
cross-fade() - CSS: Cascading Style Sheets
ust be coded without quotes, must contain the “%” symbol, and its value must be between 0% and 100%.
...t quotes, must contain the “%” symbol, and its value must be between 0% and 100%.
...alue must be between 0% and 100%.
...And 39 more matches
HTTP Index - HTTP
Web › HTTP › Index
tty extensible protocol.
...l.
...ucture of messages, and a client-server structure for the communication flow.
...And 39 more matches
Graceful asynchronous programming with Promises - Learn web development
o transform the fetch response's raw body contents into a blob object, and then display that blob inside an <img> element.
... through a local testing server, or use an online solution such as glitch or github pages.
...} }); each call to .then() creates a new promise.
...And 37 more matches
page-mod - Archive of obsolete content
run scripts in the context of web pages whose url matches a given pattern.
... run scripts in the context of web pages whose url matches a given pattern.
...y.innerhtml = ' + ' "<h1>page matches ruleset</h1>";' }); you can supply the content script(s) in one of two ways: as a string literal, or an array of string literals, assigned to the contentscript option, as above as separate files supplied in your add-on's "data" directory.
...And 35 more matches
Creating hyperlinks - Learn web development
the web has to offer.
...offer.
...be made into a link, even block-level elements.
...And 35 more matches
context-menu - Archive of obsolete content
lly removed from the menu.
...ot occur when the user invokes the context menu on a link, image, or other non-text node, or while a selection exists.
...ontext.
...And 33 more matches
Creating localizable web applications
of the addons.mozillaorg code at /addons/trunk/site/app/config/language.php and /addons/trunk/site/app/config/language.inc.php.
...hange the locale (e.g.
... dropdown menu at bottom of page) and remember this choice for the future visits.
...And 32 more matches
Client-Server Overview - Learn web development
ed behaviour must be implemented by your server-side code, irrespective of which programming language or web framework you select.
...load the resource if it has changed.
...date an existing resource (or create a new one if it doesn't exist).
...And 31 more matches
nsIFileProtocolHandler
netwerk/protocol/file/nsifileprotocolhandler.idlscriptable this interface provides methods to convert between nsifile and nsiuri.
...erk/protocol/file/nsifileprotocolhandler.idlscriptable this interface provides methods to convert between nsifile and nsiuri.
...colhandler.idlscriptable this interface provides methods to convert between nsifile and nsiuri.
...And 31 more matches
Network request list - Firefox Developer Tools
security icons.
... icons.
...rity icons the network monitor displays an icon in the domain column: this gives you extra information about the security status of the request: icon meaning https weak https (for example, a weak cipher was used) failed https (for example, a certificate was invalid) http localhost indicates that the url belongs to a known tracker that would be blocked with content blocking enabled.
...And 30 more matches
<blend-mode> - CSS: Cascading Style Sheets
sed in the background-blend-mode and mix-blend-mode properties.
...ax the <blend-mode> data type is defined using a keyword value chosen from the list below.
...demos.org/files/8545/tr.png'); background-blend-mode: normal; } multiply the final color is the result of multiplying the top and bottom colors.
...And 30 more matches
jpm - Archive of obsolete content
jpm init create a skeleton add-on as a starting point for your add-on.
...firefox with your add-on installed.
...pm run -b /path/to/firefox/nightly see selecting a browser version.
...And 29 more matches
Third-party APIs - Learn web development
.tilelayer() method), and the default zoom level.
...ository, you'll already have a copy of this file, which you can find in the javascript/apis/third-party-apis/mapquest directory.
...y of this file, which you can find in the javascript/apis/third-party-apis/mapquest directory.
...And 29 more matches
Command line options
.x only.
..."profile_path" can either be an absolute path ("/path/to/profile") or a relative path ("path/to/profile").
...le") or a relative path ("path/to/profile").
...And 29 more matches
Tabbed browser - Archive of obsolete content
dow, you can use: window.opener.gbrowser.addtab(...); if window.opener doesn't work, you can get the most recent browser window using this code: var wm = components.classes["@mozilla.org/appshell/window-mediator;1"] .getservice(components.interfaces.nsiwindowmediator); var mainwindow = wm.getmostrecentwindow("navigator:browser"); mainwindow.gbrowser.addtab(...); opening a url in a new tab // add tab gbrowser.addtab("http://www.google.com/"); // add tab, then make active gbrowser.selectedtab = gbrowser.addtab("http://www.google.com/"); manipulating content of a new tab if you want to work on the content of the newly opened tab, you'll need to wait until the content has finished loading.
...erfortab(gbrowser.addtab("http://www.google.com/")); newtabbrowser.addeventlistener("load", function () { newtabbrowser.contentdocument.body.innerhtml = "<div>hello world</div>"; }, true); (the event target in the onload handler will be a 'tab' xul element).
...cument.body.innerhtml = "<div>hello world</div>"; }, true); (the event target in the onload handler will be a 'tab' xul element).
...And 28 more matches
ui/frame - Archive of obsolete content
moment you can only add frames to a toolbar.
...n id="weather" class="info-element"></span> <script type="text/javascript" src="city-info.js"></script> </body> </html> if we save this document as "city-info.html" under the add-on's "data" directory, we can create a frame hosting it and add the frame to a toolbar like this: var { frame } = require("sdk/ui/frame"); var { toolbar } = require("sdk/ui/toolbar"); var frame = new frame({ url: "./city-info.html" }); var toolbar = toolbar({ name: "city-info", title: "city info", items: [frame] }); the toolbar is positioned between the address bar and the content window.
...eventlistener("change", citychanged); function citychanged() { window.parent.postmessage(cityselector.value, "*"); } to listen for these messages in the main add-on code, you can assign a listener to the frame's message event.
...And 27 more matches
passwords - Archive of obsolete content
perties, as outlined in this section.
...omatically generated for you.
...istration", then its "site" field will look something like: addon:jid0-01mbbfyu0zaxcfub1jykoostkic (user registration) html form credential if a web service uses html forms to authenticate its users, then the corresponding credential is an html form credential.
...And 25 more matches
util/match-pattern - Archive of obsolete content
test strings containing urls against simple patterns.
... test strings containing urls against simple patterns.
... test strings containing urls against simple patterns.
...And 25 more matches
Search Extension Tutorial (Draft) - Archive of obsolete content
n to avoid violating the mozilla add-on guidelines or creating an adverse user experience.
...lues.
...hanges to a file in an extension's defaults/preferences/ directory.
...And 25 more matches
Fetching data from the server - Learn web development
hange = function() { const verse = versechoose.value; updatedisplay(verse); }; let's define our updatedisplay() function.
... to be case sensitive, and the file name doesn't have a space in it.
...t using the xmlhttprequest() constructor.
...And 25 more matches
nsIFaviconService
.getservice(components.interfaces.nsifaviconservice); method overview void addfailedfavicon(in nsiuri afaviconuri); void expireallfavicons(); void getfavicondata(in nsiuri afaviconuri, out autf8string amimetype, [optional] out unsigned long adatalen, [array,retval,size_is(adatalen)] out octet adata); obsolete since gecko 22.0 astring getfavicondataasdataurl(in nsiuri afaviconuri); obsolete since gecko 22.0 nsiuri getfaviconforpage(in nsiuri apageuri); obsolete since gecko 22.0 nsiuri getfaviconimageforpage(in nsiuri apageuri); obsolete since gecko 22.0 nsiuri getfaviconlinkforicon(in nsiuri afaviconuri); boolean isfailedfavicon(in nsiuri afaviconuri); void removefailedfavicon(in nsiuri afaviconuri); ...
...i, in nsiuri afaviconuri, in boolean aforcereload, in unsigned long afaviconloadtype, [optional] in nsifavicondatacallback acallback); obsolete since gecko 22.0 void setfavicondata(in nsiuri afaviconuri, [const,array,size_is(adatalen)] in octet adata, in unsigned long adatalen, in autf8string amimetype, in prtime aexpiration); obsolete since gecko 22.0 void setfavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, in prtime aexpiration); obsolete since gecko 22.0 void setfaviconurlforpage(in nsiuri apageuri, in nsiuri afaviconuri); obsolete since gecko 22.0 attributes attribute type description defaultfavicon nsiuri the default favicon uri.
...imetype output parameter where the mime type will be placed.
...And 25 more matches
<a>: The Anchor element - HTML: Hypertext Markup Language
Web › HTML › Element › a
the html <a> element (or anchor element), with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a url can address.
...each <a> should indicate the link's destination.
...es and send us a pull request.
...And 25 more matches
href - SVG: Scalable Vector Graphics
Web › SVG › Attribute › href
the href attribute defines a link to a resource as a reference url.
...image>, <image>, <lineargradient>, <mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, and <use> html, body, svg { height: 100%; } <svg viewbox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a href="https://developer.mozilla.org/"><text x="10" y="25">mdn web docs</text></a> </svg> in svg a for <a>, href defines the location of the referenced object, expressed as a url reference.
...<mpath>, <pattern>, <radialgradient>, <script>, <set>, <textpath>, and <use> html, body, svg { height: 100%; } <svg viewbox="0 0 160 40" xmlns="http://www.w3.org/2000/svg"> <a href="https://developer.mozilla.org/"><text x="10" y="25">mdn web docs</text></a> </svg> in svg a for <a>, href defines the location of the referenced object, expressed as a url reference.
...And 25 more matches
ui/sidebar - Archive of obsolete content
erates a show event when it is shown and a hide event when it is hidden.
...when it is shown and a hide event when it is hidden.
...what a sidebar looks like, here's a sidebar that displays the results of running the w3c validator on the current page: specifying sidebar content the content of a sidebar is specified using html, which is loaded from the url supplied in the url option to the sidebar's constructor.
...And 24 more matches
XUL Structure - Archive of obsolete content
« previousnext » we'll begin by looking at how the xul is handled in mozilla.
...ne xulrunner application.
...ntent from remote sources (e.g.
...And 24 more matches
nsIPluginHost
dom/plugins/base/nsipluginhost.idlscriptable please add a summary to this article.
... dom/plugins/base/nsipluginhost.idlscriptable please add a summary to this article.
...hod overview nsifile createtempfiletopost(in string apostdataurl); native code only!
...And 24 more matches
Sending form data - Learn web development
on the client side: defining how to send the data the <form> element defines how the data will be sent.
...t defines how the data will be sent.
...be sent when a user hits a submit button.
...And 23 more matches
Recommended Drag Types - Web APIs
the html drag and drop api supports dragging various types of data, including plain text, urls, html code, files, etc.
...l text alternative.
...agging links dragged hyperlinks should include data of two types: text/uri-list, and text/plain.
...And 23 more matches
page-worker - Archive of obsolete content
create a permanent, invisible page and access its dom.
...on page, which constructs a new page worker.
...using the contenturl option to the page() constructor.
...And 22 more matches
Window.open() - Web APIs
Web › API › Window › open
the window interface's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
... the window interface's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
...ace's open() method loads the specified resource into the new or existing browsing context (window, <iframe> or tab) with the specified name.
...And 22 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
from $mozilla_home/defaults/autoconfig/prefcalls.js to see the inside call to "user defined" processldapvalues */ function processldapvalues(values) { if(values) { // set the global var with the values returned from the ldap query ldap_values = values; var uid = getldapvalue(values, "uid"); var cn = getldapvalue(values, "cn"); var mail = getldapvalue(values, "mail"); var url = getldapvalue(values, "labeleduri"); // those ldap variables are only available in this processldapvalues context!
...derbird with autoconfig (autoconf.js having pref('general.config.filename','thunderbird.cfg'); ) and thunderbird.cfg calling getldap* functions to retrieve cn and mail address of the current user.
...r firefox in firefox.cfg as named in ff-autoconf.js just above.
...And 21 more matches
Working with the History API - Web APIs
html5 introduced the pushstate() and replacestate() methods for add and modifying history entries, respectively.
...ader for xmlhttprequest objects created after you change the state.
...ozilla.org/foo.html executes the following javascript: let stateobj = { foo: "bar", } history.pushstate(stateobj, "page 2", "bar.html") this will cause the url bar to display http://mozilla.org/bar.html, but won't cause the browser to load bar.html or even check that bar.html exists.
...And 21 more matches
tabs - Archive of obsolete content
xample.com"); track tabs you can register event listeners to be notified when tabs open, close, finish loading dom content, or are made active or inactive: var tabs = require("sdk/tabs"); // listen for tab openings.
...b of tabs) console.log(tab.title); you can also access individual tabs by index: var tabs = require('sdk/tabs'); tabs.on('ready', function () { console.log('first: ' + tabs[0].title); console.log('last: ' + tabs[tabs.length-1].title); }); you can access the currently active tab: var tabs = require('sdk/tabs'); tabs.on('activate', function () { console.log('active: ' + tabs.activetab.url); }); track a single tab given a tab, you can register event listeners to be notified when the tab is closed, activated or deactivated, or when the page hosted by the tab is loaded or retrieved from the "back-forward cache": var tabs = require("sdk/tabs"); function onopen(tab) { console.log(tab.url + " is open"); tab.on("pageshow", logshow); tab.on("activate", logactivate); tab.on("de...
... is closed, activated or deactivated, or when the page hosted by the tab is loaded or retrieved from the "back-forward cache": var tabs = require("sdk/tabs"); function onopen(tab) { console.log(tab.url + " is open"); tab.on("pageshow", logshow); tab.on("activate", logactivate); tab.on("deactivate", logdeactivate); tab.on("close", logclose); } function logshow(tab) { console.log(tab.url + " is loaded"); } function logactivate(tab) { console.log(tab.url + " is activated"); } function logdeactivate(tab) { console.log(tab.url + " is deactivated"); } function logclose(tab) { console.log(tab.url + " is closed"); } tabs.on('open', onopen); manipulate a tab you can get and set various properties of tabs (but note that properties relating to the tab's content, such as the ur...
...And 20 more matches
Making asynchronous programming easier with async and await - Learn web development
es serve to illustrate the syntax.
...ve to illustrate the syntax.
... the syntax.
...And 20 more matches
WebRequest.jsm
ng addlistener().
...stener on the event in question, passing it the listener to remove.
...ner to remove.
...And 20 more matches
Places utilities for JavaScript
warning: the content of this article may be out of date.
...ddfolderui(string atitle, int adefaultinsertionpoint, boolean ashowpicker); array object getannotationsforuri(nsiuri auri); array object getannotationsforitem(int aitemid); void setannotationsforuri(nsiuri auri, object aannos); void setannotationsforuri(int aitemid, object aannos); getviewfornode(nsidomnode anode); void markpageastyped(string aurl); void markpageasfollowedbookmark(string aurl); boolean checkurlsecurity(nsinavhistoryresultnode aurinode); string getquerystringforfolder(int afolderid); string getdescriptionfromdocument(nsidomdocument doc); string setpostdataforbookmark(int aboomarkid, string apostdata); string getpostdataforbookmark(int aboomarkid); array string g...
... void markpageasfollowedbookmark(string aurl); boolean checkurlsecurity(nsinavhistoryresultnode aurinode); string getquerystringforfolder(int afolderid); string getdescriptionfromdocument(nsidomdocument doc); string setpostdataforbookmark(int aboomarkid, string apostdata); string getpostdataforbookmark(int aboomarkid); array string geturlandpostdataforkeyword(string akeyword); string getitemdescription(int aitemid); nsinavhistoryresultnode getmostrecentbookmarkforuri(nsiuri auri); nsinavhistoryresultnode getmostrecentfolderforfeeduri(nsiuri auri); nsinavhistoryresultnode geturlsforcontainernode(nsinavhistoryresultnode anode); void opencontainernodeintabs(nsinavhistoryresultnode anode, n...
...And 20 more matches
Finishing the Component
« previousnext » at this point you have created most of the infrastructure of the component.
...ponent.
...us summary nsisupports xpcom frozen provides interface discovery, and object reference counting nsiobserver xpcom frozen allows messaging passing between objects nsicontentpolicy content not frozen interface for policy control mechanism iweblock web lock not frozen enables and disables weblock.
...And 20 more matches
Location - Web APIs
Web › API › Location
the location interface represents the location (url) of the object it is linked to.
...k", function(e) { e.preventdefault(); e.stoppropagation(); window.location.hash = ''; }); }); result properties location.ancestororigins is a static domstringlist containing, in reverse order, the origins of all ancestor browsing contexts of the document associated with the given location object.
...rder, the origins of all ancestor browsing contexts of the document associated with the given location object.
...And 20 more matches
OpenSearch description format
ou're writing.
... xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <shortname>[snk]</shortname> <description>[search engine full name and summary]</description> <inputencoding>[utf-8]</inputencoding> <image width="16" height="16" type="image/x-icon">[https://example.com/favicon.ico]</image> <url type="text/html" template="[searchurl]"> <param name="[key name]" value="{searchterms}"/> <!-- other params if you need them… --> <param name="[other key name]" value="[parameter value]"/> </url> <url type="application/x-suggestions+json" template="[suggestionurl]"/> <moz:searchform>[https://example.com/search]</moz:searchform> </opensearchdescription> shortname a short name for the search engine.
...u can generate a data: uri from an icon file at the data: uri kitchen.) <image height="16" width="16" type="image/x-icon">https://example.com/favicon.ico</image> <!-- or --> <image height="16" width="16">data:image/x-icon;base64,aaabaaeaebaaa … daaa=</image> firefox caches the icon as a base64 data: uri (search plug-ins are stored in the profile's searchplugins/ folder).
...And 20 more matches
Content Scripts - Archive of obsolete content
aces the content of the page: // main.js var tabs = require("sdk/tabs"); var contentscriptstring = 'document.body.innerhtml = "<h1>this page has been eaten</h1>";' tabs.activetab.attach({ contentscript: contentscriptstring }); the following high-level sdk modules can use content scripts to modify web pages: page-mod: enables you to attach content scripts to web pages that match a specific url pattern.
...ptfile option.
... ' "<h1>page matches ruleset</h1>";'; pagemod.pagemod({ include: "*.mozilla.org", contentscript: contentscriptvalue }); the contentscriptfile option treats the string as a resource:// url pointing to a script file stored in your add-on's data directory.
...And 19 more matches
Using the Places keywords API
using the places keywords api the places keywords api allows to assign a keyword to an url.
... using the places keywords api the places keywords api allows to assign a keyword to an url.
... using the places keywords api the places keywords api allows to assign a keyword to an url.
...And 19 more matches
WorkerLocation - Web APIs
n of the script executed by the worker.
... worker.
....location property obtained by calling self.location.
...And 19 more matches
cursor - CSS: Cascading Style Sheets
Web › CSS › cursor
ursor css property sets the type of mouse cursor, if any, to show when the mouse pointer is over an element.
...e cursor, if any, to show when the mouse pointer is over an element.
...en the mouse pointer is over an element.
...And 19 more matches
Necko Architecture
nkdata - data: protocol nkfile - file: protocol nkftp - ftp: protocol nkkeyword - keyword: protocol nkresrc - resource: protocol cnvts - stream converters stremcnv - stream converter service these libraries will change with time and illustrate the modularity of necko.
...verter service these libraries will change with time and illustrate the modularity of necko.
...ture looks something like this: urls necko's primary responsibility is moving data from one location, to another location.
...And 18 more matches
nsIMsgCloudFileProvider
nsimsgcloudfileprovider is the interface that must be implemented by new filelink providers.
...lback); void deletefile(in nsilocalfile afile, in nsirequestobserver acallback); void createnewaccount(in acstring aemailaddress, in acstring apassword, in acstring afirstname, in acstring alastname, in nsirequestobserver acallback); void createexistingaccount(in nsirequestobserver acallback); acstring providerurlforerror(in unsigned long aerror); attributes attribute type description type acstring readonly: the type is a unique string identifier which can be used by interface elements for styling.
...ed long aerror); attributes attribute type description type acstring readonly: the type is a unique string identifier which can be used by interface elements for styling.
...And 18 more matches
FetchEvent.respondWith() - Web APIs
you can only return response objects of type "opaque" if the fetchevent.request object's mode is "no-cors".
...eaking of private data.
... if the fetchevent.request object's mode is "manual".
...And 18 more matches
Using XMLHttpRequest - Web APIs
in this guide, we'll take a look at how to use xmlhttprequest to issue http requests in order to exchange data between the web site and a server.
...ough xmlhttprequest is most commonly used to send and receive textual data, it can be used to send and receive binary content.
...ional content types, which makes sending and receiving binary data much easier.
...And 18 more matches
filter - CSS: Cascading Style Sheets
Web › CSS › filter
the filter css property applies graphical effects like blur or color shift to an element.
....
...rd are several functions that achieve predefined effects.
...And 18 more matches
Caching compiled WebAssembly modules - WebAssembly
d any other type of cloneable object.
...s compiled wasm modules (webassembly.module javascript objects).
...stantiates it with the given importobject, and returns a promise resolving to the finished wasm instance.
...And 18 more matches
cfx - Archive of obsolete content
directory.
... directory.
...ults to test-harness.
...And 17 more matches
Manifest Files - Archive of obsolete content
« previousnext » in this section, we'll see how to put chrome and xul files into a package and create the manifest files for them.
...ts that define the functionality of a user interface.
...t.manifest in the chrome directory.
...And 17 more matches
Debugger.Source - Firefox Developer Tools
cified in the webassembly standard.
...ession based syntax.
... binary if the instance refers to webassembly code and the debugger has the allowwasmbinarysource property set, a uint8array that contains the webassembly bytecode.
...And 17 more matches
tabbrowser - Archive of obsolete content
tvieweredit which handles clipboard operations on the document.
...andles clipboard operations on the document.
... type: nsidocumentcharsetinfo this read-only property contains the nsidocumentcharsetinfo object for the document which is used to handle which character set should be used to display the document.
...And 16 more matches
nsIChromeRegistry
en registered.
...bird 3.1 / fennec 1.0) implemented by: @mozilla.org/chrome/chrome-registry;1 as a service: var chromeregistry = components.classes["@mozilla.org/chrome/chrome-registry;1"] .getservice(components.interfaces.nsichromeregistry); method overview void canonify(in nsiuri achromeurl); obsolete since gecko 1.8 void checkfornewchrome(); nsiuri convertchromeurl(in nsiuri achromeurl); boolean wrappersenabled(in nsiuri auri); violates the xpcom interface guidelines constants constant value description none 0 partial 1 full 2 methods canonify() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: this method is obsol...
...; boolean wrappersenabled(in nsiuri auri); violates the xpcom interface guidelines constants constant value description none 0 partial 1 full 2 methods canonify() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: this method is obsolete; use convertchromeurl() instead.
...And 16 more matches
Blob - Web APIs
Web › API › Blob
ype.text() returns a promise that resolves with a usvstring containing the entire contents of the blob interpreted as utf-8 text.
...onstructor can create blobs from other objects.
...reate blobs from other objects.
...And 16 more matches
History.pushState() - Web APIs
Web › API › History › pushState
in an html document, the history.pushstate() method adds a state to the browser's session history stack.
...tate(), the method will throw an exception.
...tion.
...And 16 more matches
src - CSS: Cascading Style Sheets
Web › CSS › @font-face › src
the src css descriptor of the @font-face rule specifies the resource containing font data.
... the src css descriptor of the @font-face rule specifies the resource containing font data.
... the src css descriptor of the @font-face rule specifies the resource containing font data.
...And 16 more matches
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
Web › HTML › Element › input
d in some devices with dynamic keypads.
... keypads.
... from the input value.
...And 16 more matches
Redirections in HTTP - HTTP
url redirection, also known as url forwarding, is a technique to give more than one url address to a page, a form, or a whole web site/application.
...ction, also known as url forwarding, is a technique to give more than one url address to a page, a form, or a whole web site/application.
...s goals: temporary redirects during site maintenance or downtime permanent redirects to preserve existing links/bookmarks after changing the site's urls, progress pages when uploading a file, etc.
...And 16 more matches
Storing annotations - Archive of obsolete content
plestorage = require('sdk/simple-storage'); in the module scope, initialize an array which will contain the stored annotations: if (!simplestorage.storage.annotations) simplestorage.storage.annotations = []; now we'll add a function to the module scope which deals with a new annotation.
... url, element id and element content: function handlenewannotation(annotationtext, anchor) { var newannotation = new annotation(annotationtext, anchor); simplestorage.storage.annotations.push(newannotation); } this function calls a constructor for an annotation object, which we also need to supply: function annotation(annotationtext, anchor) { this.annotationtext = annotationtext; this.url = anchor[0]; this.ancestorid = anchor[1]; this.anchortext = anchor[2]; } now we need to link this code to the annotation editor, so that when the user presses the return key in the editor, we create and store the new annotation: var annotationeditor = panels.panel({ width: 220, height: 220, contenturl: data.url('editor/annotation-editor.html'), contentscriptfile: data.url('editor/an...
...ata which we will call list.
...And 15 more matches
Downloading Files - Archive of obsolete content
the following methods of downloading files may not work as expected after firefox 26, and should no longer be used.
...les/privatebrowsingutils.jsm"); const webbrowserpersist = components.constructor("@mozilla.org/embedding/browser/nswebbrowserpersist;1", "nsiwebbrowserpersist"); var persist = webbrowserpersist(); var targetfile = services.dirsvc.get("desk", ci.nsifile); targetfile.append("file.bin"); // obtain the privacy context of the browser window that the url // we are downloading comes from.
...components.constructor("@mozilla.org/embedding/browser/nswebbrowserpersist;1", "nsiwebbrowserpersist"); var persist = webbrowserpersist(); var targetfile = services.dirsvc.get("desk", ci.nsifile); targetfile.append("file.bin"); // obtain the privacy context of the browser window that the url // we are downloading comes from.
...And 15 more matches
Supporting search suggestions in search plugins - Archive of obsolete content
firefox supports search suggestions in opensearch plugins; as the user types in the search bar, firefox queries the url specified by the search plugin to fetch live search suggestions.
...list has been retrieved, it's displayed in a popup box that appears under the search bar, which lets the user select a suggested search term.
... user continues to type, a new set of suggestions is requested from the search engine, and the displayed list is refreshed.
...And 15 more matches
RDF Datasources - Archive of obsolete content
ional datasources and how to use your own rdf files as datasources.
...ery similarly to the bookmarks, although the fields will be different in each case.
... of the resource to be used.
...And 15 more matches
RDF in Mozilla FAQ - Archive of obsolete content
aphs, or merging collections of statements ("microtheories") together.
...bookmarks" datasource.
...ow-to.
...And 15 more matches
Command line crash course - Learn web development
o, along with names of relevant tools in each case: navigate your computer’s file system along with base level tasks such as create, copy, rename and delete: move around your directory structure: cd create directories: mkdir create files (and modify their metadata): touch copy files: cp move files: mv delete files or directories: rm download files found at specific urls: curl search for fragments of text inside larger bodies of text: grep view a file's contents page by page: less, cat manipulate and transform streams of text (for example changing all the instances of <div>s in an html file to <article>): awk, tr, sed note: there are a number of good tutorials on the web that go much deeper into the command line on the web — this is only a brief introduc...
...st like you do when specifying paths to images or other assets in css, html, or javascript code: cd desktop/project/src note that including a leading slash on your path makes the path absolute, for example /users/your-user-name/desktop.
...src note that including a leading slash on your path makes the path absolute, for example /users/your-user-name/desktop.
...And 15 more matches
@document - CSS: Cascading Style Sheets
Web › CSS › @document
the @document css at-rule restricts the style rules contained within it based on the url of the document.
... the @document css at-rule restricts the style rules contained within it based on the url of the document.
...ent css at-rule restricts the style rules contained within it based on the url of the document.
...And 15 more matches
Color picker tool - CSS: Cascading Style Sheets
t: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .picking-area { width: 198px; height: 198px; margin: 5px; border: 1px solid #ddd; position: relative; float: left; display: table; } .ui-color-picker .picking-area:hover { cursor: default; } /* hsv format - hue-saturation-value(brightness) */ .ui-color-picker .picking-area { background: url('https://mdn.mozillademos.org/files/5707/picker_mask_200.png') center center; background: -moz-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -moz-linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -webkit-linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -ms-linear-...
...dius: 50%; border: 1px solid #fff; position: absolute; top: 45%; left: 45%; } .ui-color-picker .picker:before { width: 8px; height: 8px; content: ""; position: absolute; border: 1px solid #999; border-radius: 50%; } .ui-color-picker .hue, .ui-color-picker .alpha { width: 198px; height: 28px; margin: 5px; border: 1px solid #fff; float: left; } .ui-color-picker .hue { background: url("https://mdn.mozillademos.org/files/5701/hue.png") center; background: -moz-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -webkit-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -ms-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%,...
...0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -ms-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -o-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); } .ui-color-picker .alpha { border: 1px solid #ccc; background: url("https://mdn.mozillademos.org/files/5705/alpha.png"); } .ui-color-picker .alpha-mask { width: 100%; height: 100%; background: url("https://mdn.mozillademos.org/files/6089/alpha_mask.png"); } .ui-color-picker .slider-picker { width: 2px; height: 100%; border: 1px solid #777; background-color: #fff; position: relative; top: -1px; } /* input hsv and rgb */ .ui-color-picker .info { widt...
...And 15 more matches
Scaling of SVG backgrounds - CSS: Cascading Style Sheets
ngths for both dimensions if you use background-size to specify fixed lengths for both dimensions, those lengths are always used, per rule 1 above.
...tretched to the dimensions you specify, regardless of whether or not the source image has specified its dimensions and/or aspect ratio.
...ground: url(no-dimensions-or-ratio.svg); background-size: 125px 175px; the rendered output would look like this: source: one specified dimension, no intrinsic ratio given this css: background: url(100px-wide-no-height-or-ratio.svg); background-size: 250px 150px; the rendered output would look like this: source: one specified dimension with intrinsic ratio given this css: background: url(100px-height-3x4-ratio.svg); background-size: 275px 125px; the rendered output would look like this: source: no specified width or height with intrinsic ratio given this css: background: url(no-dimensions-1x1-ratio.svg); background-size: 250px 100px; the rendered output would look like this: using contain or cover specifying cover for background-size makes the picture as small as pos...
...And 15 more matches
<a> - SVG: Scalable Vector Graphics
Web › SVG › Element › a
the <a> svg element creates a hyperlink to other web pages, files, locations in the same page, email addresses, or any other url.
... the <a> svg element creates a hyperlink to other web pages, files, locations in the same page, email addresses, or any other url.
...nk around a shape --> <a href="/docs/web/svg/element/circle"> <circle cx="50" cy="40" r="35"/> </a> <!-- a link around a text --> <a href="/docs/web/svg/element/text"> <text x="50" y="90" text-anchor="middle"> &lt;circle&gt; </text> </a> </svg> /* as svg does not provide a default visual style for links, it's considered best practice to add some */ @namespace svg url(http://www.w3.org/2000/svg); /* necessary to select only svg <a> elements, and not also html’s.
...And 15 more matches
File I/O - Archive of obsolete content
.perms_file); // do whatever you need to the created file alert(file.path); user input via nsifilepicker the file picker component, nsifilepicker, can be used to open standard open / save dialogs.
... nsifilepicker, can be used to open standard open / save dialogs.
...ndard open / save dialogs.
...And 14 more matches
Extension Versioning, Update and Compatibility - Archive of obsolete content
he add-on's install.rdf.
...ot mistakenly think that * in a version represents any version.
...ently installed version of the add-on, and the entry's targetapplication entry specifies a larger maxversion then the application will use this value instead of that specified in the add-on's install.rdf.
...And 14 more matches
Installing Extensions and Themes From Web Pages - Archive of obsolete content
irect linking to the xpi files and using the installtrigger object.
...he installtrigger object.
...and web authors are encouraged to use the method described below to install xpis, as it provides the best experience to users.
...And 14 more matches
Client-side storage - Learn web development
me } // add the record to the idb using add() let request = objectstore.add(record); ...
...d the record to the idb using add() let request = objectstore.add(record); ...
....add(record); ...
...And 14 more matches
Introduction to automated testing - Learn web development
ere we grab our style.css file, run csslint on it (which outputs a list of any errors in your css to the terminal), then runs it through autoprefixer to add any prefixes needed to make nascent css features run in older browsers.
... good introduction with a good deal of further information.
...started with sauce labs let's get started with a sauce labs trial.
...And 14 more matches
Index
Mozilla › Tech › XPCOM › Index
t chapters, we can begin to work on the example weblock component functionality itself.
...e anchors would all reference the image object.
... interfaces, mime implemented by: @mozilla.org/uriloader/external-helper-app-service;1.
...And 14 more matches
nsILocalFileMac
xpcom/io/nsilocalfilemac.idlscriptable please add a summary to this article.
... xpcom/io/nsilocalfilemac.idlscriptable please add a summary to this article.
...ble please add a summary to this article.
...And 14 more matches
nsIMsgFolder
nsimsgwindow msgwindow); void propagatedelete(in nsimsgfolder folder, in boolean deletestorage,in nsimsgwindow msgwindow); void recursivedelete(in boolean deletestorage, in nsimsgwindow msgwindow); void createsubfolder(in astring foldername, in nsimsgwindow msgwindow); nsimsgfolder addsubfolder(in astring foldername); void createstorageifmissing(in nsiurllistener urllistener); void compact(in nsiurllistener alistener, in nsimsgwindow amsgwindow); void compactall(in nsiurllistener alistener, innsimsgwindow amsgwindow,in nsisupportsarray afolderarray, in boolean acompactofflinealso,in nsisupportsarray aofflinefolderarray); void compactallofflinestores(in nsimsgwindow amsgwindow,in nsisupportsarray aofflinefolderarray); ...
...stener alistener, in nsimsgwindow amsgwindow); void compactall(in nsiurllistener alistener, innsimsgwindow amsgwindow,in nsisupportsarray afolderarray, in boolean acompactofflinealso,in nsisupportsarray aofflinefolderarray); 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); ...
...ssage(in nsifile file, in nsimsgdbhdr msgtoreplace,in boolean isdraft, in unsigned long newmsgflags,in nsimsgwindow msgwindow,in nsimsgcopyservicelistener listener); void acquiresemaphore(in nsisupports semholder); void releasesemaphore(in nsisupports semholder); boolean testsemaphore(in nsisupports semholder); void getnewmessages(in nsimsgwindow awindow, in nsiurllistener alistener); void writetofoldercache(in nsimsgfoldercache foldercache, in boolean deep); long getnumnewmessages(in boolean deep); void setnumnewmessages(in long numnewmessages); acstring generatemessageuri(in nsmsgkey msgkey); void addmessagedispositionstate(in nsimsgdbhdr amessage,in nsmsgdispositionstate adispositionflag); void markme...
...And 14 more matches
nsIUpdateItem
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface is obsolete; instead of using the extension manager, you should use the addon manager.
...anged in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) this interface is obsolete; instead of using the extension manager, you should use the addon manager.
...refox 4 / thunderbird 3.3 / seamonkey 2.1) this interface is obsolete; instead of using the extension manager, you should use the addon manager.
...And 14 more matches
Using IndexedDB - Web APIs
ub-year" name="pub-year" /> </td> </tr> </tbody> <tbody> <tr> <td> <label for="pub-file"> file image: </label> </td> <td> <input type="file" id="pub-file"/> </td> </tr> <tr> <td> <label for="pub-file-url"> online-file image url:<br/> <span class="note">(same origin url)</span> </label> </td> <td> <input type="text" id="pub-file-url" name="pub-file-url"/> </td> </tr> </tbody> </table> <div class="button-pane"> <input type="button" id="add-button" value="add publica...
... iframe.load(function() { $(this).contents().find('html').html(html); }); }); reader.readastext(blob); } else if (blob.type.indexof('image/') == 0) { iframe.load(function() { var img_id = 'image-' + key; var img = $('<img id="' + img_id + '"/>'); $(this).contents().find('body').html(img); var obj_url = window.url.createobjecturl(blob); $(this).contents().find('#' + img_id).attr('src', obj_url); window.url.revokeobjecturl(obj_url); }); } else if (blob.type == 'application/pdf') { $('*').css('cursor', 'wait'); var obj_url = window.url.createobjecturl(blob); iframe.load(function() { $('*').css('cursor', 'auto'); }); ...
...rl(blob); $(this).contents().find('#' + img_id).attr('src', obj_url); window.url.revokeobjecturl(obj_url); }); } else if (blob.type == 'application/pdf') { $('*').css('cursor', 'wait'); var obj_url = window.url.createobjecturl(blob); iframe.load(function() { $('*').css('cursor', 'auto'); }); iframe.attr('src', obj_url); window.url.revokeobjecturl(obj_url); } else { iframe.load(function() { $(this).contents().find('body').html("no view available"); }); } }); } /** * @param {string} biblioid * @param {string} title * @param {number} year * @param {string} url the url of the image to download and store in the local * indexeddb database.
...And 14 more matches
Node.baseURI - Web APIs
Web › API › Node › baseURI
the baseuri read-only property returns the absolute base url of a node.
... the baseuri read-only property returns the absolute base url of a node.
... the baseuri read-only property returns the absolute base url of a node.
...And 14 more matches
Server-side web frameworks - Learn web development
frameworks.
...ase a string).
...st (request) # perform operations using information from the request.
...And 13 more matches
Adding phishing protection data providers
phishing protection technology lets firefox help protect users by comparing the urls the user visits to a list of known scam sites, and presenting a warning to the user when they visit a site on the list.
...ing.provider.0.name, then browser.safebrowsing.provider.1.name, and so forth until no value is returned.
...ider.0.name, then browser.safebrowsing.provider.1.name, and so forth until no value is returned.
...And 13 more matches
nsIBrowserSearchService
our code is executed in reaction to a user interaction, as initialization is complete by then, but this is an issue if your code is executed during startup.
...user interaction, as initialization is complete by then, but this is an issue if your code is executed during startup.
...at is executed during startup and makes use of nsibrowsersearchservice, you should make sure that this code is executed from the callback to init().
...And 13 more matches
nsITransferable
khtmlmime text/html html.
...t/html html.
... kaolmailmime aolmail aol mail.
...And 13 more matches
Navigator.registerProtocolHandler() - Web APIs
the navigator method registerprotocolhandler() lets web sites register their ability to open or handle particular url schemes (aka protocols).
... the navigator method registerprotocolhandler() lets web sites register their ability to open or handle particular url schemes (aka protocols).
... the navigator method registerprotocolhandler() lets web sites register their ability to open or handle particular url schemes (aka protocols).
...And 13 more matches
@import - CSS: Cascading Style Sheets
Web › CSS › @import
the @import css at-rule is used to import style rules from other style sheets.
... the @import css at-rule is used to import style rules from other style sheets.
... the @import css at-rule is used to import style rules from other style sheets.
...And 13 more matches
Border-image generator - CSS: Cascading Style Sheets
data-stateid="border5"/> <img class="image" src="https://udn.realityripple.com/samples/fb/c0b285d3da.svg" data-stateid="border6"/> </div> </div> <div id="load-actions" class="group section"> <div id="toggle-gallery" data-action="hide"> </div> <div id="load-image" class="button"> upload image </div> <input id="remote-url" type="text" placeholder="load an image from url"/> <div id="load-remote" class="button"> </div> </div> <div id="general-controls" class="group section"> <div class="name"> control box </div> <div class="separator"></div> <div class="property"> <div class="name">scale</div> <div class="ui-input-slider...
...slider */ .ui-input-slider > input { margin: 0; padding: 0; width: 50px; text-align: center; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .ui-input-slider-info { width: 90px; padding: 0px 10px 0px 0px; text-align: right; text-transform: lowercase; } .ui-input-slider-left, .ui-input-slider-right { width: 16px; cursor: pointer; background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center left no-repeat; } .ui-input-slider-right { background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center right no-repeat; } .ui-input-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } .ui-input-slider-btn-set { width: 25px; background-color: #2c9fc9; border-radius: ...
...ckground-color: #379b4a; cursor: pointer; } /*************************************************************************************/ /*************************************************************************************/ /* * ui dropdown */ /* dropdown */ .ui-dropdown { height: 2em; width: 120px; font-family: "segoe ui", arial, helvetica, sans-serif; font-size: 12px; background-image: url("https://mdn.mozillademos.org/files/6037/drop_arrow_icon.png"); background-position: right center; background-repeat: no-repeat; background-color: #359740; position: relative; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-dropdown:hover { cursor...
...And 13 more matches
Microformats - HTML: Hypertext Markup Language
ow microformats work an author of a webpage can add microformats to their html.
...a, it will know that this page contains a "card" which describes a person or organization named alice blogger with a url of http://alice.example.com/.
...y describes episodic or date stamped online content like a blog post h-feed describes a stream or feed of posts you can find many more vocabularies on the microformats2 wiki.
...And 13 more matches
Interacting with page scripts - Archive of obsolete content
is example a page script adds a string variable foo to the window: <!doctype html"> <html> <head> <script> window.foo = "hello from page script" </script> </head> </html> the content script can see this object if it uses unsafewindow.foo instead of window.foo: // main.js var tabs = require("sdk/tabs"); var mod = require("sdk/page-mod"); var self = require("sdk/self"); var pageurl = self.data.url("page.html") var pagemod = mod.pagemod({ include: pageurl, contentscript: "console.log(unsafewindow.foo);" }) tabs.open(pageurl); be careful using unsafewindow: you can't rely on any of its properties or functions being, or doing, what you expect.
...to() creates a structured clone of the object in the target context, and returns a reference to the clone.
...structured clone of the object in the target context, and returns a reference to the clone.
...And 12 more matches
dev/panel - Archive of obsolete content
set the constructor up manually if you like, or you can use the add-on sdk core/heritage module to simplify the mechanics of inheriting from panel.
...ype, { label: "my panel", tooltip: "...", ....
...rs for you to supply.
...And 12 more matches
places/bookmarks - Archive of obsolete content
represents only a snapshot of state at a specific time.
...e }).on("end", function (saveditems, inputitems) { // similar to "data" events, except "end" is an aggregate of // all progress events, with ordered arrays as `saveditems` // and `inputitems` }); creating several bookmarks with a new group let { bookmark, group, save } = require("sdk/places/bookmarks"); let group = group({ title: "guitars" }); let bookmarks = [ bookmark({ title: "ran", url: "http://ranguitars.com", group: group }), bookmark({ title: "ibanez", url: "http://ibanez.com", group: group }), bookmark({ title: "esp", url: "http://espguitars.com", group: group }) ]; // save `bookmarks` array -- notice we don't have `group` in the array, // although it needs to be saved since all bookmarks are children // of `group`.
... as well as a query options object.
...And 12 more matches
Intercepting Page Loads - Archive of obsolete content
t document: while (doc.defaultview.frameelement) { doc = doc.defaultview.frameelement.ownerdocument; } } } } the second if validation is necessary if you need to make a distinction for html documents being loaded in inner page frames.
... http-on-examine-response called after a response has been received from the webserver.
...om the webserver.
...And 12 more matches
NPAPI plugin reference - Archive of obsolete content
hentication information from the browser.
...fier returns an opaque identifier for the integer that is passed in.
... an opaque identifier for the integer that is passed in.
...And 12 more matches
nsIIOService
netwerk/base/public/nsiioservice.idlscriptable this interface provides a set of url parsing utility functions.
... handler).
...e ensuring reasonable, default protection.
...And 12 more matches
Gecko Plugin API Reference - Plugins
or plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory sending and receiving streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry initialization and destruction ini...
...treams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in sending the stream in random-access mode sending the stream in file mode sending a stream creating a stream pushing data into the stream deleting the stream example of sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http server uploading files to an ftp server sending mail memory allocating and freeing memory mac os flushing memory (mac os only) version, ui, and status information displaying a status line message getting agent information getting the current version ...
...mented by the plug-in and called by the browser.
...And 12 more matches
Using Service Workers - Web APIs
ode via https — service workers are restricted to running across https for security reasons.
...chronous, so blocks the main thread.
...promises test example for the source code, or look at it running live.) note: a real service worker implementation would use caching and onfetch rather than the xmlhttprequest api.
...And 12 more matches
itemprop - HTML: Hypertext Markup Language
the itemprop global attribute is used to add properties to an item.
...html" itemprop="trailer">trailer</a> </div> structured data item itemprop name itemprop value itemprop name avatar itemprop director james cameron itemprop genre science fiction itemprop trailer ../movies/avatar-theatrical-trailer.html properties properties have values that are either a string or a url.
...railer</a> </div> structured data item itemprop name itemprop value itemprop name avatar itemprop director james cameron itemprop genre science fiction itemprop trailer ../movies/avatar-theatrical-trailer.html properties properties have values that are either a string or a url.
...And 12 more matches
import.meta - JavaScript
the import.meta object exposes context-specific metadata to a javascript module.
... import.meta object is created by the ecmascript implementation, with a null prototype.
... a null prototype.
...And 12 more matches
Modules - Archive of obsolete content
set of privileges that determines what scripts running in that compartment can and cannot do.
...he host application.
...explanation of how to use components is out of scope for this document.
...And 11 more matches
request - Archive of obsolete content
t the net/xhr module, based on the browser's xmlhttprequest object.
...module, based on the browser's xmlhttprequest object.
...wser's xmlhttprequest object.
...And 11 more matches
Index - MDN Web Docs Glossary: Definitions of Web-related terms
or providing metadata.
...ocument directives are used in a content-security-policy header and govern the properties of a document or worker environment to which a policy applies.
... a domain is an authority within the internet that controls its own resources.
...And 11 more matches
Using the Browser API
Mozilla › Gecko › Chrome › API › Browser API › Using
n use async promise style syntax if you so wish.
...romise style syntax if you so wish.
...ck().then(function(result) { if (result) { back.disabled = false; console.log("it's possible to navigate the history backward."); } else { back.disabled = true; console.log("it's not possible to navigate the history backward."); } }); } implementing the url bar the url bar for our simple browser is a <form> containing a single text <input>.
...And 11 more matches
Addon
ger indicates what scope the add-on is installed in, per profile, user, system, or application.
...add-on is installed in, per profile, user, system, or application.
... boolean true if the user wants this add-on to be disabled.
...And 11 more matches
sslfnc.html
sl_cipherpolicyset.
...for a long time, you should call this function periodically (once a day, for example) to generate a new step-down key.
...ssl makes and keeps internal copies (or increments the reference counts, as appropriate) of certificate and key structures.
...And 11 more matches
Using the Places history service
he places history service ("navhistory") implements these history interfaces: nsiglobalhistory2: basic add page, is visited functionality used by the docshell when visiting and rendering pages.
...iting and rendering pages.
...rom 1.9.1 (firefox3.1) on, don't use any places service on (or after) quit-application has been notified, since the database connection will be closed to allow the last sync, and changes will most likely be lost.
...And 11 more matches
Building the WebLock UI
.getservice() .queryinterface(components.interfaces.iweblock); in addition to this basic setup, you must also write javascript that uses the addsite method to add new sites to the white list.
...vice() .queryinterface(components.interfaces.iweblock); in addition to this basic setup, you must also write javascript that uses the addsite method to add new sites to the white list.
...ite list.
...And 11 more matches
mozIJSSubScriptLoader
js/xpconnect/idl/mozijssubscriptloader.idlscriptable this interface can be used from privileged javascript to load and run javascript code from the given url at runtime.
... 1.3) implemented by: @mozilla.org/moz/jssubscript-loader;1.
...r = components.classes["@mozilla.org/moz/jssubscript-loader;1"] .getservice(components.interfaces.mozijssubscriptloader); note: see components.utils.import for another way to import javascript code.
...And 11 more matches
nsIExternalProtocolService
the external protocol service is used for finding and launching web handlers (a la registerprotocolhandler in the html5 draft) or platform-specific applications for handling particular protocols.
...aprotocolscheme); astring getapplicationdescription(in autf8string ascheme); nsihandlerinfo getprotocolhandlerinfo(in acstring aprotocolscheme); nsihandlerinfo getprotocolhandlerinfofromos(in acstring aprotocolscheme, out boolean afound); boolean isexposedprotocol(in string aprotocolscheme); void loaduri(in nsiuri auri, [optional] in nsiinterfacerequestor awindowcontext); void loadurl(in nsiuri aurl); void setprotocolhandlerdefaults(in nsihandlerinfo ahandlerinfo, in boolean aoshandlerexists); methods externalprotocolhandlerexists() check whether a handler for a specific protocol exists.
...lean aoshandlerexists); methods externalprotocolhandlerexists() check whether a handler for a specific protocol exists.
...And 11 more matches
DirectoryReaderSync - Web APIs
tries(), create the directoryentrysync object.
...) is not a data type that you can pass between a calling app and web worker thread.
...ling app and web worker thread.
...And 11 more matches
Using Fetch - Web APIs
connect-src directive of content security policy rather than the directive of the resources it's retrieving.
...it's retrieving.
...ed with * const response = await fetch(url, { method: 'post', // *get, post, put, delete, etc.
...And 11 more matches
HashChangeEvent - Web APIs
the hashchangeevent interface represents events that fire when the fragment identifier of the url has changed.
... the hashchangeevent interface represents events that fire when the fragment identifier of the url has changed.
...f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">hashchangeevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits the properties of its parent, event.
...And 11 more matches
package.json - Archive of obsolete content
are using the new jpm tool, you can easily access manifest data from package.json by requiring it like any other module: var title = require("./package.json").title; key reference package.json may contain the following keys: author the name of the package's original author; this could be the name of a person or a company.
...this is deprecated along with cfx; it's not available when using jpm.
...the guid format.
...And 10 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
d.
...used as visual elements in the gui, including style sheets and images.
...le sheets and images.
...And 10 more matches
JavaScript Object Management - Archive of obsolete content
ile: resource xulschoolhello modules/ javascript code modules are accessed with the resource protocol, which is very similar to the chrome protocol.
... namespace object.
...rted as well, since they are members of the 〈modulenamespace〉 object.
...And 10 more matches
Using Remote XUL - Archive of obsolete content
introduction note: support for remote xul has long been a potential security concern; support for it was disabled in gecko 2.0.
... which the xul file is served: addtype application/vnd.mozilla.xul+xml .xul then restart your web server.
...ay pages from the mozilla.org web site.
...And 10 more matches
Plug-in Development Overview - Gecko Plugin API Reference
ge of the memory features provided in the plug-in api to allocate and free memory.
...duced by the plug-in to send to the browser are like normal-mode streams produced by the browser, but in reverse.
... in reverse.
...And 10 more matches
Introducing asynchronous JavaScript - Learn web development
...
...ining function’s body.
...ontaining a callback easily enough.
...And 10 more matches
mozIAsyncFavicons
6.0 inherits from: nsisupports last changed in gecko 11.0 (firefox 11.0 / thunderbird 11.0 / seamonkey 2.8) nsifaviconservice handles this interface, so you do not need to directly create a new service.
...(in nsiuri apageuri, in nsiuri afaviconuri, in boolean aforcereload, in unsigned long afaviconloadtype, [optional] in nsifavicondatacallback acallback); void replacefavicondata(in nsiuri afaviconuri, [const,array,size_is(adatalen)] in octet adata, in unsigned long adatalen, in autf8string amimetype, [optional] in prtime aexpiration); void replacefavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, [optional] in prtime aexpiration); methods getfaviconurlforpage() retrieve the url of the favicon for the given page.
...a(in nsiuri afaviconuri, [const,array,size_is(adatalen)] in octet adata, in unsigned long adatalen, in autf8string amimetype, [optional] in prtime aexpiration); void replacefavicondatafromdataurl(in nsiuri afaviconuri, in astring adataurl, [optional] in prtime aexpiration); methods getfaviconurlforpage() retrieve the url of the favicon for the given page.
...And 10 more matches
nsIMsgDBView
viewcommandupdater acommandupdater); void geturisforselection([array, size_is(count)] out string uris, out unsigned long count); void getindicesforselection([array, size_is(count)] out nsmsgviewindex indices, out unsigned long count); void loadmessagebymsgkey(in nsmsgkey amsgkey); void loadmessagebyviewindex(in nsmsgviewindex aindex); void loadmessagebyurl(in string aurl); void reloadmessage(); void reloadmessagewithallparts(); void selectmsgbykey(in nsmsgkey key); void selectfoldermsgbykey(in nsimsgfolder afolder, in nsmsgkey akey); void ondeletecompleted(in boolean succeeded); nsmsgviewindex findindexfromkey(in nsmsgkey amsgkey, in boolean aexpand); void expandandselectthreadbyindex(i...
... defined as an unsigned long in mailnewstypes2.idl.
... long in mailnewstypes2.idl.
...And 10 more matches
Plug-in Basics - Plugins
range of possibilities for using plug-in technology seems boundless, as shown by the growing numbers of independent software vendors who are creating new and innovative plug-ins.
...ties for using plug-in technology seems boundless, as shown by the growing numbers of independent software vendors who are creating new and innovative plug-ins.
... as shown by the growing numbers of independent software vendors who are creating new and innovative plug-ins.
...And 10 more matches
Plug-in Development Overview - Plugins
ge of the memory features provided in the plug-in api to allocate and free memory.
...duced by the plug-in to send to the browser are like normal-mode streams produced by the browser, but in reverse.
... in reverse.
...And 10 more matches
Web Console remoting - Firefox Developer Tools
soleclient object.
...efox 20 the web console actor provided a locationchange listener, with an associated locationchanged notification.
...he web console actor provided a locationchange listener, with an associated locationchanged notification.
...And 10 more matches
HTMLHyperlinkElementUtils - Web APIs
the htmlhyperlinkelementutils mixin defines utility methods and properties to work with htmlanchorelement and htmlareaelement.
...rk with htmlanchorelement and htmlareaelement.
...his type, but several objects such as htmlanchorelement and htmlareaelement implement it.
...And 10 more matches
content - CSS: Cascading Style Sheets
Web › CSS › content
the content css property replaces an element with a generated value.
...an element with a generated value.
...yntax values none the pseudo-element is not generated.
...And 10 more matches
<input type="image"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › image
age"> elements do not accept value attributes.
... formmethod the http method to use when submitting the form formnovalidate a boolean which, if present, indicates that the form shouldn't be validated before submission formtarget a string indicating a browsing context from where to load the results of submitting the form height the height, in css pixels, at which to draw the image src the url from which to load the image width the width, in css pixels, at which to draw the image alt the alt attribute provides an alternate string to use as the button's label if the image cannot be shown (due to error, a user agent that cannot or is configured not to show images, or if the user is using a screen reading device).
...an image with an icon and/or image text "login now", you should also set the alt attribute to something like login now.
...And 10 more matches
HTML documentation index - HTML: Hypertext Markup Language
Web › HTML › Index
prop attribute, global attribute, html, html microdata, microdata, reference the itemprop global attribute is used to add properties to an item.
...nce itemscope is a boolean global attribute that defines the scope of associated metadata.
... tags.
...And 10 more matches
Content-Location - HTTP
the content-location header indicates an alternate location for the returned data.
... the content-location header indicates an alternate location for the returned data.
... the content-location header indicates an alternate location for the returned data.
...And 10 more matches
notifications - Archive of obsolete content
lithy toves", data: "did gyre and gimble in the wabe", onclick: function (data) { console.log(data); // console.log(this.data) would produce the same result.
...data: "did gyre and gimble in the wabe", onclick: function (data) { console.log(data); // console.log(this.data) would produce the same result.
...nsole.log(data); // console.log(this.data) would produce the same result.
...And 9 more matches
core/promise - Archive of obsolete content
ining intermediate operations on promises (var data = readasync().then(parse).then(extract)).
...s on promises (var data = readasync().then(parse).then(extract)).
...hain multiple then functions, because then returns a promise resolved to a return value of an operation and errors propagate through the promise chains.
...And 9 more matches
places/favicon - Archive of obsolete content
helper functions for working with favicons.
... helper functions for working with favicons.
... helper functions for working with favicons.
...And 9 more matches
Microsummary XML grammar reference - Archive of obsolete content
he generator.
...he microsummaries namespace (http://www.mozilla.org/microsummaries/0.1), its <stylesheet>/<transform> child element must be in the xslt namespace (http://www.w3.org/1999/xsl/transform).
...in the xslt namespace (http://www.w3.org/1999/xsl/transform).
...And 9 more matches
Elements - Archive of obsolete content
ique binding that can be attached to elements in other documents.
... other documents.
... cdata #implied inheritstyle true #implied > the binding element describes a single xbl binding.
...And 9 more matches
browser - Archive of obsolete content
ment.
...similar to an iframe except that it holds a page history and contains additional methods to manipulate the currently displayed page.
...er element, with the following arguments.
...And 9 more matches
Common Firefox theme issues and solutions - Archive of obsolete content
older.
...ocation in the browser.css file and modified as necessary: /* page proxy icon */ #page-proxy-favicon { width: 16px; height: 16px; margin: 1px 3px; list-style-image: url(chrome://browser/skin/identity-icons-generic.png); -moz-image-region: rect(0, 16px, 16px, 0); } .verifieddomain > #identity-box-inner > #page-proxy-stack > #page-proxy-favicon { list-style-image: url(chrome://browser/skin/identity-icons-https.png); } .verifiedidentity > #identity-box-inner > #page-proxy-stack > #page-proxy-favicon { list-style-image: url(chrome://browser/skin/identity-icons-https-ev.png); } #identity-box:hover > #identity-box-inner > #page-proxy-stack > #page-proxy-favicon { -moz-image-region: rect(0, 32px, 16px, 16px); } #identity-box:hover:active > #i...
...tack > #page-proxy-favicon, #identity-box[open=true] > #identity-box-inner > #page-proxy-stack > #page-proxy-favicon { -moz-image-region: rect(0, 48px, 16px, 32px); } #page-proxy-favicon[pageproxystate="invalid"] { opacity: 0.5; } for more information about identity boxes please see the identity box section of the amo editors theme review guidelines no visual clue for disabled url bars there needs to be a visual clue when url bar is disabled.
...And 9 more matches
Sending forms through JavaScript - Learn web development
roaches.
... which stands for "asynchronous javascript and xml".
...chronous javascript and xml".
...And 9 more matches
AddonManager
his time, the following: extension, theme, locale, multipackage, dictionary and experiment.
...following: extension, theme, locale, multipackage, dictionary and experiment.
...ager object in the add-on sdk, use: const { addonmanager } = require("resource://gre/modules/addonmanager.jsm"); to import it in a normal bootstrapped extension or similar, use: cu.import("resource://gre/modules/addonmanager.jsm"); method overview promise?
...And 9 more matches
Add-on Repository
the add-on repository is responsible for finding available add-ons; it provides an interface for interacting with the addons.mozilla.org (amo) site.
...on and are not already installed or in the process of being installed.
...d or in the process of being installed.
...And 9 more matches
amIInstallTrigger
table called when an install completes or fails.
... inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview boolean enabled(); boolean install(in nsivariant aargs, [optional] in amiinstallcallback acallback); boolean installchrome(in pruint32 atype, in astring aurl, in astring askin); deprecated since gecko 2.0 boolean startsoftwareupdate(in astring aurl, [optional] in print32 aflags); deprecated since gecko 2.0 boolean updateenabled(); deprecated since gecko 2.0 constants retained for backwards compatibility.
...on is enabled.
...And 9 more matches
mozITXTToHTMLConv
.1 (firefox 2 / thunderbird 2 / seamonkey 1.1) inherits from nsistreamconverter implemented by @mozilla.org/txttohtmlconv;1 as a service: var ios = components.classes["@mozilla.org/txttohtmlconv;1"] .getservice(components.interfaces.mozitxttohtmlconv); method overview unsigned long citeleveltxt(in wstring line, out unsigned long loglinestart) void findurlinplaintext(in wstring text, in long alength, in long apos, out long astartpos, out long aendpos) wstring scanhtml(in wstring text, in unsigned long whattodo) wstring scantxt(in wstring text, in unsigned long whattodo) constants conversion control attributes these bits allow you to control the conversion of text into html.
...this applies to "<", "&", and ">" (which are converted to &lt;, &amp;, and &gt;, respectively).
... and &gt;, respectively).
...And 9 more matches
nsIFrameScriptLoader
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used to load frame scripts.
... idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used to load frame scripts.
... user opens new tabs in this window, copies of the script will be loaded into these new tabs, as well.
...And 9 more matches
nsILoginManager
"@mozilla.org/login-manager;1"] .getservice(components.interfaces.nsiloginmanager); method overview void addlogin(in nsilogininfo alogin); nsiautocompleteresult autocompletesearch(in astring asearchstring, in nsiautocompleteresult apreviousresult, in nsidomhtmlinputelement aelement); unsigned long countlogins(in astring ahostname, in astring aactionurl, in astring ahttprealm); boolean fillform(in nsidomhtmlformelement aform); void findlogins(out unsigned long count, in astring ahostname, in astring aactionurl, in astring ahttprealm, [retval, array, size_is(count)] out nsilogininfo logins); void getalldisabledhosts([optional] out unsigned long count, [retval, array, size_is(count)] out wstring hostnames); voi...
...cription aelement missing description return value missing description countlogins() returns the number of logins matching the specified criteria.
...ns matching the specified criteria.
...And 9 more matches
nsIProcessScriptLoader
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used by parent process message managers to load scripts into a child process.
...sisupports this interface is used by parent process message managers to load scripts into a child process.
...always be true.
...And 9 more matches
Browser Side Plug-in API - Plugins
d; calling them from other threads is not supported and may have unpredictable results.
... have unpredictable results.
...ctable results.
...And 9 more matches
Clients.openWindow() - Web APIs
the openwindow() method of the clients interface creates a new top level browsing context and loads a given url.
... the openwindow() method of the clients interface creates a new top level browsing context and loads a given url.
...l throw an invalidaccesserror.
...And 9 more matches
FileSystemEntrySync - Web APIs
g: this api was never accepted and never became standardized.
...r accepted and never became standardized.
...dardized.
...And 9 more matches
HTMLMediaElement.srcObject - Web APIs
ment interface sets or returns the object which serves as the source of the media associated with the htmlmediaelement.
...rface sets or returns the object which serves as the source of the media associated with the htmlmediaelement.
...turns the object which serves as the source of the media associated with the htmlmediaelement.
...And 9 more matches
PaymentRequest: merchantvalidation event - Web APIs
the merchant validation process works.
... bubbles no cancelable no interface merchantvalidationevent event handler property onmerchantvalidation examples in this example, an event handler is established for the merchantvalidation event.
...face merchantvalidationevent event handler property onmerchantvalidation examples in this example, an event handler is established for the merchantvalidation event.
...And 9 more matches
RTCIceServer - Web APIs
operties credential optional the credential to use when logging into the server.
...if the rtciceserver represents a turn server.
...es defined by the rtcicecredentialtype enum.
...And 9 more matches
ValidityState.typeMismatch - Web APIs
the read-only typemismatch property of a validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's type attribute.
...ype expects one or more valid email addresses, depending on whether the multiple attribute is present.
...depending on whether the multiple attribute is present.
...And 9 more matches
WindowEventHandlers.onhashchange - Web APIs
window.addeventlistener('hashchange', hashhandler, false); overriding the hash this function sets a new hash dynamically, setting it randomly to one of two values.
...hchange', hashhandler, false); overriding the hash this function sets a new hash dynamically, setting it randomly to one of two values.
...h this function sets a new hash dynamically, setting it randomly to one of two values.
...And 9 more matches
Code snippets - Archive of obsolete content
.queryinterface(components.interfaces.nsiinterfacerequestor) .getinterface(components.interfaces.nsidomwindow); // obtain a reference to sync's tabs "engine." let tabsengine = weave.service.enginemanager.get("tabs"); // iterate over each client having data.
... .queryinterface(components.interfaces.nsiinterfacerequestor) .getinterface(components.interfaces.nsidomwindow); // obtain a reference to sync's tabs "engine." let tabsengine = weave.service.enginemanager.get("tabs"); // iterate over each client having data.
...face(components.interfaces.nsidomwindow); // obtain a reference to sync's tabs "engine." let tabsengine = weave.service.enginemanager.get("tabs"); // iterate over each client having data.
...And 8 more matches
Routing in Ember - Learn web development
previous overview: client-side javascript frameworks next in this article we learn about routing, or url-based filtering as it is sometimes referred to.
... previous overview: client-side javascript frameworks next in this article we learn about routing, or url-based filtering as it is sometimes referred to.
...tes: at minimum, it is recommended that you are familiar with the core html, css, and javascript languages, and have knowledge of the terminal/command line.
...And 8 more matches
Application cache implementation overview
ing a top level document from offline cache this happens in nshttpchannel::opencacheentry().
... in nsdocshell::douriload().
...rom the most recent cache group containing the entry under the url or a matching namespace.
...And 8 more matches
Mozilla internal string guide
minated buffer containing the same value as the source string.
... as the source string.
...will create a temporary buffer if necessary.
...And 8 more matches
Using the Beacon API - Web APIs
con requests use http post and do not require a response.
...thod takes two arguments: the url and the data to send.
...aybufferview, blob, domstring, or formdata.
...And 8 more matches
HTMLAnchorElement - Web APIs
s a domstring indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
...the proposed name of the file.
... adapt it.
...And 8 more matches
HTMLAreaElement - Web APIs
is a domstring indicating that the linked resource is intended to be downloaded rather than displayed in the browser.
...sent the proposed name of the file.
...er will adapt it.
...And 8 more matches
Using microtasks in JavaScript with queueMicrotask() - Web APIs
e risk of user-discernible delays in operations.
... delays in operations.
...dering on conditional use of promises one situation in which microtasks can be used to ensure that the ordering of execution is always consistent is when promises are used in one clause of an if...else statement (or other conditional statement), but not in the other clause.
...And 8 more matches
Dragging and Dropping Multiple Items - Web APIs
x is equivalent to calling setdata().
...n clear an item using the mozcleardataat() method.
...thod.
...And 8 more matches
Ajax navigation example - Web APIs
unction ajaxerror () { alert("unknown error."); } function ajaxload () { var vmsg, nstatus = this.status; switch (nstatus) { case 200: vmsg = json.parse(this.responsetext); document.title = opageinfo.title = vmsg.page; document.getelementbyid(stargetid).innerhtml = vmsg.content; if (bupdateurl) { history.pushstate(opageinfo, opageinfo.title, opageinfo.url); bupdateurl = false; } break; default: vmsg = nstatus + ": " + (ohttpstatus[nstatus] || "unknown"); switch (math.floor(nstatus / 100)) { /* case 1: // info...
...ent error #" + vmsg); break; case 5: /* server error 5xx */ alert("server error #" + vmsg); break; default: /* unknown status */ ajaxerror(); } } closereq(); } function filterurl (surl, sviewmode) { return surl.replace(rsearch, "") + ("?" + surl.replace(rhost, "&").replace(rview, sviewmode ?
...rn surl.replace(rsearch, "") + ("?" + surl.replace(rhost, "&").replace(rview, sviewmode ?
...And 8 more matches
LocalFileSystem - Web APIs
ccess callback // and the last one is the error callback // for denial of access and other errors.
...and the last one is the error callback // for denial of access and other errors.
...nied.
...And 8 more matches
LocalFileSystemSync - Web APIs
2, 2012 and follows the w3c specifications (working draft) drafted on april 19, 2011.
...e last one is the error callback // for denial of access and other errors.
...error callback // for denial of access and other errors.
...And 8 more matches
Using Web Workers - Web APIs
s from using eval().
...json and a few things that json can't — like circular references.
...complex data and have to call many different functions both on the main page and in the worker, you can create a system which groups everything together.
...And 8 more matches
CSS values and units - CSS: Cascading Style Sheets
e value can include a single integer or keyword, to a series of keywords and values with or without units.
...pecified as the property’s initial value.
...as the property’s initial value.
...And 8 more matches
<image> - CSS: Cascading Style Sheets
Web › CSS › image
the <image> css data type represents a two-dimensional image.
...een readers, as a screen reader will not announce its presence and therefore convey nothing to its users.
...ll not announce its presence and therefore convey nothing to its users.
...And 8 more matches
Identifying resources on the Web - HTTP
the target of an http request is called a "resource", whose nature isn't defined further; it can be a document, a photo, or anything else.
... identifier (uri) used throughout http for identifying resources.
...i) used throughout http for identifying resources.
...And 8 more matches
self - Archive of obsolete content
ough the data object.
...or data that will be modified or parsed in some way, such as json, xml, plain text, or perhaps an html template.
... modified or parsed in some way, such as json, xml, plain text, or perhaps an html template.
...And 7 more matches
ui/button/toggle - Archive of obsolete content
's show() method or the panel's constructor: var { togglebutton } = require('sdk/ui/button/toggle'); var panels = require("sdk/panel"); var self = require("sdk/self"); var button = togglebutton({ id: "my-button", label: "my button", icon: { "16": "./icon-16.png", "32": "./icon-32.png", "64": "./icon-64.png" }, onchange: handlechange }); var panel = panels.panel({ contenturl: self.data.url("panel.html"), onhide: handlehide }); function handlechange(state) { if (state.checked) { panel.show({ position: button }); } } function handlehide() { button.state('window', {checked: false}); } disabling buttons you can disable a button by setting its disabled property to true.
...me type id string the button's id.
...e unique within your add-on.
...And 7 more matches
ui/toolbar - Archive of obsolete content
'); var { toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var previous = actionbutton({ id: "previous", label: "previous", icon: "./icons/previous.png" }); var next = actionbutton({ id: "next", label: "next", icon: "./icons/next.png" }); var play = actionbutton({ id: "play", label: "play", icon: "./icons/play.png" }); var frame = new frame({ url: "./frame-player.html" }); var toolbar = toolbar({ title: "player", items: [previous, next, play, frame] }); the toolbar appears just above the content window: to destroy a toolbar call its destroy() method.
...rameter must also be supplied, and must contain at least object.
... label: "my-button", icon: "./my-button.png" }); var frame = new frame({ url: "./my-frame.html" }); var toolbar = toolbar({ title: "player", items: [button, frame] }); this add-on creates a toolbar with one frame, that's hidden initially, and that logs show and hide events: var { toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var frame = new frame({ url: "./frame.html" }); var toolbar = toolbar({ title: "my toolbar", items: [frame], hidden: true, onshow: showing, onhide: hiding }); function showing(e) { console.log("showing"); console.log(e); } function hiding(e) { console.log("hiding"); console.log(e); } parameters options : object required options: name type title string the too...
...And 7 more matches
Creating annotations - Archive of obsolete content
in the dom tree, has an attribute named "id".
...delement(); }); save this code in a new file called selector.js in your add-on's data directory.
...lector.js in your add-on's data directory.
...And 7 more matches
Promises - Archive of obsolete content
adapt to a promise-based approach.
... // use the response to construct form data object for the // second request.
...= resolve; xhr.onerror = reject; xhr.open("post", updateurl); xhr.send(form); }); // use the response of the second request.
...And 7 more matches
Using JavaScript code modules
// displays "foo" alert(bar.size + 3); // displays "6" alert(dummy); // displays "dummy is not defined" because 'dummy' was not exported from the module note: when you're testing changes to a code module, be sure to change the application's build id (e.g., the version) before your next test run; otherwise, you may find yourself running the previous version of your module's code.
... // displays "dummy is not defined" because 'dummy' was not exported from the module note: when you're testing changes to a code module, be sure to change the application's build id (e.g., the version) before your next test run; otherwise, you may find yourself running the previous version of your module's code.
...efined" because 'dummy' was not exported from the module note: when you're testing changes to a code module, be sure to change the application's build id (e.g., the version) before your next test run; otherwise, you may find yourself running the previous version of your module's code.
...And 7 more matches
Places Developer Guide
rapper apis for easing access to a number of firefox utilities and services nsiplacestransactionsservice - a firefox service for modifying bookmarks in a transactional manner, providing facilities for undo/redo places utilities for javascript - accessors and helper functions for firefox and extensions creating bookmarks, folders and other items creating a bookmark // create an nsiuri for the url to be bookmarked.
...story = cc["@mozilla.org/browser/nav-history-service;1"] .getservice(ci.nsinavhistoryservice); var query = history.getnewquery(); // specify folders to be searched var folders = [bookmarks.toolbarfolder, bookmarks.bookmarksmenufolder, bookmarks.unfiledbookmarksfolder]; query.setfolders(folders, folders.length); // specify terms to search for, matches against title, url and tags query.searchterms = "firefox"; var options = history.getnewqueryoptions(); options.querytype = options.query_type_bookmarks; var result = history.executequery(query, options); // the root property of a query result is an object representing the folder you specified above.
..."); var visitdate = date.now() * 1000; // in microseconds var referreruri = null; // or a uri var isredirect = false; var visittype = history.transition_link; // the visit is from a link that was clicked var sessionid = 0; // can link the visit with a specific browsing session history.addvisit(oururi, visitdate, referreruri, visittype, isredirect, sessionid); // add a visit to a url, with a page title and visited time // via nsibrowserhistory.
...And 7 more matches
nsIChromeFrameMessageManager
content/base/public/nsimessagemanager.idlscriptable handles loading of content in a remote chrome frame.
...sagemanager.idlscriptable handles loading of content in a remote chrome frame.
... gecko 2.0 inherits from: nsiframemessagemanager last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void loadframescript(in astring aurl, in boolean aallowdelayedload); void removedelayedframescript(in astring aurl); methods loadframescript() loads a script into the remote frame.
...And 7 more matches
nsILoginManagerStorage
ng a login manager storage module for details.
...se the login manager service and nsiloginmanager interface instead.
...he login to add to the login storage.
...And 7 more matches
nsINavBookmarksService
getitemtype(in long long aitemid); astring getkeywordforbookmark(in long long aitemid); obsolete since gecko 40.0 astring getkeywordforuri(in nsiuri auri); obsolete since gecko 40.0 nsitransaction getremovefoldertransaction(in long long aitemid); nsiuri geturiforkeyword(in astring keyword); obsolete since gecko 40.0 void importbookmarkshtml(in nsiuri url); obsolete since gecko 1.9 void importbookmarkshtmltofolder(in nsiuri url, in print64 folder); obsolete since gecko 1.9 print32 indexoffolder(in print64 parent, in print64 folder); obsolete since gecko 1.9 print32 indexofitem(in print64 folder, in nsiuri uri); obsolete since gecko 1.9 long long insertbookmark(in long long aparentid, in nsiuri auri, in long aind...
... getfoldertitle( in print64 folder ); parameters folder the folder whose title should be retrieved.
...ameters keyword the keyword whose uri is to be retrieved.
...And 7 more matches
nsIUpdate
n.
... 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview nsiupdatepatch getpatchat(in unsigned long index); nsidomelement serialize(in nsidomdocument updates); attributes attribute type description appversion astring the application version of this update.
... is typically localized to display in the update prompt.
...And 7 more matches
Body.blob() - Web APIs
Web › API › Body › blob
of the body mixin takes a response stream and reads it to completion.
...n takes a response stream and reads it to completion.
...d a blob.type of empty string "", which renders it useless for methods like url.createobjecturl.
...And 7 more matches
HTMLImageElement - Web APIs
tching the image, whether successful or not.
...element.sizes a domstring reflecting the sizes html attribute.
...-separated conditional sizes for the image; that is, for a given viewport size, a particular image size is to be used.
...And 7 more matches
History.replaceState() - Web APIs
the history.replacestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
... the history.replacestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
... the history.replacestate() method modifies the current history entry, replacing it with the stateobj, title, and url passed in the method parameters.
...And 7 more matches
Response - Web APIs
Web › API › Response
pe.fetch().
...tus code of the response.
...onse.
...And 7 more matches
WindowOrWorkerGlobalScope.fetch() - Web APIs
connect-src directive of content security policy rather than the directive of the resources it's retrieving.
...r is not set on fetch requests with a method of head or get.
...tance.
...And 7 more matches
@font-face - CSS: Cascading Style Sheets
the @font-face css at-rule specifies a custom font with which to display text; the font can be loaded from either a remote server or a locally-installed font on the user's own computer.
... the @font-face css at-rule specifies a custom font with which to display text; the font can be loaded from either a remote server or a locally-installed font on the user's own computer.
...00; font-variant a font-variant value.
...And 7 more matches
Box-shadow generator - CSS: Cascading Style Sheets
-size: 16px; font-family: "segoe ui", arial, helvetica, sans-serif; line-height: 1.5em; color: #fff; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-checkbox > input { display: none; } .ui-checkbox > label { font-size: 12px; padding: 0.333em 1.666em 0.5em; height: 1em; line-height: 1em; background-color: #888; background-image: url("https://mdn.mozillademos.org/files/5683/disabled.png"); background-position: center center; background-repeat: no-repeat; color: #fff; border-radius: 3px; font-weight: bold; float: left; } .ui-checkbox .text { padding-left: 34px; background-position: center left 10px; } .ui-checkbox .left { padding-right: 34px; padding-left: 1.666em; background-position: center right 10px; } .ui-c...
...und-repeat: no-repeat; color: #fff; border-radius: 3px; font-weight: bold; float: left; } .ui-checkbox .text { padding-left: 34px; background-position: center left 10px; } .ui-checkbox .left { padding-right: 34px; padding-left: 1.666em; background-position: center right 10px; } .ui-checkbox > label:hover { cursor: pointer; } .ui-checkbox > input:checked + label { background-image: url("https://mdn.mozillademos.org/files/5681/checked.png"); background-color: #379b4a; } /* * box shadow generator tool */ body { max-width: 1000px; height: 800px; margin: 20px auto 0; font-family: "segoe ui", arial, helvetica, sans-serif; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-...
... border: 1px solid #ccc; border-radius: 3px; display: block; background-position: center center; background-repeat: no-repeat; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; float: left; } #layer_manager .button:hover { background-color: #3380c4; border: 1px solid #3380c4; cursor: pointer; } #layer_manager [data-type='add'] { background-image: url("https://mdn.mozillademos.org/files/5685/add-black.png"); } #layer_manager [data-type='add']:hover { background-image: url("https://mdn.mozillademos.org/files/5687/add-white.png"); } #layer_manager [data-type='move-up'] { background-image: url("https://mdn.mozillademos.org/files/5697/up-black.png"); margin-left: 5%; margin-right: 5%; } #layer_manager [data-type='move-up']:hover { backgrou...
...And 7 more matches
Linear-gradient Generator - CSS: Cascading Style Sheets
t: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-color-picker .picking-area { width: 198px; height: 198px; margin: 5px; border: 1px solid #ddd; position: relative; float: left; display: table; } .ui-color-picker .picking-area:hover { cursor: default; } /* hsv format - hue-saturation-value(brightness) */ .ui-color-picker .picking-area { background: url("images/picker_mask.png"); background: -moz-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -moz-linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -webkit-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), -webkit-linear-gradient(left, #fff 0%, rgba(255, 255, 255, 0) 100%); background: -ms-linear-gradient(bottom, #000 0%, rgba(0, 0, 0, 0) 100%), ...
...dius: 50%; border: 1px solid #fff; position: absolute; top: 45%; left: 45%; } .ui-color-picker .picker:before { width: 8px; height: 8px; content: ""; position: absolute; border: 1px solid #999; border-radius: 50%; } .ui-color-picker .hue, .ui-color-picker .alpha { width: 198px; height: 28px; margin: 5px; border: 1px solid #fff; float: left; } .ui-color-picker .hue { background: url("images/hue_mask.png"); background: -moz-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -webkit-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -ms-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00...
...0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -ms-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); background: -o-linear-gradient(left, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); } .ui-color-picker .alpha { border: 1px solid #ccc; background: url("images/alpha_mask.png"); } .ui-color-picker .slider-picker { width: 2px; height: 100%; margin: 0 0 0 -2px; border: 1px solid #777; background-color: #fff; position: relative; top: -1px; } /* input hsv and rgb */ .ui-color-picker .info { width: 200px; margin: 5px; float: left; } .ui-color-picker .info * { float: left; } .ui-color-picker .input { width: 64px; margin: 5px 2px; fl...
...And 7 more matches
HTML attribute reference - HTML: Hypertext Markup Language
r controls in this form can by default have their values automatically completed by the browser.
...er encoding of the page or script.
....
...And 7 more matches
Cross-Origin Resource Sharing (CORS) - HTTP
Web › HTTP › CORS
, the only headers which are allowed to be manually set are those which the fetch spec defines as a “cors-safelisted request-header”, which are: accept accept-language content-language content-type (but note the additional requirements below) dpr downlink save-data viewport-width width the only allowed values for the content-type header are: application/x-www-form-urlencoded multipart/form-data text/plain no event listeners are registered on any xmlhttprequestupload object used in the request; these are accessed using the xmlhttprequest.upload property.
...itch to a blacklist model for restricted accept headers in simple cors requests no other browsers implement these extra restrictions, because they’re not part of the spec.
...ors requests no other browsers implement these extra restrictions, because they’re not part of the spec.
...And 7 more matches
Index - HTTP
Web › HTTP › Headers › Index
cording to the users' own preferred language.
... administrators to control resources the user agent is allowed to load for a given page.
...y (csp) child-src directive defines the valid sources for web workers and nested browsing contexts loaded using elements such as <frame> and <iframe>.
...And 7 more matches
tabs/utils - Archive of obsolete content
ndow optional.
....
... window : window a browser window.
...And 6 more matches
ui/button/action - Archive of obsolete content
me type id string the button's id.
...e unique within your add-on.
...hen the button is in the toolbar, this appears in a tooltip, and when the button is in the menu, it appears underneath the button as a legend.
...And 6 more matches
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
to run xpconnect without confirmation in the future.
....
...parent directory of the current file.
...And 6 more matches
Index of archived content - Archive of obsolete content
l10n notifications page-mod page-worker panel passwords private-browsing querystring request selection self simple-prefs simple-storage system tabs timers ui url widget windows low-level apis /loader chrome console/plain-text console/traceback content/content content/loader content/mod content/symbiont content/worker core/he...
... core/promise dev/panel event/core event/target frame/hidden-frame frame/utils fs/path io/byte-streams io/file io/text-streams lang/functional lang/type loader/cuddlefish loader/sandbox net/url net/xhr places/bookmarks places/favicon places/history platform/xpcom preferences/event-target preferences/service remote/child remote/parent stylesheet/style stylesheet/utils system/child_process system/environment ...
...event targets creating reusable modules developing for firefox mobile display a popup getting started (jpm) getting started (cfx) list open tabs listen for page load listening for load and unload localization logging modifying web pages based on url modifying the page hosted by a tab open a web page troubleshooting unit testing using xpcom without chrome using third-party modules (jpm) bootstrapped extensions code snippets alerts and notifications ...
...And 6 more matches
A XUL Bestiary - Archive of obsolete content
things.
...css skin, plus whatever localization and platform-specific files are part of that xul interface.
...re part of that xul interface.
...And 6 more matches
Templates - Archive of obsolete content
ozilla provides a bookmarks datasource so it can be used to get the data.
...archy such as a tree or menu.
...or menu.
...And 6 more matches
Gecko Compatibility Handbook - Archive of obsolete content
orer but display blank areas between the images in gecko browsers.
...n the images in gecko browsers.
...ype.
...And 6 more matches
Extentsions FAQ - Archive of obsolete content
text box when a button is clicked?
...refox tab isn't quite the same as having a completely separate explorer window.
...the display of the folder contents, and all of the right-click context menu support is present so it should meet my needs.
...And 6 more matches
Backgrounds and borders - Learn web development
background property is a shorthand for a number of background longhand properties that we will meet in this lesson.
... the box is (0,0), and the box is positioned along the horizontal (x) and vertical (y) axes.
...0).
...And 6 more matches
Web fonts - Learn web development
specify font files to be downloaded along with your website as it is accessed, meaning that any browser that supports web fonts can have exactly the fonts you specify available to it.
...mplement these fonts in your demo, follow these steps: rename the unzipped directory to something easy and simple, like fonts.
...your css as appropriate, to apply the custom fonts to your html.
...And 6 more matches
What are hyperlinks? - Learn web development
te, a web server, and a search engine.
...summary hyperlinks, usually called links, are a foundational concept behind the web.
...und documents and how to access them.
...And 6 more matches
Deploying our app - Learn web development
t a few things to consider for this particular project: generating a production build: ensuring files are minimised, chunked, have tree-shaking applied, and that versions are "cache busted".
... this particular project: generating a production build: ensuring files are minimised, chunked, have tree-shaking applied, and that versions are "cache busted".
...e fresh code each time an update is made to the deployed code.
...And 6 more matches
Creating Sandboxed HTTP Connections
introduction starting with gecko 1.8.1 (firefox 2), it is possible to create sandboxed http connections which don't affect the user's cookies.
... of it.
...ements all the required methods and calls the specified callback function when the connection has completed.
...And 6 more matches
Firefox and the "about" protocol
there is a lot of useful information about firefox hidden away behind the about: url protocol.
... there is a lot of useful information about firefox hidden away behind the about: url protocol.
... there is a lot of useful information about firefox hidden away behind the about: url protocol.
...And 6 more matches
Localization content best practices
e string or, if there is a significant need for a placeholder, use a placeholder.
...icant need for a placeholder, use a placeholder.
...eholder.
...And 6 more matches
Using the Places tagging service
uris for a given tag, and to retrieve all tags for a uri.
... initiating the tagging service before using the tagging service, you need to obtain a reference to an instance of it: var taggingsvc = components.classes["@mozilla.org/browser/tagging-service;1"] .getservice(components.interfaces.nsitaggingservice); tagging a uri the nsitaggingservice.taguri() method tags a url with the given set of tags.
... service, you need to obtain a reference to an instance of it: var taggingsvc = components.classes["@mozilla.org/browser/tagging-service;1"] .getservice(components.interfaces.nsitaggingservice); tagging a uri the nsitaggingservice.taguri() method tags a url with the given set of tags.
...And 6 more matches
Components.utils.import
omponents.utils.import was introduced in firefox 3 and is used for sharing code between different scopes easily.
... for sharing code between different scopes easily.
...import xpcomutils.jsm to avoid copy/pasting long xpcom component registration boilerplate in your component files.
...And 6 more matches
nsIDOMWindowInternal
resizeby(in long widthdif, in long heightdif) void scroll(in long xscroll, in long yscroll) nsidomwindow window interface's open() method loads the specified resource into the browsing context (window, <iframe> or tab) with the specified name.
... a reference to the window that opened this current window.
...e maximum number of pixels that the document can be scrolled vertically.
...And 6 more matches
MailNews Protocols
r, nsimapincomingserver, nsnntpincomingserver.
....
...ailfolder (for pop3) a service class, which generally sits between the folder object or the server object, and the protocol object.
...And 6 more matches
FileSystemEntry - Web APIs
hrough other apis.
...his interface serves as a base class for the filesystemfileentry and filesystemdirectoryentry interfaces, which provide features specific to file system entries representing files and directories, respectively.
...lass for the filesystemfileentry and filesystemdirectoryentry interfaces, which provide features specific to file system entries representing files and directories, respectively.
...And 6 more matches
Drag Operations - Web APIs
ng a drag and drop operation.
...operty called datatransfer which holds the drag data (datatransfer is a datatransfer object).
...type.
...And 6 more matches
Request() - Web APIs
Web › API › Request › Request
the request() constructor creates a new request object.
... containing any custom settings that you want to apply to the request.
..., cors, no-cors, same-origin, or navigate.
...And 6 more matches
ServiceWorkerContainer.register() - Web APIs
the register() method of the serviceworkercontainer interface creates or updates a serviceworkerregistration for the given scripturl.
... the register() method of the serviceworkercontainer interface creates or updates a serviceworkerregistration for the given scripturl.
... method unconditionally from the controlled page.
...And 6 more matches
@namespace - CSS: Cascading Style Sheets
@namespace is an at-rule that defines xml namespaces to be used in a css style sheet.
... @namespace is an at-rule that defines xml namespaces to be used in a css style sheet.
... @namespace is an at-rule that defines xml namespaces to be used in a css style sheet.
...And 6 more matches
mask-image - CSS: Cascading Style Sheets
the mask-image css property sets the image that is used as mask layer for an element.
... the mask-image css property sets the image that is used as mask layer for an element.
... the mask-image css property sets the image that is used as mask layer for an element.
...And 6 more matches
mask - CSS: Cascading Style Sheets
Web › CSS › mask
e any mask settings earlier in the cascade.
...der has also been reset to allow the new styles to take effect.
...rthand for the following css properties: mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size syntax /* keyword values */ mask: none; /* image values */ mask: url(mask.png); /* pixel image used as mask */ mask: url(masks.svg#star); /* element within svg graphic used as mask */ /* combined values */ mask: url(masks.svg#star) luminance; /* element within svg graphic used as luminance mask */ mask: url(masks.svg#star) 40px 20px; /* element within svg graphic used as mask positioned 40px from the top and 20px from the left */ mask: url(masks.svg#star) 0 0/50px 50px; /* element within svg graphic used as mask with a width and height of 50px */ mask: url(masks.svg#star) repeat-x; /* el...
...And 6 more matches
Setting up adaptive streaming media sources - Developer guides
presentation and four separate video representations.
...epresentations.
...static" mediapresentationduration="pt654s" minbuffertime="pt2s" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011"> <baseurl>http://example.com/ondemand/</baseurl> <period> <!-- english audio --> <adaptationset mimetype="audio/mp4" codecs="mp4a.40.5" lang="en" subsegmentalignment="true" subsegmentstartswithsap="1"> <representation id="1" bandwidth="64000"> <baseurl>elephantsdream_aac48k_064.mp4.dash</baseurl> </representation> </adaptationset> <!-- video --> <adaptationset mimetype="video/mp4" codecs="avc1.42401e" subsegmentalignment="true" subsegmentstartswithsap="1"> <representation id="2" bandwidth="100000" width="480" height="360"> <baseurl>elephantsdream_h264bpl30_0100.264.dash</baseurl> </representation> <re...
...And 6 more matches
Communicating With Other Scripts - Archive of obsolete content
ed "listen.html" hosted at "my-domain.org", and we want to send messages from the add-on to a script embedded in that page.
...ody> </html> messaging from page script to content script sending messages from the page script to the content script is just the same, but in reverse.
...ore firefox 30 here's an example showing how to use custom dom events to send a message from a content script to a page script, before firefox 30.
...And 5 more matches
content/loader - Archive of obsolete content
one of the building blocks for those modules that use content scripts to interact with web content, such as panel and page-mod.
...emits a propertychange event, enabling its users to take the appropriate action.
...but don't themselves load content, such as page-mod.
...And 5 more matches
Progress Listeners - Archive of obsolete content
stener object.
... value in address bar changes a commonly asked question is how to get notified whenever the url in the address bar (also known as location bar) changes.
...ou will get notified when user navigates to another page (by clicking a link, using the back/forward button, by typing an address in the location bar, etc.) and also when user switches tabs.
...And 5 more matches
Properties - Archive of obsolete content
scheme with an install.rdf manifest.
...ts.
...can be 0 for custom builds.
...And 5 more matches
Content Panels - Archive of obsolete content
note that xul does have a wizard element which may be used to create wizard interfaces.
...sed to create wizard interfaces.
...fferent file.
...And 5 more matches
Application Update - Archive of obsolete content
download no prompt download no prompt // 1 download no prompt download no prompt if no incompatibilities // 2 download no prompt prompt // // see chart in nsupdateservice.js.in for more details // pref("app.update.mode", 1); // if set to true, the update service will present no ui for any event.
... download no prompt prompt // // see chart in nsupdateservice.js.in for more details // pref("app.update.mode", 1); // if set to true, the update service will present no ui for any event.
...resent no ui for any event.
...And 5 more matches
NPStream - Archive of obsolete content
« gecko plugin api reference « plug-in side plug-in api summary represents a stream of data either produced by the browser and consumed by the plug-in, or produced by the plug-in and consumed by the browser.
...32 lastmodified; void* notifydata; const char *headers; } npstream; fields the data structure has the following fields: plug-in-private value that the plug-in can use to store a pointer to private data associated with the instance; not modified by the browser.
...lastmodified; void* notifydata; const char *headers; } npstream; fields the data structure has the following fields: plug-in-private value that the plug-in can use to store a pointer to private data associated with the instance; not modified by the browser.
...And 5 more matches
Theme changes in Firefox 2 - Archive of obsolete content
window to add a new feed reader.
...r the window to subscribe to a news feed.
...browsing warning window is displayed.
...And 5 more matches
XForms Custom Controls - Archive of obsolete content
since firefox 4, xbl and xul are disabled by default for all pages not loaded from a chrome:// url.
... since firefox 4, xbl and xul are disabled by default for all pages not loaded from a chrome:// url.
... example, in the mozilla xforms extension we will render a combobox widget when appearance='minimal' on a select1 control.
...And 5 more matches
Async scripts for asm.js - Game development
html spec) are: <script async>code</script> and var script = document.createelement('script'); script.innerhtml = "code"; document.body.appendchild(script); both are counted as 'inline' scripts and get compiled and then run immediately.
...ipt'); script.innerhtml = "code"; document.body.appendchild(script); both are counted as 'inline' scripts and get compiled and then run immediately.
... script.innerhtml = "code"; document.body.appendchild(script); both are counted as 'inline' scripts and get compiled and then run immediately.
...And 5 more matches
The HTML5 input types - Learn web development
g firefox for android keyboard screenshot provides an example: due to the wide variety of phone number formats around the world, this type of field does not enforce any constraints on the value entered by a user (this means it may include letters, etc.).
...es an example: due to the wide variety of phone number formats around the world, this type of field does not enforce any constraints on the value entered by a user (this means it may include letters, etc.).
...riety of phone number formats around the world, this type of field does not enforce any constraints on the value entered by a user (this means it may include letters, etc.).
...And 5 more matches
Setting up your own test automation environment - Learn web development
labs, and browserstack.
...r = new webdriver.builder() .forbrowser('firefox') .build(); getting the document you want to test to load the page you actually want to test, you use the get() method of the driver instance you created earlier, for example: driver.get('http://www.google.com'); note: see the webdriver class reference for details of the features in this section and the ones below it.
...x') .build(); getting the document you want to test to load the page you actually want to test, you use the get() method of the driver instance you created earlier, for example: driver.get('http://www.google.com'); note: see the webdriver class reference for details of the features in this section and the ones below it.
...And 5 more matches
Index
tput-file specify the output file name for new crl.
...y the output file name for new crl.
...ment tool's capabilities are grouped as follows, using these combinations of options and arguments.
...And 5 more matches
JS::CompileOptions
lobal for which it is loaded.
...d.
...iled to duplicate owning properties.
...And 5 more matches
nsIAnnotationService
double type constant.
...e to it's temporary use as expire_never in bug 319455.
...xpectations about actions such as clear history.
...And 5 more matches
nsIBrowserHistory
toolkit/components/places/public/nsibrowserhistory.idlscriptable a browser-specific interface to global history.
...the unix epoch.
...as moved to another interface in gecko 22.0.
...And 5 more matches
nsICookieStorage
h it may still work in some browsers, its use is discouraged since it could be removed at any time.
...time.
...cle.
...And 5 more matches
nsIDocShell
ly.
...default of zoom.
...void addsessionstorage( in nsiprincipal principal, in nsidomstorage storage ); parameters principal the principal to use for the new storage object.
...And 5 more matches
nsIErrorService
r messages.
... void registererrorstringbundle(in short errormodule, in string stringbundleurl); void registererrorstringbundlekey(in nsresult error, in string stringbundlekey); void unregistererrorstringbundle(in short errormodule); void unregistererrorstringbundlekey(in nsresult error); methods geterrorstringbundle() retrieves a string bundle url for an error module.
... void unregistererrorstringbundlekey(in nsresult error); methods geterrorstringbundle() retrieves a string bundle url for an error module.
...And 5 more matches
nsIGlobalHistory
docshell/base/nsiglobalhistory.idlscriptable the interface to global history.
... docshell/base/nsiglobalhistory.idlscriptable the interface to global history.
...ell/base/nsiglobalhistory.idlscriptable the interface to global history.
...And 5 more matches
nsINavHistoryService
true if history is disabled.
...or bookmarks.
...ed soon after this message has been received, that transition will be marked as following a bookmark.
...And 5 more matches
nsIStringBundleOverride
-override;1"] .getservice(components.interfaces.nsistringbundleoverride); note: you should never need to use this service directly.
... .getservice(components.interfaces.nsistringbundleoverride); note: you should never need to use this service directly.
...ically try to load this service.
...And 5 more matches
Debugger.Script - Firefox Developer Tools
body of a function—that is, all the code in the function that is not contained within some nested function.
...operty.
...d a< to refer to a function that occurs somewhere within an expression that is assigned toa.
...And 5 more matches
DevTools API - Firefox Developer Tools
tool.
...he toolbox for the shortcut was triggered for.
...ed.
...And 5 more matches
Cross-global fetch usage - Web APIs
this article explains an edge case that occurs with fetch (and potentially other apis exhibiting the same kind of resource retrieval behavior).
... this article explains an edge case that occurs with fetch (and potentially other apis exhibiting the same kind of resource retrieval behavior).
... retrieval behavior).
...And 5 more matches
HTMLCanvasElement.toBlob() - Web APIs
supported image format.
...rted image format.
...t.
...And 5 more matches
MediaRecorder: dataavailable event - Web APIs
dler property: ondataavailable.
...: ondataavailable.
...e.
...And 5 more matches
Response.clone() - Web APIs
Web › API › Response › clone
response1.clone(); parameters none.
...ers none.
...e a response object.
...And 5 more matches
Using readable streams - Web APIs
chunks out of the stream using the readablestreamdefaultreader.read() method.
...sing the readablestreamdefaultreader.read() method.
...estreamdefaultreader.read() method.
...And 5 more matches
Functions and classes available to Web Workers - Web APIs
eworkerregistration you can register a service worker from inside a standard worker, and use associated functionality.
...service worker from inside a standard worker, and use associated functionality.
...rom inside a standard worker, and use associated functionality.
...And 5 more matches
Sending and Receiving Binary Data - Web APIs
binary file as a blob by setting the string "blob" to the responsetype property.
...nsetype property.
...open("get", "/myfile.png", true); oreq.responsetype = "blob"; oreq.onload = function(oevent) { var blob = oreq.response; // ...
...And 5 more matches
attr() - CSS: Cascading Style Sheets
Web › CSS › attr
ntal, and support for the type-or-unit parameter is sparse.
...alue of an attribute of the selected element and use it in the stylesheet.
...ed as a css <string>.
...And 5 more matches
Allowing cross-origin use of images and canvas - HTML: Hypertext Markup Language
if the foreign content comes from an image obtained from either as htmlcanvaselement or imagebitmap, and the image source doesn't meet the same origin rules, attempts to read the canvas's contents are blocked.
...s running on.
...t starts the download (say, when the user clicks a "download" button), looks like this: function startdownload() { let imageurl = "https://cdn.glitch.com/4c9ebeb9-8b9a-4adc-ad0a-238d9ae00bb5%2fmdn_logo-only_color.svg?1535749917189"; downloadedimg = new image; downloadedimg.crossorigin = "anonymous"; downloadedimg.addeventlistener("load", imagereceived, false); downloadedimg.src = imageurl; } we're using a hard-coded url here (imageurl), but that could easily come from anywhere.
...And 5 more matches
<input type="submit"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › submit
agent.
... the http method (get or post) to use when submitting the form.
...string indicating the url to which to submit the data.
...And 5 more matches
CSP: base-uri - HTTP
the http content-security-policy base-uri directive restricts the urls which can be used in a document's <base> element.
... the http content-security-policy base-uri directive restricts the urls which can be used in a document's <base> element.
...ontent-security-policy: base-uri <source>; content-security-policy: base-uri <source> <source>; sources while this directive uses the same arguments as other csp directives, some of them don’t make sense for `<base>`, such as the keywords 'unsafe-inline' and 'strict-dynamic' <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
...And 5 more matches
Content-Security-Policy - HTTP
control the locations from which certain resource types may be loaded.
...style> elements and <link> elements with rel="stylesheet".
...> element.
...And 5 more matches
Location - HTTP
Web › HTTP › Headers › Location
the location response header indicates the url to redirect a page to.
... the use of a get method, 307 (temporary redirect) and 308 (permanent redirect) don't change the method used in the original request; 301 (permanent redirect) and 302 (found) doesn't change the method most of the time, though older user-agents may (so you basically don't know).
...01 (permanent redirect) and 302 (found) doesn't change the method most of the time, though older user-agents may (so you basically don't know).
...And 5 more matches
JavaScript modules - JavaScript
lor }; } you can export functions, var, let, const, and — as we'll see later — classes.
...er }; importing features into your script once you've exported some features out of your module, you need to import them into your script to be able to use them.
...ative to the site root, which for our basic-modules example would be /js-examples/modules/basic-modules.
...And 5 more matches
Destructuring assignment - JavaScript
sion match when the regular expression exec() method finds a match, it returns an array containing first the entire matched portion of the string and then the portions of the string that matched each parenthesized group in the regular expression.
...regular expression exec() method finds a match, it returns an array containing first the entire matched portion of the string and then the portions of the string that matched each parenthesized group in the regular expression.
... match, it returns an array containing first the entire matched portion of the string and then the portions of the string that matched each parenthesized group in the regular expression.
...And 5 more matches
async function - JavaScript
ion will fail-fast regardless of the order of rejection of the promises, and the error will always occur within the configured promise chain, enabling it to be caught in the normal way.
... of the order of rejection of the promises, and the error will always occur within the configured promise chain, enabling it to be caught in the normal way.
...thin the configured promise chain, enabling it to be caught in the normal way.
...And 5 more matches
Cross-domain Content Scripts - Archive of obsolete content
scripts included in html files shipped with your add-on.
...cluded in html files shipped with your add-on.
...n.
...And 4 more matches
loader/sandbox - Archive of obsolete content
experimental create javascript sandboxes and execute scripts in them.
... create javascript sandboxes and execute scripts in them.
... // evaluate code as if it was loaded from 'http://foo.com/bar.js' and // start from 2nd line.
...And 4 more matches
Displaying annotations - Archive of obsolete content
end messages to the main module, asking it to show or hide the annotation.
... $(annotationanchor).attr('annotation', annotation.annotationtext); } save this in data as matcher.js.
...tationtext); } save this in data as matcher.js.
...And 4 more matches
Adding Toolbars and Toolbar Buttons - Archive of obsolete content
ll begin to happen.
... the mac os ones are 20x20 pixels.
...tents are 16x16 and they are centered in the frame.
...And 4 more matches
Extensions support in SeaMonkey 2 - Archive of obsolete content
plication> <!-- seamonkey --> <description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minversion>2.0</em:minversion> <em:maxversion>2.*</em:maxversion> </description> </em:targetapplication> the install.js is not supported any more and should be removed.
...<description> <em:id>{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}</em:id> <em:minversion>2.0</em:minversion> <em:maxversion>2.*</em:maxversion> </description> </em:targetapplication> the install.js is not supported any more and should be removed.
...d2a-b7eb-24ecf4f6b63a}</em:id> <em:minversion>2.0</em:minversion> <em:maxversion>2.*</em:maxversion> </description> </em:targetapplication> the install.js is not supported any more and should be removed.
...And 4 more matches
Adding preferences to an extension - Archive of obsolete content
api.
... sample to look over, or to use as the basis for your own extension.
...s the basis for your own extension.
...And 4 more matches
Creating a Microsummary - Archive of obsolete content
u want to create microsummaries for pages on your site, you can write generators to do so, but a simpler and more efficient approach is to create the microsummaries on the server-side using the same tools and languages you already use to generate pages.
...te pages on your site, you could write php code to output a microsummary when the view=microsummary url parameter is present.
...rite php code to output a microsummary when the view=microsummary url parameter is present.
...And 4 more matches
Proxy UI - Archive of obsolete content
when needed.
... auto-detect proxy settings for this network [ ] manual proxy configuration: [ ] automatic proxy configuration url: behavior default value: "no proxy" is selected all other "type" radio buttons are enabled, but not selected.
...ing changes click "ok" to save changes to prefs.
...And 4 more matches
The life of an HTML HTTP request - Archive of obsolete content
warning: the content of this article may be out of date.
... warning: the content of this article may be out of date.
... warning: the content of this article may be out of date.
...And 4 more matches
Binding Attachment and Detachment - Archive of obsolete content
attachment using css bindings can be attached to elements through css using the -moz-binding property.
... attachment using css bindings can be attached to elements through css using the -moz-binding property.
...can be attached to elements through css using the -moz-binding property.
...And 4 more matches
Introduction - Archive of obsolete content
rieves its data from a datasource.
...mple.rdf" querytype="rdf"> this example specifies the datasource 'http://www.xulplanet.com/ds/sample.rdf', using the datasource type rdf as indicated by the querytype attribute'.
...urce 'http://www.xulplanet.com/ds/sample.rdf', using the datasource type rdf as indicated by the querytype attribute'.
...And 4 more matches
Simple Example - Archive of obsolete content
« previousnext » let's look a more useful example, this time for a template that will show a list of photos.
...kin/images/t/palace.jpg" dc:title="palace from above"/> <rdf:description rdf:about="http://www.xulplanet.com/ndeakin/images/t/canal.jpg" dc:title="canal"/> <rdf:description rdf:about="http://www.xulplanet.com/ndeakin/images/t/obelisk.jpg" dc:title="obelisk"/> </rdf:rdf> in this example, we have three images, which can be identified by urls.
...e="palace from above"/> <rdf:description rdf:about="http://www.xulplanet.com/ndeakin/images/t/canal.jpg" dc:title="canal"/> <rdf:description rdf:about="http://www.xulplanet.com/ndeakin/images/t/obelisk.jpg" dc:title="obelisk"/> </rdf:rdf> in this example, we have three images, which can be identified by urls.
...And 4 more matches
Creating a Skin - Archive of obsolete content
eate a directory somewhere where you want to place the skin files.
...ces of 'classic/1.0' to 'blueswayedshoes/1.0'.
...ne.
...And 4 more matches
Introduction to RDF - Archive of obsolete content
ace for rdf was declared so that the rdf elements are recognized properly.
...ell.
... folders or categories of bookmarks.
...And 4 more matches
Using the Editor from XUL - Archive of obsolete content
identifies this as the window content element, i.e.
...mmand state maintenance, starting and stopping the throbber etc.).
...hich is to become editable.
...And 4 more matches
application/http-index-format specification - Archive of obsolete content
is data should be presented to the user when they are viewing data drawn from the file.
... data whose definition stems from a prior 200 line.
...ns that represent data described by a previous 200 line.
...And 4 more matches
Windows Media in Netscape - Archive of obsolete content
function creategeckowmpobject(clid) { var player = null; try { player = new geckoactivexobject(clid); } catch(e) { ; } return player; } // instantiate players wmp7or9 = creategeckowmpobject("{6bf52a52-394a-11d3-b153-00c04f79faa6}"); if (!wmp7or9) { wmp64 = creategeckowmpobject("{22d6f312-b0f6-11d0-94ab-0080c74c7e95}"); } .....
...talled windows media player 7 or above, the snippet of code below should produce a windows media control and play a song.
...ue="media/preludesteel.wma"> your browser does not support the activex windows media player </object> the same markup (used above and shown below) will work in both ie and netscape 7.1.
...And 4 more matches
Images in HTML - Learn web development
mage on a webpage?
...ty element (meaning that it has no text content or closing tag) that requires a minimum of one attribute to be useful — src (sometimes spoken as its full title, source).
... that requires a minimum of one attribute to be useful — src (sometimes spoken as its full title, source).
...And 4 more matches
Choosing the right approach - Learn web development
cient or flexible.
... delayed operation repeating operation multiple sequential operations multiple simultaneous operations no yes (recursive callbacks) yes (nested callbacks) no code example an example that loads a resource via the xmlhttprequest api (run it live, and see the source): function loadasset(url, type, callback) { let xhr = new xmlhttprequest(); xhr.open('get', url); xhr.responsetype = type; xhr.onload = function() { callback(xhr.response); }; xhr.send(); } function displayimage(blob) { let objecturl = url.createobjecturl(blob); let image = document.createelement('img'); image.src = objecturl; document.body.appendchild(image); } loadasset('coffee.jpg', 'blob', displayimage); pitfalls nested callbacks can be cumbersome and hard t...
...ation repeating operation multiple sequential operations multiple simultaneous operations no no yes see promise.all(), below code example the following code fetches an image from the server and displays it inside an <img> element; see it live also, and see also the source code: fetch('coffee.jpg') .then(response => response.blob()) .then(myblob => { let objecturl = url.createobjecturl(myblob); let image = document.createelement('img'); image.src = objecturl; document.body.appendchild(image); }) .catch(e => { console.log('there has been a problem with your fetch operation: ' + e.message); }); pitfalls promise chains can be complex and hard to parse.
...And 4 more matches
FxAccountsProfileClient.jsm
the fxaccountsprofileclient.jsm javascript module provides a way to fetch firefox accounts profile information.
...accountsprofileclient.jsm javascript module provides a way to fetch firefox accounts profile information.
...sm javascript module provides a way to fetch firefox accounts profile information.
...And 4 more matches
Rhino shell
the javascript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.
... the javascript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.
... the javascript shell provides a simple way to run scripts in batch mode or an interactive environment for exploratory programming.
...And 4 more matches
Feed content access API
lain text or html.
...sending it to the parser is done using code similar to this: fetch: function(feedurl) { var httprequest = null; function inforeceived() { var data = httprequest.responsetext; var ioservice = components.classes['@mozilla.org/network/io-service;1'] .getservice(components.interfaces.nsiioservice); var uri = ioservice.newuri(feedurl, null, null); if (data.length) { var parser = components.classes["@mozilla.org/feed-processor;1"] .createinstance(components.interfaces.nsifeedprocessor); var listener = new feedtestresultlistener(); try { parser.listener = listener; parser.parsefromstring(data, uri); } catch(e) { ...
... .createinstance(components.interfaces.nsifeedprocessor); var listener = new feedtestresultlistener(); try { parser.listener = listener; parser.parsefromstring(data, uri); } catch(e) { alert("error parsing feed."); } } } httprequest = new xmlhttprequest(); httprequest.open("get", feedurl, true); try { httprequest.onload = inforeceived; httprequest.send(null); } catch(e) { alert(e); } } the nsifeedprocessor interface lets you parse the feed data from several possible sources; in this case, we're loading a document into a string, then parsing that string using its parsefromstring() method.
...And 4 more matches
Using XPCOM Utilities to Make Things Easier
ows an nsembedcstring being used to pass an nsacstring to a method that's not expected to modify the string.
...od(in acstring thing); char* str = "how now brown cow?"; nsembedcstring data(str); rv = object->method(data); in this next example, the method is going to set the value of the string - as it might need to do when it returns the name of the current user or the last viewed url.
...tr = "how now brown cow?"; nsembedcstring data(str); rv = object->method(data); in this next example, the method is going to set the value of the string - as it might need to do when it returns the name of the current user or the last viewed url.
...And 4 more matches
nsIHTMLEditor
; void setcaretafterelement(in nsidomelement aelement); void setcssinlineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void setdocumenttitle(in astring atitle); void setinlineproperty(in nsiatom aproperty, in astring aattribute, in astring avalue); void setparagraphformat(in astring aparagraphformat); void updatebaseurl(); attributes attribute type description iscssenabled boolean a boolean which is true is the htmleditor has been instantiated with css knowledge and if the css pref is currently checked.
...etinlineproperty() void setinlineproperty( in nsiatom aproperty, in astring aattribute, in astring avalue ); parameters aproperty aattribute avalue setparagraphformat() insert a block paragraph tag around selection.
... void setinlineproperty( in nsiatom aproperty, in astring aattribute, in astring avalue ); parameters aproperty aattribute avalue setparagraphformat() insert a block paragraph tag around selection.
...And 4 more matches
nsILoginInfo
implemented by: @mozilla.org/login-manager/logininfo;1.
... boolean equals(in nsilogininfo alogininfo); void init(in astring ahostname, in astring aformsubmiturl, in astring ahttprealm, in astring ausername, in astring apassword, in astring ausernamefield, in astring apasswordfield); boolean matches(in nsilogininfo alogininfo, in boolean ignorepassword); attributes attribute type description formsubmiturl astring the origin, not url, a form-based login was submitted to.
...n ignorepassword); attributes attribute type description formsubmiturl astring the origin, not url, a form-based login was submitted to.
...And 4 more matches
nsISound
nd instances may play the sounds using another thread; however, this is not controlled by the caller.
...stances may play the sounds using another thread; however, this is not controlled by the caller.
...p menu is shown.
...And 4 more matches
Debugger - Firefox Developer Tools
sionofyellow) this method is never called.
...ources([query])(not yet implemented) return an array of all debugger.source instances matchingquery.
...et implemented) return an array of all debugger.source instances matchingquery.
...And 4 more matches
Cache - Web APIs
Web › API › Cache
ue for entries in the cache.
...st in the cache object.
...cachenamesset.has(cachename)) { // if this cache name isn't present in the set of "expected" cache names, then delete it.
...And 4 more matches
Using images - Web APIs
orth.
...tion() { // execute drawimage statements here }, false); img.src = 'myimage.png'; // set source path if you're only using one external image this can be a good approach, but once you need to track more than one we need to resort to something more clever.
...g.src = 'myimage.png'; // set source path if you're only using one external image this can be a good approach, but once you need to track more than one we need to resort to something more clever.
...And 4 more matches
Audio() - Web APIs
the audio() constructor creates and returns a new htmlaudioelement which can be either attached to a document for the user to interact with and/or listen to, or can be used offscreen to manage and play audio.
... the audio() constructor creates and returns a new htmlaudioelement which can be either attached to a document for the user to interact with and/or listen to, or can be used offscreen to manage and play audio.
... the audio() constructor creates and returns a new htmlaudioelement which can be either attached to a document for the user to interact with and/or listen to, or can be used offscreen to manage and play audio.
...And 4 more matches
HTMLIFrameElement.referrerPolicy - Web APIs
te of the <iframe> element defining which referrer is sent when fetching the resource.
... if no policy is specified.
...f the document for other cases.
...And 4 more matches
MediaDevices.getUserMedia() - Web APIs
cant privacy concerns, getusermedia()'s specification lays out a wide array of privacy and security requirements that browsers are obligated to meet.
...to do so.
...e are a number of insecure ways to load a document that might, in turn, attempt to call getusermedia().
...And 4 more matches
MediaStream Recording API - Web APIs
options); mediarecorder.ondataavailable = handledataavailable; mediarecorder.start(); function handledataavailable(event) { console.log("data-available"); if (event.data.size > 0) { recordedchunks.push(event.data); console.log(recordedchunks); download(); } else { // ...
...ns); mediarecorder.ondataavailable = handledataavailable; mediarecorder.start(); function handledataavailable(event) { console.log("data-available"); if (event.data.size > 0) { recordedchunks.push(event.data); console.log(recordedchunks); download(); } else { // ...
...der.ondataavailable = handledataavailable; mediarecorder.start(); function handledataavailable(event) { console.log("data-available"); if (event.data.size > 0) { recordedchunks.push(event.data); console.log(recordedchunks); download(); } else { // ...
...And 4 more matches
Web-based protocol handlers - Web APIs
ot a difficult process.
... as a potential handler for a given protocol.
...e, used as the handler.
...And 4 more matches
PasswordCredential - Web APIs
n the credential member of the init object for global fetch.
... passwordcredential()secure context creates a new passwordcredential object.
...sswordcredential object.
...And 4 more matches
Response.headers - Web APIs
Web › API › Response › headers
interface contains the headers object associated with the response.
...the headers object associated with the response.
...ct associated with the response.
...And 4 more matches
Response.ok - Web APIs
Web › API › Response › ok
ean stating whether the response was successful (status in the range 200-299) or not.
...the response was successful (status in the range 200-299) or not.
... successful (status in the range 200-299) or not.
...And 4 more matches
Response.status - Web APIs
Web › API › Response › status
of the response (e.g., 200 for a success).
...g., 200 for a success).
...ccess).
...And 4 more matches
Response.statusText - Web APIs
g to the status code (e.g., ok for 200).
... (e.g., ok for 200).
...00).
...And 4 more matches
Response.type - Web APIs
Web › API › Response › type
etch() would reject the promise.
...the promise.
...yntax var mytype = response.type; value a responsetype string indicating the type of the response.
...And 4 more matches
SharedWorker() - Web APIs
the sharedworker() constructor creates a sharedworker object that executes the script at the specified url.
...er object that executes the script at the specified url.
...cified url.
...And 4 more matches
background-image - CSS: Cascading Style Sheets
lor.
...ion critical to understanding the page's overall purpose, it is better to describe it semantically in the document.
...derstanding wcag, guideline 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 formal definition initial valuenoneapplies toall elements.
...And 4 more matches
clip-path - CSS: Cascading Style Sheets
Web › CSS › clip-path
be shown.
...; clip-path: path('m0.5,1 c0.5,1,0,0.7,0,0.3 a0.25,0.25,1,1,1,0.5,0.3 a0.25,0.25,1,1,1,1,0.3 c1,0.7,0.5,1,0.5,1 z'); /* box and shape values combined */ clip-path: padding-box circle(50px at 0 100px); /* global values */ clip-path: inherit; clip-path: initial; clip-path: unset; the clip-path property is specified as one or a combination of the values listed below.
...other than none results in the creation of a new stacking context the same way that css opacity does for values other than 1.
...And 4 more matches
image() - CSS: Cascading Style Sheets
the image() css function defines an <image> in a similar fashion to the <url> function, but with added functionality including specifying the image's directionality, specifying fallback images for when the preferred image is not supported, displaying just a part of that image defined by a media fragment, and specifying a solid color as a fallback in case none of the specified images are able to be rendered.
...allback images for when the preferred image is not supported, displaying just a part of that image defined by a media fragment, and specifying a solid color as a fallback in case none of the specified images are able to be rendered.
...percentage>, <percentage>, <alpha-value>?
...And 4 more matches
mask-border - CSS: Cascading Style Sheets
the mask-border css shorthand property lets you create a mask along the edge of an element's border.
...orthand property lets you create a mask along the edge of an element's border.
...r.
...And 4 more matches
Getting Started - Developer guides
true); httprequest.send(); the first parameter of the call to open() is the http request method – get, post, head, or another method supported by your server.
...is the http request method – get, post, head, or another method supported by your server.
..., like a query string: "name=value&anothername="+encodeuricomponent(myvar)+"&so=on" or other formats, like multipart/form-data, json, xml, and so on.
...And 4 more matches
Constraint validation - Developer guides
creates a constraint that checks whether the value is a valid e-mail address.
...er the value is a valid e-mail address.
... e-mail address.
...And 4 more matches
<img>: The Image Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › img
ion; including which versions introduced support and specific special features that may have been introduced later.
...rsions introduced support and specific special features that may have been introduced later.
... navigating to an origin without https.
...And 4 more matches
CSP: connect-src - HTTP
the http content-security-policy (csp) connect-src directive restricts the urls which can be loaded using script interfaces.
...yes.
... name or ip address, as well as an optional url scheme and/or port number.
...And 4 more matches
CSP: font-src - HTTP
lback yes.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 4 more matches
CSP: form-action - HTTP
the http content-security-policy (csp) form-action directive restricts the urls which can be used as the target of a form submissions from a given context.
... navigation directive default-src fallback no.
... name or ip address, as well as an optional url scheme and/or port number.
...And 4 more matches
CSP: frame-ancestors - HTTP
sources <source> can be one of the following: the frame-ancestors directive’s syntax is similar to a source list of other directives (e.g.
..., separated by spaces.
...orts are valid for the source.
...And 4 more matches
CSP: navigate-to - HTTP
the http content-security-policy (csp) navigate-to directive restricts the urls to which a document can initiate navigations by any means including <form> (if form-action is not specified), <a>, window.location, window.open, etc.
... navigation directive default-src fallback no.
... name or ip address, as well as an optional url scheme and/or port number.
...And 4 more matches
CSP: prefetch-src - HTTP
.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 4 more matches
CSP: script-src-attr - HTTP
the http content-security-policy (csp) script-src-attr directive specifies valid sources for javascript inline event handlers.
...content-security-policy: script-src-attr <source>; content-security-policy: script-src-attr <source> <source>; script-src-attr can be used in conjunction with script-src: content-security-policy: script-src <source>; content-security-policy: script-src-attr <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... name or ip address, as well as an optional url scheme and/or port number.
...And 4 more matches
CSP: script-src - HTTP
the http content-security-policy (csp) script-src directive specifies valid sources for javascript.
... yes.
... name or ip address, as well as an optional url scheme and/or port number.
...And 4 more matches
CSP: style-src - HTTP
ck yes.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 4 more matches
Gradients in SVG - SVG: Scalable Vector Graphics
stop2" offset="50%"/> <stop class="stop3" offset="100%"/> </lineargradient> <lineargradient id="gradient2" x1="0" x2="0" y1="0" y2="1"> <stop offset="0%" stop-color="red"/> <stop offset="50%" stop-color="black" stop-opacity="0"/> <stop offset="100%" stop-color="blue"/> </lineargradient> <style type="text/css"><![cdata[ #rect1 { fill: url(#gradient1); } .stop1 { stop-color: red; } .stop2 { stop-color: black; stop-opacity: 0; } .stop3 { stop-color: blue; } ]]></style> </defs> <rect id="rect1" x="10" y="10" rx="15" ry="15" width="100" height="100"/> <rect x="10" y="120" rx="15" ry="15" width="100" height="100" fill="url(#gradient2)"/> </svg> screenshotlive sample above is an example of a linea...
...n the xml tree.
...ike with fill and stroke, you can specify a stop-opacity attribute to set the opacity at that position (again, in ff3 you can also use rgba values to do this).
...And 4 more matches
Same-origin policy - Web security
the same-origin policy is a critical security mechanism that restricts how a document or script loaded from one origin can interact with a resource from another origin.
...tors.
... origin if the protocol, port (if specified), and host are the same for both.
...And 4 more matches
Reddit Example - Archive of obsolete content
29 onwards.
...nel containing the mobile version of reddit.
...hen needs to send the url to the add-on script.
...And 3 more matches
How to convert an overlay extension to restartless - Archive of obsolete content
manager api: // this is the old way of getting one of your files const myaddonid = ...; // just store a constant with your id components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid(myaddonid,function(addon) { var file = services.io.newuri("resource://myaddon/filename.ext",null,null) .queryinterface(components.interfaces.nsifileurl) .file; var stream = components.classes["@mozilla.org/network/file-input-stream;1"] .createinstance(components.interfaces.nsifileinputstream) .queryinterface(components.interfaces.nsiseekablestream); stream.init(file, 0x01, 0444, 0); // read-only, read by owner/group/others, normal behavior /* do stuff */...
... just makes things confusing.
...it's available in the global for a window, but in jsm you'll need to fetch it from an interface: const xmlhttprequest = components.constructor("@mozilla.org/xmlextras/xmlhttprequest;1", "nsixmlhttprequest"); here's how to load a file using it: function loadfile(url,type,returnresult) { var request = new xmlhttprequest(); request.open("get", url, true); // async=true request.responsetype = type; request.onerror = function(event) { logerrormessage("error attempting to load: " + url); returnresult(null); }; request.onload = function(event) { if (request.response) returnresult(request.response); else request.onerror(event); }; request.send(); } loadfile("chrome...
...And 3 more matches
Connecting to Remote Content - Archive of obsolete content
previousnext » using xmlhttprequest xmlhttprequest is an api for transferring xml between a local script and a remote server via http.
...l = "http://www.example.com/"; let request = components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"] .createinstance(components.interfaces.nsixmlhttprequest); request.onload = function(aevent) { window.alert("response text: " + aevent.target.responsetext); }; request.onerror = function(aevent) { window.alert("error status: " + aevent.target.status); }; request.open("get", url, true); request.send(null); in this example we demonstrate how to make a xmlhttprequest call in asynchronous mode.
...t can be manipulated using dom methods.
...And 3 more matches
Creating a dynamic status bar extension - Archive of obsolete content
val is specified in milliseconds).
...called whenever the user clicks on the status bar panel, when our extension is first added to a browser window, and by the interval handler to periodically update the display.
...com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv&s=goog'; // ...
...And 3 more matches
In-Depth - Archive of obsolete content
hat is used in mozilla and adds an image to the one side of it.
... one side of it.
...o the other side of the toolbar.
...And 3 more matches
Java in Firefox Extensions - Archive of obsolete content
e at http://brett-zamir.me/java_demo/ ] for privileges, the basic procedure is: download and include http://simile.mit.edu/repository/jav...nsionutils.jar within your extension (you can also build your own from the source files at http://simile.mit.edu/repository/jav...xtensionutils/ ) build and add references leading to this jar and all other jars in your extension within an array of java.net.url's, pass to java.net.urlclassloader to get a class loader, and finally pass the classloader and array to a function which gives the necessary privileges: // this function will be called to give the necessary privileges to your jar files // however, the policy never comes into play, because // (1) adding permissions doesn't add to the policy itself, and // (2) addurl alone does not set the ...
...a class loader, and finally pass the classloader and array to a function which gives the necessary privileges: // this function will be called to give the necessary privileges to your jar files // however, the policy never comes into play, because // (1) adding permissions doesn't add to the policy itself, and // (2) addurl alone does not set the grant codebase function policyadd (loader, urls) { try { //if have trouble with the policy try changing it to //edu.mit.simile.javafirefoxextensionutils.urlsetpolicy var str = 'edu.mit.simile.javafirefoxextensionutils.urlsetpolicy'; var policyclass = java.lang.class.forname( str, true, loader ); var policy = policyclass.newinstance(); ...
...onutils.urlsetpolicy'; var policyclass = java.lang.class.forname( str, true, loader ); var policy = policyclass.newinstance(); policy.setouterpolicy(java.security.policy.getpolicy()); java.security.policy.setpolicy(policy); policy.addpermission(new java.security.allpermission()); for (var j=0; j < urls.length; j++) { policy.addurl(urls[j]); } }catch(e) { alert(e+'::'+e.linenumber); } } //get extension folder installation path...
...And 3 more matches
jspage - Archive of obsolete content
tion(f){var e;for(var d=0,c=1;1;d+=c,c/=2){if(f>=(7-4*d)/11){e=c*c-math.pow((11-6*d-11*f)/4,2); break;}}return e;},elastic:function(b,a){return math.pow(2,10*--b)*math.cos(20*b*math.pi*(a[0]||1)/3);}});["quad","cubic","quart","quint"].each(function(b,a){fx.transitions[b]=new fx.transition(function(c){return math.pow(c,[a+2]); });});var request=new class({implements:[chain,events,options],options:{url:"",data:"",headers:{"x-requested-with":"xmlhttprequest",accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",issuccess:null,emulation:true,urlencoded:true,encoding:"utf-8",evalscripts:false,evalresponse:false,nocache:false},initialize:function(a){this.xhr=new browser.request(); this.setoptions(a);this.options.issuccess=this.optio...
...esponseheader(a);}.bind(this));},check:function(){if(!this.running){return true; }switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.bind(this,arguments));return false;}return false;},send:function(k){if(!this.check(k)){return this; }this.running=true;var i=$type(k);if(i=="string"||i=="element"){k={data:k};}var d=this.options;k=$extend({data:d.data,url:d.url,method:d.method},k);var g=k.data,b=string(k.url),a=k.method.tolowercase(); switch($type(g)){case"element":g=document.id(g).toquerystring();break;case"object":case"hash":g=hash.toquerystring(g);}if(this.options.format){var j="format="+this.options.format; g=(g)?j+"&"+g:j;}if(this.options.emulation&&!["get","post"].contains(a)){var h="_method="+a;g=(g)?h+"&"+g:h;a="post";}if(this.options.urle...
...);break;case"object":case"hash":g=hash.toquerystring(g);}if(this.options.format){var j="format="+this.options.format; g=(g)?j+"&"+g:j;}if(this.options.emulation&&!["get","post"].contains(a)){var h="_method="+a;g=(g)?h+"&"+g:h;a="post";}if(this.options.urlencoded&&a=="post"){var c=(this.options.encoding)?"; charset="+this.options.encoding:""; this.headers.set("content-type","application/x-www-form-urlencoded"+c);}if(this.options.nocache){var f="nocache="+new date().gettime();g=(g)?f+"&"+g:f; }var e=b.lastindexof("/");if(e>-1&&(e=b.indexof("#"))>-1){b=b.substr(0,e);}if(g&&a=="get"){b=b+(b.contains("?")?"&":"?")+g;g=null;}this.xhr.open(a.touppercase(),b,this.options.async); this.xhr.onreadystatechange=this.onstatechange.bind(this);this.headers.each(function(m,l){try{this.xhr.setrequestheader(l,m...
...And 3 more matches
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
a (html): <font color="blue">big blue</font> internet explorer: <font color="blue">big blue</font> below is a list of commands that execcommand in mozilla supports: table 6.
...ontsize changes the font size used in the selected text.
...e value of the specified header.
...And 3 more matches
Venkman Internals - Archive of obsolete content
ust my knowledge of venkman, which is quite limited.
...rom a subdirectory of "locale" and injects variables.
...nction is scriptwrapper.jsdscript.baselinenumber (one based).
...And 3 more matches
InstallTrigger.startSoftwareUpdate - Archive of obsolete content
installtrigger.startsoftwareupdate this is a very simple example of the installtrigger object's principal method, startsoftwareupdate, which takes a string representing the path to the xpi and installs that xpi on the local machine.
... installtrigger.startsoftwareupdate this is a very simple example of the installtrigger object's principal method, startsoftwareupdate, which takes a string representing the path to the xpi and installs that xpi on the local machine.
... installtrigger.startsoftwareupdate this is a very simple example of the installtrigger object's principal method, startsoftwareupdate, which takes a string representing the path to the xpi and installs that xpi on the local machine.
...And 3 more matches
Additional Navigation - Archive of obsolete content
as the object of a triple is a common way to filter out specific items.
...jpg) (?start = http://www.xulplanet.com/rdf/myphotos, ?photo = http://www.xulplanet.com/ndeakin/images/t/obselisk.jpg) when evaluating the triple, the template builder will iterate over the three potential results found so far.
...h, since it wouldn't be particularly useful.
...And 3 more matches
RDF Modifications - Archive of obsolete content
'move' to adjust the source of a 'triple'.
...s are finished.
...er by adding a new result, removing an old result, or by changing the value of some part of the result.
...And 3 more matches
Textbox (XPFE autocomplete) - Archive of obsolete content
n this attribute.
...r, the value may still be modified by a script.
...ponents may be installed which add others.
...And 3 more matches
Code Samples - Archive of obsolete content
ecify the file in the normal way.
....classes["@mozilla.org/file/local;1"] .createinstance(components.interfaces.nsilocalfile) file.initwithpath(path) file.launch() open a web page if your button is in firefox or seamonkey, use code like this to open a web page.
...amonkey, use code like this to open a web page.
...And 3 more matches
Creating a Window - Archive of obsolete content
value vertical, which means that the items are placed in a column.
...umn.
...ock with other elements (the buttons, menus and other user interface components) to appear in the window.
...And 3 more matches
Browser-side plug-in API - Archive of obsolete content
r and called by the plug-in.
... by the plug-in.
...these two sides of the plug-in api interact, see the how plug-ins work and overview of plug-in structure sections in the introduction.
...And 3 more matches
-moz-binding - Archive of obsolete content
the -moz-binding css property is used by mozilla-based applications to attach an xbl binding to a dom element.
... the -moz-binding css property is used by mozilla-based applications to attach an xbl binding to a dom element.
... the -moz-binding css property is used by mozilla-based applications to attach an xbl binding to a dom element.
...And 3 more matches
Mobile accessibility - Learn web development
for details on all the options available under the global and local context menus, see use global and local context menus.
...rowsing web pages you can use the local context menu while in a web browser to find options to navigate web pages using just the headings, form controls, or links, or navigate line by line, etc.
... can use the local context menu while in a web browser to find options to navigate web pages using just the headings, form controls, or links, or navigate line by line, etc.
...And 3 more matches
Build your own function - Learn web development
button.
...wing inside the <script> element: function displaymessage() { } we start off with the keyword function, which means we are defining a function.
...e() { } we start off with the keyword function, which means we are defining a function.
...And 3 more matches
Working with JSON - Learn web development
allows us to make network requests to retrieve resources from a server via javascript (e.g.
...l snippets), meaning that we can update small sections of content without having to reload the entire page.
...'https://mdn.github.io/learning-area/javascript/oojs/json/superheroes.json'; to create a request, we need to create a new request object instance from the xmlhttprequest constructor, using the new keyword.
...And 3 more matches
Gecko info for Windows accessibility vendors
nt default role for root object of document dhtml: role="wairole:document" sets state_readonly indicates it is a normal document, otherwise we're in an editor.
...state_busy when a new document is loading in this space.
...s when a cell has selection.
...And 3 more matches
Frame script loading and lifetime
loading frame scripts to load a frame script use the loadframescript() function.
...er.messagemanager; mm.loadframescript('data:,dump("foo\\n")', true); loadframescript() takes two mandatory parameters: a url that points to the frame script you want to load a boolean flag, allowdelayedload note: if the message manager is a global frame message manager or a window message manager, loadframescript() may load the script multiple times, once in each applicable frame.
...foo\\n")', true); loadframescript() takes two mandatory parameters: a url that points to the frame script you want to load a boolean flag, allowdelayedload note: if the message manager is a global frame message manager or a window message manager, loadframescript() may load the script multiple times, once in each applicable frame.
...And 3 more matches
HTMLIFrameElement.download()
warning: removed in firefox 65.
... warning: removed in firefox 65.
...ox 65.
...And 3 more matches
HTMLIFrameElement.executeScript()
the browser api for more details.
....executescript(script, options); return value a domrequest object that returns an onsuccess handler if the script is successfully executed against the loaded content, or an onerror handler if not.
... executed against the loaded content, or an onerror handler if not.
...And 3 more matches
mozbrowserlocationchange
me type read only domstring the type of event.
...string the type of event.
...an anonymous javascript object with the following properties: url a domstring representing the url of the new location.
...And 3 more matches
Interfacing with the Add-on Repository
y code module before you can use the add-on repository api, you need to import the code module: components.utils.import("resource://gre/modules/addonrepository.jsm"); having done this, you can then access the api through the resulting addonrepository object.
... to query to get recommended add-ons is not included by default; see bug 628785.
...mended add-ons is not included by default; see bug 628785.
...And 3 more matches
Webapps.jsm
_savewidgetsfullpath: function(amanifest, adestapp) appkind: function(aapp, amanifest) updatepermissionsforapp: function(aid, aispreinstalled) updateofflinecacheforapp: function(aid) installpreinstalledapp: function installpreinstalledapp(aid) removeifhttpsduplicate: function(aid) installsystemapps: function() loadandupdateapps: function() updatedatastore: function(aid, aorigin, amanifesturl, amanifest) _registersystemmessagesforentrypoint: function(amanifest, aapp, aentrypoint) _registerinterappconnectionsforentrypoint: function(amanifest, aapp,) _registersystemmessages: function(amanifest, aapp) _registerinterappconnections: function(amanifest, aapp) _createactivitiestoregister: function(amanifest, aapp, aentrypoint, arunupdate) _registeractivitiesforapps: function(aappstoreg...
...egisterupdatehandler: function(ahandler) unregisterupdatehandler: function(ahandler) notifyupdatehandlers: function(aapp, amanifest, azippath) _getappdir: function(aid) _writefile: function(apath, adata) dogetlist: function() doexport: function(amsg, amm) doimport: function(amsg, amm) doextractmanifest: function(amsg, amm) dolaunch: function (adata, amm) launch: function launch(amanifesturl, astartpoint, atimestamp, aonsuccess, aonfailure) close: function close(aapp) canceldownload: function canceldownload(amanifesturl, aerror) startofflinecachedownload: function(amanifest, aapp, aprofiledir, aisupdate) computemanifesthash: function(amanifest) updateapphandlers: function(aoldmanifest, anewmanifest, aapp) checkforupdate: function(adata, amm) doinstall: function doinstall(adata...
...unction doinstallpackage(adata, amm) pushcontentaction: function(windowid) popcontentaction: function(windowid) actioncancelled: function(windowid) denyinstall: function(adata) _setupapp: function(adata, aid) _cloneapp: function(adata, anewapp, alocalemanifest, amanifest, aid, alocalid) _writemanifestfile: function(aid, aispackage, ajsonmanifest) _nextlocalid: function() _appidformanifesturl: function(auri) makeappid: function() _saveapps: function() _readmanifests: function(adata) _ensuresufficientstorage: function(anewapp) _checkdownloadsize: function(afreebytes, anewapp) _getrequestchannel: function(afullpackagepath, aislocalfileinstall, aoldapp,) _senddownloadprogressevent: function(anewapp, aprogress) _getpackage: function(arequestchannel, aid, aoldapp, anewapp) _comput...
...And 3 more matches
Localizing with Koala
onfigure the application choose "firefox" as the application.
...ing directory 40357 files updated, 0 files merged, 0 files removed, 0 files unresolved configure the locale locale id: x-testing (put your locale's code) version: 3.6 location: choose the folder where you want to keep the localized files or leave empty for now check "mercurial" if you wish to use mercurial to keep the revision history of your files (very recommended) existing localizations: url: if you're editing an existing localization or you already have a repository set up (either on hg.mozilla.org or bitbucket), type the url of the remote repository, e.g.
...sh to use mercurial to keep the revision history of your files (very recommended) existing localizations: url: if you're editing an existing localization or you already have a repository set up (either on hg.mozilla.org or bitbucket), type the url of the remote repository, e.g.
...And 3 more matches
nsICRLManager
string computenextautoupdatetime(in nsicrlinfo info, in unsigned long autoupdatetype, in double noofdays); void deletecrl(in unsigned long crlindex); nsiarray getcrls(); void importcrl([array, size_is(length)] in octet data, in unsigned long length, in nsiuri uri, in unsigned long type, in boolean dosilentdownload, in wstring crlkey); void reschedulecrlautoupdate(); boolean updatecrlfromurl(in wstring url, in wstring key); constants constant value description type_autoupdate_time_based 1 type_autoupdate_freq_based 2 methods computenextautoupdatetime() wstring computenextautoupdatetime( in nsicrlinfo info, in unsigned long autoupdatetype, in double noofdays ); parameters info autoupdatetype noofdays return value deletecrl() delete the crl.
...importcrl( [array, size_is(length)] in octet data, in unsigned long length, in nsiuri uri, in unsigned long type, in boolean dosilentdownload, in wstring crlkey ); parameters data length uri type dosilentdownload crlkey reschedulecrlautoupdate() this would reschedule the autoupdate of crls with auto update enable.
..., in unsigned long length, in nsiuri uri, in unsigned long type, in boolean dosilentdownload, in wstring crlkey ); parameters data length uri type dosilentdownload crlkey reschedulecrlautoupdate() this would reschedule the autoupdate of crls with auto update enable.
...And 3 more matches
nsICrashReporter
iteminidumpforexception(in voidptr aexceptioninfo); native code only!
...dumpforexception(in voidptr aexceptioninfo); native code only!
... voidptr aexceptioninfo); native code only!
...And 3 more matches
nsIScriptError
ated.
... sourceline astring the line from the file specified by sourcename.
...g 0x8 just a log message methods init() initializes the object with information describing the error which occurred.
...And 3 more matches
nsIWindowWatcher
wserchrome getchromeforwindow(in nsidomwindow awindow); nsiauthprompt getnewauthprompter(in nsidomwindow aparent); nsiprompt getnewprompter(in nsidomwindow aparent); nsidomwindow getwindowbyname(in wstring atargetname, in nsidomwindow acurrentwindow); nsisimpleenumerator getwindowenumerator(); nsidomwindow openwindow(in nsidomwindow aparent, in string aurl, in string aname, in string afeatures, in nsisupports aarguments); void registernotification(in nsiobserver aobserver); void setwindowcreator(in nsiwindowcreator creator); void unregisternotification(in nsiobserver aobserver); attributes attribute type description activewindow nsidomwindow the watcher serves as a global storage faci...
...atch a "toplevel-window-ready" notification via nsiobserverservice if the window did not already exist.
...pported and will reflect into window.arguments as null.
...And 3 more matches
nsIXmlRpcClient
warning: this interface was removed from firefox 3 and is no longer available.
...password); void clearauthentication(in string username, in string password); void setencoding(in string encoding); void setencoding(in unsigned long type, out nsiidref uuid, out nsqiresult result); void asynccall (in nsixmlrpcclientlistener listener, in nsisupports ctxt, in string methodname, in nsisupports arguments, in pruint32 count); attributes attribute type description serverurl readonly nsiurl the url of the xml-rpc server inprogress readonly boolean whether or not a call is in progress fault readonly nsixmlrpcfault the most recent xml-rpc fault from returned from this server.
... not yet contacted.
...And 3 more matches
about:debugging - Firefox Developer Tools
the about:debugging page provides a single place from which you can attach the firefox developer tools to a number of debugging targets.
...nspect button next to its title.
...e developer tools open in a new tab.
...And 3 more matches
Using the CSS Typed Object Model - Web APIs
ke a look at that their types are by employing short javascript snippets outputting to console.log(): :root { --maincolor: hsl(198, 43%, 42%); --black: hsl(0, 0%, 16%); --white: hsl(0,0%,97%); --unit: 1.2rem; } button { --maincolor: hsl(198, 100%, 66%); display: inline-block; padding: var(--unit) calc(var(--unit)*2); width: calc(30% + 20px); background: no-repeat 5% center url(https://mdn.mozillademos.org/files/16793/magicwand.png) var(--maincolor); border: 4px solid var(--maincolor); border-radius: 2px; font-size: calc(var(--unit)*2); color: var(--white); cursor: pointer; transform: scale(0.95); } let's add the class to a button (a button which does nothing).
...tvalue {value: 0.95, unit: "number"} console.log( transform[0].y ); // cssunitvalue {value: 0.95, unit: "number"} console.log( transform[0].z ); // cssunitvalue {value: 1, unit: "number"} console.log( transform.is2d ); // true // cssimagevalue let bgimage = allcomputedstyles.get('background-image'); console.log( bgimage ); // cssimagevalue console.log( bgimage.tostring() ); // url("https://mdn.mozillademos.org/files/16793/magicwand.png") // cssunparsedvalue let unit = allcomputedstyles.get('--unit'); console.log( unit ) // let parsedunit = cssnumericvalue.parse( unit ); console.log( parsedunit ); console.log( parsedunit.unit ); console.log( parsedunit.value ); for this example to work, the example must be closed out here.
...form: translate3d(1px, 1px, 3px), the .get('transform') would have returned a csstranslate with cssunitvalues for x, y, and z, and the readonly .is2d property would have been false.
...And 3 more matches
ContentIndex.add() - Web APIs
Web › API › ContentIndex › add
scription).then(...); parameters contentdescription the item registered is an object containing the following data: id: a unique string identifier.
...ters contentdescription the item registered is an object containing the following data: id: a unique string identifier.
...ring containing the url of the corresponding html document.
...And 3 more matches
Content Index API - Web APIs
r about their specific offline content.
...ady cached pages, under the scope of the current service worker.
... current service worker.
...And 3 more matches
HTMLImageElement.srcset - Web APIs
the htmlimageelement property srcset is a string which identifies one or more image candidate strings, separated using commas (,) each specifying image resources to use under given circumstances.
...mages for the rendering situation.
...e resource to present inside the <img> element represented by the htmlimageelement.
...And 3 more matches
HTMLScriptElement.referrerPolicy - Web APIs
hich referrer is sent when fetching the resource.
...licy is specified.
...ment for other cases.
...And 3 more matches
MerchantValidationEvent.complete() - Web APIs
the merchantvalidationevent method complete() takes merchant-specific information previously received from the validationurl and uses it to validate the merchant.
... the merchantvalidationevent method complete() takes merchant-specific information previously received from the validationurl and uses it to validate the merchant.
... currently being processed, the current payment request is not currently being displayed to the user, or payment information is currently being updated.
...And 3 more matches
Payment processing concepts - Web APIs
y of a merchant in some way, usually using some form of cryptographic response such as a public key.
...ocessing service to both identify itself and to handle payments.
...payment method identifier (more may be added in the future): basic-card payments are handled by the basic card payment specification.
...And 3 more matches
Request - Web APIs
Web › API › Request
nly contains the mode of the request (e.g., cors, no-cors, same-origin, navigate.) request.redirect read only contains the mode for how redirects are handled.
...e request (e.g., cors, no-cors, same-origin, navigate.) request.redirect read only contains the mode for how redirects are handled.
...uest body.
...And 3 more matches
StorageEvent - Web APIs
ly="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">storageevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} method overview void initstorageevent( in domstring type, in boolean canbubble, in boolean cancelable, in domstring key, in domstring oldvalue, in domstring newvalue, in usvstring url, in storage storagearea ); attributes attribute type description key domstring represents the key changed.
...l when the change has been invoked by storage clear() method or the key has been removed from the storage.
...en invoked by storage clear() method or the key has been removed from the storage.
...And 3 more matches
Window.sidebar - Web APIs
Web › API › Window › sidebar
returns a sidebar object which contains several methods for registering add-ons with the browser.
...idebar object returned has the following methods: method description (seamonkey) description (firefox) addpanel(title, contenturl, "") adds a sidebar panel.
...efox) addpanel(title, contenturl, "") adds a sidebar panel.
...And 3 more matches
Worker() - Web APIs
Web › API › Worker › Worker
the worker() constructor creates a worker object that executes the script at the specified url.
...ker object that executes the script at the specified url.
...ript at the specified url.
...And 3 more matches
Worklet.addModule() - Web APIs
Web › API › Worklet › addModule
the addmodule() method of the worklet interface loads the module in the given javascript file and adds it to the current worklet.
... the addmodule() method of the worklet interface loads the module in the given javascript file and adds it to the current worklet.
... the addmodule() method of the worklet interface loads the module in the given javascript file and adds it to the current worklet.
...And 3 more matches
Synchronous and asynchronous requests - Web APIs
iting a function to read an external file in some cases, you must read many external files.
...ion xhrsuccess() { this.callback.apply(this, this.arguments); } function xhrerror() { console.error(this.statustext); } function loadfile(url, callback /*, opt_arg1, opt_arg2, ...
...lback; xhr.arguments = array.prototype.slice.call(arguments, 2); xhr.onload = xhrsuccess; xhr.onerror = xhrerror; xhr.open("get", url, true); xhr.send(null); } usage: function showmessage(message) { console.log(message + this.responsetext); } loadfile("message.txt", showmessage, "new message!\n\n"); the signature of the utility function loadfile declares (i) a target url to read (via an http get request), (ii) a function to execute on successful completion of the xhr operation, and (iii) an arbitrary list of additional arguments that are passed through the xhr object (via the arguments property) to the success callback function.
...And 3 more matches
Border-radius generator - CSS: Cascading Style Sheets
slider */ .ui-input-slider > input { margin: 0; padding: 0; width: 50px; text-align: center; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .ui-input-slider-info { width: 90px; padding: 0px 10px 0px 0px; text-align: right; text-transform: lowercase; } .ui-input-slider-left, .ui-input-slider-right { width: 16px; cursor: pointer; background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center left no-repeat; } .ui-input-slider-right { background: url("https://mdn.mozillademos.org/files/5679/arrows.png") center right no-repeat; } .ui-input-slider-name { width: 90px; padding: 0 10px 0 0; text-align: right; text-transform: lowercase; } .ui-input-slider-btn-set { width: 25px; background-color: #2c9fc9; border-radius: ...
...-size: 16px; font-family: "segoe ui", arial, helvetica, sans-serif; line-height: 1.5em; color: #fff; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } .ui-checkbox > input { display: none; } .ui-checkbox > label { font-size: 12px; padding: 0.333em 1.666em 0.5em; height: 1em; line-height: 1em; background-color: #888; background-image: url("https://mdn.mozillademos.org/files/5683/disabled.png"); background-position: center center; background-repeat: no-repeat; color: #fff; border-radius: 3px; font-weight: bold; float: left; } .ui-checkbox .text { padding-left: 34px; background-position: center left 10px; } .ui-checkbox .left { padding-right: 34px; padding-left: 1.666em; background-position: center right 10px; } .ui-c...
...und-repeat: no-repeat; color: #fff; border-radius: 3px; font-weight: bold; float: left; } .ui-checkbox .text { padding-left: 34px; background-position: center left 10px; } .ui-checkbox .left { padding-right: 34px; padding-left: 1.666em; background-position: center right 10px; } .ui-checkbox > label:hover { cursor: pointer; } .ui-checkbox > input:checked + label { background-image: url("https://mdn.mozillademos.org/files/5681/checked.png"); background-color: #379b4a; } body { max-width: 1000px; margin: 0 auto; font-family: "segoe ui", arial, helvetica, sans-serif; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; } #container { width: ...
...And 3 more matches
Using the :target pseudo-class in selectors - CSS: Cascading Style Sheets
when a url points at a specific piece of a document, it can be difficult for the user to notice.
... when a url points at a specific piece of a document, it can be difficult for the user to notice.
... when a url points at a specific piece of a document, it can be difficult for the user to notice.
...And 3 more matches
background - CSS: Cascading Style Sheets
e-examples and send us a pull request.
...ground-color background-image background-origin background-position background-repeat background-size syntax /* using a <background-color> */ background: green; /* using a <bg-image> and <repeat-style> */ background: url("test.jpg") repeat-y; /* using a <box> and <background-color> */ background: border-box red; /* a single image, centered and scaled */ background: no-repeat center/80% url("../img/image.png"); the background property is specified as one or more background layers, separated by commas.
...ntagesas each of the properties of the shorthand:background-position: refer to the size of the background positioning area minus size of background image; size refers to the width for horizontal offsets and to the height for vertical offsetsbackground-size: relative to the background positioning areacomputed valueas each of the properties of the shorthand:background-image: as specified, but with <url> values made absolutebackground-position: a list, each item consisting of two keywords representing the origin and two offsets from that origin, each given as an absolute length (if given a <length>), otherwise as a percentagebackground-size: as specified, but with relative lengths converted into absolute lengthsbackground-repeat: a list, each item consisting of two keywords, one per dimensionbac...
...And 3 more matches
mask-border-source - CSS: Cascading Style Sheets
the mask-border-source css property sets the source image used to create an element's mask border.
...obal values */ mask-border-source: inherit; mask-border-source: initial; mask-border-source: unset; values none no mask border is used.
...set; values none no mask border is used.
...And 3 more matches
shape-outside - CSS: Cascading Style Sheets
tside: margin-box; shape-outside: content-box; shape-outside: border-box; shape-outside: padding-box; /* function values */ shape-outside: circle(); shape-outside: ellipse(); shape-outside: inset(10px 10px 10px 10px); shape-outside: polygon(10px 10px, 20px 20px, 30px 30px); shape-outside: path('m0.5,1 c0.5,1,0,0.7,0,0.3 a0.25,0.25,1,1,1,0.5,0.3 a0.25,0.25,1,1,1,1,0.3 c1,0.7,0.5,1,0.5,1 z'); /* <url> value */ shape-outside: url(image.png); /* <gradient> value */ shape-outside: linear-gradient(45deg, rgba(255, 255, 255, 0) 150px, red 150px); /* global values */ shape-outside: initial; shape-outside: inherit; shape-outside: unset; the shape-outside property is specified using the values from the list below, which define the float area for float elements.
... <shape-box> is also supplied, it defines the reference box for the <basic-shape> function.
... to margin-box.
...And 3 more matches
Standard metadata names - HTML: Hypertext Markup Language
Web › HTML › Element › meta › name
ords: words relevant to the page's content separated by commas.
...rer do not send a http referer header.
...de send the full url when the destination is at least as secure as the current page (http(s)→https), but send no referrer when it's less secure (https→http).
...And 3 more matches
CSP: child-src - HTTP
ck yes.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: default-src - HTTP
-attr worker-src csp version 1 directive type fetch directive syntax one or more sources can be allowed for the default-src policy: content-security-policy: default-src <source>; content-security-policy: default-src <source> <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: frame-src - HTTP
er agent will look for the child-src directive (which falls back to the default-src directive).
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: img-src - HTTP
allback yes.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: manifest-src - HTTP
.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: media-src - HTTP
ck yes.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: object-src - HTTP
yes.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: script-src-elem - HTTP
content-security-policy: script-src-elem <source>; content-security-policy: script-src-elem <source> <source>; script-src-elem can be used in conjunction with script-src: content-security-policy: script-src <source>; content-security-policy: script-src-elem <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: style-src-attr - HTTP
olicy: content-security-policy: style-src-attr <source>; content-security-policy: style-src-attr <source> <source>; style-src-attr can be used in conjunction with style-src: content-security-policy: style-src <source>; content-security-policy: style-src-attr <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: style-src-elem - HTTP
y: content-security-policy: style-src-elem <source>; content-security-policy: style-src-elem <source> <source>; style-src-elem can be used in conjunction with style-src: content-security-policy: style-src <source>; content-security-policy: style-src-elem <source>; sources <source> can be one of the following: <host-source> internet hosts by name or ip address, as well as an optional url scheme and/or port number.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
CSP: worker-src - HTTP
higher skips the child-src directive.
... name or ip address, as well as an optional url scheme and/or port number.
...tacker can also inject arbitrary data: uris.
...And 3 more matches
OPTIONS - HTTP
Web › HTTP › Methods › OPTIONS
the http options method requests permitted communication options for a given url or server.
... the http options method requests permitted communication options for a given url or server.
...o refer to the entire server.
...And 3 more matches
HTTP range requests - HTTP
low to send only a portion of an http message from a server to a client.
...ortion of an http message from a server to a client.
...es indicates that bytes can be used as unit to define a range.
...And 3 more matches
Promise.any() - JavaScript
; promise.any([perr]).catch((err) => { console.log(err); }) // expected output: "aggregateerror: no promise in promise.any was resolved" displaying the first image loaded in this example, we have a function that fetches an image and returns a blob.
....catch((err) => { console.log(err); }) // expected output: "aggregateerror: no promise in promise.any was resolved" displaying the first image loaded in this example, we have a function that fetches an image and returns a blob.
...ne available (i.e.
...And 3 more matches
RegExp - JavaScript
t) console.log(match[0]) // logs 'Образец' console.log(regex.lastindex) // logs '7' let match2 = regex.exec(text) console.log(match2[0]) // logs 'на' [did not log 'text'] console.log(regex.lastindex) // logs '15' // and so on the unicode property escapes feature introduces a solution, by allowing for a statement as simple as \p{scx=cyrl}.
...e.log(match[0]) // logs 'Образец' console.log(regex.lastindex) // logs '7' let match2 = regex.exec(text) console.log(match2[0]) // logs 'на' [did not log 'text'] console.log(regex.lastindex) // logs '15' // and so on the unicode property escapes feature introduces a solution, by allowing for a statement as simple as \p{scx=cyrl}.
....log(regex.lastindex) // logs '7' let match2 = regex.exec(text) console.log(match2[0]) // logs 'на' [did not log 'text'] console.log(regex.lastindex) // logs '15' // and so on the unicode property escapes feature introduces a solution, by allowing for a statement as simple as \p{scx=cyrl}.
...And 3 more matches
String.prototype.link() - JavaScript
the link() method creates a string representing the code for an <a> html element to be used as a hypertext link to another url.
... the link() method creates a string representing the code for an <a> html element to be used as a hypertext link to another url.
... the link() method creates a string representing the code for an <a> html element to be used as a hypertext link to another url.
...And 3 more matches
Applying SVG effects to HTML content - SVG: Scalable Vector Graphics
specify svg in styles either within the same document or an external style sheet.
...content using svg and css code similar to the following, inside your html document: <svg height="0"> <mask id="mask-1"> <lineargradient id="gradient-1" y2="1"> <stop stop-color="white" offset="0"/> <stop stop-opacity="0" offset="1"/> </lineargradient> <circle cx="0.25" cy="0.25" r="0.25" id="circle" fill="white"/> <rect x="0.5" y="0.2" width="300" height="100" fill="url(#gradient-1)"/> </mask> </svg> .target { mask: url(#mask-1); } p { width: 300px; border: 1px solid #000; display: inline-block; } note that in the css, the mask is specified using a url to the id #mask-1, which is the id of the svg mask specified below it.
... eiusmod tempor incididunt ut labore et dolore magna aliqua.</b> ut enim ad minim veniam.
...And 3 more matches
Content type - SVG: Scalable Vector Graphics
is "lamppost" within file somedrawing.svg: http://example.com/somedrawing.svg#lamppost iris are used in the xlink:href attribute.
...nsive use of iri references, both absolute and relative, to other objects.
...: milliseconds s: seconds transform-list <transform-list> a <transform-list> is used to specify a list of coordinate system transformations.
...And 3 more matches
<feComposite> - SVG: Scalable Vector Graphics
ng the background.</desc> <g enable-background="new"> <text x="15" y="75">opacity 1.0</text> <text x="15" y="115" font-size="27">(with feflood)</text> <text x="15" y="200">opacity 0.5</text> <text x="15" y="240" font-size="27">(with feflood)</text> <use xlink:href="#bluetriangles"/> <g transform="translate(275,25)"> <use xlink:href="#red100" filter="url(#overflood)" /> <use xlink:href="#red50" filter="url(#overflood)" /> <text x="5" y="275">over</text> </g> <g transform="translate(400,25)"> <use xlink:href="#red100" filter="url(#inflood)" /> <use xlink:href="#red50" filter="url(#inflood)" /> <text x="35" y="275">in</text> </g> <g transform="translate(525,25)"> <use xlink:hre...
... <use xlink:href="#red50" filter="url(#overflood)" /> <text x="5" y="275">over</text> </g> <g transform="translate(400,25)"> <use xlink:href="#red100" filter="url(#inflood)" /> <use xlink:href="#red50" filter="url(#inflood)" /> <text x="35" y="275">in</text> </g> <g transform="translate(525,25)"> <use xlink:href="#red100" filter="url(#outflood)" /> <use xlink:href="#red50" filter="url(#outflood)" /> <text x="15" y="275">out</text> </g> <g transform="translate(650,25)"> <use xlink:href="#red100" filter="url(#atopflood)" /> <use xlink:href="#red50" filter="url(#atopflood)" /> <text x="10" y="275">atop</text> </g> <g transform="translate(775,25)"> <use xlink...
...<use xlink:href="#red50" filter="url(#outflood)" /> <text x="15" y="275">out</text> </g> <g transform="translate(650,25)"> <use xlink:href="#red100" filter="url(#atopflood)" /> <use xlink:href="#red50" filter="url(#atopflood)" /> <text x="10" y="275">atop</text> </g> <g transform="translate(775,25)"> <use xlink:href="#red100" filter="url(#xorflood)" /> <use xlink:href="#red50" filter="url(#xorflood)" /> <text x="15" y="275">xor</text> </g> <g transform="translate(900,25)"> <use xlink:href="#red100" filter="url(#arithmeticflood)" /> <use xlink:href="#red50" filter="url(#arithmeticflood)" /> <text x="-25" y="275">arithmetic</text> </g> </g> <g transform="translate(0,...
...And 3 more matches
Tools for SVG - SVG: Scalable Vector Graphics
« previous now that we covered the basics of the svg internals, we will take a look at some tools to work with svg files.
... www.inkscape.org one of the most important tools for a graphics format is a decent drawing program.
...stom namespace, but you can also choose to export as plain svg.
...And 3 more matches
Navigator.mozNotification - Archive of obsolete content
h are used to display desktop notification alerts to the user.
...for an example.
...uctor.
...And 2 more matches
Loading Content Scripts - Archive of obsolete content
string, array contentscriptfile string, array contentscriptwhen string contentscriptoptions object we have already seen the contentscript option, which enables you to pass in the text of the script itself as a string literal.
...in a separate file for the content script.
... "self" module var data = require("sdk/self").data; ...
...And 2 more matches
ui - Archive of obsolete content
rds.
...{ toolbar } = require("sdk/ui/toolbar"); var { frame } = require("sdk/ui/frame"); var previous = ui.actionbutton({ id: "previous", label: "previous", icon: "./icons/previous.png" }); var next = ui.actionbutton({ id: "next", label: "next", icon: "./icons/next.png" }); var play = ui.actionbutton({ id: "play", label: "play", icon: "./icons/play.png" }); var frame = ui.frame({ url: "./frame-player.html" }); var toolbar = ui.toolbar({ title: "player", items: [previous, next, play, frame] }); the toolbar appears just above the content window: sidebar a sidebar gives you a vertical strip of space for presenting complex user interfaces.
...utton({ id: "play", label: "play", icon: "./icons/play.png" }); var frame = ui.frame({ url: "./frame-player.html" }); var toolbar = ui.toolbar({ title: "player", items: [previous, next, play, frame] }); the toolbar appears just above the content window: sidebar a sidebar gives you a vertical strip of space for presenting complex user interfaces.
...And 2 more matches
places/history - Archive of obsolete content
access the user's browsing history.
...on("end", function (results) { // results is an array of objects containing // data about visits to any site on developers.mozilla.org // ordered by visit count }); // complex query // the query objects are or'd together // let's say we want to retrieve all visits from before a week ago // with the query of 'ruby', but from last week onwards, we want // all results with 'javascript' in the url or title.
...st match each property within a query object.
...And 2 more matches
Modifying the Page Hosted by a Tab - Archive of obsolete content
d border appear around the page, like this: keeping content scripts in a separate file in the example above, we've passed in content script as a string.
... or more content script files.
...cuted in the same context, so everything publicly defined in first.js will be accessible from second.js.
...And 2 more matches
Canvas code snippets - Archive of obsolete content
ener to the frame's load event.
...r.mozilla.org'; }; remotecanvas.canvas_width = 300; remotecanvas.canvas_height = 300; remotecanvas.prototype.load = function() { var windowwidth = window.innerwidth - 25; var iframe; iframe = document.createelement('iframe'); iframe.id = 'test-iframe'; iframe.height = '10px'; iframe.width = windowwidth + 'px'; iframe.style.visibility = 'hidden'; iframe.src = this.url; // here is where the magic happens...
... windowwidth, windowheight, 'rgb(255, 255, 255)'); ctx.restore(); }; usage: var remotecanvas = new remotecanvas(); remotecanvas.load(); convert image files to base64 strings the following code gets a remote image and converts its content to data uri scheme.
...And 2 more matches
Finding the file to modify - Archive of obsolete content
and xul windows.
...or" item.
... the dom inspector will load in a new window.
...And 2 more matches
Repackaging Firefox - Archive of obsolete content
hat will cause any users with the earlier version to get unnecessarily upgraded.
...distributor.channel=<name> other preferences some settings are commonly set in partner distributions.
...ferences, however.
...And 2 more matches
Basics - Archive of obsolete content
oes stuff.
...iftstringsortstringsplicestringunshiftstring)this is some default text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
... default text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
...And 2 more matches
Microsummary topics - Archive of obsolete content
rn:{835daeb3-6760-47fa-8f4f-8e4fdea1fb16} to guarantee uniqueness, use urns containing uuids generated by the nsuuidgenerator component.
...-47fa-8f4f-8e4fdea1fb16} to guarantee uniqueness, use urns containing uuids generated by the nsuuidgenerator component.
...8e4fdea1fb16} to guarantee uniqueness, use urns containing uuids generated by the nsuuidgenerator component.
...And 2 more matches
File object - Archive of obsolete content
ww.mozilla.org/js/js-file-object.html created by the file constructor: new file(); new file(filename); parameters filename name of the file we want to work with.
...cription filenames are specified as strings that have an implementation defined format.
...t() get a list of files, potentially matching a regular expression filter, from the file.
...And 2 more matches
Using XPInstall to Install Plugins - Archive of obsolete content
iles to xpinstall files.
...e installed as well as a javascript install.js file (called the install script) as the installer logic.
...gic.
...And 2 more matches
Index - Archive of obsolete content
Archive › Mozilla › XUL › Index
718 hidden xul properties, xul reference no summary!
...rieves its data from a datasource.
...page: custom toolbar button) 961 toolbar customization events toolbars, xul when toolbars are customized, events are sent to their parent window.
...And 2 more matches
loadURIWithFlags - Archive of obsolete content
« xul reference home loaduriwithflags( uri, flags, referrer, charset, postdata ) return type: no return value load a url into the document, with the specified load flags, the given referrer, character set, and post data.
... « xul reference home loaduriwithflags( uri, flags, referrer, charset, postdata ) return type: no return value load a url into the document, with the specified load flags, the given referrer, character set, and post data.
...turn type: no return value load a url into the document, with the specified load flags, the given referrer, character set, and post data.
...And 2 more matches
Simple Query Syntax - Archive of obsolete content
sent, the full syntax is used instead.
...icated three times.
... have values prefixed with 'rdf:'.
...And 2 more matches
XML Templates - Archive of obsolete content
loaded and xpath expressions may be used to take portions of the xml document and generate content from these.
...cument, either a local file or a remote web site.
...he ref attribute isn't currently used for xml sources, as the root of the document is always the starting point for xml queries; you should just set the ref attribute to a dummy value, for example '*' which is typically used.
...And 2 more matches
Adding Labels and Images - Archive of obsolete content
text fields.
...ay images within a window.
... to specify the url of the image file.
...And 2 more matches
XBL Inheritance - Archive of obsolete content
adds the text 'http://www' to the beginning of its value when the f4 key is pressed.
...ts value when the f4 key is pressed.
...e; </handler> </handlers> </binding> the xbl here extends from the xul textbox element.
...And 2 more matches
tree - Archive of obsolete content
Archive › Mozilla › XUL › tree
</treerow> </treeitem> <treeitem> <treerow> <treecell value="false"/> <treecell label="bob"/> </treerow> </treeitem> </treechildren> </tree> </window> css: treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells.
...ee> </window> css: treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells.
...ckbox treecells.
...And 2 more matches
PAC - MDN Web Docs Glossary: Definitions of Web-related terms
a proxy auto-configuration file (pac file) is a file which contains a function, findproxyforurl(), which is used by the browser to determine whether requests (including http, https, and ftp) should go directly to the destination or if they need to be forwarded through a web proxy server.
... a proxy auto-configuration file (pac file) is a file which contains a function, findproxyforurl(), which is used by the browser to determine whether requests (including http, https, and ftp) should go directly to the destination or if they need to be forwarded through a web proxy server.
... a proxy auto-configuration file (pac file) is a file which contains a function, findproxyforurl(), which is used by the browser to determine whether requests (including http, https, and ftp) should go directly to the destination or if they need to be forwarded through a web proxy server.
...And 2 more matches
Styling web forms - Learn web development
we don't break usability.
..., and all the basic styles set on the <body> and <form> elements.
...nts.
...And 2 more matches
Index - Learn web development
y.
...some common rules of thumb to help you design your site.
...s of thumb to help you design your site.
...And 2 more matches
Making decisions in your code — conditionals - Learn web development
ode to run if condition is true } else { run some other code instead } here we've got: the keyword if followed by some parentheses.
...aced inside the parentheses (typically "is this value bigger than this other value?", or "does this value exist?").
... the keyword else.
...And 2 more matches
Deployment and next steps - Learn web development
[...] [1s] ✅ production: https://mdn-svelte-tutorial.vercel.app [copied to clipboard] [19s] deployed to production.
... a git repository.
...ct's root directory git init git remote add origin https://gitlab.com/[your-user]/mdn-svelte-todo.git git add .
...And 2 more matches
Getting started with Svelte - Learn web development
rk a variable declaration as a property (or prop), which means it becomes accessible to consumers of the component (e.g.
...at lets you enter full-screen mode, and download your app.
... your github username profile and selecting your saved apps.
...And 2 more matches
Creating MozSearch plugins
firefox 2 uses a simplified form of the opensearch format for storing search plugins.
... firefox 2 uses a simplified form of the opensearch format for storing search plugins.
...earch plugin for searching using yahoo!: <searchplugin xmlns="http://www.mozilla.org/2006/browser/search/"> <shortname>yahoo</shortname> <description>yahoo search</description> <inputencoding>utf-8</inputencoding> <image width="16" height="16">data:image/x-icon;base64,r0lgodlheaaqajecap8aaaaaap///waaach5baeaaaialaaaaaaqabaaaaipli+py+0nogquybdened2khkffwuamezmpzsfmaihphrrguum/ft+uwaaow==</image> <url type="application/x-suggestions+json" method="get" template="http://ff.search.yahoo.com/gossip?output=fxjson&amp;command={searchterms}" /> <url type="text/html" method="get" template="http://search.yahoo.com/search"> <param name="p" value="{searchterms}"/> <param name="ei" value="utf-8"/> <mozparam name="fr" condition="pref" pref="yahoo-fr" /> </url> <searchform>http://search.yahoo.co...
...And 2 more matches
Storage access policy: Block cookies from trackers
tection" version of the list, which excludes some categories of trackers.
...ield icon in the domain column.
...st curious how things will work if a third-party domain on your site were classified as a tracker?
...And 2 more matches
Tracking Protection
mains that track users across sites.
... be broken when tracking protection is enabled.
...allback that runs when content from a tracking site is loaded, then the callback will not execute.
...And 2 more matches
PopupNotifications.jsm
n events below.
...tifications with this parameter set to true will be removed when they would have otherwise been dismissed (i.e.
...moveondismissal notifications with this parameter set to true will be removed when they would have otherwise been dismissed (that is, any time the popup is closed due to user interaction).
...And 2 more matches
sslintro.html
.
...king.
...onfiguration parameter of a specified socket.
...And 2 more matches
Shell global objects
element if present with value v, convert v to an object o and mark the source as being attached to the dom element o.
...ched to the dom element o.
...erty is omitted or v is null, don't attribute the source to any dom element.
...And 2 more matches
The Places database
this document provides a high-level overview of the overall database design of the places system.
...gh-level overview of the overall database design of the places system.
...looks like so: core url table moz_places: this is the main table of uris and is managed by the history service (see also history service design).
...And 2 more matches
Querying Places
rent values for this property are listed below.
...es.nsinavhistoryqueryoptions.results_as_visit.
...url.
...And 2 more matches
inIDOMUtils
components.classes["@mozilla.org/inspector/dom-utils;1"] .getservice(components.interfaces.inidomutils); method overview void addpseudoclasslock(in nsidomelement aelement, in domstring apseudoclass); void clearpseudoclasslocks(in nsidomelement aelement); [implicit_jscontext] jsval colornametorgb(in domstring acolorname); nsiarray getbindingurls(in nsidomelement aelement); nsidomnodelist getchildrenfornode(in nsidomnode anode, in boolean ashowinganonymouscontent); unsigned long long getcontentstate(in nsidomelement aelement); void getcsspropertynames([optional] in unsigned long aflags, [optional] out unsigned long acount, [retval, array, size_is(acount)] out wstring aprops); nsisupportsarray getcsss...
... constant value description exclude_shorthands (1<<0) include_aliases (1<<1) content state flags the content state flags are used in a bitmask.
... content state flags the content state flags are used in a bitmask.
...And 2 more matches
nsIHTTPHeaderListener
modules/plugin/base/public/nsihttpheaderlistener.idlscriptable this interface allows plugin authors to access http response headers after issuing an nsipluginhost.geturl or nsipluginhost.posturl call.
... modules/plugin/base/public/nsihttpheaderlistener.idlscriptable this interface allows plugin authors to access http response headers after issuing an nsipluginhost.geturl or nsipluginhost.posturl call.
... modules/plugin/base/public/nsihttpheaderlistener.idlscriptable this interface allows plugin authors to access http response headers after issuing an nsipluginhost.geturl or nsipluginhost.posturl call.
...And 2 more matches
nsIMsgWindow
te an instance, use: msgwindow = components.classes["@mozilla.org/messenger/msgwindow;1"] .createinstance(components.interfaces.nsimsgwindow); in thunderbird the default message window is stored in the global variable msgwindow.
...object.
...ear it before you start your operation since there's no convenient place to clear it.
...And 2 more matches
nsIURI
thods for performing basic operations on uris.
...monkey 2.3) see the following rfcs for details: rfc3490: internationalizing domain names in applications (idna) rfc3986: uniform resource identifier (uri): generic syntax rfc3987: internationalized resource identifiers subclasses of nsiuri, such as nsiurl, impose further structure on the uri.
...zed resource identifiers subclasses of nsiuri, such as nsiurl, impose further structure on the uri.
...And 2 more matches
Filelink Providers
nect a user to their account.
... to fill in additional details in order to connect to the service.
... for example, requires a username and password.
...And 2 more matches
Mozilla
occasionally bugs are filed pointing out situations where perfectly legitimate words are missing from the english spell check dictionary in firefox.
...verview this happens in nshttpchannel::opencacheentry().
...d().
...And 2 more matches
Set an XHR breakpoint - Firefox Developer Tools
an xhr (xmlhttprequest) breakpoint breaks code execution when an xhr request is dispatched so that you can examine the current state of the program.
... an xhr (xmlhttprequest) breakpoint breaks code execution when an xhr request is dispatched so that you can examine the current state of the program.
...int breaks code execution when an xhr request is dispatched so that you can examine the current state of the program.
...And 2 more matches
Source map errors - Firefox Developer Tools
y the developer.
... sometimes encounter problems working with source maps.
...ms working with source maps.
...And 2 more matches
Examine and edit HTML - Firefox Developer Tools
t attribute remove attribute break on ...
...inner html for the element.
... (copy) outer html copy the outer html for the element.
...And 2 more matches
Body.bodyUsed - Web APIs
Web › API › Body › bodyUsed
the body mixin contains a boolean that indicates whether the body has been read yet.
...ixin contains a boolean that indicates whether the body has been read yet.
...boolean that indicates whether the body has been read yet.
...And 2 more matches
Cache.add() - Web APIs
Web › API › Cache › add
the add() method of the cache interface takes a url, retrieves it, and adds the resulting response object to the given cache.
... the add() method of the cache interface takes a url, retrieves it, and adds the resulting response object to the given cache.
... the add() method of the cache interface takes a url, retrieves it, and adds the resulting response object to the given cache.
...And 2 more matches
Cache.match() - Web APIs
Web › API › Cache › match
a promise that resolves to the response associated with the first matching request in the cache object.
..., {options}).then(function(response) { // do something with the response }); parameters request the request for which you are attempting to find responses in the cache.
...http://foo.com/?value=bar would be ignored when performing a match.
...And 2 more matches
CacheStorage - Web APIs
hes.match('/sw-test/gallery/mylittlevader.jpg'); }); } })); }); this snippet shows how the api can be used outside of a service worker context, and uses the await operator for much more readable code.
...d outside of a service worker context, and uses the await operator for much more readable code.
...hename = `myapp-${ cacheversion }`; const url = 'https://jsonplaceholder.typicode.com/todos/1'; let cacheddata = await getcacheddata( cachename, url ); if ( cacheddata ) { console.log( 'retrieved cached data' ); return cacheddata; } console.log( 'fetching fresh data' ); const cachestorage = await caches.open( cachename ); await cachestorage.add( url ); cacheddata = await getcacheddata( cachename, url ); await deleteoldcaches( cachename ); return cacheddata; } // get data from the cache.
...And 2 more matches
Clients - Web APIs
Web › API › Clients
the clients interface provides access to client objects.
...example shows an existing chat window or creates a new one when the user clicks a notification.
...ows an existing chat window or creates a new one when the user clicks a notification.
...And 2 more matches
Document.documentURI - Web APIs
the documenturi read-only property of the document interface returns the document location as a string.
... the documenturi read-only property of the document interface returns the document location as a string.
... the documenturi read-only property of the document interface returns the document location as a string.
...And 2 more matches
ExtendableEvent - Web APIs
aches.
...ker-internals.
...tener('install', function(event) { var urlstoprefetch = [ './static/pre_fetched.txt', './static/pre_fetched.html', 'https://www.chromium.org/_/rsrc/1302286216006/config/customlogo.gif' ]; console.log('handling install event.
...And 2 more matches
HTMLScriptElement - Web APIs
ll="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlscriptelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
...imports new scripts within a document creating a <script> node immediately before the <script> that hosts the following code (through document.currentscript).
...aderror(oerror) { throw new urierror("the script " + oerror.target.src + " didn't load correctly."); } function prefixscript(url, onloadfunction) { var newscript = document.createelement("script"); newscript.onerror = loaderror; if (onloadfunction) { newscript.onload = onloadfunction; } document.currentscript.parentnode.insertbefore(newscript, document.currentscript); newscript.src = url; } this next function, instead of prepending the new scripts immediately before the document.currentscript element, appends them as children of the <head> tag.
...And 2 more matches
InstallEvent - Web APIs
ode maps a shorthand identifier for a cache to a specific, versioned cache name.
...orker-internals.
...istener('install', function(event) { var urlstoprefetch = [ './static/pre_fetched.txt', './static/pre_fetched.html', 'https://www.chromium.org/_/rsrc/1302286216006/config/customlogo.gif' ]; console.log('handling install event.
...And 2 more matches
Location: assign() - Web APIs
Web › API › Location › assign
the location.assign() method causes the window to load and display the document at the url specified.
...e that called location.assign() by pressing the "back" button.
... because of a security violation, a domexception of the security_error type is thrown.
...And 2 more matches
Location: replace() - Web APIs
Web › API › Location › replace
the replace() method of the location interface replaces the current resource with the one at the provided url.
...e user won't be able to use the back button to navigate to it.
...n because of a security violation, a domexception of the security_error type is thrown.
...And 2 more matches
Using the MediaStream Recording API - Web APIs
ainer.classlist.add('clip'); audio.setattribute('controls', ''); deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); const blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; const audiourl = window.url.createobjecturl(blob); audio.src = audiourl; deletebutton.onclick = function(e) { let evttgt = e.target; evttgt.parentnode.parentnode.removechild(evttgt.parentnode); } } let's go through the above code and look at what's happening.
...ning.
... asking the user to name their clip.
...And 2 more matches
MerchantValidationEvent - Web APIs
tvalidationevent object describing a merchantvalidation event that will be sent to the payment handler to request that it validate the merchant.
....
...hodname secure context a domstring providing a unique payment method identifier for the payment handler that's requiring validation.
...And 2 more matches
Navigator.sendBeacon() - Web APIs
the navigator.sendbeacon() method asynchronously sends a small amount of data over http to a web server.
... the navigator.sendbeacon() method asynchronously sends a small amount of data over http to a web server.
... the navigator.sendbeacon() method asynchronously sends a small amount of data over http to a web server.
...And 2 more matches
RTCConfiguration.iceServers - Web APIs
hich describes a single stun or turn server to use for negotiation purposes.
... let rtcconfiguration = { iceservers: [ iceserver1...
...iate effect occurs.
...And 2 more matches
Response.redirect() - Web APIs
Web › API › Response › redirect
the redirect() method of the response interface returns a response resulting in a redirect to the specified url.
... the redirect() method of the response interface returns a response resulting in a redirect to the specified url.
...method of the response interface returns a response resulting in a redirect to the specified url.
...And 2 more matches
Response.redirected - Web APIs
utright rejecting redirects if they're unexpected, as described under disallowing redirects below.
...t rejecting redirects if they're unexpected, as described under disallowing redirects below.
...rects if they're unexpected, as described under disallowing redirects below.
...And 2 more matches
WebSocket() - Web APIs
the websocket() constructor returns a new websocket object.
... the websocket() constructor returns a new websocket object.
... the websocket() constructor returns a new websocket object.
...And 2 more matches
Writing WebSocket client applications - Web APIs
ken from our websocket chat client/server sample.
...t chat client/server sample.
...ient/server sample.
...And 2 more matches
WindowOrWorkerGlobalScope.queueMicrotask() - Web APIs
on a function to be executed when the browser engine determines it is safe to call your code.
...uted when the browser engine determines it is safe to call your code.
...e.
...And 2 more matches
-moz-image-rect - CSS: Cascading Style Sheets
the -moz-image-rect value for css background-image lets you use a portion of a larger image as a background.
...for the four boxes that comprise the complete image.
...fined.
...And 2 more matches
:target - CSS: Cascading Style Sheets
Web › CSS › :target
the :target css pseudo-class represents a unique element (the target element) with an id matching the url's fragment.
... the :target css pseudo-class represents a unique element (the target element) with an id matching the url's fragment.
... the :target css pseudo-class represents a unique element (the target element) with an id matching the url's fragment.
...And 2 more matches
symbols - CSS: Cascading Style Sheets
e of the following data types: <string> <image> (note: this value is "at risk" and may be removed from the specification.
...g data types: <string> <image> (note: this value is "at risk" and may be removed from the specification.
...<string> <image> (note: this value is "at risk" and may be removed from the specification.
...And 2 more matches
backdrop-filter - CSS: Cascading Style Sheets
the backdrop-filter css property lets you apply graphical effects such as blurring or color shifting to the area behind an element.
... the backdrop-filter css property lets you apply graphical effects such as blurring or color shifting to the area behind an element.
...ter-function> values */ backdrop-filter: blur(2px); backdrop-filter: brightness(60%); backdrop-filter: contrast(40%); backdrop-filter: drop-shadow(4px 4px 10px blue); backdrop-filter: grayscale(30%); backdrop-filter: hue-rotate(120deg); backdrop-filter: invert(70%); backdrop-filter: opacity(20%); backdrop-filter: sepia(90%); backdrop-filter: saturate(80%); /* multiple filters */ backdrop-filter: url(filters.svg#filter) blur(4px) saturate(150%); /* global values */ backdrop-filter: inherit; backdrop-filter: initial; backdrop-filter: unset; syntax values none no filter is applied to the backdrop.
...And 2 more matches
image-set() - CSS: Cascading Style Sheets
Web › CSS › image-set
e connection with a high-resolution screen may prefer to receive lower-resolution images rather than waiting for a higher resolution image to load.
...may prefer to receive lower-resolution images rather than waiting for a higher resolution image to load.
... noopera full support 15prefixed full support 15prefixed prefixed implemented with the vendor prefix: -webkit-safari partial support 6prefixed notes partial support 6prefixed notes prefixed implemented with the vendor prefix: -webkit-notes support for url images only and x is the only supported resolution unit.
...And 2 more matches
list-style-image - CSS: Cascading Style Sheets
ase clone https://github.com/mdn/interactive-examples and send us a pull request.
...interactive-examples and send us a pull request.
... by default this includes <li> elements.
...And 2 more matches
<applet>: The Embed Java Applet element - HTML: Hypertext Markup Language
Web › HTML › Element › applet
descriptive text alternate to be displayed on browsers that do not support java.
...tent enclosed within the <applet> element may also be rendered as alternative text.
...chived or compressed version of the applet and its associated class files, which might help reduce download time.
...And 2 more matches
<form> - HTML: Hypertext Markup Language
Web › HTML › Element › form
ically complete entries.
...on the following attributes control behavior during form submission.
...file.
...And 2 more matches
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
Web › HTML › Element › iframe
rigin will still include the path.
...cument as the referrer when the protocol security level stays the same (https→https), but don't send it to a less secure destination (https→http).
...ribute — making it no more secure than not using the sandbox attribute at all.
...And 2 more matches
Using the application cache - HTML: Hypertext Markup Language
urces are local, and therefore load faster.
...erver load the browser only downloads resources that have changed from the server.
...t file is removed from the server, the browser removes all application caches that use that manifest, and sends an "obsoleted" event to the applicationcache object.
...And 2 more matches
Reason: CORS request not HTTP - HTTP
reason reason: cors request not http what went wrong?
... reason reason: cors request not http what went wrong?
... reason reason: cors request not http what went wrong?
...And 2 more matches
Using HTTP cookies - HTTP
Web › HTTP › Cookies
of ways to ensure that cookies are sent securely and are not accessed by unintended parties or scripts: the secure attribute and the httponly attribute.
...example, cookies that persist server-side sessions don't need to be available to javascript, and should have the httponly attribute.
...okie, excluding subdomains.
...And 2 more matches
Referrer-Policy - HTTP
inal header name referer is a misspelling of the word "referrer".
...-policy: strict-origin referrer-policy: strict-origin-when-cross-origin referrer-policy: unsafe-url directives no-referrer the referer header will be omitted entirely.
...e same (https→https), but don't send it to a less secure destination (https→http).
...And 2 more matches
Set-Cookie - HTTP
e any us-ascii characters, except control characters, spaces, or tabs.
...is relative to the client the cookie is being set on, not the server.
... the cookie will be sent.
...And 2 more matches
SourceMap - HTTP
the sourcemap http response header links generated code to a source map, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.
... the sourcemap http response header links generated code to a source map, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.
... the sourcemap http response header links generated code to a source map, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.
...And 2 more matches
Network Error Logging - HTTP
specifies the proportion of failed network requests to report.
...for example: report-to: { "group": "nel", "max_age": 31556952, "endpoints": [ { "url": "https://example.com/csp-reports" } ] } error reports in these examples, the entire reporting api payload is shown.
...00 (bad request) response { "age": 20, "type": "network-error", "url": "https://example.com/previous-page", "body": { "elapsed_time": 338, "method": "post", "phase": "application", "protocol": "http/1.1", "referrer": "https://example.com/previous-page", "sampling_fraction": 1, "server_ip": "137.205.28.66", "status_code": 400, "type": "http.error", "url": "https://example.com/bad-request" } } dns name not resolved note that the phase is set to dns in this report and no server_ip is available to include.
...And 2 more matches
SyntaxError: missing } after function body - JavaScript
the javascript exception "missing } after function body" occurs when there is a syntax mistake when creating a function somewhere.
...ter function body" occurs when there is a syntax mistake when creating a function somewhere.
...e syntaxerror: expected '}' (edge) syntaxerror: missing } after function body (firefox) error type syntaxerror what went wrong?
...And 2 more matches
scope - Web app manifests
type string mandatory no the scope member is a string that defines the navigation scope of this web application's application context.
... type string mandatory no the scope member is a string that defines the navigation scope of this web application's application context.
... type string mandatory no the scope member is a string that defines the navigation scope of this web application's application context.
...And 2 more matches
serviceworker - Web app manifests
mandatory no the serviceworker member describes a service worker that the developer intends to install to control the pwa.
..."serviceworker": { "src": "./serviceworker.js", "scope": "/app", "type": "", "update_via_cache": "none" } values service worker contain the following values (only src is required): member description src the url to download the service worker script from.
..."", "update_via_cache": "none" } values service worker contain the following values (only src is required): member description src the url to download the service worker script from.
...And 2 more matches
How to make PWAs installable - Progressive web apps (PWAs)
desktop browers that support doing so.
... web app", "short_name": "js13kpwa", "description": "progressive web app that lists games submitted to the a-frame category in the js13kgames 2017 competition.", "icons": [ { "src": "icons/icon-32.png", "sizes": "32x32", "type": "image/png" }, // ...
...13kpwa/index.html", "display": "fullscreen", "theme_color": "#b12a34", "background_color": "#b12a34" } most of the fields are self-explanatory, but to be certain we're on the same page: name: the full name of your web app.
...And 2 more matches
Patterns - SVG: Scalable Vector Graphics
Web › SVG › Tutorial › Patterns
stop-color="blue"/> </lineargradient> <lineargradient id="gradient2" x1="0" x2="0" y1="0" y2="1"> <stop offset="5%" stop-color="red"/> <stop offset="95%" stop-color="orange"/> </lineargradient> <pattern id="pattern" x="0" y="0" width=".25" height=".25"> <rect x="0" y="0" width="50" height="50" fill="skyblue"/> <rect x="0" y="0" width="25" height="25" fill="url(#gradient2)"/> <circle cx="25" cy="25" r="20" fill="url(#gradient1)" fill-opacity="0.5"/> </pattern> </defs> <rect fill="url(#pattern)" stroke="black" width="200" height="200"/> </svg> screenshotlive sample inside the <pattern> element, you can include any of the other basic shapes you've included before, and each of them can be styled using any of the styles you've learned befor...
...rn would remain the same size, and you end up with large areas of nothing in between them.
...of nothing in between them.
...And 2 more matches
windows - Archive of obsolete content
tees made by the sdk's high-level apis.
...indows; var example = windows.open("http://www.example.com"); require("sdk/ui/button/action").actionbutton({ id: "read", label: "read", icon: "./read.png", onclick: function() { example.close(); } }); this example uses the action button api, which is only available from firefox 29 onwards.
....open("http://www.example.com"); require("sdk/ui/button/action").actionbutton({ id: "read", label: "read", icon: "./read.png", onclick: function() { example.close(); } }); this example uses the action button api, which is only available from firefox 29 onwards.
...olean which will determine whether the new window should be private or not.
content/symbiont - Archive of obsolete content
used by sdk modules that can load web content and attach content scripts to it.
... script boolean whether or not to execute script in the content.
...ent has been loaded, corresponding to the domcontentloaded event "end": load content scripts once all the content (dom, js, css, images) for the page has been loaded, at the time the window.onload event fires contentscriptoptions read-only value exposed to content scripts under self.options property.
...een loaded, corresponding to the domcontentloaded event "end": load content scripts once all the content (dom, js, css, images) for the page has been loaded, at the time the window.onload event fires contentscriptoptions read-only value exposed to content scripts under self.options property.
preferences/service - Archive of obsolete content
require("sdk/preferences/service").reset(name); getlocalized(name, defaultvalue) gets the localized value for an application preference name.
...perties file.
... name.
...ce value, a url to a properties file example: require("sdk/preferences/service").set("general.useragent.locale", "chrome://global/locale/intl.properties"); example: setting global preferences var { get, set } = require("sdk/preferences/service"); var { when: unload } = require("sdk/system/unload"); var oldvalue = get("browser.urlbar.autofill"); set("browser.urlbar.autofill", true); // by amo policy global preferences must be changed back to their original value unload(function() { set("browser.urlbar.autofill", oldvalue); }); ...
Add a Context Menu Item - Archive of obsolete content
elected text.
...the add-on's message event fires, and the add-on code's handler function is passed the selected text, which it logs more options adding an image you can add an image to a context menu item with the image option.
... event fires, and the add-on code's handler function is passed the selected text, which it logs more options adding an image you can add an image to a context menu item with the image option.
...rl(): var self = require("sdk/self"); var contextmenu = require("sdk/context-menu"); var menuitem = contextmenu.item({ label: "log selection", context: contextmenu.selectioncontext(), contentscript: 'self.on("click", function () {' + ' var text = window.getselection().tostring();' + ' self.postmessage(text);' + '});', image: self.data.url("icon-16.png"), onmessage: function (selectiontext) { console.log(selectiontext); } }); adding an access key new in firefox 35.
Implementing the widget - Archive of obsolete content
ectory.
...ain.js now in the lib directory open main.js and add the following code: var widgets = require('sdk/widget'); var data = require('sdk/self').data; var annotatorison = false; function toggleactivation() { annotatorison = !annotatorison; return annotatorison; } exports.main = function() { var widget = widgets.widget({ id: 'toggle-switch', label: 'annotator', contenturl: data.url('widget/pencil-off.png'), contentscriptwhen: 'ready', contentscriptfile: data.url('widget/widget.js') }); widget.port.on('left-click', function() { console.log('activate/deactivate'); widget.contenturl = toggleactivation() ?
...exports.main = function() { var widget = widgets.widget({ id: 'toggle-switch', label: 'annotator', contenturl: data.url('widget/pencil-off.png'), contentscriptwhen: 'ready', contentscriptfile: data.url('widget/widget.js') }); widget.port.on('left-click', function() { console.log('activate/deactivate'); widget.contenturl = toggleactivation() ?
...ts.widget({ id: 'toggle-switch', label: 'annotator', contenturl: data.url('widget/pencil-off.png'), contentscriptwhen: 'ready', contentscriptfile: data.url('widget/widget.js') }); widget.port.on('left-click', function() { console.log('activate/deactivate'); widget.contenturl = toggleactivation() ?
Listen for Page Load - Archive of obsolete content
to follow this tutorial you'll need to have learned the basics of jpm.
... to follow this tutorial you'll need to have learned the basics of jpm.
... to follow this tutorial you'll need to have learned the basics of jpm.
... to follow this tutorial you'll need to have learned the basics of jpm.
HTML to DOM - Archive of obsolete content
e.donkeybrowser_onpageload(e); }, true); } with that code, we obtain a reference to the iframe element we declared in the .xul file.
... the most interesting piece of code here is the domcontentloaded event listener we define for the element.
...t interesting piece of code here is the domcontentloaded event listener we define for the element.
... a real page, let's do our magic dump("[df] url = "+url+"\n"); var text = doc.evaluate("/html/body/h1",doc,null,xpathresult.string_type,null).stringvalue; dump("[df] text in /html/body/h1 = "+text+"\n"); } }, as you can see, we obtain full access to the dom of the page we loaded in background, and we can even evaluate xpath expressions.
Miscellaneous - Archive of obsolete content
in the currently active tab from the context of browser.xul gbrowser.docshell.allowjavascript = false; if this isn't your browser, you should save the value and restore it when finished.
...active tab from the context of browser.xul gbrowser.docshell.allowjavascript = false; if this isn't your browser, you should save the value and restore it when finished.
...wing manner: var common = { _bundle: components.classes["@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice) .createbundle("chrome://myext/locale/myext.properties"), getlocalizedmessage: function(msg) { return this._bundle.getstringfromname(msg); } }; alert(common.getlocalizedmessage("invalid.url")) another similar alternative (using both getstringfromname and formatstringfromname), is: var fcbundle = components.classes["@mozilla.org/intl/stringbundle;1"] .getservice(components.interfaces.nsistringbundleservice) .createbundle("chrome://myext/locale/myext.properties"); function getstr(msg, args){ //get localised message if (args){ args = array.prototy...
...ce(components.interfaces.nsistringbundleservice) .createbundle("chrome://myext/locale/myext.properties"); function getstr(msg, args){ //get localised message if (args){ args = array.prototype.slice.call(arguments, 1); return fcbundle.formatstringfromname(msg,args,args.length); } else { return fcbundle.getstringfromname(msg); } } /* usage */ alert(getstr("invalid.url", "http://bad/url/", "3")); //for message with parameters alert(getstr("invalid.url")); //for message without parameters getting postdata of a webpage first, you need to get the browser you want, and its historysession.
View Source for XUL Applications - Archive of obsolete content
ing directly is the viewsource method.
...ource method.
...document that we want to view the source of.
...we want to view the source of.
Deploying a Plugin as an Extension - Archive of obsolete content
he extension manager will include an entry for the rhapsody player engine.
...clude an entry for the rhapsody player engine.
...use it is an extension, we can disable/enable it, as well as uninstall it.
...n extension, we can disable/enable it, as well as uninstall it.
Chapter 6: Firefox extensions and XUL applications - Archive of obsolete content
elopment.
...r debugging, but you’ll need to lift this restriction in order to develop extensions.
...ue to shift to that location and start investigating again.
...lot about how software works by studying its source code; with a massive project like firefox, people typically use special source-code browsing tools to make sense of it.
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
writing and displaying presentations to try out the code samples in this chapter, save them as text files with .xul extensions and drag and drop them into the firefox browser window.
...ute insertafter.
...nal entities being a form of xml, xul can also use entity references based on dtds (document type definitions) as shown in listing 26.
...m it is running on.
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
the data loader component will be interacting with this iframe element, requesting data from the server.
...e is loaded into the iframe) this will not affect the web page context because the iframe is not visible.
...to improve accessibility to information in traditional web pages.
...e fix if(document.all) tagname="nde:"+tagname; valuee=article.getelementsbytagname(tagname).item(0).firstchild.nodevalue; tagname="summary"; // ie fix if(document.all) tagname="nde:"+tagname; paraa=article.getelementsbytagname(tagname).item(0).firstchild.nodevalue; linkk=article.getattribute("url"); strvalue="<div class='nde-blurb'><h3><a href='"+linkk+"'>"+valuee+"</a></h3><p>"+paraa+"</p></div>"; document.getelementbyid("container").innerhtml+=strvalue; } } if(previousele) { previousele.style.backgroundcolor="white"; } ele.style.backgroundcolor="#ddeeff"; previousele=ele; } var previousele=null; </script> <style> .tab { position:relative;top:1px; border: 1px sol...
MMgc - Archive of obsolete content
some assembly code in the avm+.
...does already).
...e harder because there are a good # of gc roots.
...se there are a good # of gc roots.
Bookmark Keywords - Archive of obsolete content
o useful resources, bookmarks in mozilla can be used to make the address bar itself a power tool.
...'ll pardon the pun, is the ability to add a keyword to any mozilla bookmark.
...switch to the "location:" field and go all the way to the end.
...his result page has been bookmarked, we need only adjust the boookmark's properties.
Making it into a dynamic overlay and packaging it up for distribution - Archive of obsolete content
te, firefox 1.0.
...rectory called tinderstatus-installer.
...lns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript" src="chrome://tinderstatus/content/tinderstatus.js" /> <statusbar id="status-bar"> <statusbarpanel class="statusbarpanel-iconic" id="tinderbox-status" insertbefore="offline-status" status="none"/> </statusbar> </overlay> we also need to change the urls in the copy of tinderstatus.css: statusbarpanel#tinderbox-status { list-style-image: url("chrome://tinderstatus/content/tb-nostatus.png"); } statusbarpanel#tinderbox-status[status="success"] { list-style-image: url("chrome://tinderstatus/content/tb-success.png"); } statusbarpanel#tinderbox-status[status="testfailed"] { list-style-image: url("chrome://tinderstatus/content/tb-testfailed.p...
...le-image: url("chrome://tinderstatus/content/tb-nostatus.png"); } statusbarpanel#tinderbox-status[status="success"] { list-style-image: url("chrome://tinderstatus/content/tb-success.png"); } statusbarpanel#tinderbox-status[status="testfailed"] { list-style-image: url("chrome://tinderstatus/content/tb-testfailed.png"); } statusbarpanel#tinderbox-status[status="busted"] { list-style-image: url("chrome://tinderstatus/content/tb-busted.png"); } then we need to create two files in the directory, one called contents.rdf which contains information for the chrome registry about the component being installed and one called install.js that contains the code to install the component.
Tabs - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Tabs
iftstringsortstringsplicestringunshiftstring)this is some default text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
... default text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
...lt text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
...text lengththe number of open tabsstring focusedthe current tab in your browserstring tostringstuffstring popstuffstring pushstuffstring reversestuffstring shiftstuffstring sortstuffstring splicestuffstring unshiftstuffstring onready()when the inherited document is fully loaded.
slideBar - Archive of obsolete content
a reinvention of the old sidebar features of browsers.
...hind the current webpage.
...d the current webpage.
...l to load content for the featureuri widthwidth of the content area and the selected slide sizeint persistdefault slide behavior when being selectedbool autoreloadautomatically reload content on selectbool onclickcallback when the icon is clickedfunction onselectcallback when the feature is selectedfunction onreadycallback when featured is loadedfunction an example: jetpack.slidebar.append({ url: "http://mozilla.com", width: 150, onclick: function(slide){ slide.icon.src = "chrome://branding/content/icon48.png"; }}); ...
Supporting private browsing mode - Archive of obsolete content
reference called "disable station history and scrobble when firefox is in private mode", and disabling publishing of that information inside the private browsing mode by default.
...heme designers if you want to make your theme look different when used in private browsing mode, you can do so quite easily by using the browsingmode attribute in the window element in browser.xul.
...mode, you can do so quite easily by using the browsingmode attribute in the window element in browser.xul.
...sensitive data while private browsing mode is active.
treecol.type - Archive of obsolete content
ent theme's checkboxes: treechildren::-moz-tree-checkbox { /* unchecked checkbox treecells.
...heckbox treecells.
...box-check.gif isn't available in firefox 1, 2, and 3 in mac os x so you should specify a url to an image in your extension or elsewhere.
... should specify a url to an image in your extension or elsewhere.
Uploading and Downloading Files - Archive of obsolete content
tible with existing servers and formdata interface makes that task fairly simple.
...rm-data that existing servers can process.
...ilepath)); var req = new xmlhttprequest(); req.open("post", posturl); req.onload = function(event) { alert(event.target.responsetext); }; req.send(formdata); } http put you can also upload a file using an http put operation.
...; req.onload = function(event) { alert(event.target.responsetext); }; req.send(formdata); } http put you can also upload a file using an http put operation.
Namespaces - Archive of obsolete content
ds).
..., a namespace is an abstract container providing context for the items ...
...or the items ...
...lds and allows disambiguation of items having the same name." if you are familiar with c++ namespaces, java packages, perl packages, or python module importing, you are already familiar with the namespace concept.
Building Trees - Archive of obsolete content
f source): <tree id="photoslist" flex="1" datasources="template-guide-photos5.rdf" ref="http://www.xulplanet.com/rdf/myphotos" flags="dont-build-content"> <treecols> <treecol id="name" label="name" flex="1"/> <treecol id="date" label="date" flex="1"/> </treecols> <template> <treechildren> <treeitem uri="rdf:*"> <treerow> <treecell label="rdf:http://purl.org/dc/elements/1.1/title"/> <treecell label="rdf:http://purl.org/dc/elements/1.1/date"/> </treerow> </treeitem> </treechildren> </template> </tree> note: the tree columns (treecols) are declared outside the template as static content, since they only need to be declared once.
...asks the view for the contents of each cell.
...ontent"> <treecols> <treecol id="photo" label="photo" flex="1"/> </treecols> <template> <treechildren> <treeitem uri="rdf:*"> <treerow> <treecell src="rdf:*"/> </treerow> </treeitem> </treechildren> </template> </tree> this tree displays each photo in the tree cells.
...y associated with a photo as a property of a tree’s rows.
Template Builder Interface - Archive of obsolete content
for example, to generate html elements.
...n't be able to specify a value for the datasources attribute, and a template builder would not be attached to the element.
...specify a value for the datasources attribute, and a template builder would not be attached to the element.
...ce 'rdf:local-store' is always included even if you don't specify it.
Complete - Archive of obsolete content
and modern).
...ling the extension, the locales en-us and fr-fr are both registered for the component allcustom.
...used by seamonkey.
...extensions window.
SeaMonkey - making custom toolbar (SM ver. 1.x) - Archive of obsolete content
ete these two files: chrome.rdf overlays.rdf explanation: seamonkey automatically rebuilds these files the next time it starts.
...he file.
...he toolbar.
...:name="myapp" chrome:localeversion="1.8" chrome:skinversion="1.5" chrome:extension="true"/> </rdf:rdf> replace the fields in bold with your xul file name and change the displayname, description, and author attributes as suits you.
Adding Style Sheets - Archive of obsolete content
, borders, and size of elements.
... system, you have two choices.
...ng the import directive.
...rt from css: @import url(chrome://global/skin/); the second syntax is preferred because it reduces the number of dependencies within the xul file itself.
Advanced Rules - Archive of obsolete content
four resources and the builder will generate content for each of the four.
...r.
...is used to check for the existence of a given triple (or assertion) in the rdf datasource.
...ww.mozilla.org this means that there is a triple between the bookmark 'a bookmark to mozilla.org' and 'www.mozilla.org' by the url property.
Introduction to XBL - Archive of obsolete content
ther called binding2.
...ther to a menu.
...f you use css classes, you can use as many different bindings as you need.
...wing example demonstrates this.
More Button Features - Archive of obsolete content
« previousnext » in this section, we will look at some additional features of buttons.
... « previousnext » in this section, we will look at some additional features of buttons.
... « previousnext » in this section, we will look at some additional features of buttons.
...n label="help" image="happy.png"/> button with css image another way to specify the image is by using the css list-style-image style property on the button.
Skinning XUL Files by Hand - Archive of obsolete content
u probably want your xul file to pick up the global changes when the application is dynamically reskinned.
... form is a great advantage of xul, and it should not be overlooked.
...e styles for elements in a hierarchy, but it is not itself hierarchical, as you saw in the global skin.
...inition, the "a" element picks up the style information defined in the block only when it is, as a link, active.
Writing Skinnable XUL and CSS - Archive of obsolete content
tor package should contain a file called navigator.css that determines the default look of all xul windows posed from this package.
...ugh the chrome registry.
...ys that should take place using the chrome registry include the security padlock icon and any messenger ui in the navigator window.
...y forbidden in the xul.
prefwindow - Archive of obsolete content
ane) this probably isn't a public method (?) canceldialog() return type: no return value cancels the dialog and closes it, similar to pressing the cancel button.
... return type: button element returns the button element in the dialog corresponding to the given type.
...y this method would be used to allow the user to configure advanced options.
...the main dialog is closed.
XULRunner tips - Archive of obsolete content
.chrome", "extension:manager-extensions"); pref("extensions.update.enabled", true); pref("extensions.update.interval", 86400); pref("extensions.dss.enabled", false); pref("extensions.dss.switchpending", false); pref("extensions.ignoremtimechanges", false); pref("extensions.logging.enabled", false); pref("general.skins.selectedskin", "classic/1.0"); // nb these point at amo pref("extensions.update.url", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getmoreextensionsurl", "chrome://mozapps/locale/extensions/extensions.properties"); pref("extensions.getmorethemesurl", "chrome://mozapps/locale/extensions/extensions.properties"); if your application is based on gecko 2.0, you need to register a component through the new component registration because the extension...
...py files fuelapplication.js and fuelapplication.manifest from browser/fuel/src for instance into your components/ directory tweak the line #include ../../../toolkit/components/exthelper/extapplication.js in your copy of fuelapplication.js as needed make sure to declare the fuel module and the two files in your components/makefile.in as in browser/fuel/src/makefile.in rebuild...
...om browser/fuel/src for instance into your components/ directory tweak the line #include ../../../toolkit/components/exthelper/extapplication.js in your copy of fuelapplication.js as needed make sure to declare the fuel module and the two files in your components/makefile.in as in browser/fuel/src/makefile.in rebuild...
...global/skin/" and this alias was maintained in the xulrunner toolkit until xulrunner 1.9 was released.
NPN_GetAuthenticationInfo - Archive of obsolete content
odes.
... plugin which implement their own http networking stack (such as the java plugin) may want to use the standard http auth prompts and password managed of the browser.
...ttp networking stack (such as the java plugin) may want to use the standard http auth prompts and password managed of the browser.
... (such as the java plugin) may want to use the standard http auth prompts and password managed of the browser.
Theme changes in Firefox 3 - Archive of obsolete content
he yellow background for the location bar has been deprecated; instead, themes should style the new #identity-box element depending on its verifieddomain/verifiedidentity class.
...n bar has been deprecated; instead, themes should style the new #identity-box element depending on its verifieddomain/verifiedidentity class.
... themes should style the new #identity-box element depending on its verifieddomain/verifiedidentity class.
...tity-box element depending on its verifieddomain/verifiedidentity class.
Styling lists - Learn web development
value is outside, which causes the bullets to sit outside the list items, as seen above.
...tion, size, etc.
...ntil they fill up the available background space.
..., so we set this to a value of no-repeat.
Video and Audio APIs - Learn web development
opacity of 0.5 by default, so that they are less distracting when you are trying to watch the video.
...stracting when you are trying to watch the video.
...ver the player do the controls appear at full opacity.
...he buttons inside the control bar using flexbox (display: flex), to make things easier.
A first splash into JavaScript - Learn web development
functions are reusable blocks of code that you can write once and run again and again, saving the need to keep repeating code all the time.
... of code that you can write once and run again and again, saving the need to keep repeating code all the time.
...tructor, just to make sure the value is definitely a number.
...lock (lines 3–5 above).
Introduction to the server side - Learn web development
h users.
...h web servers using the hypertext transfer protocol (http).
... a new html page, or an image, etc...), which could then be displayed by the web browser.
...ses).
Embedding API for Accessibility
accepting special content on an instance basis after being notified of special content, the user needs to be able to select specific unloaded content for loading.
...s to be able to select specific unloaded content for loading.
...raccessible interface, so that there is a method to force loading each type of content just for the current page in the current session.
...etting certain preferences based on the url.
Internationalized Domain Names (IDN) Support in Mozilla Browsers
tp://developer.mozilla.org, it passes a request to the dns resolver service (usually built into an os), which in turn sends a request to a nearest domain name server to return an ip address that corresponds to the host name.
...omain name server to return an ip address that corresponds to the host name.
...on of the icann guideline for idn in june of 2003.
...ing known as race or row-based ascii compatible encoding, which was not accepted as a standard by ietf.
AddonScreenshot
a screenshot object for an add-on can have following attributes.
... a screenshot object for an add-on can have following attributes.
... a screenshot object for an add-on can have following attributes.
... a screenshot object for an add-on can have following attributes.
AddonUpdateChecker
m"); method overview updateinfo getcompatibilityupdate(in updateinfo updates[], in string version, in boolean ignorecompatibility, in string appversion, in string platformversion) updateinfo getnewestcompatibleupdate(in updateinfo updates[], in string appversion, in string platformversion) void checkforupdates(in string id, in string type, in string updatekey, string url, in updatechecklistener listener) constants constant description error_timeout the update check timed out.
... in string appversion, in string platformversion ) parameters updates an array of update objects appversion the version of the application or null to use the current version platformversion the version of the platform or null to use the current version checkforupdates() starts an update check.
...sion of the platform or null to use the current version checkforupdates() starts an update check.
...he platform or null to use the current version checkforupdates() starts an update check.
UpdateInfo
updateinfo objects hold information about available versions of add-ons and are generated as a result of an update check performed by addonupdatechecker.
... updateinfo objects hold information about available versions of add-ons and are generated as a result of an update check performed by addonupdatechecker.
...n about available versions of add-ons and are generated as a result of an update check performed by addonupdatechecker.
...ersions of add-ons and are generated as a result of an update check performed by addonupdatechecker.
Extras
style="stop-color:rgb(255,0,0); stop-opacity:.8;"/> </radialgradient> </defs> <g transform="translate(15,15)"> <g> <animatetransform attributename="transform" attributetype="xml" type="rotate" from="360" to="0" dur="15s" repeatcount="indefinite"/> <g transform="translate(-15, -15)"> <path fill="url(#radgrad1)" d="m 15 0 l 20 10 l 30 15 l 20 20 l 15 30 l 10 20 l 0 15 l 10 10"/> </g> </g> </g> </svg> </mtext> </mpadded> </msqrt> <mo>=</mo> <msubsup> <mo>∫</mo> <mn>0</mn> <mfrac> <mi>π</mi> <mn>2</mn> </mfrac> </msubsup> <msup> <mi>θ</mi> <mtext> <svg width="15px" height="15px"> <defs> <radialgradient id="radgrad2" cx="50%" cy="50%" r="50%" ...
..." fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(255,255,255); stop-opacity:1;"/> <stop offset="100%" style="stop-color:rgb(0,0,255); stop-opacity:.9;"/> </radialgradient> </defs> <g> <animatemotion path="m0,0 l3,0 l2,5 l5,5 l0,4 l5,2 z" begin="0s" dur="0.5s" repeatcount="indefinite"/> <circle fill="url(#radgrad2)" r="5px" cx="5px" cy="5px"/> </g> </svg> </mtext> </msup> <mrow> <mo>â…†</mo> <mi>θ</mi> </mrow> </math> <div style="width: 300px; margin-left: auto; margin-right: auto;"> <svg width="300px" height="250px"> <defs> <lineargradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%"> <stop offset="0%" style="stop-color:rgb(0,0,255);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(0...
...rgb(255,0,0);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(255,255,0);stop-opacity:1"/> </lineargradient> <radialgradient id="grad3" cx="50%" cy="50%" r="50%" fx="50%" fy="50%"> <stop offset="0%" style="stop-color:rgb(0,255,255);stop-opacity:1"/> <stop offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:.8"/> </radialgradient> </defs> <rect width="300" height="250" fill="url(#grad1)"/> <g transform="translate(150,125)"> <g> <animatetransform attributename="transform" attributetype="xml" type="rotate" from="0" to="360" dur="6s" repeatcount="indefinite"/> <g transform="translate(-50,-35)"> <rect width="100" height="70" fill="url(#grad2)"/> <switch> <foreignobject width="100" height="70" re...
...temotion path="m 32,69 c 64,121 100,27 152,42 203,56 239,257 275,161 295,109 144,221 88,214 -2,202 11,35 32,69 z" begin="0s" dur="20s" repeatcount="indefinite"/> <animatetransform attributename="transform" attributetype="xml" type="scale" values="1;2;.5;1" keytimes="0;.25;.75;1" dur="20s" repeatcount="indefinite"/> <circle fill="url(#grad3)" r="30"/> <g transform="translate(-30,-30)"> <switch> <foreignobject width="60" height="60" requiredextensions="http://www.w3.org/1998/math/mathml"> <math display="block"> <mrow> <munderover> <mo>∑</mo> <mrow> <mi>n</mi> <mo>=</mo> <mn>0</mn> </mrow> <mrow> <mo>+</mo> <mi>∞</mi> </mrow> </munderover> <mfrac> <msup> <mi>α</mi> <mi>n</mi> </msup> <mrow> <mi>n</mi> <mo>!</mo> </mrow> </...
Mozilla DOM Hacking Guide
getelementbyid() on the nsidomdocument interface.
...vel 0 objects and methods.
... this is the first step.
...getstringchars(val)), ::js_getstringlength(val)); // convert the jsstring to a string that can be passed to sethref() rv = location->sethref(href); ns_ensure_success(rv, rv); // after this, we effectively mapped .location to .location.href return wrapnative(cx, obj, location, ns_get_iid(nsidomlocation), vp); // create a wrapper for the location object with vp (the url) as value.
Profiling with the Firefox Profiler
at particular frame and not the total of all called instances of that function.
...l into the "filter stacks" box.
... entered into the "filter stacks" box.
...added to presshell::paint to show the url of the document being painted.
Reporting a Performance Problem
this article will guide you in reporting a performance problem using the built-in gecko profiler tool.
...will allow you to upload this profile and once completed will write out a link.
...l write out a link.
...acy sensitive information, the less information a profile contains, the harder it is to analyze and turn into actionable data.
AsyncTestUtils extended framework
t take care of all of this, so all you need to do is pass their return values through.
... of this, so all you need to do is pass their return values through.
...s through.
... done with it.
NSS tools : crlutil
nickname string with quotation marks if it contains spaces.
... with quotation marks if it contains spaces.
...ion list management tool's capabilities are grouped as follows, using these combinations of options and arguments.
...r a named crl: crlutil -l [-n crl-name] [-d krydir] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * import crl from file: crlutil -i -i crl [-t crltype] [-u url] [-d keydir] [-p dbprefix] [-b] see also certutil(1) see also additional resources nss is maintained in conjunction with pki and security-related projects through mozilla dn fedora.
NSS Tools crlutil
fy the output file name for new crl.
...acket the output-file string with quotation marks if it contains spaces.
...y date of a cert.
...options and arguments.
NSS tools : crlutil
Mozilla › Projects › NSS › tools › crlutil
tput-file specify the output file name for new crl.
...y the output file name for new crl.
...ment tool's capabilities are grouped as follows, using these combinations of options and arguments.
...eleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * deleting crl from db: crlutil -d -n nickname [-d keydir] [-p dbprefix] * erasing crls from db: crlutil -e [-d keydir] [-p dbprefix] * import crl from file: crlutil -i -i crl [-t crltype] [-u url] [-d keydir] [-p dbprefix] [-b] see also certutil(1) see also additional resources nss is maintained in conjunction with pki and security-related projects through mozilla dn fedora.
Necko Interfaces Overview
warning: the content of this article may be out of date.
... warning: the content of this article may be out of date.
... warning: the content of this article may be out of date.
...handlers thin layer over protocol handlers provides interface for creating uri objects from uri strings maps uri scheme to appropriate nsiprotocolhandler impl nsiuri (nsiurl, nsifileurl, nsistandardurl) represents an uri, with getters and setters for various uri parts (eg.
JS_CompileFunction
.
...to pass to the function.
... body const char * or const jschar * string containing the body of the function to compile.
...ed function.
JS_CompileFunctionForPrincipals
nargs unsigned int number of arguments to pass to the function.
... to the function.
... body const char * or const jschar * string containing the source code of the function to compile.
...eated function.
JS_CompileScriptForPrincipals
t.
...cript is associated.
...for this script.
...xecution.
JS_EvaluateScript
er must be in a request on this jscontext.
...j jsobject * the scope in which to execute the script.
... src const char * or const jschar * string containing the script to compile and execute.
...rameter.
JS_EvaluateScriptForPrincipals
is documented in detail at js_executescript.
...principals jsprincipals * pointer to the structure holding the security information for this script.
.../ bytes / chars const char * or const jschar string containing the script to compile and execute.
...ompiles and executes a script in the specified scope, obj.
Redis Tips
memory usage in redis is important to think about.
...tant to think about.
... the speed benefits of redis are lost when you overflow into disk memory.
...u: prefix makes it extra clear what these keys are for.
Components.utils.unload
d give a new reference.
...if the javascript code module has not yet been imported then this method will do nothing.
...ule has not yet been imported then this method will do nothing.
... do nothing.
amIInstallCallback
toolkit/mozapps/extensions/amiinstalltrigger.idlscriptable a callback function that web pages can implement to be notified when triggered installs complete.
...ges can implement to be notified when triggered installs complete.
...ered installs complete.
...talls complete.
nsIAlertsService
s x in gecko 1.9.
...l,[optional] in boolean inprivatebrowsing); void closealert([optional] in astring name, [optional] in nsiprincipal principal); methods showalertnotification() displays a notification window.
...rtnotification( in astring imageurl, in astring title, in astring text, in boolean textclickable, optional in astring cookie, optional in nsiobserver alertlistener, optional in astring name, optional in astring dir, optional in astring lang, optional in astring data, optional in nsiprincipal principal, optional in boolean inprivatebrowsing, optional ); parameters imageurl a url identifying the image to display in the notification alert.
... language of title and text of the alert.
nsIDOMMozNetworkStatsManager
is an nsidommoznetworkstats object describing the network statistics.
...sed to filter an alarm request made when calling addalarm().
...ter network stats by system service.
...ats by system service.
nsITaggingService
nsivariant gettagsforuri(in nsiuri auri, [optional] out unsigned long length, [retval, array, size_is(length)] out wstring atags); attributes attribute type description alltags nsivariant retrieves all tags used to tag uris in the data-base (sorted by name).
... attributes attribute type description alltags nsivariant retrieves all tags used to tag uris in the data-base (sorted by name).
... by name).
...en uri are ignored.
nsIUTF8ConverterService
imap folder names).
...ptions thrown ns_error_uconv_noconv when there is no decoder for acharset or error code of nsiunicodedecoder in case of conversion failure.
... when there is no decoder for acharset or error code of nsiunicodedecoder in case of conversion failure.
...f your spec is not in utf-8 (before url-escaping) because the presence of non-ascii characters is blindly regarded as an indication that your input spec is in unescaped utf-8 and it will be returned without further processing.
nsIUpdatePatch
representing a patch file that can be downloaded and applied to a version of this application so that it can be updated.
...file that can be downloaded and applied to a version of this application so that it can be updated.
... installed for this update transaction.
...his update transaction.
nsIWorkerFactory
t anymore to create workers from chrome.
...n instance, use: var workerfactory = components.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); method overview nsiworker newchromeworker(in domstring ascripturl); methods newchromeworker() returns a new chromeworker that will run a specified script.
...ctory = components.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); method overview nsiworker newchromeworker(in domstring ascripturl); methods newchromeworker() returns a new chromeworker that will run a specified script.
...omponents.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); method overview nsiworker newchromeworker(in domstring ascripturl); methods newchromeworker() returns a new chromeworker that will run a specified script.
nsPIPromptService
log.
....
...so nsisound.playeventsound().
...und.playeventsound().
Using the clipboard
ponents.classes["@mozilla.org/widget/clipboardhelper;1"] .getservice(components.interfaces.nsiclipboardhelper); gclipboardhelper.copystring("put me on the clipboard, please."); this example will first create a clipboard helper and then copy a short string to the clipboard.
...e", supportsstring(copytext), copytext.length * 2); services.clipboard.setdata(trans, null, services.clipboard.kglobalclipboard); the complete function shown below copies some text to the clipboard as html, as well as making it a clickable hyperlink.
...balclipboard); the complete function shown below copies some text to the clipboard as html, as well as making it a clickable hyperlink.
...n below copies some text to the clipboard as html, as well as making it a clickable hyperlink.
Autoconfiguration in Thunderbird
host customer domains, i.e.
...below.
...preferred) and <https://example.com/.well-known/autoconfig/mail/config-v1.1.xml> and the same urls with http (see section ssl below).
...es, that means something like: listen 10.2.3.4:80 (of course, you use a public ip address that you own) <virtualhost 10.2.3.4:80> #must be the first and only virtual host with this ip!
Index
ame manner as the core xpcshell-tests.
...the mailbox protocol is used to read messages from a local folder berkeley mailbox.
...ead messages from a local folder berkeley mailbox.
...older berkeley mailbox.
MailNews Filters
ne of the actions is a move, or a stop filter execution action, we move on to the next header; otherwise, we move on to the next filter.
...cution action, we move on to the next header; otherwise, we move on to the next filter.
...; otherwise, we move on to the next filter.
...criteria and apply the actions synchronously, including moving a message to an other local folder, and advance to the next header.
Mailbox
the mailbox protocol is used to read messages from a local folder berkeley mailbox.
...the mailbox protocol is used to read messages from a local folder berkeley mailbox.
...ead messages from a local folder berkeley mailbox.
...older berkeley mailbox.
Theme Packaging
tall-manifest"> <em:type>4</em:type> more properties </description> </rdf> required install.rdf properties your install.rdf file must have the following properties.
...> <em:type>4</em:type> more properties </description> </rdf> required install.rdf properties your install.rdf file must have the following properties.
...ile must have the following properties.
...-9b0e-13a3a9e97384}</em:id> <em:minversion>0.8</em:minversion> <em:maxversion>0.9</em:maxversion> </description> </em:targetapplication> <!-- front end metadata --> <em:name>new theme 1</em:name> <em:description>a test theme for thunderbird</em:description> <em:creator>ben goodger</em:creator> <em:contributor>john doe</em:contributor> <em:homepageurl>http://www.bengoodger.com/</em:homepageurl> <!-- front end integration hooks (used by theme manager)--> <em:internalname>newtheme1</em:internalname> </description> </rdf> the following are some common target application guids that you can use in your targetapplication properties: thunderbird {3550f703-e582-4d05-9a08-453d09bdfdc6} seamonkey {92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a} ...
Streams - Plugins
« previousnext » this chapter describes using plug-in api functions to receive and send streams.
... « previousnext » this chapter describes using plug-in api functions to receive and send streams.
...the stream is not seekable, these requests are fulfilled only when all the data has been read and stored in the cache.
...ulfilled only when all the data has been read and stored in the cache.
Introduction to DOM Inspector - Firefox Developer Tools
ded chrome windows and subdocuments.
...indow and the dom inspector are likely be already open and displayed in this list.
...are likely be already open and displayed in this list.
....
Debugger.Frame - Firefox Developer Tools
al code is the variableenvironment of the execution context that this frame represents.) if implementation restrictions prevent spidermonkey from extending this frame’s environment as requested, this call throws an error exception.
...eenvironment of the execution context that this frame represents.) if implementation restrictions prevent spidermonkey from extending this frame’s environment as requested, this call throws an error exception.
...mplementation restrictions prevent spidermonkey from extending this frame’s environment as requested, this call throws an error exception.
...exception.
Body - Web APIs
Web › API › Body
, we need to run body.blob() (response implements body) to give the response its correct mime type.
...eed to run body.blob() (response implements body) to give the response its correct mime type.
...blob() (response implements body) to give the response its correct mime type.
...) to give the response its correct mime type.
Cache.addAll() - Web APIs
Web › API › Cache › addAll
the addall() method of the cache interface takes an array of urls, retrieves them, and adds the resulting response objects to the given cache.
...tored response operations.
...che that match the request, but will fail if a resulting put() operation would overwrite a previous cache entry stored by the same addall() method.
...od.
Cache.keys() - Web APIs
Web › API › Cache › keys
the keys() method of the cache interface returns a promise that resolves to an array of cache keys.
...e order that they were inserted.
...g with your array of requests }); parameters request optional the request want to return, if a specific key is desired.
...com/?value=bar would be ignored when performing a match.
Cache.put() - Web APIs
Web › API › Cache › put
the put() method of the cache interface allows key/value pairs to be added to the current cache object.
...to the current cache object.
...t cache responses with response.status values that are not in the 200 range, whereas cache.put lets you store any request/response pair.
..., whereas cache.put can.
CacheStorage.match() - Web APIs
the match() method of the cachestorage interface checks if a given request or url string is a key for a stored response.
... in creation order.
...unction(response) { // do something with the response }); parameters request the request you want to match.
....com/?value=bar would be ignored when performing a match.
ContentIndex.getAll() - Web APIs
array of contentdescription items.
...tems.
...ring containing the url of the corresponding html document.
...readinglistelem.append(message); } else { // if entries are present, display in a list of links to the content const listelem = document.createelement('ul'); for (const entry of entries) { const listitem = document.createelement('li'); const anchorelem = document.createelement('a'); anchorelem.innertext = entry.title; anchorelem.setattribute('href', entry.url); listelem.append(listitem); } readinglistelem.append(listelem); } } specifications specification status comment unknownthe definition of 'getall' in that specification.
DOMException - Web APIs
vascript typeerror exception is now raised instead of a domexception with this value.
...s now raised instead of a domexception with this value.
...omexception with this value.
...tion is insecure.
GlobalEventHandlers.onerror - Web APIs
error reports.
...error reported is simply "script error." this behavior can be overriden in some browsers using the crossorigin attribute on <script> and having the server send the appropriate cors http response headers.
... knowing that the error detail is only viewable in the browser console and not accessible via javascript.
...that the error detail is only viewable in the browser console and not accessible via javascript.
HTMLCanvasElement.mozGetAsFile() - Web APIs
image file from the <canvas> element on the page, then uses a filereader to read the image data from the file.
...nvas> element on the page, then uses a filereader to read the image data from the file.
...ata from the file.
...); ctx.fillstyle = 'rgb(200, 0, 0)'; ctx.fillrect(10, 10, 55, 50); ctx.fillstyle = 'rgba(0, 0, 200, 0.5)'; ctx.fillrect(30, 30, 55, 50); var link = document.getelementbyid('link'); link.addeventlistener('click', copy); } function copy() { var canvas = document.getelementbyid('canvas'); var f = canvas.mozgetasfile('test.png'); var reader = new filereader(); reader.readasdataurl(f); reader.onloadend = function() { var newimg = document.createelement('img'); newimg.src = reader.result; document.body.appendchild(newimg); } } window.addeventlistener('load', draw); specifications not part of any specification.
HTMLHyperlinkElementUtils.search - Web APIs
the htmlhyperlinkelementutils.search property is a search string, also called a query string, that is usvstring containing a '?' followed by the parameters of the url.
... the htmlhyperlinkelementutils.search property is a search string, also called a query string, that is usvstring containing a '?' followed by the parameters of the url.
... the htmlhyperlinkelementutils.search property is a search string, also called a query string, that is usvstring containing a '?' followed by the parameters of the url.
...asy to parse out the parameters from the querystring.
HTMLImageElement.longDesc - Web APIs
the obsolete property longdesc on the htmlimageelement interface specifies the url of a text or html file which contains a long-form description of the image.
... the obsolete property longdesc on the htmlimageelement interface specifies the url of a text or html file which contains a long-form description of the image.
... the obsolete property longdesc on the htmlimageelement interface specifies the url of a text or html file which contains a long-form description of the image.
...fies the url of a text or html file which contains a long-form description of the image.
HTMLImageElement.lowSrc - Web APIs
the htmlimageelement interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-loading version of the image specified by the src property.
... the htmlimageelement interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-loading version of the image specified by the src property.
... the htmlimageelement interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-loading version of the image specified by the src property.
... the htmlimageelement interface's obsolete lowsrc property can be used to specify the url of a reduced-quality or otherwise faster-loading version of the image specified by the src property.
HTMLMediaElement.src - Web APIs
the htmlmediaelement.src property reflects the value of the html media element's src attribute, which indicates the url of a media resource to use in the element.
... the htmlmediaelement.src property reflects the value of the html media element's src attribute, which indicates the url of a media resource to use in the element.
...which indicates the url of a media resource to use in the element.
...ote: the best way to know the url of the media resource currently in active use in this element is to look at the value of the currentsrc attribute, which also takes into account selection of a best or preferred media resource from a list provided in an htmlsourceelement (which represents a <source> element).
installChrome - Web APIs
installchrome installs new skin or locale packages in netscape 6 and mozilla.
... installchrome installs new skin or locale packages in netscape 6 and mozilla.
... installchrome installs new skin or locale packages in netscape 6 and mozilla.
... installchrome installs new skin or locale packages in netscape 6 and mozilla.
startSoftwareUpdate - Web APIs
summary triggers the downloading and installation of the software at the specified url.
... summary triggers the downloading and installation of the software at the specified url.
... summary triggers the downloading and installation of the software at the specified url.
...e specified url.
Location: search - Web APIs
Web › API › Location › search
the search property of the location interface is a search string, also called a query string; that is, a usvstring containing a '?' followed by the parameters of the url.
... the search property of the location interface is a search string, also called a query string; that is, a usvstring containing a '?' followed by the parameters of the url.
... the search property of the location interface is a search string, also called a query string; that is, a usvstring containing a '?' followed by the parameters of the url.
...rams to make it easy to parse out the parameters from the querystring.
MediaRecorder.ondataavailable - Web APIs
ction(event) { ...
...{ ...
...order.addeventlistener('dataavailable', function(event) { ...
...lable', function(event) { ...
MediaRecorder.onstop - Web APIs
x mediarecorder.onstop = function(event) { ...
...der.onstop = function(event) { ...
...ction(event) { ...
...er.addeventlistener('stop', function(event) { ...
Recording a media element - Web APIs
review.srcobject = stream; downloadbutton.href = stream; preview.capturestream = preview.capturestream || preview.mozcapturestream; return new promise(resolve => preview.onplaying = resolve); }).then(() => startrecording(preview.capturestream(), recordingtimems)) .then (recordedchunks => { let recordedblob = new blob(recordedchunks, { type: "video/webm" }); recording.src = url.createobjecturl(recordedblob); downloadbutton.href = recording.src; downloadbutton.download = "recordedvideo.webm"; log("successfully recorded " + recordedblob.size + " bytes of " + recordedblob.type + " media."); }) .catch(log); }, false); when a click event occurs, here's what happens: lines 2-4 navigator.mediadevices.getusermedia() is called to request a new media...
...ks of recorded media data) once recording has completed.
...edia data) once recording has completed.
...as completed.
MerchantValidationEvent() - Web APIs
ers type a domstring which must be merchantvalidation, the only type of event which uses the merchantvalidationevent interface.
...tring which must be merchantvalidation, the only type of event which uses the merchantvalidationevent interface.
... the url from which to retrieve payment handler specific verification information used to validate the merchant.
...ieve payment handler specific verification information used to validate the merchant.
Navigator.share() - Web APIs
Web › API › Navigator › share
the navigator.share() method of the web share api invokes the native sharing mechanism of the device.
... the navigator.share() method of the web share api invokes the native sharing mechanism of the device.
...alue a promise that will be fulfilled once a user has completed a share action (usually the user has chosen an application to share to).
...cation to share to).
PaymentRequest.onmerchantvalidation - Web APIs
o be called whenever the merchantvalidation event is fired at the paymentrequest, indicating that the payment handler requires the merchant to validate themselves as allowed to use this payment handler.
... fired at the paymentrequest, indicating that the payment handler requires the merchant to validate themselves as allowed to use this payment handler.
... that the payment handler requires the merchant to validate themselves as allowed to use this payment handler.
...yment handler.
PaymentRequestEvent.openWindow() - Web APIs
the openwindow property of the paymentrequestevent interface opens the specified url in a new window, if and only if the given url is on the same origin as the calling page.
... the openwindow property of the paymentrequestevent interface opens the specified url in a new window, if and only if the given url is on the same origin as the calling page.
... the openwindow property of the paymentrequestevent interface opens the specified url in a new window, if and only if the given url is on the same origin as the calling page.
... the openwindow property of the paymentrequestevent interface opens the specified url in a new window, if and only if the given url is on the same origin as the calling page.
Push API - Web APIs
Web › API › Push API
will be started as necessary to handle incoming push messages, which are delivered to the serviceworkerglobalscope.onpush event handler.
...lscope.onpush event handler.
...r and api key when sending push notifications.
...on.
RTCIceCandidateStats - Web APIs
he port.
...ng identifying the protocol used by the endpoint for communicating with the turn server; valid values are tcp, udp, and tls.
...rotocol used by the endpoint for communicating with the turn server; valid values are tcp, udp, and tls.
...r; valid values are tcp, udp, and tls.
ServiceWorkerRegistration.showNotification() - Web APIs
ation.
...ntain the following values: action: a domstring identifying a user action to be displayed on the notification.
...accommodate devices up to 4x resolution, about 96 by 96 px, and the image will be automatically masked.
... masked.
Using textures in WebGL - Web APIs
it's important to note that the loading of textures follows cross-domain rules; that is, you can only load textures from sites for which your content has cors approval.
... gl.generatemipmap(gl.texture_2d); } else { // no, it's not a power of 2.
...exture() routine starts by creating a webgl texture object texture by calling the webgl createtexture() function.
...lete code | open this demo on a new page cross-domain textures loading of webgl textures is subject to cross-domain access controls.
window.location - Web APIs
Web › API › Window › location
p://www.example.com' is a synonym of location.href = 'http://www.example.com'.
...ww.example.com'.
... the current page from the server location.reload(true); example #3 consider the following example, which will reload the page by using the replace() method to insert the value of location.pathname into the hash: function reloadpagewithhash() { var initialpage = location.pathname; location.replace('http://example.com/#' + initialpage); } example #4: display the properties of the current url in an alert dialog: function showloc() { var olocation = location, alog = ["property (typeof): value", "location (" + (typeof olocation) + "): " + olocation ]; for (var sprop in olocation){ alog.push(sprop + " (" + (typeof olocation[sprop]) + "): " + (olocation[sprop] || "n/a")); } alert(alog.join("\n")); } // in html: <button onclick="showloc();">show location properties</button> e...
...peof olocation[sprop]) + "): " + (olocation[sprop] || "n/a")); } alert(alog.join("\n")); } // in html: <button onclick="showloc();">show location properties</button> example #5: send a string of data to the server by modifying the search property: function senddata (sdata) { location.search = sdata; } // in html: <button onclick="senddata('some data');">send data</button> the current url with "?some%20data" appended is sent to the server (if no action is taken by the server, the current document is reloaded with the modified search string).
Window: popstate event - Web APIs
history.forward() in javascript).
...eset.
...t with the pagetransitionevent's persisted attribute set to true.
...to be current.
Window - Web APIs
Web › API › Window
nnerwidth read only gets the width of the content area of the browser window including, if rendered, the vertical scrollbar.
...extmenu called when the right mouse button is pressed globaleventhandlers.onerror called when a resource fails to load or when an error occurs at runtime.
...cted fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used.
...cts that a gamepad has been connected or the first time a button/axis of the gamepad is used.
XDomainRequest.open() - Web APIs
opens an xdomainrequest which is configured to use a given method (get/post) and url.
... opens an xdomainrequest which is configured to use a given method (get/post) and url.
... opens an xdomainrequest which is configured to use a given method (get/post) and url.
... opens an xdomainrequest which is configured to use a given method (get/post) and url.
XMLHttpRequest.open() - Web APIs
the xmlhttprequest method open() initializes a newly-created request, or re-initializes an existing one.
...s a newly-created request, or re-initializes an existing one.
...ly-created request, or re-initializes an existing one.
...zes an existing one.
XMLHttpRequest - Web APIs
xmlhttprequest (xhr) objects are used to interact with servers.
..., or a domstring, depending on the value of xmlhttprequest.responsetype, that contains the response entity body.
...e of xmlhttprequest.responsetype, that contains the response entity body.
... the response entity body.
:invalid - CSS: Cascading Style Sheets
Web › CSS › :invalid
t> or other <form> element whose contents fail to validate.
...element whose contents fail to validate.
... validate.
....
Resizing background images with background-size - CSS: Cascading Style Sheets
downward as desired.
... 2px solid; color: pink; } result stretching an image you can also specify both the horizontal and vertical sizes of the image, like this: background-size: 300px 150px; the result looks like this: scaling an image up on the other end of the spectrum, you can scale an image up in the background.
...n value specifies that, regardless of the size of the containing box, the background image should be scaled so that each side is as large as possible while not exceeding the length of the corresponding side of the container.
...} result cover the cover value specifies that the background image should be sized so that it is as small as possible while ensuring that both dimensions are greater than or equal to the corresponding size of the container.
CSS Images - CSS: Cascading Style Sheets
css images is a module of css that defines what types of images can be used (the <image> type, containing urls, gradients and other types of images), how to resize them and how they, and other replaced content, interact with the different layout models.
...and other types of images), how to resize them and how they, and other replaced content, interact with the different layout models.
...nic-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.
...inition of 'css gradients' in that specification.
background-position - CSS: Cascading Style Sheets
one element.
...example three</div> css /* shared among all <div>s */ div { background-color: #ffee99; background-repeat: no-repeat; width: 300px; height: 80px; margin-bottom: 12px; } /* these examples use the `background` shorthand property */ .exampleone { background: url("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 2.5cm bottom no-repeat; } .exampletwo { background: url("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 left 4em bottom 1em no-repeat; } /* multiple background images: each image is matched with the corresponding position, from first specified to last.
...rl("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 2.5cm bottom no-repeat; } .exampletwo { background: url("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 left 4em bottom 1em no-repeat; } /* multiple background images: each image is matched with the corresponding position, from first specified to last.
...epeat; } .exampletwo { background: url("https://mdn.mozillademos.org/files/11987/startransparent.gif") #ffee99 left 4em bottom 1em no-repeat; } /* multiple background images: each image is matched with the corresponding position, from first specified to last.
offset-path - CSS: Cascading Style Sheets
the offset-path css property specifies a motion path for an element to follow and defines the element's positioning within the parent container or svg coordinate system.
... the offset-path css property specifies a motion path for an element to follow and defines the element's positioning within the parent container or svg coordinate system.
...three values, defines a path that is a line segment starting from the position of the box and proceeds in the direction defined by the specified angle similar to the css gradient angle where 0deg is up, with positive angles increasing in the clockwise direction, with the size value being similar to the css radial gradient size values from closest-side to farthest-corner, and the keyterm contain.
...f the spec called this property motion-path.
The HTML autocomplete attribute - HTML: Hypertext Markup Language
code.
...e number and then a number within the exchange.
... and then a number within the exchange.
..."6502".
<button>: The Button element - HTML: Hypertext Markup Language
Web › HTML › Element › button
the button with (its form owner).
...tion html5 the url that processes the information submitted by the button.
...'s inside/associated with a <form> and doesn't have type="button"), this attribute specifies the http method used to submit the form.
...ave type="button"), this attribute specifies the http method used to submit the form.
<picture>: The Picture element - HTML: Hypertext Markup Language
Web › HTML › Element › picture
the html <picture> element contains zero or more <source> elements and one <img> element to offer alternative versions of an image for different display/device scenarios.
...ture> element—the url of the <img> element's src attribute is selected.
...rowser skips it and evaluates the next element inside <picture>.
... followed by a w (such as 300w); or a pixel density descriptor, followed by an x (such as 2x) to serve a high-res image for high-dpi screens.
HTML elements reference - HTML: Hypertext Markup Language
Web › HTML › Element
metadata metadata contains information about the page.
...information about the page.
...ing </body> tags.
...bulleted list.
inputmode - HTML: Hypertext Markup Language
e, the return/submit key may be labeled "search", along with possible other optimizations.
...ed "search", along with possible other optimizations.
....
... for entering email addresses.
HTTP authentication - HTTP
protect and the auth_basic directive that provides the name to the password-protected area.
...d-protected area.
...dentials, just like in the apache example above.
...atus { auth_basic "access to the staging site"; auth_basic_user_file /etc/apache2/.htpasswd; } access using credentials in the url many clients also let you avoid the login prompt by using an encoded url containing the username and the password like this: https://username:password@www.example.com/ the use of these urls is deprecated.
Content negotiation - HTTP
document, which image format, or which content encoding).
...at, or which content encoding).
...ples of content negotiation a specific document is called a resource.
...lback mechanisms.
import - JavaScript
his way, it returns a promise.
... form also supports the await keyword.
...rt('/modules/my-module.js'); examples standard import the code below shows how to import from a secondary module to assist in processing an ajax json request.
...; examples standard import the code below shows how to import from a secondary module to assist in processing an ajax json request.
related_applications - Web app manifests
the google play store.
...onality — like the native app equivalent.
...ore/apps/details?id=com.example.app1", "id": "com.example.app1" }, { "platform": "itunes", "url": "https://itunes.apple.com/app/example-app1/id123456789" } ] related application values application objects may contain the following values: member description platform the platform on which the application can be found.
...tails?id=com.example.app1", "id": "com.example.app1" }, { "platform": "itunes", "url": "https://itunes.apple.com/app/example-app1/id123456789" } ] related application values application objects may contain the following values: member description platform the platform on which the application can be found.
shortcuts - Web app manifests
type object mandatory no the shortcuts member defines an array of shortcuts or links to key tasks or pages within a web app.
...ithin a web app.
...g system when a user engages with the web app's icon.
...invokes a shortcut, the user agent will navigate to the address given by shortcut's url member.
Add to Home screen - Progressive web apps (PWAs)
rtant, the home screen).
...senting the app in different places.
...es the full app name, and short_name provides a shortened name to be used when there is insufficient space to display the full name.
...the home-with-a-plus icon.
Making PWAs work offline with Service workers - Progressive web apps (PWAs)
sh.
... our app, so we'll skip it.
...ontent from the cache instead of the network as long as the resource is actually in the cache.
...irst before then serving it: self.addeventlistener('fetch', (e) => { e.respondwith( caches.match(e.request).then((r) => { console.log('[service worker] fetching resource: '+e.request.url); return r || fetch(e.request).then((response) => { return caches.open(cachename).then((cache) => { console.log('[service worker] caching new resource: '+e.request.url); cache.put(e.request, response.clone()); return response; }); }); }) ); }); here, we respond to the fetch event with a function that tries to find the resource in the cache and return the response if it's there.
Media - Progressive web apps (PWAs)
le, you are probably reading this on a device with a display.
...ils there are other ways to specify the media type for a set of rules.
...cally change the appearance of content as the user works with the interface.
...ectors: selector selects e:hover any e element that has the pointer over it e:focus any e element that has keyboard focus e:active the e element that is involved in the current user action e:link any e element that is a hyperlink to a url that the user has not visited recently e:visited any e element that is a hyperlink to a url that the user has visited recently note: the information that can be obtained from the :visited selector is restricted in gecko 2.0.
The building blocks of responsive design - Progressive web apps (PWAs)
nd images this is a fairly easy problem to solve.
...creating your mobile layout inside your default css, before any media queries have been applied.
... header { background: url(images/large-header.jpg) center; } } this means that mobile browsers only download the mobile background image asset — not the desktop mobile assets — because they fail the media query tests and therefore ignore the media queries.
...erefore ignore the media queries.
clip-rule - SVG: Scalable Vector Graphics
te basically works as the fill-rule attribute, except that it applies to <clippath> definitions.
... <path d="..." clip-rule="evenodd" /> </clippath> <rect clip-path="url(#myclip)" ...
...property.
... <path d="m50,0 21,90 98,35 2,35 79,90z" id="star" /> </defs> <!-- left: evenodd --> <clippath id="emptystar"> <use xlink:href="#star" clip-rule="evenodd" /> </clippath> <rect clip-path="url(#emptystar)" width="50" height="90" fill="blue" /> <!-- right: nonzero --> <clippath id="filledstar"> <use xlink:href="#star" clip-rule="nonzero" /> </clippath> <rect clip-path="url(#filledstar)" width="50" height="90" x="50" fill="red" /> </svg> elements the following elements can use the clip-rule attribute, but only if they are inside a <clippath> element.
<pattern> - SVG: Scalable Vector Graphics
Web › SVG › Element › pattern
ibutes on other graphics elements to fill or stroke those elements with the referenced pattern.
... pattern.
..." r="50" fill="url(#star)"/> <circle cx="180" cy="50" r="40" fill="none" stroke-width="20" stroke="url(#star)"/> </svg> attributes height this attribute determines the height of the pattern tile.
...the width of the pattern tile.
<script> - SVG: Scalable Vector Graphics
Web › SVG › Element › script
) return `#${r}${g}${b}` } document.queryselector('circle').addeventlistener('click', (e) => { e.target.style.fill = getcolor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> attributes crossorigin this attribute defines cors settings as define for the html <script> element.
... document.queryselector('circle').addeventlistener('click', (e) => { e.target.style.fill = getcolor() }) }) // ]]> </script> <circle cx="5" cy="5" r="4" /> </svg> attributes crossorigin this attribute defines cors settings as define for the html <script> element.
...e defines cors settings as define for the html <script> element.
... html <script> element.
Secure contexts - Web security
e has no effect on whether the new window is considered secure.
...her the new window is considered secure.
...’s because the determination of whether or not a particular document is in a secure context is based only on considering it within the top-level browsing context with which it is associated — and not whether a non-secure context happened to be used to create it.
...d — and not whether a non-secure context happened to be used to create it.
Compiling an Existing C Module to WebAssembly - WebAssembly
mage: luckily, the solution to this problem is in the error message.
... luckily, the solution to this problem is in the error message.
...solution to this problem is in the error message.
...dd -s allow_memory_growth=1 to your compilation command.
port - Archive of obsolete content
essage, and the name of the listener function.
...istener function.
...e themselves json-serializable.
Porting the Library Detector - Archive of obsolete content
dds a box element to the browser's status bar: the script does everything else.
...e script listens to gbrowser's domcontentloaded event.
... version: passed.version }; librarylist.push(libraryinfo); } } self.postmessage(librarylist); } testlibraries(); main.js responds to that message by fetching the tab corresponding to that worker using worker.tab, and adding the array of library names to that tab's libraries property: pagemod.pagemod({ include: "*", contentscriptwhen: 'end', contentscriptfile: (data.url('library-detector.js')), onattach: function(worker) { worker.on('message', function(librarylist) { if (!worker.tab.libraries) { worker.tab.libraries = []; } librarylist.foreach(function(library) { if (worker.tab.libraries.indexof(library) == -1) { worker.tab.libraries.push(library); } }); if (worker.tab == tabs.activetab) { ...
High-Level APIs - Archive of obsolete content
ext-menu adds items, submenus, and menu separators to the page's context menu.
...simple-prefs store preferences across application restarts.
...ss application restarts.
/loader - Archive of obsolete content
/toolkit/foo.js // toolkit/foo/bar -> resource://gre/modules/commonjs/toolkit/foo/bar.js 'toolkit/': 'resource://gre/modules/commonjs/toolkit/', // resolve all other non-relative module requirements as follows: // devtools/gcli -> resource:///modules/devtools/gcli.js // panel -> resource:///modules/panel.js '': 'resource:///modules/', } }) all relative url require() statements (those that start with ".") are first resolved relative to the requirer module id and the result of it is then resolved using the paths option.
...toolkit/foo.js // toolkit/foo/bar -> resource://gre/modules/commonjs/toolkit/foo/bar.js 'toolkit/': 'resource://gre/modules/commonjs/toolkit/', // resolev all other non-relative module requirements as follows: // devtools/gcli -> resource:///modules/devtools/gcli.js // panel -> resource:///modules/panel.js '': 'resource:///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.
...e module resolution logic.
content/worker - Archive of obsolete content
can block the ui.
...string,json the data to send.
...on the data to send.
Display a Popup - Archive of obsolete content
ntent itself, specified as html icon-16.png, icon-32.png, and icon-64.png: icons for the button in three different sizes the "index.js" looks like this: var data = require("sdk/self").data; // construct a panel, loading its content from the "text-entry.html" // file in the "data" directory, and loading the "get-text.js" script // into it.
...lf, specified as html icon-16.png, icon-32.png, and icon-64.png: icons for the button in three different sizes the "index.js" looks like this: var data = require("sdk/self").data; // construct a panel, loading its content from the "text-entry.html" // file in the "data" directory, and loading the "get-text.js" script // into it.
...nd icon-64.png: icons for the button in three different sizes the "index.js" looks like this: var data = require("sdk/self").data; // construct a panel, loading its content from the "text-entry.html" // file in the "data" directory, and loading the "get-text.js" script // into it.
Tutorials - Archive of obsolete content
web page open a web page in a new browser tab or window using the tabs module, and access its content.
...r window using the tabs module, and access its content.
... and access its content.
Chapter 1: Introduction to Extensions - Archive of obsolete content
than 7000 extensions and themes published at the firefox add-ons site (https://addons.mozilla.org).
...ions and themes published at the firefox add-ons site (https://addons.mozilla.org).
...ensions can add, and some actual examples of extensions.
Appendix D: Loading Scripts - Archive of obsolete content
ersion="1.0" encoding="utf-8"?> <!doctype overlay> <overlay id="script-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script type="application/javascript;version=1.8" src="overlay.js"/> </overlay> evalinsandbox the components.utils.evalinsandbox method may be used to load arbitrary code into components.utils.sandbox objects.
...n xmlhttprequest.
... specified makes this method useful for extracting javascript from a number of file formats other than raw javascript scripts.
Security best practices in extensions - Archive of obsolete content
r seamonkey.
... world use case, take a look at this blog post.
...d over the network.
Updating addons broken by private browsing changes - Archive of obsolete content
following interfaces: ff 15: nsidomstoragemanager ff 16: nsitransferable ff 18: imgicache moziasyncfavicons nsifaviconservice nsiwebbrowserpersist ff 19: nsicontentprefservice nsidownloadmanager nsidownload nsihttpauthmanager nsistricttransportsecurityservice ff 20: nsiprivatebrowsingservice nsirecentbadcertservice furthermore, if your code uses any of these common chrome apis: ff 19: saveurl saveinternal openlinkin ff 20: openbrowserwindow gprivatebrowsingui finally, if your code watches for any of these observer notifications: private-browsing private-browsing-cancel-vote private-browsing-change-granted private-browsing-transition-complete then your addon will require updating to correctly support the new per-window private browser feature in firefox 20 (and will require u...
...or to the optional boolean and string arguments) indicating the document that originated the save action.
...that originated the save action.
CSS3 - Archive of obsolete content
and vertical scripts and clarifies how the css direction and unicode-bidi properties interact with the new css text-orientation property, and extends them where needed.
...ss counter styles level 3 candidate recommendation testing modules css images module level 3 candidate recommendation defines the <image> data type.
...idate recommendation testing modules css images module level 3 candidate recommendation defines the <image> data type.
Creating a status bar extension - Archive of obsolete content
ns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <em:id>status-bar-sample-1@example.com</em:id> <em:version>1.0</em:version> <em:type>2</em:type> <!-- front end metadata --> <em:name>status bar sample 1</em:name> <em:description>sample static status bar panel</em:description> <em:creator>my name</em:creator> <em:homepageurl>http://developer.mozilla.org/en/docs/creating_a_status_bar_extension</em:homepageurl> <!-- describe the firefox versions we support --> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>1.5</em:minversion> <em:maxversion>2.0.0.*</em:maxversion> </description> </em:targetapplication> </description> </...
...information that is displayed to the user within the firefox interface.
... that is displayed to the user within the firefox interface.
No Proxy For configuration - Archive of obsolete content
at writing a pac file is more suitable for their needs.
...file is more suitable for their needs.
...as not been tested in mozilla, so porting pac in c++ forward would not be a panacea.
Source code directories overview - Archive of obsolete content
ntains c code for the mdb/mork database which is a low-level, general-purpose and cross-platform file library.
...sic and using default profiles for popular isps (e.g.
...a, modern and classic.
Specifying the appearance - Archive of obsolete content
now that we have defined a panel in which to display an icon, we use css to specify which icon to display.
...ay.
...ate a set of css rules that displays the icon corresponding to the current tinderbox state: statusbarpanel#tinderbox-status { list-style-image: url("chrome://navigator/content/tb-nostatus.png"); } statusbarpanel#tinderbox-status[status="success"] { list-style-image: url("chrome://navigator/content/tb-success.png"); } statusbarpanel#tinderbox-status[status="testfailed"] { list-style-image: url("chrome://navigator/content/tb-testfailed.png"); } statusbarpanel#tinderbox-status[status="busted"] { list-style-image: url("chrome://navigator/content/tb-busted.png"); } mozilla can have multiple sets of stylesheets that govern its appearance, and we don't want to have to add these rules to each set (and have our extension break when a new set gets installed), so we'll put this stylesheet in...
Drag and Drop JavaScript Wrapper - Archive of obsolete content
nclude this file in your xul file with the script tag in the same way you would include your own scripts.
...ion) { event.target.setattribute("value",transferdata.data); } } the flavour system used allows multiple objects of various types to be dragged at once and also allows alternative forms of the data to be dragged.
... event.target.setattribute("value",transferdata.data); } } the flavour system used allows multiple objects of various types to be dragged at once and also allows alternative forms of the data to be dragged.
First run - Archive of obsolete content
th a new page notifying them that installation was successful.
... page is defined by the firstrunpage property of your jetpack's manifest.
...e firstrunpage property of your jetpack's manifest.
First Run - Archive of obsolete content
d with a new page notifying them that installation was successful.
...-run page is defined by the firstrunpage property of your jetpack's manifest.
...y the firstrunpage property of your jetpack's manifest.
Plug-n-Hack Phase1 - Archive of obsolete content
plug-n-hack (pnh) phase 1 allows easier integration and defines how security tools can advertise their capabilities to browsers.
...wser can make use of.
... the url of the manifest is published.
Table Layout Regression Tests - Archive of obsolete content
what the other regressions are: are they improving the picture or are they regressions?
...red to cycle.
...html col_span.html the regression tests compare the frame tree dumps recorded at two different times.
DOM Interfaces - Archive of obsolete content
mented by all dom documents.
...an be used to synchronously obtain the specified binding document for use within a particular document (the one on which the loadbindingdocument method was invoked).
...obtain the specified binding document for use within a particular document (the one on which the loadbindingdocument method was invoked).
Bindings - Archive of obsolete content
an add more triples to the previous example to show more information.
...a photo.
...ometimes, it would be useful to have triples that match conditionally; that is, a triple that doesn't cause a result to be removed as a possible match.
Multiple Queries - Archive of obsolete content
nd query, and so forth for all of the queries.
...omplicated process that will be discussed in more detail later.
...t matter, of course.
Multiple Rule Example - Archive of obsolete content
eded to display the description.
...e-guide-photos5.rdf" ref="http://www.xulplanet.com/rdf/myphotos"> <template> <rule> <conditions> <content uri="?start"/> <member container="?start" child="?photo"/> <triple subject="?photo" predicate="http://purl.org/dc/elements/1.1/title" object="?title"/> <triple subject="?photo" predicate="http://purl.org/dc/elements/1.1/description" object="?description"/> <triple subject="?photo" predicate="http://purl.org/dc/elements/1.1/date" object="?date"/> </conditions> <action> <hbox uri="?photo" class="box-padded"> <vbox> <label value="?title"/> <image src="?photo"/> </vbox> ...
...x> <groupbox> <caption label="photo details"/> <label value="?description"/> <label value="date: ?date"/> </groupbox> </hbox> </action> </rule> <rule> <conditions> <content uri="?start"/> <member container="?start" child="?photo"/> <triple subject="?photo" predicate="http://purl.org/dc/elements/1.1/title" object="?phototitle"/> </conditions> <action> <vbox uri="?photo" class="box-padded"> <label value="?phototitle"/> <image src="?photo"/> </vbox> </action> </rule> </template> </vbox> in this example, the first rule matches only those photos with title, description, and date properties.
Sorting Results - Archive of obsolete content
parsetype="integer" for numbers which will allow sorting numerically.
...as desired.
...ight location.
Special Condition Tests - Archive of obsolete content
or rdf sources, you can use the same technique.
...sult can be seen if you try the example.
...dditional rules.
textbox (Toolkit autocomplete) - Archive of obsolete content
n this attribute.
...ttribute is set to true when the menu is open.
...f the menu is closed.
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
('browsertoolbarpalette') will not work.
...e (feel free to add information about other applications): application (theme name) big icon size small icon size firefox 1.0 (winstripe) 24x24 16x16 thunderbird 1.0 (qute) 24x24 16x16 the stylesheet to set the image for your toolbar button, use the following css rules: /* skin/toolbar-button.css */ #myextension-button { list-style-image: url("chrome://myextension/skin/btn_large.png"); } toolbar[iconsize="small"] #myextension-button { list-style-image: url("chrome://myextension/skin/btn_small.png"); } applying the stylesheet remember to attach the stylesheet you created to both the overlay file and the customize toolbar window.
...ons is painted on the toolbar or in the customize toolbars window, instead of your own icon.
Custom toolbar button - Archive of obsolete content
ste it into the new file: <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest" em:name="custom button" em:description="my custom toolbar button" em:creator="my name" em:id="custom-toolbar-button@example.com" em:version="1.0" em:homepageurl="http://developer.mozilla.org/en/docs/custom_toolbar_button" em:iconurl="chrome://custombutton/content/icon.png" > <em:targetapplication><!-- firefox --> <description em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" em:minversion="1.4" em:maxversion="*" /> </em:targetapplication> <em:targetapplication><!-- thunderbird --> <description e...
...e button to the application's toolbar customization palette.
... custom-button-2.
List Controls - Archive of obsolete content
choices, click the arrow button on the menulist.
...it appears as the choice in the menulist.
... in the browser has a drop-down for selecting previously typed urls, but you can also type them in yourself.
XUL Questions and Answers - Archive of obsolete content
ee using the domi.
...ptloader.html for more information.
...information.
XULBrowserWindow - Archive of obsolete content
ot complete at this time.
...sh to refer to the implementation of xulbrowserwindow in browser/base/content/browser.js.
...r chrome should be hidden for the specified location.
treecol - Archive of obsolete content
able in seamonkey on mac os x..
...hecked checkbox treecells.
...ending the data is sorted in ascending order.
Creating a Windows Inno Setup installer for XULRunner applications - Archive of obsolete content
elf.
...alues specified in your xulrunner application's application.ini file.
...ss file sample as follows: ; script generated by the inno setup script wizard.
MacFAQ - Archive of obsolete content
ommandline handlers work great on the mac if it's a cold start.
...nt command-line trapping when the app is already running, without getting into appleevents or c++ code.
...chnique and parsing the window arguments instead of command-line handlers and some of the toolkit singleton window code.
Using SOAP in XULRunner 1.9 - Archive of obsolete content
of speed, stability and memory issues.
...as a dependency, it can be worked around easily.
...e.com/soap/'; var ns = 'http://example.com/soap/namespace'; var method = 'foo'; var params = { 'foo': 'bar', 'baz': 'bang' }; var callback = function(obj) { components.utils.reporterror(obj.tosource()); }; soapclient.proxy = url; var body = new soapobject(method); body.ns = ns; for (var k in params) { body.appendchild(new soapobject(k).val(params[k])); } var req = new soaprequest(url, body); req.action = ns + '#' + method; soapclient.sendrequest(req, callback); diff between jqsoapclient.js and sasoapclient.js 42c42 < var jsout = $.xmltojson(xdata.responsexml); --- > var jsout = xmlobjectifier.xmltojson(xdata.responsexml); 46,60c46,62 < $.ajax({ < type: "post", < url: soapclient.proxy, < datatype: "xml", < processdata: false, < data: conte...
Windows and menus in XULRunner - Archive of obsolete content
mand="cmd_open"/> <menuitem command="cmd_save"/> ...
...mand="cmd_save"/> ...
...rd-code the images in the xul file itself, but css is a better practice.
What is RSS - Archive of obsolete content
tle> <description>watch it or else!
...e.com/show/4</guid> <pubdate>tue, 23 aug 2005 21:02:05 -0800</pubdate> <enclosure url="http://katetv.example.com/show/4" length="1911146" type="application/ogg"/> </item> <item> <title>watch this</title> <guid>http://katetv.example.com/show/3</guid> <pubdate>tue, 16 aug 2005 16:11:57 -0400</pubdate> <enclosure url="http://katetv.example.com/show/3" length="1387442" type="application/ogg"/> </item> <item> <title>it is me again</title> <guid>http://katetv.example.com/show/2</guid> <pubdate>tue, 9 aug 2005 13:12:12 -0400</pubdate> <enclosure url="http://katetv.example.com/show/2" length="1894877" type="video/mpeg"/> </item> <item>...
...atetv.example.com/show/2</guid> <pubdate>tue, 9 aug 2005 13:12:12 -0400</pubdate> <enclosure url="http://katetv.example.com/show/2" length="1894877" type="video/mpeg"/> </item> <item> <title>hello</title> <guid>http://katetv.example.com/show/1</guid> <pubdate>tue, 2 aug 2005 18:22:14 -0400</pubdate> <enclosure url="http://katetv.example.com/show/1" length="17442215" type="application/ogg"/> </item> </channel> </rss> the observant reader may have noticed that the news web site and blogger examples were the same type of rss.
Building a Theme - Archive of obsolete content
-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>29.0</em:minversion> <em:maxversion>39.*</em:maxversion> </description> </em:targetapplication> <!-- front end metadata --> <em:name>my theme</em:name> <em:internalname>sample</em:internalname> <em:description>a test extension</em:description> <em:creator>your name here</em:creator> <em:homepageurl>http://www.example.com/</em:homepageurl> </description> </rdf> sample@example.net - the id of the extension.
...omponents which are loaded via chrome:// uris.
...package won't be registered.
Styling the Amazing Netscape Fish Cam Page - Archive of obsolete content
with a slight offset.
... the fish image and fish name.
... one word would wrap under an image.
Using the Right Markup to Invoke Plugins - Archive of obsolete content
ow such unique identifiers in order to invoke the component of their choice.
...namically write object elements based on architecture.
...rent plugin vendors may require different configuration paramaters to be passed via the embed element, and learning these is advisable.
Application Context - MDN Web Docs Glossary: Definitions of Web-related terms
an application context is a top-level browsing context that has a manifest applied to it.
...context that has a manifest applied to it.
...f an application context is created as a result of the user agent being asked to navigate to a deep link, the user agent must immediately navigate to the deep link with replacement enabled.
Percent-encoding - MDN Web Docs Glossary: Definitions of Web-related terms
percent-encoding is a mechanism to encode 8-bit characters that have specific meaning in the context of urls.
... percent-encoding is a mechanism to encode 8-bit characters that have specific meaning in the context of urls.
... ']' '@' '!' '$' '&' "'" '(' ')' '*' '+' ',' ';' '=' '%' ' ' %3a %2f %3f %23 %5b %5d %40 %21 %24 %26 %27 %28 %29 %2a %2b %2c %3b %3d %25 %20 or + depending on the context, the character ' ' is translated to a '+' (like in the percent-encoding version used in an application/x-www-form-urlencoded message), or in '%20' like on urls.
Styling links - Learn web development
pseudo class.
...ttp://#">weather on extreme science</a>.</p> next, the css: body { width: 300px; margin: 0 auto; font-family: sans-serif; } p { line-height: 1.4; } a { outline: none; text-decoration: none; padding: 2px 1px 0; } a:link { color: blue; } a:visited { color: purple; } a:focus, a:hover { border-bottom: 1px solid; } a:active { color: red; } a[href*="http"] { background: url('https://mdn.mozillademos.org/files/12982/external-link-52.png') no-repeat 100% 0; background-size: 16px 16px; padding-right: 19px; } so what's going on here?
...later, so if you need to support those older browsers, you'll just have to resize the image and insert it as is.
What is a web server? - Learn web development
omponent files.
...l cover that sort of technology in other articles.) http provides clear rules for how a client and server communicate.
...d then only to servers.
Basic native form controls - Learn web development
nding the data to the server.
...ly edit the value, it will never receive focus, and a screen reader will not notice it either.
...he image represents the coordinate (0, 0)).
Your first form - Learn web development
"> </form> this element formally defines a form.
..." id="name" name="user_name" /> </li> <li> <label for="mail">e-mail:</label> <input type="email" id="mail" name="user_email" /> </li> <li> <label for="msg">message:</label> <textarea id="msg" name="user_message"></textarea> </li> ...
...type="email" id="mail" name="user_email" /> </li> <li> <label for="msg">message:</label> <textarea id="msg" name="user_message"></textarea> </li> ...
From object to iframe — other embedding technologies - Learn web development
i (somewhat beyond scope for this article.) frameborder if set to 1, this tells the browser to draw a border between this frame and other frames, which is the default behaviour.
... one, you may serve your parent document with http.
...h better, easier elements to handle those.
Looping code - Learn web development
ping.
...note: this still works just the same as expected — have a look at it running live on github (also view the full source code).
...ode to run final-expression } while (condition) in this case, the initializer again comes first, before the loop starts.
Ember resources and troubleshooting - Learn web development
to, it is possible to roll your own front-end data client.
... still trying to figure out an ergonomic and simple api for setting data in a template-only context, without backing js.
...the rendering context of the active route.
Introduction to client-side frameworks - Learn web development
ition was difficult to understand at a glance.
...e part of the ui being spread out all over a file — or in another file altogether.
...r in another file altogether.
Framework main features - Learn web development
a javascript environment.
...e html that looks like this: <header> <h1>hello, world!</h1> </header> handlebars the handlebars templating language is not specific to ember applications, but it is heavily utilized in ember apps.
...bars the handlebars templating language is not specific to ember applications, but it is heavily utilized in ember apps.
Handling common accessibility problems - Learn web development
ilable that you can feed your web pages into.
...ncluding metrics, specific errors along with the wcag criteria they affect, and suggested fixes.
... fixes.
Handling common JavaScript problems - Learn web development
de, the relevant code section is this: function showheroes(jsonobj) { let heroes = jsonobj['members']; for(i = 0; i < heroes.length; i++) { ...
... ...
... existing <script> element so they will be available on the page already when we start trying to use fetch: <script src="es6-promise.js"></script> <script src="fetch.js"></script> inside the original <script>, add the following code: const myimage = document.queryselector('.my-image'); fetch('flowers.jpg').then(function(response) { response.blob().then(function(myblob) { let objecturl = url.createobjecturl(myblob); myimage.src = objecturl; }); }); now if you load it in a browser that doesn't support fetch (safari and ie are obvious candidates), you should still see the flower image appear — cool!
Debugging update problems
checking update requests if you're debugging the application update feature in firefox or other mozilla applications, you may need to see what requests are occurring.
... checking update requests if you're debugging the application update feature in firefox or other mozilla applications, you may need to see what requests are occurring.
... mozilla applications, you may need to see what requests are occurring.
Makefile - variables
moz_debug moz_enable_xremote moz_feeds moz_help_viewer moz_native_nspr moz_metro moz_pkg_mainfest moz_preflight_all moz_rdf moz_toolkit_search moz_url_classifier moz_widget_toolkit android, beos, cocoa, gtk2, os2, qt, windows moz_xpctools moz_xul moz_x11 test variable description enable_tests boolean value that should wrapper all unit tests to allow disabling on...
...target directory to install distributed content.
...ctory to install distributed content.
Displaying Places information using views
whose uris you plan on changing, you will want to set the view's place property dynamically using javascript.
...nsible for updating itself.
... for example, by setting a column's id to "title", you tell the view to display the title of the nsinavhistoryresultnode of each row in that column.
Multiple Firefox profiles
ty tools that make working with multiple profiles easy.
...ion, you might want to first exit/quit/terminate all running instances of firefox, firefox developer edition or nightly.
...the profile, select a new or empty folder.
HTMLIFrameElement.getScreenshot()
ned; if not specified, the default used is image/jpeg.
...f not specified, the default used is image/jpeg.
... the default used is image/jpeg.
mozbrowseropentab
type read only domstring the type of event.
...ring the type of event.
...stom object.
mozbrowseropenwindow
type read only domstring the type of event.
...ring the type of event.
...nd values separated by commas.
ChromeWorker
t.
...rker, except that it has access to js-ctypes via a global ctypes object available in the global scope of the worker.
...examples of chromeworker's using js-ctypes are availabe on github and are linked to from the see also section below.
Roll your own browser: An embedding how-to
ot) xparts: kde extension that allows mozilla to be embedded into the konqueror browser.
...allowing for embedding the gecko layout engine.obsolete since gecko 7.0 llmozlib & ubrowser: a static library that allows you to embed gecko and render pages to memory.
...ib & ubrowser: a static library that allows you to embed gecko and render pages to memory.
HTTP Cache
he entry-point.
...o arguments are strictly and completely distinct and cache entries in them do not overlap even when having the same uris.
...e manner - count the number of consumers keeping a reference on each entry.
How to Report a Hung Firefox
r: download crashfirefox.exe here (source code).
... you can use any process monitoring tool to find the firefox process id (pid).
...a.org using this link.
Add-on Manager
(function(aaddons) { // here aaddons is an array of addon objects }); // this code will execute before the code inside the callback notifications about changes to installed add-ons are dispatched to any registered addonlisteners.
...t be registered through the addaddonlistener() method.
...ger.startup_change_disabled); if (addonids.length > 0) { // addonids is now an array of the add-on ids that have been disabled alert("note: " + addonids.length + " add-ons have been disabled."); } open add-on manager tab the add-on manager tab can be opened programatically with the function browseropenaddonsmgr which is available on chrome window of "navigator:browser" type.
SourceMap.jsm
on about the original file positions by giving it a file position in the generated source.
...the raw source map (either as a string which can be json.parse'd, or an object).
...s not available.
Using workers in JavaScript code modules
avascript code modules (jsms).
...er for this purpose, you need to use the nsiworkerfactory interface: var workerfactory = components.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); var worker = workerfactory.newchromeworker('script_url.js'); this will create a new chrome worker that will immediately begin to run the script at the specified url (in this case, "script_url.js").
...erface: var workerfactory = components.classes['@mozilla.org/threads/workerfactory;1'] .createinstance(components.interfaces.nsiworkerfactory); var worker = workerfactory.newchromeworker('script_url.js'); this will create a new chrome worker that will immediately begin to run the script at the specified url (in this case, "script_url.js").
QA phase
ould take note of before you push to your repository: make sure that your files have been encoded in unicode without bom (byte order mark).
... unicode without bom (byte order mark).
...43e8f3a6a tag: tip user: your name <email@example.com> date: mon nov 23 18:08:25 2009 +0100 summary: added search bar strings let's now push this changeset.
Mozilla Web Services Security Model
!] ability to load documents via xmlhttprequest or similar mechanisms.
...sts without verification headers soapv soap requests with verification headers the from attribute the from attribute on the allow element says which calling sites the allow element applies to.
... soapv soap requests with verification headers the from attribute the from attribute on the allow element says which calling sites the allow element applies to.
Patches and pushes
g french yahoo.
...<inputencoding>utf-8</inputencoding> <image width="16" height="16">data:image/x-icon;base64,r0lgodlheaaqajecap8aaaaaap///waaach5baeaaaialaaaaaaqabaaaaipli+py+0nogquybdened2khkffwuamezmpzsfmaihphrrguum/ft+uwaaow==</image> ***this tag is optional***<url type="application/x-suggestions+json" method="get" template="http://ff.search.yahoo.com/gossip?output=fxjson&amp;command={searchterms}" />*** <url type="text/html" method="get" template="http://search.yahoo.com/search"> <param name="p" value="{searchterms}"/> <param name="ei" value="utf-8"/> <mozparam name="fr" condition="pref" pref="yahoo-fr" /> </url> <searchform>http://search.yahoo.com/</searchform> </searchplugin> create xml files for each search plugin preference following the above example.
...mmitting.
L20n Javascript API
ocales('en-us', ['en-us', 'fr', 'pl']); ctx.requestlocales('fr-ca', 'fr'); ctx.ready(function() { // ctx.supportedlocales == ['fr']; }); ctx.addresource(text: string) add a string as the content of a resource to the context instance.
...tent of a resource to the context instance.
... instance.
Midas editor module security preferences
t editor.
...ou listed, should now function.
...rence is site as well as protocol specific.
NSS_3.12_release_notes.html
56: certutil and pp do not print all the generalnames in a crldp extension bug 398019: correct confusing and erroneous comments in der_asciitotime bug 422866: vfychain -pp command crashes in nss_shutdown bug 345779: useless assignment statements in ec_gf2m_pt_mul_mont bug 349011: please stop exporting these crmf_ symbols bug 397178: crash when entering chrome://pippki/content/resetpassword.xul in url bar bug 403822: pkix_pl_ocsprequest_create can leave some members uninitialized bug 403910: cert_findusercertbyusage() returns wrong certificate if multiple certs with same subject available bug 404919: memory leak in sftkdb_readsecmoddb() (sftkmod.c) bug 406120: allow application to specify ocsp timeout bug 361025: support for camellia cipher suites to tls rfc4132 bug 376417: pk11_generatekeypa...
...5966: infinite recursive call in vfy_verifydigestdirect bug 382078: pkix default http client returns error when try to get an ocsp response.
...sh [[@ nsc_digestkey] dereferencing possibly null att bug 343231: certutil issues certs for invalid requests bug 353371: klocwork 91117 - null pointer dereference in cert_certchainfromcert bug 353374: klocwork 76494 - null ptr derefs in cert_formatname bug 353375: klocwork 76513 - null ptr deref in nsscertificatelist_docallback bug 353413: klocwork 76541 free uninitialized pointer in cert_findcerturlextension bug 353416: klocwork 76593 null ptr deref in nsscryptokiprivatekey_setcertificate bug 353423: klocwork bugs in nss/lib/pk11wrap/dev3hack.c bug 353739: klocwork null ptr dereferences in instance.c bug 353741: klocwork cascading memory leak in mpp_make_prime bug 353742: klocwork null ptr dereference in ocsp_decoderesponsebytes bug 353748: klocwork null ptr dereferences in pki3hack.c bug 35...
NSS Developer Tutorial
nss coding style formatting line length should not exceed 80 characters.
...both of the following styles are allowed: if (condition) { action1(); } else { action2(); } or: if (condition) { action1(); } else { action2(); } the former style is more common.
... action2(); } the former style is more common.
Notes on TLS - SSL 3.0 Intolerant Servers
ssl | enable tls is turned on.
....
...he name of the ssl server software used by the website.
JS::Compile
mp; source buffer containing the script to compile.
... chars const char16_t * string containing the script to compile.
...e result script.
JS::Evaluate
js::sourcebufferholder &amp; source buffer containing the script to compile and execute.
...ining the script to compile and execute.
...::mutablehandlevalue out parameter.
TPS Password Lists
a password asset list is an array of objects, each representing a stored password.
...login.example.com", username: "joe", password: "secret123", usernamefield: "uname", passwordfield: "pword", changes: { password: "zippity-do-dah" } }, { hostname: "http://www.example.com", realm: "login", username: "joe", password: "secretlogin" } ]; each object has the following properties: hostname: the hostname for the password.
...m", username: "joe", password: "secret123", usernamefield: "uname", passwordfield: "pword", changes: { password: "zippity-do-dah" } }, { hostname: "http://www.example.com", realm: "login", username: "joe", password: "secretlogin" } ]; each object has the following properties: hostname: the hostname for the password.
Setting up an update server
mar file in it.
...esired update.
...o point to the local xml file.
imgILoader
mmary to this article.
...nnel achannel, in imgidecoderobserver aobserver, in nsisupports cx, out nsistreamlistener alistener); boolean supportimagewithmimetype(in string mimetype); constants constant value description load_cors_anonymous 1 << 16 load_cors_use_credentials 1 << 17 methods loadimage() start the load and decode of an image.
....
mozIPlacesAutoComplete
ugh results, then match anywhere in each searchable term.
...h anywhere in each searchable term.
...ch_beginning 3 match only the beginning of each search term.
nsIAppShellService
interfaces.nsiappshellservice); method overview void closetoplevelwindow(in nsixulwindow awindow); obsolete since gecko 1.8 void createhiddenwindow(in nsiappshell aappshell); native code only!
...long awindowwidth, in long awindowheight ); parameters awindowwidth the width to make the initial window(s) opened.
...ned.
nsIFilePicker
irectory that the file picker dialog should initially display.
...w filters for file extensions.
...ensions.
Using nsILoginManager
ng login information.
... are set based on whether the login is for a web page form or an http/ftp authentication site login.
...ed server: apache/1.3.27 www-authenticate: basic realm="exampleco login" creating a local extension login var extlogininfo = new nslogininfo( 'chrome://firefoo', null, 'user registration', 'bob', '123secret', "", "" ); from a component creating a new info block is done slightly differently: var nslogininfo = new constructor("@org/manager/ci.init"); var extlogininfo = new aformsubmiturl, ausername, ausernamefield, ...
nsIMicrosummaryGenerator
ontent to generate a microsummary.
...microsummary do not.
...do not.
nsIMsgIncomingServer
charvalue(in string attr); nsilocalfile getfilevalue(in string relpref, in string abspref); nsimsgfilterlist getfilterlist(in nsimsgwindow amsgwindow); long getintattribute(in string name); long getintvalue(in string attr); nsimsgfolder getmsgfolderfromuri(in nsimsgfolder afolderresource, in acstring auri); void getnewmessages(in nsimsgfolder afolder, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener); acstring getpasswordwithui(in astring apromptstring, in astring aprompttitle, in nsimsgwindow amsgwindow, out boolean okayvalue); astring getunicharattribute(in string name); astring getunicharvalue(in string attr); boolean isnewhdrduplicate(in nsimsgdbhdr anewhdr); void onuserorhostnamechanged(in acstring oldname, in acstring newname); void performbiff(in nsi...
...sgsearchscopevalue read only.
...sing description getmsgfolderfromuri() nsimsgfolder getmsgfolderfromuri( in nsimsgfolder afolderresource, in acstring auri ); parameters afolderresource missing description auri missing description return value missing description exceptions thrown missing exception missing description getnewmessages() void getnewmessages( in nsimsgfolder afolder, in nsimsgwindow amsgwindow, in nsiurllistener aurllistener ); parameters afolder missing description amsgwindow missing description aurllistener missing description exceptions thrown missing exception missing description getpasswordwithui() acstring getpasswordwithui( in astring apromptstring, in astring aprompttitle, in nsimsgwindow amsgwindow, out boolean okayvalue ); parameters apromptstring missing description apro...
nsIPushService
back); void unsubscribe(in domstring scope, in nsiprincipal principal, in nsiunsubscriberesultcallback callback); methods subscribe() creates a push subscription.
... code); return; } // `subscription` implements `nsipushsubscription`.
...de); return; } // `subscription == null` if the `(scope, principal)` pair doesn't have a // push subscription.
nsIPushSubscription
dom/interfaces/push/nsipushservice.idlscriptable includes information needed to send a push message to privileged code.
... dom/interfaces/push/nsipushservice.idlscriptable includes information needed to send a push message to privileged code.
...o encrypt message payloads.
nsISearchEngine
ad only.
...s().
...ered in the ui.
nsIStringBundleService
a property file.
... .getservice(components.interfaces.nsistringbundleservice); method overview nsistringbundle createbundle(in string aurlspec); nsistringbundle createextensiblebundle(in string aregistrykey); void flushbundles(); wstring formatstatusmessage(in nsresult astatus, in wstring astatusarg); methods createbundle() nsistringbundle createbundle( in string aurlspec ); parameters aurlspec the url of the properties file to load.
...e createbundle(in string aurlspec); nsistringbundle createextensiblebundle(in string aregistrykey); void flushbundles(); wstring formatstatusmessage(in nsresult astatus, in wstring astatusarg); methods createbundle() nsistringbundle createbundle( in string aurlspec ); parameters aurlspec the url of the properties file to load.
nsIXMLHttpRequest
application (like a mozilla extension) without using observers: var req = components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"].createinstance(); req.open('post', "http://www.foo.bar:8080/nietzsche.do", true); req.send('your=data&and=more&stuff=here'); example 2 var {cu: utils, cc: classes, ci: instances} = components; cu.import('resource://gre/modules/services.jsm'); function xhr(url, cb) { let xhr = cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createinstance(ci.nsixmlhttprequest); let handler = ev => { evf(m => xhr.removeeventlistener(m, handler, !1)); switch (ev.type) { case 'load': if (xhr.status == 200) { cb(xhr.response); break; } default: ...
...ak; } default: services.prompt.alert(null, 'xhr error', 'error fetching package: ' + xhr.statustext + ' [' + ev.type + ':' + xhr.status + ']'); break; } }; let evf = f => ['load', 'error', 'abort'].foreach(f); evf(m => xhr.addeventlistener(m, handler, false)); xhr.mozbackgroundrequest = true; xhr.open('get', url, true); xhr.channel.loadflags |= ci.nsirequest.load_anonymous | ci.nsirequest.load_bypass_cache | ci.nsirequest.inhibit_persistent_caching; xhr.responsetype = "arraybuffer"; //dont set it, so it returns string, you dont want arraybuffer.
...reach(f); evf(m => xhr.addeventlistener(m, handler, false)); xhr.mozbackgroundrequest = true; xhr.open('get', url, true); xhr.channel.loadflags |= ci.nsirequest.load_anonymous | ci.nsirequest.load_bypass_cache | ci.nsirequest.inhibit_persistent_caching; xhr.responsetype = "arraybuffer"; //dont set it, so it returns string, you dont want arraybuffer.
XPCOM Interface Reference
idroppedlinkitemnsidynamiccontainernsieditornsieditorboxobjectnsieditordocshellnsieditorimesupportnsieditorloggingnsieditormailsupportnsieditorobservernsieditorspellchecknsieffectivetldservicensienumeratornsienvironmentnsierrorservicensieventlistenerinfonsieventlistenerservicensieventsourcensieventtargetnsiexceptionnsiextensionmanagernsiexternalhelperappservicensiexternalprotocolservicensiexternalurlhandlerservicensiftpchannelnsiftpeventsinknsifactorynsifavicondatacallbacknsifaviconservicensifeednsifeedcontainernsifeedelementbasensifeedentrynsifeedgeneratornsifeedpersonnsifeedprocessornsifeedprogresslistenernsifeedresultnsifeedresultlistenernsifeedtextconstructnsifilensifileinputstreamnsifileoutputstreamnsifilepickernsifileprotocolhandlernsifilespecnsifilestreamsnsifileurlnsifileutilitiesnsif...
...nsiselectionnsiselection2nsiselection3nsiselectioncontrollernsiselectionimageservicensiselectionprivatensiserversocketnsiserversocketlistenernsiservicemanagernsisessionstartupnsisessionstorensisimpleenumeratornsismsdatabaseservicensismsrequestmanagernsismsservicensisocketprovidernsisocketproviderservicensisockettransportnsisockettransportservicensisoundnsispeculativeconnectnsistackframensistandardurlnsistreamconverternsistreamlistenernsistringbundlensistringbundleoverridensistringbundleservicensistringenumeratornsistructuredclonecontainernsistylesheetservicensisupportsnsisupports proxiesnsisupportsarraynsisupportscstringnsisupportscharnsisupportsdoublensisupportsfloatnsisupportsidnsisupportsinterfacepointernsisupportsprboolnsisupportsprint16nsisupportsprint32nsisupportsprint64nsisupportsprtim...
...ernsithreadpoolnsithreadpoollistenernsitimernsitimercallbacknsitoolkitnsitoolkitprofilensitoolkitprofileservicensitraceablechannelnsitransactionnsitransactionlistnsitransactionlistenernsitransactionmanagernsitransferablensitransportnsitransporteventsinknsitransportsecurityinfonsitreeboxobjectnsitreecolumnnsitreecolumnsnsitreecontentviewnsitreeselectionnsitreeviewnsiurinsiurifixupnsiurifixupinfonsiurlnsiurlformatternsiurlparsernsiutf8converterservicensiutf8stringenumeratornsiuuidgeneratornsiupdatensiupdatechecklistenernsiupdatecheckernsiupdateitemnsiupdatemanagernsiupdatepatchnsiupdatepromptnsiupdatetimermanagernsiuploadchannelnsiuploadchannel2nsiurllistmanagercallbacknsiusercertpickernsiuserinfonsivariantnsiversioncomparatornsiweakreferencensiwebbrowsernsiwebbrowserchromensiwebbrowserchrome2n...
Mail client architecture overview
format is used.
...te user interfaces based on this data.
...ent system notifies key components such as datasources and the url system of these changes.
Working with windows in chrome code
ow (primitives only) for those times when you don't have access to a window object (such as a javascript xpcom object), you can use nsiwindowwatcher.openwindow to open a xul window.
...t;1"] .createinstance(components.interfaces.nsiwritablevariant); variant.setfromvariant(arguments[i]); array.appendelement(variant, false); } var watcher = components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getservice(components.interfaces.nsiwindowwatcher); return watcher.openwindow(parentwindow, url, windowname, features, array); } the function almost works the same as window.opendialog but accepts an optional parent window as first parameter.
...ed, though it is possible to pass multiple objects and primitives using a combination of this and the example above.
Using js-ctypes
ar libcf = ctypes.open('/system/library/frameworks/corefoundation.framework/corefoundation'); // define types var cfindex = ctypes.long; var cfoptionflags = ctypes.unsigned_long; var cftimeinterval = ctypes.double; var cftyperef = ctypes.voidptr_t; var sint32 = ctypes.long; var void = ctypes.void_t; var __cfstring = new ctypes.structtype("__cfstring"); var cfstringref = __cfstring.ptr; var __cfurl = new ctypes.structtype("__cfurl"); var cfurlref = __cfurl.ptr; var __cfallocator = new ctypes.structtype("__cfallocator"); var cfallocatorref = __cfallocator.ptr; var unichar = ctypes.jschar; // uint16 with automatic conversion // define constants var kcfusernotificationstopalertlevel = 0; var kcfusernotificationnotealertlevel = 1; var kcfusernotificationcautionalertlevel = 2; var kcfuserno...
...alertlevel = 1; var kcfusernotificationcautionalertlevel = 2; var kcfusernotificationplainalertlevel = 3; // declare functions /* https://developer.apple.com/library/mac/documentation/corefoundation/reference/cfusernotificationref/index.html#//apple_ref/c/func/cfusernotificationdisplaynotice * sint32 cfusernotificationdisplaynotice ( * cftimeinterval timeout, * cfoptionflags flags, * cfurlref iconurl, * cfurlref soundurl, * cfurlref localizationurl, * cfstringref alertheader, * cfstringref alertmessage, * cfstringref defaultbuttontitle * ); */ var cfusernotificationdisplaynotice = libcf.declare("cfusernotificationdisplaynotice", ctypes.default_abi, sint32, // return cftimeinterval, // timeout cfoptionflags, // flags cfurlref, // iconurl cfurlref, // s...
...iconurl, * cfurlref soundurl, * cfurlref localizationurl, * cfstringref alertheader, * cfstringref alertmessage, * cfstringref defaultbuttontitle * ); */ var cfusernotificationdisplaynotice = libcf.declare("cfusernotificationdisplaynotice", ctypes.default_abi, sint32, // return cftimeinterval, // timeout cfoptionflags, // flags cfurlref, // iconurl cfurlref, // soundurl cfurlref, // localizationurl cfstringref, // alertheader cfstringref, // alertmessage cfstringref // defaultbuttontitle ); /* https://developer.apple.com/library/mac/documentation/corefoundation/reference/cftyperef/#//apple_ref/c/func/cfrelease * void cfrelease ( * cftyperef cf * ); */ var cfrelease = libcf.declare('cfrelease', ctypes.default_abi, void, // return cftyperef // ...
Initialization and Destruction - Plugins
0" width="100" loop="true"> with the embed element in the example, the browser passes the values in argv to the plug-in instance: argc = 4 argn = { "src", "height", "width", "loop" } argv = { "movie.avi", "100", "100", "true" } the saved parameter allows an instance of a plug-in to save its data and, when the instance is destroyed, pass the data to the next instance of the plug-in at the same url.
...because the instance window is no longer guaranteed to be valid.
...f the optional save parameter of npp_destroy and saved parameter of npp_new.
DOM Inspector FAQ - Firefox Developer Tools
how do i inspect a web site/window?
...aches which will allow you to inspect a document.
...plication chrome, including open xul windows, e.g., the browser window.
Migrating from Firebug - Firefox Developer Tools
rom firebug to the firefox developer tools, you may wonder where the features you loved in firebug are available in the developer tools.
...and you hit enter.
...u listing all javascript sources related to the website.
Edit fonts - Firefox Developer Tools
hanges instantly visible on the page.
...nt is a web font or a font hosted on your system.
...ed in this section shows you: the font-family identifier and full name of the font.
Console messages - Firefox Developer Tools
twork monitor request details.
...o the reference page for that code.
...hat code.
AudioContext.createMediaStreamDestination() - Web APIs
rts, and the mediarecorder is started.
...e.target.disabled = true; } }); mediarecorder.ondataavailable = function(evt) { // push each chunk (blobs) in an array chunks.push(evt.data); }; mediarecorder.onstop = function(evt) { // make blob out of our blobs, and open it.
...d = true; } }); mediarecorder.ondataavailable = function(evt) { // push each chunk (blobs) in an array chunks.push(evt.data); }; mediarecorder.onstop = function(evt) { // make blob out of our blobs, and open it.
CSSImageValue - Web APIs
the cssimagevalue interface of the css typed object model api represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
... the cssimagevalue interface of the css typed object model api represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.
...alue object represents an <image> that involves an url, such as url() or image(), but not linear-gradient() or element() .
Cache.delete() - Web APIs
Web › API › Cache › delete
ace finds the cache entry whose key is the request, and if found, deletes the cache entry and returns a promise that resolves to true.
...ound) { // your cache entry has been deleted if found }); parameters request the request you are looking to delete.
...com/?value=bar would be ignored when performing a match.
Cache.matchAll() - Web APIs
Web › API › Cache › matchAll
the matchall() method of the cache interface returns a promise that resolves to an array of all matching responses in the cache object.
... to find responses in the cache.
...http://foo.com/?value=bar would be ignored when performing a match.
Pixel manipulation with canvas - Web APIs
erx; var y = event.layery; zoomctx.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); }; canvas.addeventlistener('mousemove', zoom); } saving images the htmlcanvaselement provides a todataurl() method, which is useful when saving images.
...in the format specified by the type parameter (defaults to png).
...eturned image is in a resolution of 96 dpi.
Client.postMessage() - Web APIs
arly if we don't have access to the client.
...ve access to the client.
...clientid); // exit early if we don't get the client.
DOMError - Web APIs
Web › API › DOMError
spaceerror the operation is not allowed by namespaces in xml invalidaccesserror the object does not support the operation or argument.
... not allowed by namespaces in xml invalidaccesserror the object does not support the operation or argument.
...in xml invalidaccesserror the object does not support the operation or argument.
Document.createExpression() - Web APIs
this method compiles an xpathexpression which can then be used for (repeated) evaluations.
... this method compiles an xpathexpression which can then be used for (repeated) evaluations.
... this method compiles an xpathexpression which can then be used for (repeated) evaluations.
Document.location - Web APIs
Web › API › Document › location
the document.location read-only property returns a location object, which contains information about the url of the document and provides methods for changing that url and loading another url.
...e document and provides methods for changing that url and loading another url.
...ging that url and loading another url.
EventSource - Web APIs
that you can open 6 sse connections across all of the tabs to www.example1.com and another 6 sse connections to www.example2.com.
....
...ew eventsource to handle receiving server-sent events from a specified url, optionally in credentials mode.
File - Web APIs
Web › API › File
web page to access their content.
...ess their content.
...y returns the last modified time of the file, in millisecond since the unix epoch (january 1st, 1970 at midnight).
FileReaderSync - Web APIs
his method is deprecated, consider using readasarraybuffer() instead.
...d converts a specified blob or a file into a domstring representing the input data as a text string.
... yeschrome android full support yesfirefox android full support 8opera android full support yessafari ios full support yessamsung internet android full support yesreadasdataurlchrome full support yesedge full support 12firefox full support 8ie full support yesopera full support yessafari full support yesw...
Introduction to the File and Directory Entries API - Web APIs
ta by returning values; instead, you have to pass a callback function.
...e api methods return values.
...m, you will get security errors.
HTMLImageElement.complete - Web APIs
hich is called by the button that triggers red-eye removal, checks the value of the lightbox image's complete property before attempting to do its work.
...o do its work.
... the code below.
HTMLImageElement.crossOrigin - Web APIs
ected.
...ill be loaded using cors and credentials will be used for all cross-origin loads.
... "https://mdn.mozillademos.org/files/16797/clock-demo-400px.png"; const container = document.queryselector(".container"); function loadimage(url) { const image = new image(200, 200); image.addeventlistener("load", () => container.prepend(image) ); image.addeventlistener("error", () => { const errmsg = document.createelement("output"); errmsg.value = `error loading image at ${url}`; container.append(errmsg); }); image.crossorigin = "anonymous"; image.alt = ""; image.src = url; } loadimage(imageurl); html <div class="container"> <p>here's a paragraph.
HTMLInputElement - Web APIs
nts) that the value can have.
...n the value of the type attribute is text, search, tel, url or email; otherwise it is ignored.
... direction of the current locale backward for the opposite direction none if the direction is unknown size unsigned long: returns / sets the element's size attribute, containing visual size of the control.
HTMLMediaElement.currentSrc - Web APIs
the htmlmediaelement.currentsrc property contains the absolute url of the chosen media resource.
... the htmlmediaelement.currentsrc property contains the absolute url of the chosen media resource.
... the htmlmediaelement.currentsrc property contains the absolute url of the chosen media resource.
HTMLTrackElement.src - Web APIs
the htmltrackelement.src property reflects the value of the <track> element's src attribute, which indicates the url of the text track's data.
... the htmltrackelement.src property reflects the value of the <track> element's src attribute, which indicates the url of the text track's data.
... the htmltrackelement.src property reflects the value of the <track> element's src attribute, which indicates the url of the text track's data.
History - Web APIs
Web › API › History
page, for example -1 for the previous page or 1 for the next page.
...en there are no previously-visited pages in the session history), this method silently has no effect.
... the specified title (and, if provided, url).
MSSiteModeEvent - Web APIs
dge, the createevent()/initevent() constructor pattern for synthetic events is deprecated.
...vent()/initevent() constructor pattern for synthetic events is deprecated.
...to.
MediaSource.readyState - Web APIs
r myreadystate = mediasource.readystate; value a domstring.
... mediasource.readystate; value a domstring.
.../console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endofstream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; specifications specification status comment media source extensionsthe definition of 'readystate' in that specification.
MediaSource - Web APIs
current user agent — this is, if it can successfully create sourcebuffer objects for that mime type.
...= document.queryselector('video'); var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource(); //console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateen...
...sole.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endofstream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); }; function fetchab (url, cb) { console.log(url); var xhr = new xmlhttprequest; xhr.open('get', url); xhr.responsetype = 'arraybuffer'; xhr.onload = function () { cb(xhr.response); }; xhr.send(); }; specifications specification status comment media source extensionsthe definition of 'mediasource' in that specification.
Media Source API - Web APIs
number of dropped or corrupted frames.
...ed or corrupted frames.
...eturned by the htmlvideoelement.getvideoplaybackquality() method.
NDEFRecord.recordType - Web APIs
the recordtype property ofthe ndefrecord interface is usvstring containing the ndef record type.
... the recordtype property ofthe ndefrecord interface is usvstring containing the ndef record type.
...recordtype property ofthe ndefrecord interface is usvstring containing the ndef record type.
Notification.Notification() - Web APIs
which just adopts the browser's language setting behavior, but you can override that behaviour by setting values of ltr and rtl (although most browsers seem to ignore these settings.) lang: the notification's language, as specified using a domstring representing a bcp 47 language tag.
...odes page for a simple reference.
...sed to represent the notification when there isn't enough space to display the notification itself.
Notification.badge - Web APIs
note: this feature is available in web workers.
... note: this feature is available in web workers.
... note: this feature is available in web workers.
Notification - Web APIs
t — the user choice is unknown and therefore the browser will act as if the value were denied.
....
... read only the language code of the notification as specified in the constructor's options parameter.
PasswordCredential.additionalData - Web APIs
the additionaldata property of the passwordcredential interface takes one of a formdata instance, a urlsearchparams instance, or null.
... the additionaldata property of the passwordcredential interface takes one of a formdata instance, a urlsearchparams instance, or null.
...nstance, a urlsearchparams instance, or null.
PerformanceEntry.entryType - Web APIs
pe = entry.entrytype; return value the return value depends on the subtype of the performanceentry object and affects the value of the performanceentry.name property as shown by the table below.
...he performanceentry object and affects the value of the performanceentry.name property as shown by the table below.
...object and affects the value of the performanceentry.name property as shown by the table below.
PerformanceEntry.name - Web APIs
e returned by the performanceentry.entrytype property.
...in web workers.
...e the return value depends on the subtype of the performanceentry object and the value of performanceentry.entrytype, as shown by the table below.
RTCConfiguration - Web APIs
the same certificate for subsequent calls, the remote peer can tell you're the same caller.
...generating new keys.
...ication, so the username and password are provided.
RTCPeerConnection: icecandidateerror event - Web APIs
connection.onicecandidateerror description the error object's errorcode property is one of the numeric stun error codes.
... servers provided when creating the rtcpeerconnection.
...erconnection pc.
RTCPeerConnection.setConfiguration() - Web APIs
tart.
...uccessful login to the server.
...from the current configuration.
RTCPeerConnectionIceErrorEvent - Web APIs
tion, or null if the local ip address has not yet been exposed as part of a local ice candidate.
... communication with the stun or turn server couldn't be established at all, this string will be a browser-specific string explaining the error.
... couldn't be established at all, this string will be a browser-specific string explaining the error.
ReadableStream.cancel() - Web APIs
sed to fetch the whatwg html spec chunk by chunk; each chunk is searched for the string "service workers".
...arched for the string "service workers".
...rs".
ReadableStreamDefaultReader.read() - Web APIs
sult += chunk; // read some more, and call this function again return reader.read().then(processtext); }); } example 2 - handling text line by line this example shows how you might fetch a text file and handle it as a stream of text lines.
...ad().then(processtext); }); } example 2 - handling text line by line this example shows how you might fetch a text file and handle it as a stream of text lines.
...der.read()); chunk = remainder + (chunk ?
ServiceWorker - Web APIs
cessfully registered, and the controlled page has been reloaded.) the serviceworker interface is dispatched a set of lifecycle events — install and activate — and functional events including fetch.
...ded.) the serviceworker interface is dispatched a set of lifecycle events — install and activate — and functional events including fetch.
... of lifecycle events — install and activate — and functional events including fetch.
ServiceWorkerContainer.getRegistration() - Web APIs
the getregistration() method of the serviceworkercontainer interface gets a serviceworkerregistration object whose scope url matches the provided document url.
...iner interface gets a serviceworkerregistration object whose scope url matches the provided document url.
... the provided document url.
SourceBuffer - Web APIs
fer.
...= document.queryselector('video'); var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource(); //console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateen...
...nsole.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateend', function (_) { mediasource.endofstream(); video.play(); //console.log(mediasource.readystate); // ended }); sourcebuffer.appendbuffer(buf); }); } function fetchab (url, cb) { console.log(url); var xhr = new xmlhttprequest; xhr.open('get', url); xhr.responsetype = 'arraybuffer'; xhr.onload = function () { cb(xhr.response); }; xhr.send(); } specifications specification status comment media source extensionsthe definition of 'sourcebuffer' in that specification.
Signaling and video calling - Web APIs
rtcpeerconnection objects, their respective ends of the webrtc connection.
....
...sed to determine the best route and protocols to use when communicating between the peers, even if they're behind a firewall or using nat.
Taking still photos with WebRTC - Web APIs
clearing the photo box clearing the photo box involves creating an image, then converting it into a format usable by the <img> element that displays the most recently captured frame.
...whose job it is to capture the currently displayed video frame, convert it into a png file, and display it in the captured frame box.
...ontext, filling the entire canvas with the frame image.
WebSocket - Web APIs
Web › API › WebSocket
the websocket object provides the api for creating and managing a websocket connection to a server, as well as for sending and receiving data on the connection.
...cket.onerror an event listener to be called when an error occurs.
...er to be called when an error occurs.
Using the Web Storage API - Web APIs
made.
...omains can't access the same storage objects.
...json.stringify(e.storagearea); }); here we add an event listener to the window object that fires when the storage object associated with the current origin is changed.
Window.closed - Web APIs
Web › API › Window › closed
the window.closed read-only property indicates whether the referenced window is closed or not.
... the window.closed read-only property indicates whether the referenced window is closed or not.
...roperty indicates whether the referenced window is closed or not.
Window.openDialog() - Web APIs
Web › API › Window › openDialog
dler.
...the dialog window.
...g window.
window.postMessage() - Web APIs
alue of the origin property is not consistently unicode or punycode; for greatest compatibility check for both the idn and punycode values when using this property if you expect messages from idn sites.
...unicode or punycode; for greatest compatibility check for both the idn and punycode values when using this property if you expect messages from idn sites.
...n of such messages, and other listeners (including those you do not control) can listen in.
WindowClient.navigate() - Web APIs
the navigate() method of the windowclient interface loads a specified url into a controlled client page then returns a promise that resolves to the existing windowclient.
... the navigate() method of the windowclient interface loads a specified url into a controlled client page then returns a promise that resolves to the existing windowclient.
... the navigate() method of the windowclient interface loads a specified url into a controlled client page then returns a promise that resolves to the existing windowclient.
XDomainRequest - Web APIs
quests.
...sue with the interface where some requests are lost if multiple xdomainrequests are being sent at the same time.
...te: the xdr.onprogress event should always be defined, even as an empty function, or xdomainrequest may not fire onload for duplicate requests.
XMLHttpRequest.response - Web APIs
, load(), which loads and processes a page from the server.
...erver.
...nd passed into the callback function provided to load().
-webkit-mask-repeat-x - CSS: Cascading Style Sheets
ee times, might stretch until each repetition is 300px wide, and then another image will be added.
...be added.
...| round examples using a repeating or non-repeating mask image .exampleone { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-x: repeat; } .exampletwo { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-x: no-repeat; } using multiple mask images you can specify a different <repeat-style> for each mask image, separated by commas: .examplethree { -webkit-mask-image: url('mask1.png'), url('mask2.png'); -webkit-mask-repeat-x: repeat, space; } each image is matched with the corresponding repeat style, from first specified to last.
additive-symbols - CSS: Cascading Style Sheets
cify symbols when the value of a counter system descriptor is additive.
...0", 2 "\2e\20"; additive-symbols: 3 "0", 2 url(symbol.png); when the system descriptor is cyclic, numeric, alphabetic, symbolic, or fixed, use the symbols descriptor instead of additive-symbols.
...color>?
prefix - CSS: Cascading Style Sheets
the prefix descriptor of the @counter-style rule specifies content that will be prepended to the marker representation.
...efix: "»"; prefix: "page "; prefix: url(bullet.png); values <symbol> specifies a <symbol> that is prepended to the marker representation.
...color>?
suffix - CSS: Cascading Style Sheets
the suffix descriptor of the@counter-style rule specifies content that will be appended to the marker representation.
...; suffix: ") "; suffix: url(bullet.png); values <symbol> specifies a <symbol> that is appended to the marker representation.
...color>?
@counter-style - CSS: Cascading Style Sheets
tor will be used to represent the first n counter symbols.
...represent the first n counter symbols.
...counter symbols.
Attribute selectors - CSS: Cascading Style Sheets
ared case-insensitively (for characters within the ascii range).
...s (or s) before the closing bracket causes the value to be compared case-sensitively (for characters within the ascii range).
...e).
Shorthand properties - CSS: Cascading Style Sheets
, and the different margins around a box can be defined using the margin shorthand.
...t corner the 4-value syntax: border-radius: 1em 2em 3em 4em — the four values represent the top left, top right, bottom right and bottom left corners respectively, always in that order, that is clock-wise starting at the top left.
...om right and bottom left corners respectively, always in that order, that is clock-wise starting at the top left.
Value definition syntax - CSS: Cascading Style Sheets
must appear before any smaller keyword.
...maller keyword.
...igger [ ] brackets group components to bypass precedence rules bold [ thin && <length> ] multipliers no multiplier exactly 1 times solid * asterisk 0 or more times bold smaller* + plus sign 1 or more times bold smaller+ ?
animation - CSS: Cascading Style Sheets
Web › CSS › animation
div class="animation a3"></div> </div> </div> </div> </div> html,body { height: 100%; box-sizing: border-box; } pre { margin-bottom: 0; } svg { width: 1.5em; height: 1.5em; } button { width: 27px; height: 27px; background-size: 16px; background-position: center; background-repeat: no-repeat; border-radius: 3px; cursor: pointer; } button.play { background-image: url('data:image/svg+xml;charset=utf-8,%3csvg%20xmlns%3d%22http%3a%2f%2fwww.w3.org%2f2000%2fsvg%22%20viewbox%3d%220%200%2016%2016%22%3e%3cstyle%3epath%20%7bdisplay%3anone%7d%20path%3atarget%7bdisplay%3ablock%7d%3c%2fstyle%3e%3cpath%20id%3d%22play%22%20d%3d%22m3%2c3%20l3%2c13%20l13%2c8%20z%22%20%2f%3e%3cpath%20id%3d%22pause%22%20d%3d%22m5%2c4%20l7%2c4%20l7%2c13%20l5%2c13%20z%20m9%2c4%20l11%2c4%20l11%2c...
...l13%2c8%20z%22%20%2f%3e%3cpath%20id%3d%22pause%22%20d%3d%22m5%2c4%20l7%2c4%20l7%2c13%20l5%2c13%20z%20m9%2c4%20l11%2c4%20l11%2c13%20l9%2c13%20z%22%20%2f%3e%3cpath%20id%3d%22restart%22%20d%3d%22m13%2c9%20a5%2c5%2c1%2c1%2c1%2c8%2c4%20l8%2c2%20l12%2c5%20l8%2c8%20l8%2c6%20a3%2c3%2c1%2c1%2c0%2c11%2c9%20a1%2c1%2c1%2c1%2c1%2c13%2c9%20z%22%20%2f%3e%3c%2fsvg%3e#play'); } button.pause { background-image: url('data:image/svg+xml;charset=utf-8,%3csvg%20xmlns%3d%22http%3a%2f%2fwww.w3.org%2f2000%2fsvg%22%20viewbox%3d%220%200%2016%2016%22%3e%3cstyle%3epath%20%7bdisplay%3anone%7d%20path%3atarget%7bdisplay%3ablock%7d%3c%2fstyle%3e%3cpath%20id%3d%22play%22%20d%3d%22m3%2c3%20l3%2c13%20l13%2c8%20z%22%20%2f%3e%3cpath%20id%3d%22pause%22%20d%3d%22m5%2c4%20l7%2c4%20l7%2c13%20l5%2c13%20z%20m9%2c4%20l11%2c4%20l11%2c...
...%2c8%20z%22%20%2f%3e%3cpath%20id%3d%22pause%22%20d%3d%22m5%2c4%20l7%2c4%20l7%2c13%20l5%2c13%20z%20m9%2c4%20l11%2c4%20l11%2c13%20l9%2c13%20z%22%20%2f%3e%3cpath%20id%3d%22restart%22%20d%3d%22m13%2c9%20a5%2c5%2c1%2c1%2c1%2c8%2c4%20l8%2c2%20l12%2c5%20l8%2c8%20l8%2c6%20a3%2c3%2c1%2c1%2c0%2c11%2c9%20a1%2c1%2c1%2c1%2c1%2c13%2c9%20z%22%20%2f%3e%3c%2fsvg%3e#pause'); } button.restart { background-image: url('data:image/svg+xml;charset=utf-8,%3csvg%20xmlns%3d%22http%3a%2f%2fwww.w3.org%2f2000%2fsvg%22%20viewbox%3d%220%200%2016%2016%22%3e%3cstyle%3epath%20%7bdisplay%3anone%7d%20path%3atarget%7bdisplay%3ablock%7d%3c%2fstyle%3e%3cpath%20id%3d%22play%22%20d%3d%22m3%2c3%20l3%2c13%20l13%2c8%20z%22%20%2f%3e%3cpath%20id%3d%22pause%22%20d%3d%22m5%2c4%20l7%2c4%20l7%2c13%20l5%2c13%20z%20m9%2c4%20l11%2c4%20l11%2c...
background-attachment - CSS: Cascading Style Sheets
tion typediscrete formal syntax <attachment>#where <attachment> = scroll | fixed | local examples simple example html <p> there were doors all round the hall, but they were all locked; and when alice had been all the way down one side and up the other, trying every door, she walked sadly down the middle, wondering how she was ever to get out again.
... hall; but, alas!
...oo small, but at any rate it would not open any of them.
border-image-source - CSS: Cascading Style Sheets
itory.
...ance defined by border-style is displayed instead.
...color>?
border-image - CSS: Cascading Style Sheets
ccording to the specification, although not all browsers implement this requirement.
...der-image-outset border-image-repeat border-image-slice border-image-source border-image-width syntax /* source | slice */ border-image: linear-gradient(red, blue) 27; /* source | slice | repeat */ border-image: url("/images/border.png") 27 space; /* source | slice | width */ border-image: linear-gradient(red, blue) 27 / 35px; /* source | slice | width | outset | repeat */ border-image: url("/images/border.png") 27 23 / 50px 30px / 1rem round space; the border-image property may be specified with anywhere from one to five of the values listed below.
...rner and edge regions.
Challenge solutions - Developer guides
se are not the only possible solutions.
... #f00; /* red */ background-color: #ddf; /* pale blue */ font: 200% serif; } .carrot { color: #fa0; /* orange */ } .spinach { color: #080; /* dark green */ } p { color: #00f; /* blue */ } content add an image challenge add a one rule to your stylesheet so that it displays the image at the start of each line.
...ble tbody td { border:1px solid #7a7; } media separate print style file challenge move the print-specific style rules to a separate css file and import them into your style4.css stylesheet.
Parsing and serializing XML - Developer guides
this article, we'll look at the objects provided by the web platform to make the common tasks of serializing and parsing xml easy.
...ts an xml fragment in a string into a dom tree using a domparser: var smystring = '<a id="a"><b id="b">hey!</b></a>'; var oparser = new domparser(); var odom = oparser.parsefromstring(smystring, "application/xml"); // print the name of the root element or error message console.log(odom.documentelement.nodename == "parsererror" ?
...!</b></a>'; var oparser = new domparser(); var odom = oparser.parsefromstring(smystring, "application/xml"); // print the name of the root element or error message console.log(odom.documentelement.nodename == "parsererror" ?
<area> - HTML: Hypertext Markup Language
Web › HTML › Element › area
poly or polygon: the value is a set of x,y pairs for each point in the polygon: x1,y1,x2,y2,x3,y3, and so on.
... full description of the download attribute.
... a user agent’s default behavior, if no policy is otherwise specified.
<input type="file"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › file
age types specified in the accept attribute).
...ied in the accept attribute).
...t = document.createelement('ol'); preview.appendchild(list); for(const file of curfiles) { const listitem = document.createelement('li'); const para = document.createelement('p'); if(validfiletype(file)) { para.textcontent = `file name ${file.name}, file size ${returnfilesize(file.size)}.`; const image = document.createelement('img'); image.src = url.createobjecturl(file); listitem.appendchild(image); listitem.appendchild(para); } else { para.textcontent = `file name ${file.name}: not a valid file type.
<link>: The External Resource Link element - HTML: Hypertext Markup Language
Web › HTML › Element › link
document.
...ified in the html when it is loaded, the stylesheet will not be loaded during page load.
....
<meta>: The Document-level Metadata element - HTML: Hypertext Markup Language
Web › HTML › Element › meta
st have the value "ie=edge".
...ie=edge".
...used together to provide document metadata in terms of name-value pairs, with the name attribute giving the metadata name, and the content attribute giving the value.
itemtype - HTML: Hypertext Markup Language
the global attribute itemtype specifies the url of the vocabulary that will be used to define itemprop's (item properties) in the data structure.
...ata structure the vocabulary set by itemtype will be active.
...n properties specifying the concert's key details.
Microdata - HTML: Hypertext Markup Language
e item's descendants.
...te can be associated with the item using an itemref.
... properties elsewhere in the document.
Basics of HTTP - HTTP
as novelties introduced over the years.
...oduced over the years.
...eparating 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.
Clear-Site-Data - HTTP
// multiple directives (comma separated) clear-site-data: "cache", "cookies" // wild card clear-site-data: "*" directives all directives must comply with the quoted-string grammar.
... "cache" indicates that the server wishes to remove locally cached data (i.e.
...indicates that the server wishes to remove all cookies for the origin of the response url.
CSP: referrer - HTTP
licy is specified.
...sn't sent to a less secure destination (https->http).
...s secure destination (https->http).
CSP: report-to - HTTP
version 1 directive type reporting directive this directive is not supported in the <meta> element.
...n-field-value>; examples see content-security-policy-report-only for more information and examples.
...ps://example.com/csp-reports" } ] }, { "group": "hpkp-endpoint", "max_age": 10886400, "endpoints": [ { "url": "https://example.com/hpkp-reports" } ] } content-security-policy: ...; report-to csp-endpoint report-to: { "group": "endpoint-1", "max_age": 10886400, "endpoints": [ { "url": "https://example.com/reports" }, { "url": "https://backup.com/reports" } ] } content-security-policy: ...; report-to endpoint-1 ...
CSP: upgrade-insecure-requests - HTTP
the http content-security-policy (csp) upgrade-insecure-requests directive instructs user agents to treat all of a site's insecure urls (those served over http) as though they have been replaced with secure urls (those served over https).
... the http content-security-policy (csp) upgrade-insecure-requests directive instructs user agents to treat all of a site's insecure urls (those served over http) as though they have been replaced with secure urls (those served over https).
... // meta tag <meta http-equiv="content-security-policy" content="upgrade-insecure-requests"> with the above header set on a domain example.com that wants to migrate from http to https, non-navigational insecure resource requests are automatically upgraded (first-party as well as third-party requests).
Referer - HTTP
Web › HTTP › Headers › Referer
y a misspelling of the word "referrer".
... word "referrer".
...ng resource is a local "file" or "data" uri.
Link prefetching FAQ - HTTP
tabs finish loading.
...monitor network idle time.
...sers support link prefetching?
HTTP Messages - HTTP
Web › HTTP › Messages
erver.
... of this request target varies between different http methods.
...e origin form, and is used with get, post, head, and options methods.
HEAD - HTTP
Web › HTTP › Methods › HEAD
the http head method requests the headers that would be returned if the head request's url was instead requested with the http get method.
... the http head method requests the headers that would be returned if the head request's url was instead requested with the http get method.
...d its content-length header to check the filesize without actually downloading the file.
POST - HTTP
Web › HTTP › Methods › POST
here successive identical post may have additional effects, like passing an order several times.
... to a data-handling process; extending a database through an append operation.
...s body yes successful response has body yes safe no idempotent no cacheable only if freshness information is included allowed in html forms yes syntax post /test example a simple form using the default application/x-www-form-urlencoded content type: post /test http/1.1 host: foo.example content-type: application/x-www-form-urlencoded content-length: 27 field1=value1&field2=value2 a form using the multipart/form-data content type: post /test http/1.1 host: foo.example content-type: multipart/form-data;boundary="boundary" --boundary content-disposition: form-data; name="field1" value1 --boundary content-disposition: form-data; name="field2"; filename="example.txt" value2 --boundary-- specifications spec...
Proxy servers and tunneling - HTTP
whether web browser requests (http, https, and ftp) go directly to the destination or are forwarded to a web proxy server.
... to a file with a .pac filename extension: proxy.pac and the mime type set to: application/x-ns-proxy-autoconfig the file consists of a function called findproxyforurl.
...a file with a .pac filename extension: proxy.pac and the mime type set to: application/x-ns-proxy-autoconfig the file consists of a function called findproxyforurl.
A typical HTTP session - HTTP
Web › HTTP › Session
d phases can now be performed any number of times.
... is established, the user-agent can send the request (a user-agent is typically a web browser, but can be anything else, a crawler, for example).
... block from the header block.
HTTP response status codes - HTTP
Web › HTTP › Status
n of the result of one or more instance-manipulations applied to the current instance.
... current instance.
...systems, however this status code is used very rarely and no standard convention exists.
SyntaxError: return not in function - JavaScript
return (or yield) not in function" occurs when a return or yield statement is called outside of a function.
...efox) syntaxerror: yield not in function (firefox) error type syntaxerror.
...ackets somewhere?
SyntaxError: missing } after property list - JavaScript
the javascript exception "missing } after property list" occurs when there is a mistake in the object initializer syntax somewhere.
... property list" occurs when there is a mistake in the object initializer syntax somewhere.
....
decodeURIComponent() - JavaScript
ponent of a uniform resource identifier.
...each escape sequence in the encoded uri component with the character that it represents.
...esents.
for await...of - JavaScript
tes an async iterable for a stream of data, then uses it to find the size of the response from the api.
...rom the api.
...ynciterable(stream) { const reader = stream.getreader(); try { while (true) { const { done, value } = await reader.read(); if (done) { return; } yield value; } } finally { reader.releaselock(); } } // fetches data from url and calculates response size using the async generator.
icons - Web app manifests
", "sizes": "48x48" }, { "src": "icon/hd_hi.ico", "sizes": "72x72 96x96 128x128 256x256" }, { "src": "icon/hd_hi.svg", "sizes": "72x72" } ] values image objects may contain the following values: member description sizes a string containing space-separated image dimensions.
...: "48x48" }, { "src": "icon/hd_hi.ico", "sizes": "72x72 96x96 128x128 256x256" }, { "src": "icon/hd_hi.svg", "sizes": "72x72" } ] values image objects may contain the following values: member description sizes a string containing space-separated image dimensions.
... { "src": "icon/hd_hi.ico", "sizes": "72x72 96x96 128x128 256x256" }, { "src": "icon/hd_hi.svg", "sizes": "72x72" } ] values image objects may contain the following values: member description sizes a string containing space-separated image dimensions.
Web app manifests
tain comments?
...le comments.
...": "96x96", "type": "image/png" }, { "src": "images/touch/homescreen144.png", "sizes": "144x144", "type": "image/png" }, { "src": "images/touch/homescreen168.png", "sizes": "168x168", "type": "image/png" }, { "src": "images/touch/homescreen192.png", "sizes": "192x192", "type": "image/png" }], "related_applications": [{ "platform": "play", "url": "https://play.google.com/store/apps/details?id=cheeaun.hackerweb" }] } deploying a manifest web app manifests are deployed in your html pages using a <link> element in the <head> of a document: <link rel="manifest" href="/manifest.webmanifest"> note: the .webmanifest extension is specified in the media type registration section of the specification (the response of the manifest file shou...
Introduction to progressive web apps - Progressive web apps (PWAs)
gressive, thus ending up with a higher lighthouse score.
...o tap to open apps into their own native container that feels nicely integrated with the underlying platform.
...it any form factor: desktop, mobile, tablet, or whatever comes next.
requiredExtensions - SVG: Scalable Vector Graphics
the requiredextensions attribute defines a list of required language extensions.
...quired language extensions.
...sion should include versioning information, such as "http://example.org/svgextensionxyz/1.0", so that script writers can distinguish between different versions of a given extension.
<feColorMatrix> - SVG: Scalable Vector Graphics
opacity="0.5" /> </g> </defs> <use href="#circles" /> <text x="70" y="50">reference</text> <!-- identity matrix --> <filter id="colormethesame"> <fecolormatrix in="sourcegraphic" type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0" /> </filter> <use href="#circles" transform="translate(0 70)" filter="url(#colormethesame)" /> <text x="70" y="120">identity matrix</text> <!-- combine rgb into green matrix --> <filter id="colormegreen"> <fecolormatrix in="sourcegraphic" type="matrix" values="0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0" /> </filter> <use href="#circles" transform="translate(0 140)" filter="url(#colormegreen)" /...
... 0 0 0 0 0 0 0 0 1 0" /> </filter> <use href="#circles" transform="translate(0 140)" filter="url(#colormegreen)" /> <text x="70" y="190">rgbtogreen</text> <!-- saturate --> <filter id="colormesaturate"> <fecolormatrix in="sourcegraphic" type="saturate" values="0.2" /> </filter> <use href="#circles" transform="translate(0 210)" filter="url(#colormesaturate)" /> <text x="70" y="260">saturate</text> <!-- huerotate --> <filter id="colormehuerotate"> <fecolormatrix in="sourcegraphic" type="huerotate" values="180" /> </filter> <use href="#circles" transform="translate(0 280)" filter="url(#colormehuerotate)" /> <text x="70" y="330">huerotate</text> <!-- luminancetoalpha --> <filter id="colormelta"> ...
...cegraphic" type="huerotate" values="180" /> </filter> <use href="#circles" transform="translate(0 280)" filter="url(#colormehuerotate)" /> <text x="70" y="330">huerotate</text> <!-- luminancetoalpha --> <filter id="colormelta"> <fecolormatrix in="sourcegraphic" type="luminancetoalpha" /> </filter> <use href="#circles" transform="translate(0 350)" filter="url(#colormelta)" /> <text x="70" y="400">luminancetoalpha</text> </svg> result screenshotlive sample specifications specification status comment filter effects module level 1the definition of '<fecolormatrix>' in that specification.
<feDiffuseLighting> - SVG: Scalable Vector Graphics
22">fepointlight</text> <filter id="lightme1"> <fediffuselighting in="sourcegraphic" result="light" lighting-color="white"> <fepointlight x="150" y="60" z="20" /> </fediffuselighting> <fecomposite in="sourcegraphic" in2="light" operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/> </filter> <circle cx="170" cy="80" r="50" fill="green" filter="url(#lightme1)" /> <!-- the light source is a fedistantlight element --> <text text-anchor="middle" x="280" y="22">fedistantlight</text> <filter id="lightme2"> <fediffuselighting in="sourcegraphic" result="light" lighting-color="white"> <fedistantlight azimuth="240" elevation="20"/> </fediffuselighting> <fecomposite in="sourcegraphic" in2="light" ope...
...antlight</text> <filter id="lightme2"> <fediffuselighting in="sourcegraphic" result="light" lighting-color="white"> <fedistantlight azimuth="240" elevation="20"/> </fediffuselighting> <fecomposite in="sourcegraphic" in2="light" operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/> </filter> <circle cx="280" cy="80" r="50" fill="green" filter="url(#lightme2)" /> <!-- the light source is a fespotlight source --> <text text-anchor="middle" x="390" y="22">fespotlight</text> <filter id="lightme3"> <fediffuselighting in="sourcegraphic" result="light" lighting-color="white"> <fespotlight x="360" y="5" z="30" limitingconeangle="20" pointsatx="390" pointsaty="80" pointsatz="0"/> </fediffuselighting> ...
...aphic" result="light" lighting-color="white"> <fespotlight x="360" y="5" z="30" limitingconeangle="20" pointsatx="390" pointsaty="80" pointsatz="0"/> </fediffuselighting> <fecomposite in="sourcegraphic" in2="light" operator="arithmetic" k1="1" k2="0" k3="0" k4="0"/> </filter> <circle cx="390" cy="80" r="50" fill="green" filter="url(#lightme3)" /> </svg> expected rendering: live rendering: specifications specification status comment filter effects module level 1the definition of '<fediffuselighting>' in that specification.
<solidcolor> - SVG: Scalable Vector Graphics
d-opacity="0.8"/> <!-- lineargradient with a single color stop is a less elegant way to achieve the same effect, but it works in current browsers.
...ss elegant way to achieve the same effect, but it works in current browsers.
...t="0" stop-color="green" /> </lineargradient> </defs> <text x="10" y="20">circles colored with solidcolor</text> <circle cx="150" cy="65" r="35" stroke-width="2" stroke="url(#mycolor)" fill="white"/> <circle cx="50" cy="65" r="35" fill="url(#mycolor)"/> <text x="10" y="120">circles colored with lineargradient</text> <circle cx="150" cy="165" r="35" stroke-width="2" stroke="url(#mygradient)" fill="white"/> <circle cx="50" cy="165" r="35" fill="url(#mygradient)"/> </svg> result ...
<use> - SVG: Scalable Vector Graphics
Web › SVG › Element › use
pplied to the use element.
...efuse to load a cross-origin url in the href attribute.
...ntly no defined way to set a cross-origin policy for use elements.
Clipping and masking - SVG: Scalable Vector Graphics
ncy and grey values of the mask into account.
...hieve this effect quite quickly with masks.
...> <defs> <lineargradient id="gradient"> <stop offset="0" stop-color="black" /> <stop offset="1" stop-color="white" /> </lineargradient> <mask id="mask"> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" /> </mask> </defs> <rect x="0" y="0" width="200" height="200" fill="green" /> <rect x="0" y="0" width="200" height="200" fill="red" mask="url(#mask)" /> </svg> you see a green-filled rect at the lowest layer and on top a red-filled rect.
Referer header: privacy and security concerns - Web security
s, logging, or optimized caching.
..., an image hosted on a third party side but embedded in your page could result in sensitive information being leaked to the third party.
...an we fix this?
xml:base - XML: Extensible Markup Language
Web › XML › xml:base
xml:base is like the html <base> element, but can specify the base uri per element as well as the entire document.
...nk { stroke: #999; stroke-opacity: .6; } marker#arrow { fill: black; } </style> </head> <body> <svg width="100%" height="100%" xml:base=""> <defs> <marker id="arrow" viewbox="0 -5 10 10" refx="0" refy="0" markerwidth="20" markerheight="20" orient="auto"> <path d="m0,-5l10,0l0,5"></path> </marker> </defs> <line x1="100" y1="100" x2="333" y2="333" marker-start="url(#arrow)" class="link"></line> </svg> </body> </html> imagine a svg with font references.
...6" viewbox="0 0 909 1286"xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <style type="text/css"><![cdata[ .s9_999{ font-size: 9.17px; font-family: zapfdingbats_ghr; fill: #161615; } ]]></style> <text x="647" y="412" dx="0" class="s9_999" >r</text> <style type="text/css"><![cdata[ @font-face { font-family: zapfdingbats_ghr; src: url("fonts/zapfdingbats_ghr.woff") format("woff"); } ]]></style> </svg> setting the xml:base on the svg element means you can inline the svg and thereby bypass cors issue while not changing the base uri for your entire document.
Communicating using "port" - Archive of obsolete content
is only available from firefox 29 onwards.
...ox 29 onwards.
Working with Events - Archive of obsolete content
he listener function is the object that emitted the event.
...ction is the object that emitted the event.
simple-storage - Archive of obsolete content
ource://gre/modules/commonjs/sdk/simple-storage.js'].exports.storage clarification from mozilla needed: writing the above line in add-on debugger console results in "referenceerror: loader is not defined".
...renceerror: loader is not defined".
Low-Level APIs - Archive of obsolete content
te-streams provides streams for reading and writing bytes.
...i/id create ui component ids.
List Open Tabs - Archive of obsolete content
to follow this tutorial you'll need to have learned the basics of jpm.
...the open tabs, you can iterate over the tabs object itself.
Developing for Firefox Mobile - Archive of obsolete content
ed passwords supported private-browsing not supported querystring supported request supported selection not supported self supported simple-prefs supported simple-storage supported system supported tabs supported timers supported ui not supported url supported widget not supported windows supported low-level apis /loader supported chrome supported console/plain-text supported console/traceback supported content/content supported content/loader supported content/mod supported content/worker supported core/...
...event/core supported event/target supported frame/hidden-frame supported frame/utils supported io/byte-streams supported io/file supported io/text-streams supported lang/functional supported lang/type supported loader/cuddlefish supported loader/sandbox supported net/url supported net/xhr supported places/bookmarks not supported places/favicon not supported places/history not supported platform/xpcom supported preferences/service supported stylesheet/style supported stylesheet/utils supported system/environment supported system/events support...
Open a Web Page - Archive of obsolete content
b page, you can use the tabs module: var tabs = require("sdk/tabs"); tabs.open("http://www.example.com"); this function is asynchronous, so you don't immediately get back a tab object which you can examine.
... url: "http://www.example.com", onready: function onready(tab) { console.log(tab.title); } }); even then, you don't get direct access to any content hosted in the tab.
Customizing the download progress bar - Archive of obsolete content
that there is an asterisk in front of the entry for myextension.css so that it will be preprocessed.
... myextension.css file will look something like this: richlistitem progressmeter { %ifdef xp_win min-height: 17px !important; %else %ifdef xp_macosx -moz-appearance: none !important; background-image: url(chrome://myextension/skin/progress_bg_osx.png) !important; %endif %endif } richlistitem .progress-bar { %ifdef xp_win -moz-appearance: none !important; background-image: url(chrome://myextension/skin/progress_fd_win.png) !important; %else %ifdef xp_macosx background-image: url(chrome://myextension/skin/progress_fd_osx.gif) !important; %endif %endif } note: this file only supports windows and mac, but it would be straightforward to add support for linux.
Drag & Drop - Archive of obsolete content
, elem could be a window or an xul element.
...terfaces.nsiioservice); var uris = new array(); // if sourcenode is not null, then the drop was from inside the application if (dragsession.sourcenode) return; // setup a transfer item to retrieve the file data var trans = components.classes["@mozilla.org/widget/transferable;1"].createinstance(components.interfaces.nsitransferable); trans.adddataflavor("text/x-moz-url"); trans.adddataflavor("application/x-moz-file"); for (var i=0; i<dragsession.numdropitems; i++) { var uri = null; dragsession.getdata(trans, i); var flavor = {}, data = {}, length = {}; trans.getanytransferdata(flavor, data, length); if (data) { try { var str = data.value.queryinterface(components.interfaces.nsisupportsstring); } ...
StringView - Archive of obsolete content
x3jlz2lzdgvyve1dbg9uzvrhymxlaf9pbml0aa==", "ascii", 1444, 12); alert(string.fromcharcode.apply(null, swhelloworld.bufferview)); // swhelloworld.buffer contains the whole file alert(swhelloworld); // "hello world" /* traslating "hello world" into italian...
...bg9uzvrhymxlaf9pbml0aa==", "ascii", 1444, 12); alert(string.fromcharcode.apply(null, swhelloworld.bufferview)); // swhelloworld.buffer contains the whole file alert(swhelloworld); // "hello world" /* traslating "hello world" into italian...
Tabbox - Archive of obsolete content
nels.childnodes[currentindex]); tabs.removeitemat(currentindex); /*work around if last tab is removed, widget fails to advance to next tab*/ if(-1 == tabbox.selectedindex && tabs.childnodes.length>0){ tabbox.selectedindex=0; } } creating a close tab button to have a tab close button, you must configure the style.
...last tab is removed, widget fails to advance to next tab*/ if(-1 == tabbox.selectedindex && tabs.childnodes.length>0){ tabbox.selectedindex=0; } } creating a close tab button to have a tab close button, you must configure the style.
xml:base support in old browsers - Archive of obsolete content
tch(/\/$/)) { xmlbase = xmlbase.substring(0, xmlbase.length-2); // strip off last slash to join with xlink path with slash } // alert(xmlbase + '::' + xlink); } var link = xmlbase + xlink; if (!link.match(scheme)) { // if there is no domain, we'll need to use the current domain var loc = window.location; if (link.indexof('/') === 0 ) { // if link is an absolute url, it should be from the host only link = loc.protocol + '//' + loc.host + link; } else { // if link is relative, it should be from full path, minus the file var dirpath = loc.pathname.substring(0, loc.pathname.lastindexof('/')-1); if (link.lastindexof('/') !== link.length-1) { link += '/'; } link = loc.protocol + '//' + loc.host + dirpath + link; } } return link; } func...
...lse { // if link is relative, it should be from full path, minus the file var dirpath = loc.pathname.substring(0, loc.pathname.lastindexof('/')-1); if (link.lastindexof('/') !== link.length-1) { link += '/'; } link = loc.protocol + '//' + loc.host + dirpath + link; } } return link; } function getxmlbase (thisitem) { // fix: need to keep going up the chain if still a relative url!!!!!
Inline options - Archive of obsolete content
oot folder (alongside install.rdf).
...rome.manifest and set it's path.
Appendix F: Monitoring DOM changes - Archive of obsolete content
er browsers will need to provide fallbacks.
...hange to the fragment identifier (hash) or more recently via the history.pushstate method.
Handling Preferences - Archive of obsolete content
tleties related to preference management, there are some facilities provided in xul and firefox that make this much easier to deal with.
...rovided in xul and firefox that make this much easier to deal with.
The Essentials of an Extension - Archive of obsolete content
.
...erate them.
Setting up an extension development environment - Archive of obsolete content
directory under your profile directory with the extension's id as the file name (for example "your_profile_directory/extensions/{46d1b3c0-db7a-4b1a-863a-6ee6f77ecb58}").
... /full/path/to/yourextension/ on mac and linux, and c:\full\path\to\yourextension\ on windows.
Environment variables affecting crash reporting - Archive of obsolete content
the breakpad crash reporting used in mozilla projects supports some environment variables, primarily for testing purposes.
... the breakpad crash reporting used in mozilla projects supports some environment variables, primarily for testing purposes.
ActiveX Control for Hosting Netscape Plug-ins in IE - Archive of obsolete content
e if you have packaged the control into a cab file and wish for it to be installed automatically.
...es this value to determine which plug-in it should create to handle the content.
Enabling the behavior - retrieving tinderbox status - Archive of obsolete content
a list of active tinderbox clients along with the result of their last build attempt.
...e.
Making a Mozilla installation modifiable - Archive of obsolete content
xtracted files instead of the original jar archives.
...ething.jar!/something-else...
Getting Started - Archive of obsolete content
the correct files we need to open up \mozilla\chrome\installed-chrome.txt in a text editor.
...itor.
JavaScript Client API - Archive of obsolete content
're also going to import ''util.js'' as it contains many useful helpers.
...ou write for syncing a new data type will most likely be in the store implementation.
Creating a Help Content Pack - Archive of obsolete content
ten in xhtml, and the rest are written in rdf.
... attribute is required.
Hidden prefs - Archive of obsolete content
warning: the content of this article may be out of date.
...r incorrect information.
How to Write and Land Nanojit Patches - Archive of obsolete content
repo.] once it passes testing, file the patch to bugzilla (file a bug under the "nanojit" component in the "core" product) and get a review.
...d!) tr/tm portion of the patch(es) on top of your current, un-pushed tip.
Configuration - Archive of obsolete content
arameters: id the unique name of this web application.
...d alt+home) on or off for this web app: yes or no splashscreen filename of an html page to be displayed while the app is loading.
Example Sticky Notes - Archive of obsolete content
<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html401/strict.dtd"> <html> <head> <title>xbl demo : sticky notes</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <style type="text/css"> body { background-color: #ffffff; color: #000000; font: 1em verdana, sans-serif; } h1 { font-size: 1.5em; } /* binding: */ .sticker { -moz-binding: url(notes.xml#default); } </style> </head> <body> <h1><a href="http://developer.mozilla.org/en/docs/xbl:xbl_1.0_reference">xbl</a> demo : sticky notes</h1> <div class="sticker"><p>acme,&nbsp;inc.
...ge) or/and svg (scalable vector graphics) in your bindings; xlink in xml also may come useful sometimes.
datasources - Archive of obsolete content
« xul reference home datasources type: space separated list of datasource uris a space-separated list of datasources that an element's template will use for content generation.
...will usually be found on trees and menu related elements.
showcommentcolumn - Archive of obsolete content
« xul reference home showcommentcolumn new in thunderbird 3requires seamonkey 2.0 type: boolean if true, a comment column appears in the popup.
... « xul reference home showcommentcolumn new in thunderbird 3requires seamonkey 2.0 type: boolean if true, a comment column appears in the popup.
textbox.showCommentColumn - Archive of obsolete content
« xul reference home showcommentcolumn obsolete since gecko 1.9.1 type: boolean if true, a comment column appears in the popup.
... « xul reference home showcommentcolumn obsolete since gecko 1.9.1 type: boolean if true, a comment column appears in the popup.
addTab - Archive of obsolete content
Archive › Mozilla › XUL › Method › addTab
« xul reference home addtab( url, referreruri, charset, postdata, owner, allowthirdpartyfixup ) addtab( url, {referreruri: ..., charset: ..., postdata: ..., owner: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
... « xul reference home addtab( url, referreruri, charset, postdata, owner, allowthirdpartyfixup ) addtab( url, {referreruri: ..., charset: ..., postdata: ..., owner: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
appendNotification - Archive of obsolete content
tification will be added behind it.
...-button" or "menu".
loadOneTab - Archive of obsolete content
« xul reference home loadonetab( url, referreruri, charset, postdata, loadinbackground, allowthirdpartyfixup ) loadonetab( url, { referreruri: ..., charset: ..., postdata: ..., inbackground: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
... « xul reference home loadonetab( url, referreruri, charset, postdata, loadinbackground, allowthirdpartyfixup ) loadonetab( url, { referreruri: ..., charset: ..., postdata: ..., inbackground: ..., allowthirdpartyfixup: ..., relatedtocurrent: ...
openSubDialog - Archive of obsolete content
« xul reference home opensubdialog( url, features, params ) return type: window opens a child modal dialog.
... « xul reference home opensubdialog( url, features, params ) return type: window opens a child modal dialog.
openWindow - Archive of obsolete content
« xul reference home openwindow( windowtype, url, features, params ) return type: window open a child window.
... « xul reference home openwindow( windowtype, url, features, params ) return type: window open a child window.
Extensions - Archive of obsolete content
enable or disable commands related to text editing.
...isable commands related to text editing.
MenuItems - Archive of obsolete content
pears on a menu item, you will want to ensure you use a fairly small image.
...con in normal state the bottom part in hovered state.
currentURI - Archive of obsolete content
« xul reference currenturi type: nsiuri this read-only property contains the currently loaded url.
... « xul reference currenturi type: nsiuri this read-only property contains the currently loaded url.
Filtering - Archive of obsolete content
, when expanded with the namespace (not shown here), will be 'http://www.daml.org/2001/09/countries/country-ont#country'.
...rg/2001/09/countries/country-ont#country'.
SQLite Templates - Archive of obsolete content
n sqlite database, such as those used by the mozstorage api.
...reated as an sqlite database.
Static Content - Archive of obsolete content
tries/country-ont#country" oncommand="applyfilter(event.target.value);"> <menupopup> <menuitem label="all"/> </menupopup> <template> <query> <content uri="?start"/> <triple subject="?country" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?start"/> <triple subject="?country" predicate="http://purl.org/dc/elements/1.1/title" object="?countrytitle"/> </query> <action> <menupopup> <menuitem uri="?country" label="?countrytitle" value="?country"/> </menupopup> </action> </template> </menulist> the only difference between the previous example and this one is that the menulist element has some additional content added before the template.
....org/2001/09/countries/country-ont#country" onselect="applyfilter(event.target.value);"> <radio label="all" selected="true"/> <template> <query> <content uri="?start"/> <triple subject="?country" predicate="http://www.w3.org/1999/02/22-rdf-syntax-ns#type" object="?start"/> <triple subject="?country" predicate="http://purl.org/dc/elements/1.1/title" object="?countrytitle"/> </query> <action> <radio uri="?country" label="?countrytitle" value="?country"/> </action> </template> </radiogroup> this example doesn't have any other content to generate outside the radio element with the uri attribute, so it will just be copied as is.
Using Multiple Queries to Generate More Results - Archive of obsolete content
ry will match the streets as before, but the second query will generate a result for each person.
...tle"/> <action> <label uri="?item" value="?title" class="header"/> </action> </rule> </queryset> <queryset> <query> <content uri="?start"/> <triple subject="?start" predicate="http://www.xulplanet.com/rdf/people" object="?people"/> <member container="?people" child="?item"/> </query> <rule> <binding subject="?item" predicate="http://purl.org/dc/elements/1.1/title" object="?title"/> <action> <label uri="?item" value="?title"/> </action> </rule> </queryset> </template> you can view the example.
Adding Event Handlers - Archive of obsolete content
elow just after the opening window tag and before any elements.
...dow tag and before any elements.
Modifying the Default Skin - Archive of obsolete content
to be skinnable.
... more complex design.
XBL Attribute Inheritance - Archive of obsolete content
ent, the label will need to inherit its text from the value attribute and the textbox will also need to inherit its default value from the value attribute as well.
... map it to the value.
XPCOM Interfaces - Archive of obsolete content
get a component for the file to copy var afile = components.classes["@mozilla.org/file/local;1"] .createinstance(components.interfaces.nsilocalfile); if (!afile) return false; // get a component for the directory to copy to var adir = components.classes["@mozilla.org/file/local;1"] .createinstance(components.interfaces.nsilocalfile); if (!adir) return false; // next, assign urls to the file components afile.initwithpath(sourcefile); adir.initwithpath(destdir); // finally, copy the file, without renaming it afile.copyto(adir,null); } copyfile("/mozilla/testfile.txt","/etc"); xpcom services some xpcom components are special components called services.
...tely("http://www.mozilla.org","mozilla",0,null); first, the component "@mozilla.org/browser/bookmarks-service;1" is retrieved and its service is placed in the variable bmarks.
XUL element attributes - Archive of obsolete content
irst menupopup child of the element.
...will usually be found on trees and menu related elements.
iframe - Archive of obsolete content
="http://...".
...a menu <menulist oncommand="donav(this);"> <menupopup> <menuitem label="mozilla" value="http://mozilla.org" /> <menuitem label="slashdot" value="http://slashdot.org"/> <menuitem label="sourceforge" value="http://sf.net" /> <menuitem label="freshmeat" value="http://freshmeat.net"/> </menupopup> </menulist> <iframe id="myframe" flex="1"/> <script> function donav(obj) { var url = obj.selecteditem.value; // note the firstchild is the menupopup element document.getelementbyid('myframe').setattribute('src', url); } </script> attributes showcaret type: boolean whether or not to cause a typing caret to be visible in the content area.
image - Archive of obsolete content
Archive › Mozilla › XUL › image
« xul reference home [ examples | attributes | properties | methods | related ] summary an element that displays an image, much like the html img element.
...ntly.
prefpane - Archive of obsolete content
currently selected prefpane.
...e pane that are attached to preferences.
stringbundle - Archive of obsolete content
y key-value pairs each on a separate line.
...ce-editable, querytype, ref, removeelement, sortdirection, sortresource, sortresource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width properties applocale obsolete since gecko 1.9.1 type: nsilocale returns the xpcom object which holds information about the user's locale.
timepicker - Archive of obsolete content
eyboard instead of the mouse.
...red or selected in the datepicker as a date object.
Deploying XULRunner - Archive of obsolete content
entifier</key> <string>net.yourcompany.yourapplication</string> <key>cfbundleinfodictionaryversion</key> <string>6.0</string> <key>cfbundlename</key> <string>applicationname</string> <key>cfbundlepackagetype</key> <string>appl</string> <key>cfbundleshortversionstring</key> <string>1.0</string> <key>cfbundlesignature</key> <string>????</string> <!--only useful if your app handle urls--> <key>cfbundleurltypes</key> <array> <dict> <key>cfbundleurliconfile</key> <string>app_icon.icns</string> <key>cfbundleurlname</key> <string>yourapp entity</string> <key>cfbundleurlschemes</key> <array> <string>chrome</string> </array> </dict> </array> <key>cfbundleversion</key> <string>1.0</string> </dict> </plist> here's a sample of the pkginfo file aapl??
....icns</string> <key>cfbundleurlname</key> <string>yourapp entity</string> <key>cfbundleurlschemes</key> <array> <string>chrome</string> </array> </dict> </array> <key>cfbundleversion</key> <string>1.0</string> </dict> </plist> here's a sample of the pkginfo file aapl????
Getting started with XULRunner - Archive of obsolete content
1.10 (oneiric ocelot), xulrunner is not longer maintained and doesn't exist in ubuntu repository.
...ry release from mozilla's ftp server.
Using Crash Reporting in a XULRunner Application - Archive of obsolete content
xulrunner application authors who wish to use crash reporting must run a crash reporting server.
... xulrunner application authors who wish to use crash reporting must run a crash reporting server.
nsIContentPolicy - Archive of obsolete content
.0 inherits from: nsicontentpolicybase last changed in gecko 42 (firefox 42 / thunderbird 42 / seamonkey 2.39) you can observe content that is being loaded into your browser by implementing nsicontentpolicy.
...rocess request is not rejected.
Archived Mozilla and build documentation - Archive of obsolete content
ow?
...emonkey is built with tracevis, and run with tracevis enabled, then tracemonkey will output a log of all its activity transitions.
2006-11-17 - Archive of obsolete content
summary: mozilla.dev.apps.firefox - november 10, 2006 - november 17, 2006 announcements none this week.
... summary: mozilla.dev.apps.firefox - november 10, 2006 - november 17, 2006 announcements none this week.
2006-09-06 - Archive of obsolete content
onents with windows-based gecko-sdk/xulrunner dll/exes.
...x extensions.
NPAPI plugin developer guide - Archive of obsolete content
or plug-in display nesting rules for html elements using the appropriate attributes using the embed element for plug-in display using custom embed attributes plug-in references plug-in development overview writing plug-ins registering plug-ins ms windows unix mac os x drawing a plug-in instance handling memory sending and receiving streams working with urls getting version and ui information displaying messages on the status line making plug-ins scriptable building plug-ins building, platforms, and compilers building carbonized plug-ins for mac os x type libraries installing plug-ins native installers xpi plug-ins installations plug-in installation and the windows registry initialization and destruction ini...
...treams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in sending the stream in random-access mode sending the stream in file mode sending a stream creating a stream pushing data into the stream deleting the stream example of sending a stream urls getting urls getting the url and displaying the page posting urls posting data to an http server uploading files to an ftp server sending mail memory allocating and freeing memory mac os flushing memory (mac os only) version, ui, and status information displaying a status line message getting agent information getting the current version ...
NPN NewStream - Archive of obsolete content
pn_newstream(npp instance, npmimetype type, const char* target, npstream** stream); parameters the function has the following parameters: instance pointer to current plug-in instance.
...n can use this object in subsequent calls to npn_write to write data into the stream.
NPP_NewStream - Archive of obsolete content
l the stream is destroyed.
...npn_requestread call is made.
The First Install Problem - Archive of obsolete content
bkey, depending on how many mimetypes an application wishes to handle (or advertise that it handles).
...ng of plugin directory information into the registry along with a plid, we can then use the object tag to invoke plugins based on their "classid" (their respective plid, which is a uri, which works well with the w3c spec).
.htaccess ( hypertext access ) - Archive of obsolete content
the term .htaccess stands for "hypertext access".
...ss file extension is an access configuration file for apache server.
Using workers in extensions - Archive of obsolete content
equest, and, when the results are received, sends an event back to the main thread with the received data.
...refreshinformation() { if (!symbol) { throw "no symbol set!"; } var fullurl = "http://quote.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv&s=" + symbol; function inforeceived() { var output = httprequest.responsetext; if (output) { postmessage(output.trim()); } httprequest = null; } var httprequest = new xmlhttprequest(); httprequest.open("get", fullurl, true); httprequest.onload = inforeceived; httprequest.send(null); } setinterval(function() { refreshinformation(); }, 10*60*1000); onmessage = function(event) { if (event.data) { symbol = event.data.touppercase(); } refreshinformation(); } when the worker thread is started, the main body of this code (in lines 26-35) is executed.
Browser Feature Detection - Archive of obsolete content
document.createtextnode() true true true document.createcomment() true true true document.createattribute() true true true document.getelementsbytagname() true true true document.title true true true document.referrer true true true document.domain true true true document.url true true true document.body true true true document.images true true true document.applets true true true document.links true true true document.forms true true true document.anchors true true true document.cookie true true true document.open() true ...
...ted': false}, {name: 'createdocumentfragment', 'supported': false}, {name: 'createtextnode', 'supported': false}, {name: 'createcomment', 'supported': false}, {name: 'createattribute', 'supported': false}, {name: 'getelementsbytagname', 'supported': false}, {name: 'title', 'supported': false}, {name: 'referrer', 'supported': false}, {name: 'domain', 'supported': false}, {name: 'url', 'supported': false}, {name: 'body', 'supported': false}, {name: 'images', 'supported': false}, {name: 'applets', 'supported': false}, {name: 'links', 'supported': false}, {name: 'forms', 'supported': false}, {name: 'anchors', 'supported': false}, {name: 'cookie', 'supported': false}, {name: 'open', 'supported': false}, {name: 'close', 'supported': false}, {name: 'write', 'su...
Back to the Server: Server-Side JavaScript On The Rise - Archive of obsolete content
n extension of javascript which provides direct support for xml, greatly simplifying the process of consuming xml via javascript.
...ews.rdf" ); var c = u.openconnection(); c.connect(); // read in the raw data var s = new java.io.inputstreamreader( c.getinputstream() ); var b = new java.io.bufferedreader( s ); var l, str = ""; while( ( l = b.readline() ) != null ) { // skip if( l != "" ) { str = str + l + "\n"; } } // define the namespaces, first the default, // then additional namespaces default xml namespace = "http://purl.org/rss/1.0/"; var dc = new namespace( "http://purl.org/dc/elements/1.1/" ); var rdf = new namespace( "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ); // use e4x to process the feed var x = new xml( str ); for each( var i in x..item ) { print( "title: " + i.title + "\n" ); print( "about: " + i.@rdf::about + "\n" ); print( "link: " + i.link + "\n" ); print( "date: " + i.dc::date + "\n" ); } ...
Implementation Status - Archive of obsolete content
ported 11.8.1 name unsupported 11.8.2 value unsupported 11.9 submission options supported 11.9.1 the get submission method supported 11.9.2 the post, multipart-post, form-data-post, and urlencoded-post submission methods supported 11.9.3 the put submission method supported 11.9.4 the delete submission method unsupported 11.9.5 serialization as application/xml supported 11.9.6 serialization as multipart/related...
...thod unsupported 11.9.5 serialization as application/xml supported 11.9.6 serialization as multipart/related partial 330557; 11.9.7 serialization as multipart/form-data supported 11.9.8 serialization as application/x-www-form-urlencoded supported 11.10 replacing data with the submission response partial @replace with value of 'text' not supported 11.11 integration with soap supported g.
Mozilla XForms Specials - Archive of obsolete content
you have to use :-moz-read-only and :-moz-read-write for now.
... domain submission not exactly either a limitation, or an extension, but it is worth mentioning here.
XForms Alert Element - Archive of obsolete content
data value is invalid or out of the specified range of selectable values (see the spec).
...message can also be displayed immediately after the containing form control element in the xforms document's layout.
Archive of obsolete content
rence needs more attention.
...moved because of technical limitations.
Navigation directive - MDN Web Docs Glossary: Definitions of Web-related terms
csp navigation directives are used in a content-security-policy header and govern to which location a user can navigate to or submit a form to, for example.
... or submit a form to, for example.
Slug - MDN Web Docs Glossary: Definitions of Web-related terms
a slug is the unique identifying part of a web address, typically at the end of the url.
... a slug is the unique identifying part of a web address, typically at the end of the url.
Routers - MDN Web Docs Glossary: Definitions of Web-related terms
there are two definitions for routers on the web: for the network layer, the router is a networking device that decides data packets directions.
... there are two definitions for routers on the web: for the network layer, the router is a networking device that decides data packets directions.
HTML: A good basis for accessibility - Learn web development
ge's design, but its primary purpose is for visual decoration.
... cause unexpected behavior when copying or dragging links, opening links in a new tab or window, bookmarking, and when javascript is still downloading, errors out, or is disabled.
HTML: A good basis for accessibility - Learn web development
ge's design, but its primary purpose is for visual decoration.
... cause unexpected behavior when copying or dragging links, opening links in a new tab or window, bookmarking, and when javascript is still downloading, errors out, or is disabled.
Advanced styling effects - Learn web development
this better.
...rticle> multiply mix <div class="multiply-mix"> </div> <div> </div> </article> here's the css we'll style this with: article { width: 280px; height: 180px; margin: 10px; position: relative; display: inline-block; } div { width: 250px; height: 130px; padding: 10px; margin: 10px; } article div:first-child { position: absolute; top: 10px; left: 0; background: url(https://mdn.mozillademos.org/files/13090/colorful-heart.png) no-repeat center 20px; background-color: green; } article div:last-child { background-color: purple; position: absolute; bottom: -10px; right: 0; z-index: -1; } .multiply-mix { mix-blend-mode: multiply; } this gives us the following results: you can see here that the multiply mix blend has blended together not only t...
Pseudo-classes and pseudo-elements - Learn web development
d matches form elements that are required.
... :right in paged media, matches right-hand pages.
Styling tables - Learn web development
s and colors now onto graphics and colors!
...a separate section to showing you how to implement zebra stripes — alternating rows of color that make the different data rows in your table easier to parse and read.
CSS values and units - Learn web development
st projects you will decide on a color palette and then use those colors — and your chosen method of specifying color — throughout the whole project.
...e that can be run multiple times to complete a repetitive task with minimum effort on the part of both the developer and the computer.
How CSS is structured - Learn web development
applied in the order top, right, bottom, left (clockwise from the top).
...mple 2-value shorthands, which set padding/margin for top/bottom, then left/right */ padding: 10px 15px 15px 5px; is equivalent to these four lines of code: padding-top: 10px; padding-right: 15px; padding-bottom: 15px; padding-left: 5px; this one line: background: red url(bg-graphic.png) 10px 10px repeat-x fixed; is equivalent to these five lines: background-color: red; background-image: url(bg-graphic.png); background-position: 10px 10px; background-repeat: repeat-x; background-attachment: fixed; later in the course, you will encounter many other examples of shorthand properties.
Using CSS generated content - Learn web development
cification.
...ding and characters and case in the css specification.
What is a Domain Name? - Learn web development
prerequisites: first you need to know how the internet works and understand what urls are.
...ely, if you use a system with a built-in shell, type a whois command into it, as shown here for mozilla.org: $ whois mozilla.org domain name:mozilla.org domain id: d1409563-lror creation date: 1998-01-24t05:00:00z updated date: 2013-12-08t01:16:57z registry expiry date: 2015-01-23t05:00:00z sponsoring registrar:markmonitor inc.
Common questions - Learn web development
ebsite, web server, and search engine?
...gine?
What’s in the head? Metadata in HTML - Learn web development
here the <h1> content appears, and where the <title> content appears!
...ps.
Adding vector graphics to the Web - Learn web development
svg.
... load the svg — older browsers will load the png instead: <img src="equilateral.png" alt="triangle with equal sides" srcset="equilateral.svg"> you can also use svgs as css background images, as shown below.
Introduction to web APIs - Learn web development
stances of the xmlhttprequest object (each one represents an http request to the server to retrieve a new resource of some kind) has a number of events available on them, for example, the load event is fired when a response has been successfully returned containing the requested resource, and it is now available.
...vents available on them, for example, the load event is fired when a response has been successfully returned containing the requested resource, and it is now available.
What went wrong? Troubleshooting JavaScript - Learn web development
d javascript object, but in this case we managed to get it by changing function checkguess() { to function checkguess( { this has caused the browser to think that we are trying to pass the contents of the function into the function as an argument.
...ction checkguess( { this has caused the browser to think that we are trying to pass the contents of the function into the function as an argument.
JavaScript object basics - Learn web development
lue types in their people data, by typing the member name and value into two text inputs.
... when you accessed the document object model using lines like this: const mydiv = document.createelement('div'); const myvideo = document.queryselector('video'); you were using methods available on an instance of the document class.
Website security - Learn web development
d persistent, based on how the site returns the injected scripts to a browser.
...browser.
Getting started with React - Learn web development
more comfortable editing components and working with data in react.
...nd how the basics work.
Working with Svelte stores - Learn web development
from './stores.js' </script> <alert /> <todos bind:todos={$todos} /> note: this is the only change we have to make in order to use our custom store.
...existing ones: import { fly } from 'svelte/transition' to use it, update your opening <div> tag like so: <div role="alert" on:click={() => visible = false} transition:fly > transitions can also receive parameters, like this: <div role="alert" on:click={() => visible = false} transition:fly="{{delay: 250, duration: 300, x: 0, y: -100, opacity: 0.5}}" > note: the double curly braces are not special svelte syntax.
Dynamic behavior in Svelte: working with variables and props - Learn web development
<button type="button" class="btn"> edit <span class="visually-hidden">{todo.name}</span> </button> <button type="button" class="btn btn__danger"> delete <span class="visually-hidden">{todo.name}</span> </button> </div> </div> </li> {:else} <li>nothing to do here!</li> {/each} </ul> notice how we are using curly braces to embed javascript expressions in html attributes, like we did with the checked and id attributes of the checkbox.
...t.
Understanding client-side JavaScript frameworks - Learn web development
onality in our app.
...ber of todos still to complete, and correctly apply styling to completed todos (i.e.
Strategies for carrying out testing - Learn web development
omo.
...tics platform.
Introducing a complete toolchain - Learn web development
hat we will use in our code, including react, react-dom, react-async-hook, date-fns, and format-number.
...hook, date-fns, and format-number.
Accessible Toolkit Checklist
er of children of an iaccessible.
... dark border dynamically when the currently focused widget does not need the enter key events - making keystrokes do the right thing msaa support (default state) links enter key activates link (thus default button no longer shows dark border when link is focused) msaa support, including linked and traversed states, and accessible value that holds destination url text fields - single and multiple line it's probably best to use native widgets for these, otherwise accessibility support will be quite difficult tab should always focus the next item, not insert a tab, unless there's a really good reason and another way to navigate always use system selection color, otherwise screen reader won't read the text make sure the...
Chrome registration
ecursive (so overriding chrome://foo/content/bar/ with file:///home/john/blah/ will not usually do what you want or expect it to do).
...lah/ will not usually do what you want or expect it to do).
Creating a Language Pack
evelopment, you need to get the right strings for the build you use.
...est it to repack the en-us binary.
Simple SeaMonkey build
mercurial source repository and enough free disk space to compile.
...dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libpulse-dev ubuntu linux # for ubuntu 12.04 lts (precise pangolin), replace the following line with: sudo apt-get build-dep thunderbird sudo apt-get build-dep seamonkey sudo apt-get install zip unzip mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libiw-dev libxt-dev mesa-common-dev libpulse-dev fedora linux centos rhel: sudo yum groupinstall 'development tools' 'development libraries' 'gnome software development' sudo yum install mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libgl-devel alsa-lib...
Reviewer Checklist
should be no writing to arbitrary files outside the profile folder.
...bitrary files outside the profile folder.
Index
s the new tab page, which includes a "top sites" section showing sites you visit that firefox thinks you're likely to want to visit again, as well as potentially some sites that have been pinned to always appear in that space.
..."top sites" section showing sites you visit that firefox thinks you're likely to want to visit again, as well as potentially some sites that have been pinned to always appear in that space.
Performance best practices for Firefox front-end engineers
n slower machines to make it more obvious to yourself if what you’ve written impacts the performance of the browser.
...ritten impacts the performance of the browser.
Firefox
o get and compile the firefox source code, how to find your way around, and how to contribute to the project.
...code, how to find your way around, and how to contribute to the project.
mozbrowsermanifestchange
type read only domstring the type of event.
... the event is cancellable or not.
AddonAuthor
represents a creator, developer, contributor or translator of an add-on attributes attribute type description name string the name of the person.
... represents a creator, developer, contributor or translator of an add-on attributes attribute type description name string the name of the person.
AddonInstall
an addoninstall instance tracks download and installation process of an add-on.
...method.
Code Samples
ted if you need to determine the directory in which your add-on is installed, code like the following will do the trick.
...ng file and version information components.utils.import("resource://gre/modules/addonmanager.jsm"); addonmanager.getaddonbyid("my-addon@foo.com", function(addon) { alert("my extension's version is " + addon.version); alert("did i remember to include that file.txt file in my xpi?
CustomizableUI.jsm
window of selected tab'); thisdomwindow.alert('alert from xul window'); } }); //end - use customizableui.jsm to create the widget //start - use style sheet service to style our widget to give it an icon cu.import('resource://gre/modules/services.jsm'); var sss = cc['@mozilla.org/content/style-sheet-service;1'].getservice(ci.nsistylesheetservice); var css = ''; css += '@-moz-document url("chrome://browser/content/browser.xul") {'; css += ' #id_of_my_widget_within_customizableui_and_dom {'; css += ' list-style-image: url("chrome://branding/content/icon16.png")'; //a 16px x 16px icon for when in toolbar css += ' }'; css += ' #id_of_my_widget_within_customizableui_and_dom[cui-areatype="menu-panel"],'; css += ' toolbarpaletteitem[place="palette"] > #id_of_my_wi...
..._within_customizableui_and_dom {'; css += ' list-style-image: url("chrome://branding/content/icon16.png")'; //a 16px x 16px icon for when in toolbar css += ' }'; css += ' #id_of_my_widget_within_customizableui_and_dom[cui-areatype="menu-panel"],'; css += ' toolbarpaletteitem[place="palette"] > #id_of_my_widget_within_customizableui_and_dom {'; css += ' list-style-image: url("chrome://branding/content/icon32.png");'; //a 32px x 32px icon for when in toolbar css += ' }'; css += '}'; var cssenc = encodeuricomponent(css); var newuriparam = { aurl: 'data:text/css,' + cssenc, aorigincharset: null, abaseuri: null } var cssuri = services.io.newuri(newuriparam.aurl, newuriparam.aorigincharset, newuriparam.abaseuri); //store this in a global var so you can cal...
FxAccountsOAuthClient.jsm
parameters set of parameters to initialize the firefox accounts oauth flow.
...ation url.
Http.jsm
to the post requests.
...pecified via postdata option.
JavaScript code modules
onvert between javascript date objects and iso 8601 date strings.
...s and iso 8601 date strings.
Application Translation with Mercurial
, mostly depending on the performance of the hard drive.
...language on http://hg.mozilla.org/ e.g.
Bootstrapping a new locale
access the service.
...n-drivers the details to be added as a "writer".
Release phase
n getting your release repository setup and the mercurial commands you'll need to know to use that repository.
...g clone ssh://hg.mozilla.org/releases/l10n-central/x-testing mercurial will let you know that it's cloning the repository: destination directory: x-testing requesting all changes adding changesets adding manifests adding file changes added 4 changesets with 242 changes to 239 files updating to branch default 239 files updated, 0 files merged, 0 files removed, 0 files unresolved the default push url is the same as the default pull url (i.e., ssh://hg.mozilla.org/releases/l10n-central/x-testing).
Fonts for Mozilla 2.0's MathML engine
a for the product in which this font is included to display and print content", so consulting your lawyer is recommended if considering installing this on systems without the associated product.
...848-latest.xpi -o mathml-fonts.zip; \ unzip mathml-fonts.zip -d mathml-fonts then copy the mathml-fonts/resource/ directory somewhere on your web site and ensure that the woff files are served with the correct mime type.
Mozilla Quirks Mode Behavior
he css parser interprets unitless numbers as px (except for line-height and any other properties where they have distinct meaning, and except in shorthands).
...ment was used in the selector, or if it was part of a pseudo-class argument (bug 783213).
A guide to searching crash reports
there is an extremely long tail.
...'t supported.
Midas
ting a pref or using signed js.
...nd will insert a horizontal rule (line) at the insertion point.
NSS tools : certutil
name, as the correct issuer of a certificate.
... the authority key id extension.
OLD SSL Reference
cipherpolicyget ssl configuration functions ssl configuration ssl_importfd ssl_optionset ssl_optionget ssl_cipherprefset ssl_cipherprefget ssl_configsecureserver ssl_seturl ssl_setpkcs11pinarg callback configuration ssl_authcertificatehook ssl_authcertificate ssl_badcerthook ssl_getclientauthdatahook nss_getclientauthdata ssl_handshakecal...
...ck ssl communication functions ssl_invalidatesession ssl_datapending ssl_securitystatus ssl_getsessionid ssl_setsockpeerid ssl functions used by callbacks ssl_peercertificate ssl_revealurl ssl_revealpinarg ssl handshake functions ssl_forcehandshake ssl_rehandshake ssl_resethandshake nss shutdown function nss_shutdown deprecated functions ssl_enabledefault ...
NSS Tools certutil
ate database tool will prompt you to select the authority keyid extension.
...tandard x.509 v3 certificate extensions in appendix b.3 of thered hat certificate system administration guide.
certutil
ct name, as the correct issuer of a certificate.
... you to select the authority key id extension.
Multithreading in Necko
on the file transport's thread before proxying data to the main thread.
...ort's thread before proxying data to the main thread.
Rhino overview
when given a single space character as an argument (skips leading whitespace, and splits on whitespace).
...t.resources.security.
JSErrorReport
describes the format of a js error that is used either by the internal error reporting mechanism or by a user-defined error-reporting mechanism.
...cmessage const char16_t * the default unicode error message.
SpiderMonkey 24
ificantly improved garbage collector, a new jit compilation mode, and other features.
...ains new language and api features described in detail below.
History Service Design
ng storage.
...ase indexes are quite important, and a good query can make the difference between minutes or seconds.
Components.utils.Sandbox
ise": the promise constructor is available by default for sandboxes, and you use this option to remove it from the sandbox.
...e constructor is available by default for sandboxes, and you use this option to remove it from the sandbox.
Components.utils.evalInSandbox
optionally specify the js version, filename, and line number of the code being evaluated.
...evaluated.
nsIAccessibleDocument
ue if the document is live in an editor.
...live in an editor.
nsICRLInfo
security/manager/ssl/public/nsicrlinfo.idlscriptable information on a certificate revocation list (crl) issued by a certificate authority (ca).
... security/manager/ssl/public/nsicrlinfo.idlscriptable information on a certificate revocation list (crl) issued by a certificate authority (ca).
nsICachingChannel
gchannel.idlscriptable please add a summary to this article.
....
nsIConsoleService
scripterror = components.classes["@mozilla.org/scripterror;1"] .createinstance(components.interfaces.nsiscripterror); scripterror.init(amessage, asourcename, asourceline, alinenumber, acolumnnumber, aflags, acategory); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
...onents.interfaces.nsiscripterror); scripterror.init(amessage, asourcename, asourceline, alinenumber, acolumnnumber, aflags, acategory); consoleservice.logmessage(scripterror); } amessage — the string to be logged.
nsIContentPrefService2
ated with any particular domain.
...ference override all non- global preferences of the same name, for example, for whatever definition of "override" is appropriate for your use case.
nsIDOMWindowUtils
_flag_selection_ime_selectedconvertedtext 0x0040 one of values of aadditionalflags of sendquerycontentevent().
...query_content_flag_selection_accessibility 0x0080 one of values of aadditionalflags of sendquerycontentevent().
nsIDownloadProgressListener
ger.constants.
... adownload the download whose state changed.
nsIDroppedLinkItem
dom/base/nsidroppedlinkhandler.idlscriptable please add a summary to this article.
... dom/base/nsidroppedlinkhandler.idlscriptable please add a summary to this article.
nsIEditorMailSupport
current document.
...ollapsed selection.
nsIHttpChannel
ult; indicates not to pass on the referrer when downgrading from https to http referrer_policy_no_referrer indicates no referrer will be sent referrer_policy_origin only send the origin of the referring uri referrer_policy_origin_when_xorigin same as the default; only send the origin of the referring uri for cross-origin requests referrer_policy_unsafe_url always send the referrer, even when downgrading from https to http attributes attribute type description allowpipelining boolean this attribute is a hint to the channel to indicate whether or not the underlying http transaction should be allowed to be pipelined with other transactions.
... referrer nsiuri get or set the uri of the http referer: header.
nsIMsgSearchSession
pes() add all scopes of a given type to the search.
...chscopevalue attrib); parameters attrib search() void search(in nsimsgwindow awindow); parameters awindow interruptsearch() void interruptsearch(); pausesearch() these two methods are used when the search session is using a timer to do local search, and the search adapter needs to run a url (e.g., to reparse a local folder) and wants to pause the timer while running the url.
nsINavHistoryResultNode
idnight on the morning of the day in question in utc.
...ning of the day in question in utc.
nsIParserUtils
for sanitizer: allow comment nodes.
...in src.
nsIScriptError2
ero time to the time the message was created.
...age, in wstring sourcename, in wstring sourceline, in pruint32 linenumber, in pruint32 columnnumber, in pruint32 flags, in string category, in unsigned long long innerwindowid ); parameters message the text of the message to add to the log.
nsIWebNavigation
this will give priority to loading the requested uri in the object implementing this interface.
...interface.
XPCOM Interface Reference by grouping
accessiblerole nsiaccessiblescrolltype nsiaccessibleselectable nsiaccessiblestates nsiaccessibletable nsiaccessibletext nsiaccessibletreecache nsiaccessiblevalue nsiaccessnode nsisyncmessagesender script nsiscriptableunescapehtml nsiscriptableunicodeconverter nsiscripterror nsiscripterror2 stylesheet nsistylesheetservice url nsiuri nsiurl util nsidomserializer nsidomxpathevaluator nsidomxpathexception nsidomxpathexpression nsidomxpathresult xslt nsixsltexception nsixsltprocessor download nsidownload nsidownloadmanager nsidownloadprogresslistener element internal nsiworker nsiworkerglobalscope nsiworkermessageevent nsi...
... nsibinaryinputstream nsibinaryoutputstream nsicontentsniffer nsiconverterinputstream nsifileinputstream nsifileoutputstream nsiinputstream nsiinputstreamcallback nsioutputstream nsioutputstreamcallback nsiscriptableinputstream nsistreamlistener url nsiioservice nsistandardurl user nsiprompt nsipromptservice zipfile nsizipentry nsizipreader nsizipreadercache nsizipwriter file nsifilepicker nsifileprotocolhandler ...
Mail composition back end
*attachment1_body, pruint32 attachment1_body_length, - the full text of the first attachment is provided via `attachment1_type' `attachment1_body' and `attachment1_body_length'.
...*auseridentity, - the user identity for the person doing the send operation.
Using the Multiple Accounts API
erver.server.download_on_biff.
..._on_biff.
Using popup notifications
that's not very pretty; where's the icon?
...cation = notify.show( // browser gbrowser.selectedbrowser, // popup id "pdes-popup", // message "hi, there!, i'm gonna show you something today!!", // anchor id null, // main action { label: "click here", accesskey: "d", callback: function() { // you can call your function here } }, // secondary action null, // options { // alternative way to set the popup icon popupiconurl: "chrome://popupnotifications/skin/mozlogo.png" } ); settimeout(function(){ notification.remove(); }, 900); // time in milliseconds to disappear the door-hanger popup.
Using the Mozilla symbol server
the documentation there can be useful.
...se builds are heavily optimized, debugging is not always easy.
Constants - Plugins
_of_memory_error 5 memory allocation failed.
...ror 5 memory allocation failed.
Plug-in Side Plug-in API - Plugins
of a new data stream.
...pecific print operation for an embedded or full-screen plug-in.
Version, UI, and Status Information - Plugins
« previousnext » this chapter describes the functions that allow a plug-in to display a message on the status line, get agent information, and check on the current version of the plug-in api and the browser.
...-in api and the browser.
Debug eval sources - Firefox Developer Tools
you can debug javascript code that is evaluated dynamically, either as a string passed to eval() or as a string passed to the function constructor.
...he function constructor.
Use a source map - Firefox Developer Tools
s a file that maps from the transformed source to the original source, enabling the browser to reconstruct the original source and present the reconstructed original in the debugger.
...x is like this: //# sourcemappingurl=http://example.com/path/to/your/sourcemap.map in the video above we load https://mdn.github.io/devtools-examples/sourcemaps-in-console/index.html.
Index - Firefox Developer Tools
r the page, enabling you to select with pixel precision.
...gpoint.
Network request details - Firefox Developer Tools
s toolbar using the headers toolbar, you can: filter the headers in the response headers and request headers sections.
... a menu with two items: resend: simply resends the request.
Web Console Helpers - Firefox Developer Tools
of element and returns an array of matching nodes.
... outside the current bounds of the window will be included in the screenshot.
AuthenticatorResponse.clientDataJSON - Web APIs
; var arraybuffer = authenticatorassertionresponse.clientdatajson; value an arraybuffer.
...this value.
Beacon API - Web APIs
e techniques represent poor coding patterns, some of them are unreliable and result in the perception of poor page load performance for the next navigation.
...est.
CanvasRenderingContext2D.filter - Web APIs
t2d.filter property of the canvas 2d api provides filter effects such as blurring and grayscaling.
...perty of the canvas 2d api provides filter effects such as blurring and grayscaling.
Compositing example - Web APIs
h = width; canvas1.height = height; canvas2.width = width; canvas2.height = height; lightmix() colorsphere(); runcomposite(); return; }; and this code, runcomposite(), handles the bulk of the work, relying on a number of utility functions to do the hard parts.
... proto.fillrect(0, 0, size, size); proto.fillstyle = color2; // top-right proto.fillrect(size, 0, size, size); proto.fillstyle = color2; // bottom-left proto.fillrect(0, size, size, size); proto.fillstyle = color1; // bottom-right proto.fillrect(size, size, size, size); var pattern = proto.createpattern(proto.canvas, "repeat"); pattern.data = proto.canvas.todataurl(); return pattern; }; var op_8x8 = createinterlace(8, "#fff", "#eee"); ...
Client - Web APIs
Web › API › Client
-specific windowclient.
...nt.
Clipboard.read() - Web APIs
Web › API › Clipboard › read
it, we proceed.
... if (result.state == "granted" || result.state == "prompt") { navigator.clipboard.read().then(data => { for (let i=0; i<data.items.length; i++) { if (data.items[i].type != "image/png") { alert("clipboard contains non-image data.
ClipboardItem() - Web APIs
e clipboard.readtext() and clipboard.writetext() methods of the clipboard interface.
...ds of the clipboard interface.
ClipboardItem - Web APIs
returns a promise that resolves with a blob of the requested mime type, or an error if the mime type is not found.
...equested mime type, or an error if the mime type is not found.
ContentIndex - Web APIs
gator.serviceworker.ready; // feature detection if ('index' in registration) { // content index api functionality const contentindex = registration.index; } adding to the content index here we're declaring an item in the correct format and creating an asynchronous function which uses the add() method to register it with the content index.
...readinglistelem.append(message); } else { // if entries are present, display in a list of links to the content const listelem = document.createelement('ul'); for (const entry of entries) { const listitem = document.createelement('li'); const anchorelem = document.createelement('a'); anchorelem.innertext = entry.title; anchorelem.setattribute('href', entry.url); listelem.append(listitem); } readinglistelem.append(listelem); } } unregistering indexed content below is an asynchronous function, that removes an item from the content index.
CredentialsContainer.create() - Web APIs
ns an object of type credentialcreationoptions that contains options for the requested new credentials object.
...erited from credentialdata.
Document.execCommand() - Web APIs
ameters acommandname a domstring specifying the name of the command to execute.
...o.
Document - Web APIs
Web › API › Document
the document interface represents any web page loaded in the browser and serves as an entry point into the web page's content, which is the dom tree.
...ment.
EventSource() - Web APIs
the eventsource() constructor returns a newly-created eventsource, which represents a remote resource.
... the eventsource() constructor returns a newly-created eventsource, which represents a remote resource.
FederatedCredential - Web APIs
al.
...deratedcredential.provider read only returns a usvstring containing a credential's federated identity provider.
FetchEvent.request - Web APIs
fetchevent().) syntax var recentrequest = fetchevent.request; value a request object.
...he code fetches a response from the network.
FileError - Web APIs
Web › API › FileError
e type description code unsigned short the most appropriate error code for the condition.
... code unsigned short the most appropriate error code for the condition.
FileException - Web APIs
tml5rocks attribute attribute type description code unsigned short the most appropriate error code for the condition.
...ute type description code unsigned short the most appropriate error code for the condition.
FileReader.result - Web APIs
Web › API › FileReader › result
used to initiate the read operation.
...e is null if the reading is not yet complete or was unsuccessful.
FileReader - Web APIs
readystate will be done.
...once finished, the result attribute contains an arraybuffer representing the file's data.
File and Directory Entries API support in Firefox - Web APIs
ntry objects describing file system entries you can then read.
...s of the interfaces are implemented.
File and Directory Entries API - Web APIs
certain methods in the file and directory entries api.
...s you read the contents of a directory.
FontFace.FontFace() - Web APIs
Web › API › FontFace › FontFace
the fontface() constructor creates a new fontface object.
... this can be either: a url binary font data descriptors optional a set of optional descriptors passed as an object.
FontFace - Web APIs
Web › API › FontFace
the fontface interface represents a single usable font face.
... the fontface interface represents a single usable font face.
HTMLBaseElement - Web APIs
y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbaseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
..."12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbaseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLCanvasElement - Web APIs
text() returns a drawing context on the canvas, or null if the context id is not supported.
...ing context on the canvas, or null if the context id is not supported.
HTMLFormElement.enctype - Web APIs
the htmlformelement.enctype property is the mime type of content that is used to submit the form to the server.
... are: application/x-www-form-urlencoded: the initial default type.
HTMLHyperlinkElementUtils.hash - Web APIs
the htmlhyperlinkelementutils.hash property returns a usvstring containing a '#' followed by the fragment identifier of the url.
... the htmlhyperlinkelementutils.hash property returns a usvstring containing a '#' followed by the fragment identifier of the url.
HTMLHyperlinkElementUtils.port - Web APIs
the htmlhyperlinkelementutils.port property is a usvstring containing the port number of the url.
... the htmlhyperlinkelementutils.port property is a usvstring containing the port number of the url.
HTMLImageElement.currentSrc - Web APIs
the read-only htmlimageelement property currentsrc indicates the url of the image which is currently presented in the <img> element it represents.
... the read-only htmlimageelement property currentsrc indicates the url of the image which is currently presented in the <img> element it represents.
HTMLImageElement.loading - Web APIs
the document loads, which can be disconcerting or offputting at best and can cause users to click the wrong thing at worst, depending on the exact timing of the deferred loads and reflows.
..., using lazy-loading to avoid loading the image from the network until it's actually needed.
HTMLImageElement.src - Web APIs
ent property src, which reflects the html src attribute, specifies the image to display in the <img> element.
...lects the best match for the viewport size and display pixel density, the src attribute is a usvstring specifying the url of the desired image.
HTMLImageElement.useMap - Web APIs
the usemap property on the htmlimageelement interface reflects the value of the html usemap attribute, which is a string providing the name of the client-side image map to apply to the image.
... the usemap property on the htmlimageelement interface reflects the value of the html usemap attribute, which is a string providing the name of the client-side image map to apply to the image.
HTMLMediaElement - Web APIs
user agent select what controls to show on the media element whenever the user agent shows its own set of controls.
...sinkid read only returns a domstring that is the unique id of the audio device delivering output, or an empty string if it is using the user agent default.
HTMLSourceElement - Web APIs
pointer-events: all;} properties inherits properties from its parent, htmlelement.
...picture> element.
ImageCapture.takePhoto() - Web APIs
mg> element.
... simplicy it does not show how to instantiate the imagecapture object.
LargestContentfulPaint - Web APIs
available if the element is a cross-origin image loaded without the timing-allow-origin header.
...age loaded without the timing-allow-origin header.
Location: hash - Web APIs
Web › API › Location › hash
the hash property of the location interface returns a usvstring containing a '#' followed by the fragment identifier of the url.
... the hash property of the location interface returns a usvstring containing a '#' followed by the fragment identifier of the url.
Location: href - Web APIs
Web › API › Location › href
the href property of the location interface is a stringifier that returns a usvstring containing the whole url, and allows the href to be updated.
... the href property of the location interface is a stringifier that returns a usvstring containing the whole url, and allows the href to be updated.
Location: port - Web APIs
Web › API › Location › port
the port property of the location interface is a usvstring containing the port number of the url.
... the port property of the location interface is a usvstring containing the port number of the url.
MediaSource.MediaSource() - Web APIs
f the mediasource interface constructs and returns a new mediasource object with no associated source buffers.
...o = document.queryselector('video'); var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } ...
MediaSource.addSourceBuffer() - Web APIs
ource's sourcebuffers list.
...e source for further investigation.) var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateen...
MediaSource.endOfStream() - Web APIs
invalidstateerror mediasource.readystate is not equal to open, or one or more of the sourcebuffer objects in mediasource.sourcebuffers are being updated (i.e.
...e source for further investigation.) var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateen...
MediaSource.isTypeSupported() - Web APIs
") when determining if a media type can be used.
...e source for further investigation.) var asseturl = 'frag_bunny.mp4'; // need to be specific for blink regarding codecs // ./mp4info frag_bunny.mp4 | grep codec var mimecodec = 'video/mp4; codecs="avc1.42e01e, mp4a.40.2"'; if ('mediasource' in window && mediasource.istypesupported(mimecodec)) { var mediasource = new mediasource; //console.log(mediasource.readystate); // closed video.src = url.createobjecturl(mediasource); mediasource.addeventlistener('sourceopen', sourceopen); } else { console.error('unsupported mime type or codec: ', mimecodec); } function sourceopen (_) { //console.log(this.readystate); // open var mediasource = this; var sourcebuffer = mediasource.addsourcebuffer(mimecodec); fetchab(asseturl, function (buf) { sourcebuffer.addeventlistener('updateen...
Node.baseURIObject - Web APIs
the node.baseuriobject property returns the nsiuri representing the node's (typically a document or an element) base url.
... the node.baseuriobject property returns the nsiuri representing the node's (typically a document or an element) base url.
PasswordCredential - Web APIs
ect.
...rowsers, an instance of this class may be passed the credential from the init object for global fetch.
PaymentMethodChangeEvent - Web APIs
uestupdateevent.
...ect containing payment method-specific data useful when handling a payment method change.
PaymentRequestEvent - Web APIs
ymentrequestidread only returns the id of the paymentrequest object.
...he paymentrequest object.
PaymentResponse.methodName - Web APIs
the methodname read-only property of the paymentresponse interface returns a string uniquely identifying the payment handler selected by the user.
... uniquely identifying the payment handler selected by the user.
PublicKeyCredential.id - Web APIs
the id read-only property of the publickeycredential interface is a domstring, inherited from credential, which represents the identifier of the current publickeycredential instance.
...tial interface is a domstring, inherited from credential, which represents the identifier of the current publickeycredential instance.
PushManager.register() - Web APIs
the register method is used to ask the system to request a new endpoint for notifications.
...thod is used to ask the system to request a new endpoint for notifications.
RTCIdentityErrorEvent - Web APIs
that it will correct this name when it will unprefix rtcpeerconnection, once spec and implementation will have been stabilized.
...l unprefix rtcpeerconnection, once spec and implementation will have been stabilized.
RTCPeerConnection: track event - Web APIs
interface rtctrackevent event handler property ontrack by the time this event is delivered, the new track has been fully added to the peer connection.
...event event handler property ontrack by the time this event is delivered, the new track has been fully added to the peer connection.
RTCPeerConnectionIceEvent() - Web APIs
options); parameters type is a domstring containing the name of the event, like "icecandidate".
...omstring containing the name of the event, like "icecandidate".
Report - Web APIs
Web › API › Report
e.
... list of reports currently contained in the observer's report queue.
Reporting API - Web APIs
).
...ections below.
SVGDocument - Web APIs
t type, such as an htmldocument object.
...link, but, for example, via a bookmark).
SecurityPolicyViolationEvent.referrer - Web APIs
the referrer read-only property of the securitypolicyviolationevent interface is a usvstring representing the referrer of the resources whose policy was violated.
... the referrer read-only property of the securitypolicyviolationevent interface is a usvstring representing the referrer of the resources whose policy was violated.
Using server-sent events - Web APIs
d, but the client side code works almost identically to websockets in part of handling incoming events.
...er-sent event api is contained in the eventsource interface; to open a connection to the server to begin receiving events from it, create a new eventsource object with the url of a script that generates the events.
ServiceWorkerContainer - Web APIs
service workers.
...ived by the serviceworkercontainer object (e.g.
ServiceWorkerGlobalScope: notificationclick event - Web APIs
icationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); or use the onnotificationclick event handler property: self.onnotificationclick = function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open an...
...icationclick = function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }; specifications specification status notifications apithe definition of 'onnotificationclick' in that specification.
Service Worker API - Web APIs
mises, as generally they will wait for responses to come through, after which they will respond with a success or failure action.
...ronization.
ValidityState.patternMismatch - Web APIs
the read-only patternmismatch property of a validitystate object indicates if the value of an <input>, after having been edited by the user, does not conform to the constraints set by the element's pattern attribute.
...ase, we get a patternmismatch not a validitystate.toolong or validitystate.tooshort if the values are too long or too short because it is the pattern that is dictating the length of the value.
Animating textures in WebGL - Web APIs
y to perform its matrix and vertex math.
...false; var timeupdate = false; video.autoplay = true; video.muted = true; video.loop = true; // waiting for these 2 events ensures // there is data in the video video.addeventlistener('playing', function() { playing = true; checkready(); }, true); video.addeventlistener('timeupdate', function() { timeupdate = true; checkready(); }, true); video.src = url; video.play(); function checkready() { if (playing && timeupdate) { copyvideo = true; } } return video; } first we create a video element.
Using the Web Speech API - Web APIs
o show simple usage of web speech recognition, we've written a demo called speech color changer.
...his includes a set of form controls for entering text to be synthesised, and setting the pitch, rate, and voice to use when the text is uttered.
Window.history - Web APIs
Web › API › Window › history
m.
...doesn't allow the non-privileged code to access the urls of other pages in the session history, but it does allow it to navigate the session history.
Window.name - Web APIs
Web › API › Window › name
gets/sets the name of the window's browsing context.
... gets/sets the name of the window's browsing context.
WindowClient - Web APIs
service worker client that is a document in a browsing context, controlled by an active worker.
...icationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) { client.focus(); break; } } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe definition of 'windowclient' in that specification.
Worker - Web APIs
Web › API › Worker
nside a worker.
...e xmlhttprequest for network communication, but its responsexml and channel attributes are always null.
HTML in XMLHttpRequest - Web APIs
ince it does not check the actual feature but an indication of that feature.
...al feature but an indication of that feature.
XMLHttpRequest.abort() - Web APIs
nt.
...to xmlhttprequest.unsent (0) and the request's status code is set to 0.
XMLHttpRequest.onreadystatechange - Web APIs
nge event is fired, that is every time the readystate property of the xmlhttprequest changes.
...erty of the xmlhttprequest changes.
XMLHttpRequest.send() - Web APIs
o accept header has been set using the setrequestheader(), an accept header with the type "*/*" (any type) is sent.
...; xhr.onload = function () { // request finished.
XMLHttpRequestEventTarget.onabort - Web APIs
the xmlhttprequesteventtarget.onabort is the function called when an xmlhttprequest transaction is aborted, such as when the xmlhttprequest.abort() function is called.
...rget.onabort is the function called when an xmlhttprequest transaction is aborted, such as when the xmlhttprequest.abort() function is called.
XMLHttpRequestEventTarget.onerror - Web APIs
the xmlhttprequesteventtarget.onerror is the function called when an xmlhttprequest transaction fails due to an error.
... the xmlhttprequesteventtarget.onerror is the function called when an xmlhttprequest transaction fails due to an error.
XMLHttpRequestEventTarget.onload - Web APIs
ttprequest transaction completes successfully.
...prequest.onload = callback; values callback is the function to be executed when the request completes successfully.
XMLHttpRequestEventTarget.onloadstart - Web APIs
the xmlhttprequesteventtarget.onloadstart is the function called when an xmlhttprequest transaction starts transferring data.
... the xmlhttprequesteventtarget.onloadstart is the function called when an xmlhttprequest transaction starts transferring data.
XMLHttpRequestEventTarget.onprogress - Web APIs
prequest.onprogress = callback; values callback is the function to be called periodically before the request is completed.
...ction to be called periodically before the request is completed.
Web APIs
Web › API
apture and streamsmedia session apimedia source extensions mediastream recordingnnavigation timingnetwork information api ppage visibility apipayment request apiperformance apiperformance timeline apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access apistreams ttouch eventsuurl apivvibration apivisual viewport wweb animationsweb audio apiweb authentication apiweb crypto apiweb notificationsweb storage apiweb workers apiwebglwebrtcwebvttwebxr device apiwebsockets api interfaces this is a list of all the interfaces (that is, types of objects) that are available.
...opertymapreadonly stylesheet stylesheetlist submitevent subtlecrypto syncevent syncmanager t taskattributiontiming text textdecoder textencoder textmetrics textrange texttrack texttrackcue texttracklist timeevent timeranges touch touchevent touchlist trackdefault trackdefaultlist trackevent transferable transformstream transitionevent treewalker typeinfo u uievent ulongrange url urlsearchparams urlutilsreadonly usb usbalternateinterface usbconfiguration usbdevice usbendpoint usbintransferresult usbinterface usbisochronousintransferpacket usbisochronousintransferresult usbisochronousouttransferpacket usbisochronousouttransferresult usbouttransferresult usvstring userdatahandler userproximityevent v vttcue vttregion validitystate videoconfiguration ...
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
mportant] get_accchild: get the child of an iaccessible.
...nts problem: there are three kinds of text equivalents, and it is difficult to know when to use each.
-moz-image-region - CSS: Cascading Style Sheets
parameters define the top, right, bottom, and left offsets of the edges of the image, in this order.
...with <image> elements where the icon is specified using list-style-image.
-webkit-box-reflect - CSS: Cascading Style Sheets
ight, left are keywords indicating in which direction the reflection is to happen.
...color>?
-webkit-mask-box-image - CSS: Cascading Style Sheets
s stretched somewhat and repeated such that there is no partial mask image at the end of the border box.
...order box.
-webkit-mask-composite - CSS: Cascading Style Sheets
.
...ition initial valuesource-overapplies toall elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <composite-style>#where <composite-style> = clear | copy | source-over | source-in | source-out | source-atop | destination-over | destination-in | destination-out | destination-atop | xor examples compositing with xor .example { -webkit-mask-image: url(mask1.png), url('mask2.png'); -webkit-mask-composite: xor, source-over; } specifications not part of any standard.
-webkit-mask-repeat-y - CSS: Cascading Style Sheets
high, and then another image will be added.
... formal definition initial valuerepeatapplies toall elementsinheritednocomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete formal syntax repeat | no-repeat | space | round examples using a repeating or non-repeating mask image .exampleone { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-y: repeat; } .exampletwo { -webkit-mask-image: url('mask.png'); -webkit-mask-repeat-y: no-repeat; } using multiple mask images you can specify a different <repeat-style> for each mask image, separated by commas: .examplethree { -webkit-mask-image: url('mask1.png'), url('mask2.png'); -webkit-mask-repeat-y: repeat, space; } each image is matched with the corresponding repeat style, from first specified to last.
negative - CSS: Cascading Style Sheets
f the extended counter style itself uses a negative sign.
...color>?
pad - CSS: Cascading Style Sheets
l to be used for padding as the second parameter.
...color>?
font-display - CSS: Cascading Style Sheets
period, it is used normally.
...nt face is not loaded, the user agent treats it as a failed load causing normal font fallback.
font-style - CSS: Cascading Style Sheets
; for font-style: normal or italic, no second value is allowed.
...criptor and specify the font style as italic, so that it is clear that the font is italicized.
-ms-high-contrast - CSS: Cascading Style Sheets
n db!
...st mode with any color variation, a black-on-white color variation, and a white-on-black color variation, respectively.
Using multiple backgrounds - CSS: Cascading Style Sheets
background: background, background-attachment, background-clip, background-image, background-origin, background-position, background-repeat, background-size.
...ackground-image, background-origin, background-position, background-repeat, background-size.
CSS Basic User Interface - CSS: Cascading Style Sheets
css basic user interface is a css module that lets you define the rendering and functionality of features related to the user interface.
...s module that lets you define the rendering and functionality of features related to the user interface.
Implementing image sprites in CSS - CSS: Cascading Style Sheets
bandwidth-friendly to send them as a single image; using background position as a way to distinguish between individual images in the same image file, so the number of http requests is reduced.
...ile, so the number of http requests is reduced.
Using Media Queries for Accessibility - CSS: Cascading Style Sheets
on.
...st mode with any color variation, a black-on-white color variation, and a white-on-black color variation, respectively.
Syntax - CSS: Cascading Style Sheets
Web › CSS › Syntax
ly infinite number of different values.
... of properties and values are allowed and each property defines what are the valid values.
background-origin - CSS: Cascading Style Sheets
positioned relative to the content box.
...nheritednocomputed valueas specifiedanimation typediscrete formal syntax <box>#where <box> = border-box | padding-box | content-box examples setting background origins .example { border: 10px double; padding: 10px; background: url('image.jpg'); background-position: center left; background-origin: content-box; } #example2 { border: 4px solid black; padding: 10px; background: url('image.gif'); background-repeat: no-repeat; background-origin: border-box; } div { background-image: url('logo.jpg'), url('mainback.png'); /* applies two images to the background */ background-position: top right, 0px 0px; background-origin: content-box, padding-box; } specifications specification status comment css backgrounds and borders module level 3t...
background-repeat - CSS: Cascading Style Sheets
s="three"></div> </li> <li>repeat-y <div class="four"></div> </li> <li>space <div class="five"></div> </li> <li>round <div class="six"></div> </li> <li>repeat-x, repeat-y (multiple images) <div class="seven"></div> </li> </ol> css /* shared for all divs in example */ ol, li { margin: 0; padding: 0; } li { margin-bottom: 12px; } div { background-image: url(https://mdn.mozillademos.org/files/12005/starsolid.gif); width: 160px; height: 70px; } /* background repeats */ .one { background-repeat: no-repeat; } .two { background-repeat: repeat; } .three { background-repeat: repeat-x; } .four { background-repeat: repeat-y; } .five { background-repeat: space; } .six { background-repeat: round; } /* multiple images */ .seven { backgro...
....mozillademos.org/files/12005/starsolid.gif); width: 160px; height: 70px; } /* background repeats */ .one { background-repeat: no-repeat; } .two { background-repeat: repeat; } .three { background-repeat: repeat-x; } .four { background-repeat: repeat-y; } .five { background-repeat: space; } .six { background-repeat: round; } /* multiple images */ .seven { background-image: url(https://mdn.mozillademos.org/files/12005/starsolid.gif), url(https://developer.cdn.mozilla.net/media/redesign/img/favicon32.png); background-repeat: repeat-x, repeat-y; height: 144px; } result in this example, each list item is matched with a different value of background-repeat.
empty-cells - CSS: Cascading Style Sheets
orders and backgrounds are drawn like in normal cells.
...applies totable-cell elementsinheritedyescomputed valueas specifiedanimation typediscrete formal syntax show | hide example showing and hiding empty table cells html <table class="table_1"> <tr> <td>moe</td> <td>larry</td> </tr> <tr> <td>curly</td> <td></td> </tr> </table> <br> <table class="table_2"> <tr> <td>moe</td> <td>larry</td> </tr> <tr> <td>curly</td> <td></td> </tr> </table> css .table_1 { empty-cells: show; } .table_2 { empty-cells: hide; } td, th { border: 1px solid gray; padding: 0.5rem; } result specifications specification status comment css level 2 (revision 1)the definition of 'empty-cells' in that specification.
list-style - CSS: Cascading Style Sheets
lt this includes <li> elements.
... the items inside.
mask-repeat - CSS: Cascading Style Sheets
fs element and all graphics elementsinheritednocomputed valueconsists of two keywords, one per dimensionanimation typediscrete formal syntax <repeat-style>#where <repeat-style> = repeat-x | repeat-y | [ repeat | space | round | no-repeat ]{1,2} examples setting repeat for a single mask css #masked { width: 250px; height: 250px; background: blue linear-gradient(red, blue); mask-image: url(https://mdn.mozillademos.org/files/12676/star.svg); mask-repeat: repeat; /* can be changed in the live sample */ margin-bottom: 10px; } html content <div id="masked"> </div> <select id="repetition"> <option value="repeat-x">repeat-x</option> <option value="repeat-y">repeat-y</option> <option value="repeat" selected>repeat</option> <option value="space">space</option> <option val...
...t">no-repeat</option> </select> javascript content var repetition = document.getelementbyid("repetition"); repetition.addeventlistener("change", function (evt) { document.getelementbyid("masked").style.maskrepeat = evt.target.value; }); result multiple mask image support you can specify a different <repeat-style> for each mask image, separated by commas: .examplethree { mask-image: url('mask1.png'), url('mask2.png'); mask-repeat: repeat-x, repeat-y; } each image is matched with the corresponding repeat style, from first specified to last.
mask-type - CSS: Cascading Style Sheets
Web › CSS › mask-type
xlink="http://www.w3.org/1999/xlink" width="0" height="0"> <defs> <mask id="m" maskcontentunits="objectboundingbox" style="mask-type:alpha"> <rect x=".1" y=".1" width=".8" height=".8" fill="red" fill-opacity="0.7"/> </mask> </defs> </svg> css .redsquare { height: 100px; width: 100px; background-color: rgb(128, 128, 128); border: solid 1px black; mask: url("#m"); } result setting a luminance mask html <div class="redsquare"></div> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0"> <defs> <mask id="m" maskcontentunits="objectboundingbox" style="mask-type:luminance"> <rect x=".1" y=".1" width=".8" height=".8" fill="red" fill-opacity="0.7"/> <...
...k="http://www.w3.org/1999/xlink" width="0" height="0"> <defs> <mask id="m" maskcontentunits="objectboundingbox" style="mask-type:luminance"> <rect x=".1" y=".1" width=".8" height=".8" fill="red" fill-opacity="0.7"/> </mask> </defs> </svg> css .redsquare { height: 100px; width: 100px; background-color: rgb(128, 128, 128); border: solid 1px black; mask: url("#m"); mask-type:luminance; } result specifications specification status comment css masking module level 1the definition of 'mask-type' in that specification.
offset - CSS: Cascading Style Sheets
Web › CSS › offset
ns of the spec called this property motion.
...his property is a shorthand for the following css properties: offset-anchor offset-distance offset-path offset-position offset-rotate syntax /* offset position */ offset: auto; offset: 10px 30px; offset: none; /* offset path */ offset: ray(45deg closest-side); offset: path('m 100 100 l 300 100 l 200 300 z'); offset: url(arc.svg); /* offset path with distance and/or rotation */ offset: url(circle.svg) 100px; offset: url(circle.svg) 40%; offset: url(circle.svg) 30deg; offset: url(circle.svg) 50px 20deg; /* including offset anchor */ offset: ray(45deg closest-side) / 40px 20px; offset: url(arc.svg) 2cm / 0.5cm 3cm; offset: url(arc.svg) 30deg / 50px 100px; formal definition initial valueas each of the properties of the shorthand:offset-position: autooffset-path: noneoffset-distanc...
Event reference
or because the permission was denied.
...ied.
Video player styling basics - Developer guides
.
...a `data-state` variable is used to indicate which state such buttons are currently in.
Creating a cross-browser video player - Developer guides
reload="metadata" poster="img/poster.jpg"> <source src="video/tears-of-steel-battle-clip-medium.mp4" type="video/mp4"> <source src="video/tears-of-steel-battle-clip-medium.webm" type="video/webm"> <source src="video/tears-of-steel-battle-clip-medium.ogg" type="video/ogg"> <!-- flash fallback --> <object type="application/x-shockwave-flash" data="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" width="1024" height="576"> <param name="movie" value="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <param name="allowfullscreen" value="true" /> <param name="wmode" value="transparent" /> <param name="flashvars" value="controlbar=over&amp;image=img/poster.jpg&amp;file=flash-player.swf?vid...
...ideo/tears-of-steel-battle-clip-medium.mp4" width="1024" height="576"> <param name="movie" value="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <param name="allowfullscreen" value="true" /> <param name="wmode" value="transparent" /> <param name="flashvars" value="controlbar=over&amp;image=img/poster.jpg&amp;file=flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <img alt="tears of steel poster image" src="img/poster.jpg" width="1024" height="428" title="no video playback possible, please download the video from the link below" /> </object> <!-- offer download --> <a href="video/tears-of-steel-battle-clip-medium.mp4">download mp4</a> </video> <figcaption>&copy; blender founda...
HTML attribute: pattern - HTML: Hypertext Markup Language
the pattern attribute specifies a regular expression the form control's value should match.
...cified pattern is not specified or is invalid, no regular expression is applied and this attribute is ignored.
HTML attribute: rel - HTML: Hypertext Markup Language
Web › HTML › Attributes › rel
rel value description <link> <a> and <area> <form> alternate alternate representations of the current document.
...obsolete rev="made" is treated as rel="alternate" bookmark relevant as the rel attribute value for the <a> and <area> elements, the bookmark provides a permalink for ancestor section, which is the nearest ancestor <article> or <section>, if there is at least one, otherwise, the nearest heading sibling or ancestor descendant, to the next..
<blockquote>: The Block Quotation element - HTML: Hypertext Markup Language
the html <blockquote> element (or html block quotation element) indicates that the enclosed text is an extended quotation.
...mitted content flow content.
<script>: The Script element - HTML: Hypertext Markup Language
Web › HTML › Element › script
still include the path.
...when the protocol security level stays the same (e.g.
<track>: The Embed Text Track element - HTML: Hypertext Markup Language
Web › HTML › Element › track
where the video cannot be seen.
...ers chapter titles are intended to be used when the user is navigating the media resource.
<video>: The Video Embed element - HTML: Hypertext Markup Language
Web › HTML › Element › video
in the video.
...e auto value.
<wbr> - HTML: Hypertext Markup Language
Web › HTML › Element › wbr
n on two lines, 123,456 and not 456,123.
...oint.
Global attributes - HTML: Hypertext Markup Language
attribute can be associated with the item using an itemref.
...tional properties elsewhere in the document.
MIME types (IANA media types) - HTTP
at indicates the nature and format of a document, file, or assortment of bytes.
...ation software of their choice.
Reason: CORS request external redirect not allowed - HTTP
reason reason: cors request external redirect not allowed what went wrong?
... than the original request, which is not permitted during cors requests.
ETag - HTTP
Web › HTTP › Headers › ETag
the etag http response header is an identifier for a specific version of a resource.
...in the if-match header containing the etag values to check freshness against.
Host - HTTP
Web › HTTP › Headers › Host
the host request header specifies the host and port number of the server to which the request is being sent.
... the host request header specifies the host and port number of the server to which the request is being sent.
Set-Cookie2 - HTTP
-cookie2 http response header used to send cookies from the server to the user agent, but has been deprecated by the specification.
...ttp response header used to send cookies from the server to the user agent, but has been deprecated by the specification.
X-DNS-Prefetch-Control - HTTP
the x-dns-prefetch-control http response header controls dns prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as urls for items referenced by the document, including images, css, javascript, and so forth.
...ific hostnames without providing specific anchors using that hostname by using the rel attribute on the <link> element with a link type of dns-prefetch: <link rel="dns-prefetch" href="https://www.mozilla.org/contribute/"> in this example, the domain name "www.mozilla.org/contribute" will be pre-resolved.
HTTP headers - HTTP
Web › HTTP › Headers
arded-host identifies the original host requested that a client used to connect to your proxy or load balancer.
...ade header field is specified, then the sender must also send the connection header field with the upgrade option specified.
301 Moved Permanently - HTTP
Web › HTTP › Status › 301
the hypertext transfer protocol (http) 301 moved permanently redirect status response code indicates that the resource requested has been definitively moved to the url given by the location headers.
... the hypertext transfer protocol (http) 301 moved permanently redirect status response code indicates that the resource requested has been definitively moved to the url given by the location headers.
302 Found - HTTP
Web › HTTP › Status › 302
the hypertext transfer protocol (http) 302 found redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location header.
... the hypertext transfer protocol (http) 302 found redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location header.
308 Permanent Redirect - HTTP
Web › HTTP › Status › 308
the hypertext transfer protocol (http) 308 permanent redirect redirect status response code indicates that the resource requested has been definitively moved to the url given by the location headers.
... the hypertext transfer protocol (http) 308 permanent redirect redirect status response code indicates that the resource requested has been definitively moved to the url given by the location headers.
SyntaxError: invalid regular expression flag "x" - JavaScript
y perform a "sticky" search that matches starting at the current position in the target string.
.../foo/bar; // syntaxerror: invalid regular expression flag "b" did you intend to create a regular expression?
Warning: expression closures are deprecated - JavaScript
warning: expression closures are deprecated error type warning.
...n bug 1083458 and scripts using it will throw a syntaxerror then.
JavaScript error reference - JavaScript
-hand sidereferenceerror: reference to undefined property "x"syntaxerror: "0"-prefixed octal literals and octal escape seq.
...ror: invalid array.prototype.sort argumenttypeerror: invalid argumentstypeerror: invalid assignment to const "x"typeerror: property "x" is non-configurable and can't be deletedtypeerror: setting getter-only property "x"typeerror: variable "x" redeclares argumenturierror: malformed uri sequencewarning: 08/09 is not a legal ecma-262 octal constantwarning: -file- is being assigned a //# sourcemappingurl, but already has onewarning: date.prototype.tolocaleformat is deprecatedwarning: javascript 1.6's for-each-in loops are deprecatedwarning: string.x is deprecated; use string.prototype.x insteadwarning: expression closures are deprecatedwarning: unreachable code after return statement ...
Promise() constructor - JavaScript
h is typically an error object.
... asynchronous which eventually calls either: // // resolve(somevalue) // fulfilled // or // reject("failure reason") // rejected }); making functions return a promise to provide a function with promise functionality, have it return a promise: function myasyncfunction(url) { return new promise((resolve, reject) => { const xhr = new xmlhttprequest() xhr.open("get", url) xhr.onload = () => resolve(xhr.responsetext) xhr.onerror = () => reject(xhr.statustext) xhr.send() }); } specifications specification ecmascript (ecma-262)the definition of 'promise constructor' in that specification.
String - JavaScript
available html tags and attributes.
... tags and attributes.
escape() - JavaScript
sirable characteristics and in the absence of legacy usage would be removed from this specification.
... in the absence of legacy usage would be removed from this specification.
Object initializer - JavaScript
objects can be initialized using new object(), object.create(), or using the literal notation (initializer notation).
... a value in json.
Pipeline operator (|>) - JavaScript
the experimental pipeline operator |> (currently at stage 1) pipes the value of an expression into a function.
... the experimental pipeline operator |> (currently at stage 1) pipes the value of an expression into a function.
Authoring MathML - MathML
ird 31.0 / seamonkey 2.28), it was a bit tedious to setup math fonts, see the font instructions for mozilla 2.0.
...o setup math fonts, see the font instructions for mozilla 2.0.
<mglyph> - MathML
Web › MathML › Element › mglyph
the mathml <mglyph> element is used to display non-standard symbols where existing unicode characters are not available.
...this displayed if the image url is wrong, the image is not in one of the supported formats, or until the image is downloaded.
Progressive web app structure - Progressive web apps (PWAs)
nd solid performance while keeping all the benefits of the web.
...r] caching all: app shell and content'); return cache.addall(contenttocache); }) ); }); last of all, the service worker fetches content from the cache if it is available there, providing offline functionality: self.addeventlistener('fetch', function(e) { e.respondwith( caches.match(e.request).then(function(r) { console.log('[service worker] fetching resource: '+e.request.url); return r || fetch(e.request).then(function(response) { return caches.open(cachename).then(function(cache) { console.log('[service worker] caching new resource: '+e.request.url); cache.put(e.request, response.clone()); return response; }); }); }) ); }); the javascript data the games data is present in the data folder in a form of ...
Structural overview of progressive web apps - Progressive web apps (PWAs)
d solid performance while keeping all the benefits of the web.
... ); }); with that done, we implement the service worker's fetch event handler; its job is to return the contents of the specified file, either from the cache or by loading it over the network (caching it upon doing so): self.addeventlistener('fetch', function(e) { e.respondwith( caches.match(e.request).then(function(r) { console.log('[service worker] fetching resource: '+e.request.url); return r || fetch(e.request).then(function(response) { return caches.open(cachename).then(function(cache) { console.log('[service worker] caching new resource: '+e.request.url); cache.put(e.request, response.clone()); return response; }); }); }) ); }); auxiliary javascript file: games.js the games data for this app example is pr...
baseFrequency - SVG: Scalable Vector Graphics
> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.05" /> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <number-optional-number> default value 0 animatable yes <number-optional-number> if two numbers are provided, the first one represents the base frequency in the horizontal direction and the second one...
...t="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of 'basefrequency' in that specification.
clip-path - SVG: Scalable Vector Graphics
lygon>, <polyline>, <rect>, <svg>, <symbol>, <text>, <use> html,body,svg { height:100% } <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <clippath id="myclip" clippathunits="objectboundingbox"> <circle cx=".5" cy=".5" r=".5" /> </clippath> <!-- top-left: apply a custom defined clipping path --> <rect x="1" y="1" width="8" height="8" stroke="green" clip-path="url(#myclip)" /> <!-- top-right: apply a css basic shape on a fill-box geometry.
...dth="8" height="8" stroke="green" clip-path="circle() stroke-box" /> <!-- bottom-right: apply a css basic shape on a view-box geometry.
cx - SVG: Scalable Vector Graphics
Web › SVG › Attribute › cx
algradient> html,body,svg { height:100% } <svg viewbox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <radialgradient cx="25%" id="mygradient"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <circle cx="50" cy="50" r="45"/> <ellipse cx="150" cy="50" rx="45" ry="25" /> <rect x="205" y="5" width="90" height="90" fill="url(#mygradient)" /> </svg> circle for <circle>, cx defines the x-axis coordinate of the center of the shape.
...ld" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> <radialgradient cx="100%" id="mygradient100"> <stop offset="0%" stop-color="gold" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> </defs> <rect x="1" y="1" width="8" height="8" fill="url(#mygradient000)" stroke="black" /> <rect x="13" y="1" width="8" height="8" fill="url(#mygradient050)" stroke="black" /> <rect x="25" y="1" width="8" height="8" fill="url(#mygradient100)" stroke="black" /> </svg> specifications specification status comment scalable vector graphics (svg) 2the definition of 'cx' in that specification.
cy - SVG: Scalable Vector Graphics
Web › SVG › Attribute › cy
gradient> html,body,svg { height:100% } <svg viewbox="0 0 100 300" xmlns="http://www.w3.org/2000/svg"> <radialgradient cy="25%" id="mygradient"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <circle cy="50" cx="50" r="45"/> <ellipse cy="150" cx="50" rx="45" ry="25" /> <rect x="5" y="205" width="90" height="90" fill="url(#mygradient)" /> </svg> circle for <circle>, cy defines the y-axis coordinate of the center of the shape.
...ld" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> <radialgradient cy="100%" id="mygradient100"> <stop offset="0%" stop-color="gold" /> <stop offset="50%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </radialgradient> </defs> <rect x="1" y="1" width="8" height="8" fill="url(#mygradient000)" stroke="black" /> <rect x="13" y="1" width="8" height="8" fill="url(#mygradient050)" stroke="black" /> <rect x="25" y="1" width="8" height="8" fill="url(#mygradient100)" stroke="black" /> </svg> specifications specification status comment scalable vector graphics (svg) 2the definition of 'cy' in that specification.
fr - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fr
"5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> <radialgradient id="gradient2" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="25%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage notes value <length> default value 0 animatable none example <svg viewbox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" ...
...example <svg viewbox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="transparent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sa...
fx - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fx
="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> <radialgradient id="gradient2" cx="0.5" cy="0.5" r="0.5" fx="0.75" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage notes value <length> default value coincides with the presentational value of cx for the element whether the value for cx was inherited or not.
...example <svg viewbox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="transparent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sa...
fy - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fy
="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> <radialgradient id="gradient2" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.75" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient1)" /> <circle cx="100" cy="100" r="100" fill="url(#gradient2)" style="transform: translatex(240px);" /> </svg> usage notes value <length> default value coincides with the presentational value of cy for the element whether the value for cy was inherited or not.
...example <svg viewbox="0 0 120 120" width="200" height="200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="transparent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sa...
in - SVG: Scalable Vector Graphics
Web › SVG › Attribute › in
tp://www.w3.org/1999/xlink"> <defs> <filter id="backgroundmultiply"> <!-- this will not work.
...g" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="imagemultiply"> <!-- this is a workaround.
numOctaves - SVG: Scalable Vector Graphics
: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" numoctaves="1" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" numoctaves="3" /> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <integer> default value 1 animatable yes <integer> defines the number of octaves.
... width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence basefrequency="0.05" numoctaves="3" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of 'numoctaves' in that specification.
patternContentUnits - SVG: Scalable Vector Graphics
the bounding box of the target element.
...e target element --> <pattern id="p2" width="20%" height="20%" patterncontentunits="objectboundingbox"> <circle cx=".1" cy=".1" r=".1" /> </pattern> <!-- left square with user space tiles --> <rect x="10" y="10" width="80" height="80" fill="url(#p1)" /> <!-- right square with bounding box tiles --> <rect x="110" y="10" width="80" height="80" fill="url(#p2)" /> </svg> pattern for <pattern>, patterncontentunits defines the coordinate system in use for the content of the element.
seed - SVG: Scalable Vector Graphics
Web › SVG › Attribute › seed
{ height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="100" /> </filter> <rect x="0" y="0" width="200" height="200" style="filter:url(#noise1);" /> <rect x="0" y="0" width="200" height="200" style="filter:url(#noise2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes example <svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence basefreque...
...svg width="200" height="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence basefrequency="0.05" seed="1000" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of 'seed' in that specification.
spreadMethod - SVG: Scalable Vector Graphics
x1="33%" x2="67%"> <stop offset="0%" stop-color="fuchsia"/> <stop offset="100%" stop-color="orange"/> </lineargradient> <lineargradient id="repeatgradient" spreadmethod="repeat" x1="33%" x2="67%"> <stop offset="0%" stop-color="fuchsia"/> <stop offset="100%" stop-color="orange"/> </lineargradient> </defs> <rect fill="url(#padgradient)" x="10" y="0" width="200" height="40"/> <rect fill="url(#reflectgradient)" x="10" y="50" width="200" height="40"/> <rect fill="url(#repeatgradient)" x="10" y="100" width="200" height="40"/> </svg> result notice that the middle third of each gradient is the same.
.../> <stop offset="100%" stop-color="orange"/> </radialgradient> <radialgradient id="radialrepeatgradient" spreadmethod="repeat" cx="75%" cy="25%" r="33%" fx="64%" fy="18%" fr="17%"> <stop offset="0%" stop-color="fuchsia"/> <stop offset="100%" stop-color="orange"/> </radialgradient> </defs> <rect fill="url(#radialpadgradient)" x="10" y="10" width="100" height="100"/> <rect fill="url(#radialreflectgradient)" x="120" y="10" width="100" height="100"/> <rect fill="url(#radialrepeatgradient)" x="230" y="10" width="100" height="100"/> </svg> result specifications specification status comment scalable vector graphics (svg) 2the definition of 'sp...
stitchTiles - SVG: Scalable Vector Graphics
vg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="noise1" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" stitchtiles="nostitch" /> </filter> <filter id="noise2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" stitchtiles="stitch" /> </filter> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(100px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(0, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(100px, 100px);" /> <rect x="0" y="0" width="100" height="100" style...
..." /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(100px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(0, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise1); transform: translate(100px, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(220px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(320px, 0);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(220px, 100px);" /> <rect x="0" y="0" width="100" height="100" style="filter: url(#noise2); transform: translate(320px, 100px);" /> </svg> usag...
y1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › y1
ns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector start at the top left corner of the bounding box of the shape it is applied to.
...8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at the bottom left corner of the bounding box of the shape it is applied to.
y2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › y2
lns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector end at the top right corner of the bounding box of the shape it is applied to.
..."8" height="8" fill="url(#g0)" /> <!-- here the gradient vector end at the bottom right corner of the bounding box of the shape it is applied to.
<feComponentTransfer> - SVG: Scalable Vector Graphics
mplitude="4" exponent="4" offset="0"></fefuncg> <fefuncb type="gamma" amplitude="4" exponent="1" offset="0"></fefuncb> </fecomponenttransfer> </filter> </defs> <g font-weight="bold"> <text x="0" y="20">default</text> <rect x="0" y="30" width="100%" height="20"></rect> <text x="0" y="70">identity</text> <rect x="0" y="80" width="100%" height="20" style="filter:url(#identity)"></rect> <text x="0" y="120">table lookup</text> <rect x="0" y="130" width="100%" height="20" style="filter:url(#table)"></rect> <text x="0" y="170">discrete table lookup</text> <rect x="0" y="180" width="100%" height="20" style="filter:url(#discrete)"></rect> <text x="0" y="220">linear function</text> <rect x="0" y="230" width="100%" height="20" style="filter:u...
...l(#table)"></rect> <text x="0" y="170">discrete table lookup</text> <rect x="0" y="180" width="100%" height="20" style="filter:url(#discrete)"></rect> <text x="0" y="220">linear function</text> <rect x="0" y="230" width="100%" height="20" style="filter:url(#linear)"></rect> <text x="0" y="270">gamma function</text> <rect x="0" y="280" width="100%" height="20" style="filter:url(#gamma)"></rect> </g> </svg> css rect { fill: url(#rainbow); } result specifications specification status comment filter effects module level 1the definition of '<fecomponenttransfer>' in that specification.
<feGaussianBlur> - SVG: Scalable Vector Graphics
ments the svgfegaussianblurelement interface.
...svg width="120" height="120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <filter id="dropshadow"> <fegaussianblur in="sourcealpha" stddeviation="3" /> <feoffset dx="2" dy="4" /> <femerge> <femergenode /> <femergenode in="sourcegraphic" /> </femerge> </filter> <circle cx="60" cy="60" r="50" fill="green" filter="url(#dropshadow)" /> </svg> result screenshotlive sample specifications specification status comment filter effects module level 1the definition of '<fegaussianblur>' in that specification.
<feMorphology> - SVG: Scalable Vector Graphics
<filter id="erode"> <femorphology operator="erode" radius="1"/> </filter> <filter id="dilate"> <femorphology operator="dilate" radius="2"/> </filter> <text y="1em">normal text</text> <text id="thin" y="2em">thinned text</text> <text id="thick" y="3em">fattened text</text> </svg> css text { font-family: arial, helvetica, sans-serif; font-size: 3em; } #thin { filter: url(#erode); } #thick { filter: url(#dilate); } filtering html content svg <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0"> <filter id="erode"> <femorphology operator="erode" radius="1"/> </filter> <filter id="dilate"> <femorphology operator="dilate" radius="2"/> </filter> </svg> <p>normal text</p> <p id="thin">thinned text</p> <p id="thick">fattened text</p> cs...
...3.org/2000/svg" width="0" height="0"> <filter id="erode"> <femorphology operator="erode" radius="1"/> </filter> <filter id="dilate"> <femorphology operator="dilate" radius="2"/> </filter> </svg> <p>normal text</p> <p id="thin">thinned text</p> <p id="thick">fattened text</p> css p { margin: 0; font-family: arial, helvetica, sans-serif; font-size: 3em; } #thin { filter: url(#erode); } #thick { filter: url(#dilate); } specifications specification status comment filter effects module level 1the definition of '<femorphology>' in that specification.
<image> - SVG: Scalable Vector Graphics
Web › SVG › Element › image
ments.
...tes class style externalresourcesrequired transform specific attributes x: positions the image horizontally from the origin.
<linearGradient> - SVG: Scalable Vector Graphics
{ height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <lineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </lineargradient> </defs> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes gradientunits this attribute defines the coordinate system for attributes x1, x2, y1, y2 value type: userspaceonuse|objectboundingbox ; default value: objectboundingbox; animatable: yes gradienttransform this attribute provides additional transformation to the gradient coordinate system.
...: userspaceonuse|objectboundingbox ; default value: objectboundingbox; animatable: yes gradienttransform this attribute provides additional transformation to the gradient coordinate system.
<radialGradient> - SVG: Scalable Vector Graphics
vg elements.
...: userspaceonuse|objectboundingbox ; default value: objectboundingbox; animatable: yes gradienttransform this attribute provides additional transformation to the gradient coordinate system.
<textPath> - SVG: Scalable Vector Graphics
Web › SVG › Element › textPath
000/svg"> <!-- to hide the path, it is usually wrapped in a <defs> element --> <!-- <defs> --> <path id="mypath" fill="none" stroke="red" d="m10,90 q90,90 90,45 q90,10 50,10 q10,10 10,40 q10,70 45,70 q70,70 75,50" /> <!-- </defs> --> <text> <textpath href="#mypath"> quick brown fox jumps over the lazy dog.
...="none" stroke="red" d="m10,90 q90,90 90,45 q90,10 50,10 q10,10 10,40 q10,70 45,70 q70,70 75,50" /> <!-- </defs> --> <text> <textpath href="#mypath"> quick brown fox jumps over the lazy dog.
SVG documentation index - SVG: Scalable Vector Graphics
Web › SVG › Index
h to be used when drawing horizontally oriented text.
... are created using a wide array of elements which are dedicated to the construction, drawing, and layout of vector images and diagrams.
SVG and CSS - SVG: Scalable Vector Graphics
gradientunits="userspaceonuse"> <stop id="fade-stop-1" offset="33%"/> <stop id="fade-stop-2" offset="95%"/> </radialgradient> </defs> <text id="heading" x="-280" y="-270">svg demonstration</text> <text id="caption" x="-280" y="-250">move your mouse pointer over the flower.</text> <g id="flower"> <circle id="overlay" cx="0" cy="0" r="200" stroke="none" fill="url(#fade)"/> <g id="outer-petals"> <g class="quadrant"> <g class="segment"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path class="segment-edge" d="m0,-200 a40,40 0 0,0 -62,10"/> </g> <g class="segment" transform="rotate(18)"> <path class="segment-fill" d="m0,0 v-200 a40,40 0 0,0 -62,10 z"/> <path clas...
... gradientunits="userspaceonuse"> <stop id="fade-stop-1" offset="33%"/> <stop id="fade-stop-2" offset="95%"/> </radialgradient> </defs> <text id="heading" x="-280" y="-270">svg demonstration</text> <text id="caption" x="-280" y="-250">move your mouse pointer over the flower.</text> <g id="flower"> <circle id="overlay" cx="0" cy="0" r="200" stroke="none" fill="url(#fade)"/> <use id="outer-petals" xlink:href="#petals"/> <use id="inner-petals" xlink:href="#petals" transform="rotate(9) scale(0.33)"/> </g> </svg> what next?
Mixed content - Web security
acker with the opportunity to redirect the user to other http pages and steal http cookies from those sites.
...t examples this section lists some types of http requests which are considered active content: <script> (src attribute) <link> (href attribute) (this includes css stylesheets) <iframe> (src attribute) xmlhttprequest requests fetch() requests all cases in css where a <url> value is used (@font-face, cursor, background-image, and so forth).
system-property - XPath
e is no such system property, the empty string should be returned.
...y, the empty string should be returned.
Index - XPath
Web › XPath › Index
ce the system-property function returns an object representing the given system-property.
...epresenting the given system-property.
self - Archive of obsolete content
add-on to access its data files and id.
XUL Migration Guide - Archive of obsolete content
module gives you direct access to chrome windows, including the browser's chrome window.
addon-page - Archive of obsolete content
ly relevant and distract from the content you are presenting.
clipboard - Archive of obsolete content
wxwlweaaaaagpsa3rzdaaaaahgpcgrpganzq2fg" + "bwrr9aaaaabjru5erkjggg%3d%3d"); if the clipboard contains an image, open it in a new tab.
querystring - Archive of obsolete content
separator between each name:value pair.
net/xhr - Archive of obsolete content
ression that looks safe but contains a special character or two that makes it far less secure than it seems at first glance.
stylesheet/style - Archive of obsolete content
experimental modify styles using stylesheet files or css rules.
window/utils - Archive of obsolete content
ttached to the new window as the window.arguments property.
Release notes - Archive of obsolete content
firefox 35.
Creating Event Targets - Archive of obsolete content
"onevent" options finally, most event targets accept options of the form "onevent", where "event" is the capitalized form of the event type.
Localization - Archive of obsolete content
a-l10n-id="hello_id"></h1> </body> </html> then you can use this html file to build your interface, for example inside a panel: var button = require("sdk/ui/button/action").actionbutton({ id: "localized-hello", label: "localized hello", icon: "./icon-16.png", onclick: function() { hello.show(); } }); var hello = require("sdk/panel").panel({ height: 75, width: 150, contenturl: require("sdk/self").data.url("my-panel.html") }); given locale files for "en-us" and "fr" which provide translations of hello_id, the panel will now display "hello!" or "bonjour !", according to the current locale: the translation is inserted into the node which has the data-l10n-id attribute set.
Add-on SDK - Archive of obsolete content
b pages, listen for pages loading and list open pages.
Bootstrapped extensions - Archive of obsolete content
n may be called: when the extension is uninstalled, if it's currently enabled.
Forms related code snippets - Archive of obsolete content
> of radioboxes and textboxes (written in pure css, without javascript), please see this example.
Examples and demos from articles - Archive of obsolete content
he informations needed by each animation to start, stop, etc.
JavaScript Debugger Service - Archive of obsolete content
first compared fashion.
Post data to window - Archive of obsolete content
].
Sidebar - Archive of obsolete content
sidebar's context: sidebarwindow.yournotificationfunction(anyarguments); } testing which sidebar is open the sidebar content may contain different panels (bookmarks, history, webpanel, etc.) and sometimes one wants to only act on the sidebar when it contains a specific panel.
Common Pitfalls - Archive of obsolete content
// some applications return rv; } or, if the code can include nsnetutil.h: nscomptr<nsiuri> uriobj; nsresult rv = ns_newuri(getter_addrefs(uriobj), uristring, uricharset, baseuri); in all cases the baseuri can be null if the uristring should be treated as an absolute uri and uricharset can be null if there is no clear origin charset for the string (e.g.
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
<description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>1.0+</em:minversion> <em:maxversion>1.0+</em:maxversion> </description> </em:targetapplication> <!-- front-end metadata --> <em:name>my first extension</em:name> <em:description>just an example.</em:description> <em:creator>allpeers.com</em:creator> <em:homepageurl>http://www.allpeers.com/blog/</em:homepageurl> </description> </rdf> there's a detailed description of the format of the install.rdf file.
Extension Etiquette - Archive of obsolete content
tive objects.
Adding Events and Commands - Archive of obsolete content
way to solve this is to have the actions on the site to generate a custom event that can be easily recognized by your extension.
Adding sidebars - Archive of obsolete content
required to add a sidebar is very simple, as explained in creating a firefox sidebar.
Adding windows and dialogs - Archive of obsolete content
« previousnext » opening windows and dialogs to open a new window, use the javascript window.open function just like with html windows.
Appendix A: Add-on Performance - Archive of obsolete content
ng inefficient code in the event handlers can cause a noticeable delay that users may have hard time figuring out.
Appendix C: Avoiding using eval in Add-ons - Archive of obsolete content
hook the same functions, but a little different, ending up with completely broken code.
Appendix E: DOM Building and Insertion (HTML & XUL) - Archive of obsolete content
ecutable * javascript, and return a document fragment.
XPCOM Objects - Archive of obsolete content
when you need to use the category manager.
Session store API - Archive of obsolete content
of recently closed tabs are restored.
Firefox addons developer guide - Archive of obsolete content
ld use the previous, next, and prevnext templates to add quick routes to get from chapter to chapter.
Using the Stylesheet Service - Archive of obsolete content
with this api apply to all documents; firefox 18 extended nsidomwindowutils with loadadditionalstylesheet() and removeadditionalstylesheet() to manage stylesheets for a specific document (bug 737003).
Creating reusable content with CSS and XBL - Archive of obsolete content
tml> <head> <title>mozilla css getting started - xbl demonstration</title> <link rel="stylesheet" type="text/css" href="style6.css"> </head> <body> <h1>xbl demonstration</h1> <div id="square">click me</div> </body> </html> make a new css file, style6.css.
Localizing an extension - Archive of obsolete content
ile.
Creating a Firefox sidebar extension - Archive of obsolete content
ebar" command="viewemptysidebar" key="&openemptysidebar.commandkey;" modifiers="&openemptysidebar.modifierskey;" /> </keyset> <broadcasterset id="mainbroadcasterset"> <broadcaster id="viewemptysidebar" label="&emptysidebar.title;" autocheck="false" type="checkbox" group="sidebar" sidebarurl="chrome://emptysidebar/content/emptysidebar.xul" sidebartitle="&emptysidebar.title;" oncommand="togglesidebar('viewemptysidebar');" /> </broadcasterset> </overlay> the overlay file consists of three entries, the menu definition, shortcut keys and the broadcaster.
Conclusion - Archive of obsolete content
« previous you now have a working mozilla extension installer!
install.rdf - Archive of obsolete content
:minversion> <em:maxversion>2.0b2pre</em:maxversion> </description> </em:targetapplication> <!-- front end metadata --> <em:name>my_theme</em:name> <em:description>my first theme</em:description> <!-- front end integration hooks (used by theme manager)--> <em:creator>john johnson</em:creator> <em:contributor>john johnson</em:contributor> <em:homepageurl>https://mycoolskin.com/</em:homepageurl> <em:updateurl>https://mycoolskin.com/</em:updateurl> <em:abouturl>https://mycoolskin.com/</em:abouturl> <em:internalname>my_theme</em:internalname> </description> </rdf> ...
Embedding FAQ - Archive of obsolete content
import org.eclipse.swt.widgets.display; import org.eclipse.swt.widgets.shell; import org.mozilla.xpcom.nsidomdocument; public class test { public static void main(string args[]) { display display = new display(); shell shell = new shell(display); final mozillabrowser browser = new mozillabrowser(shell,wt.border); browser.seturl("http://www.google.com"); browser.addprogresslistener(new progresslistener() { public void changed(progressevent event) { } public void completed(progressevent event) { nsidomdocument doc = browser.getdocument(); system.out.println(doc); ...
Downloading Nightly or Trunk Builds - Archive of obsolete content
trouble of building the source.
Menu - Archive of obsolete content
Archive › Mozilla › Jetpack › UI › Menu
y, command functions defined on menuitems with submenus are not called when descendant menuitems are clicked.
Notifications - Archive of obsolete content
first sdk release for what we're up to next!
statusBar - Archive of obsolete content
s statusbar contains functions to add and control the statusbar of the browser.
Makefile.mozextension.2 - Archive of obsolete content
xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest"> <id>$(project_id)</id> <name>$(project_name)</name> <version>$(project_version)</version> <description>$(project_desc)</description> <creator>$(project_author)</creator> <contributor>here is a place for you who helped me</contributor> <homepageurl>http://$(project).mozdev.org/</homepageurl> <optionsurl>chrome://$(project)/content/settings.xul</optionsurl> <abouturl>chrome://$(project)/content/about.xul</abouturl> <iconurl>chrome://$(project)/skin/mainicon.png</iconurl> <updateurl>http://$(project).mozdev.org/update.rdf</updateurl> <type>2</type> <targetapplication> <description> <id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id> <...
Monitoring downloads - Archive of obsolete content
storage api to issue sqlite commands on a database.
Mozilla Application Framework in Detail - Archive of obsolete content
urthermore, when embedding gecko, developers are free to choose what modules to include.
BlogPosts - Archive of obsolete content
a prism - a revolution in web apps thanscorner: mozilla webrunner 0.7 site specific browsers webrunner using webrunner webrunner + gears = offline desktop reader webrunner 0.5 webrunner 0.5 - mac support webrunner 0.5 - linux install webrunner, google reader, and google notebook distraction free gtd - 32+ web app files for online todo lists mozilla webrunner: a one-window, tabless browser with no url bar webrunner becomes prism - a mozilla labs project mozilla labs: prism alex faaborg: prism mozilla prism: bringing web apps to the desktop everyone should use site specific browsers mozilla prism portable (spanish) prism, l'avenir des applications web selon mozilla (french) mozilla prism : bundle custom google reader + talk (french) just browsing: site-specific browsers ...
Bundles - Archive of obsolete content
link rel="webapp" href="prismdemo.webapp" title="prism demo"> when the extension finds such a <link> tag, it will notify the user.
HostWindow - Archive of obsolete content
prism hosts web applications in a simple, minimal window.
New Skin Notes - Archive of obsolete content
- main link and documentation leads to english devmo, and devnews and webwatch should be hidden or localized too.
PyDOM - Archive of obsolete content
/> html <meta http-equiv="content-script-type" content="application/x-python" /> should work (but possibly doesn't - see bug 100924).
RDF Datasource How-To - Archive of obsolete content
illa.org/keymaster/gat...re.is.only.xul"> <tree datasources="rdf:my-datasource" ref="http://foo.bar.com/"> <template> <treechildren> <treeitem uri="..."> <treerow> <treecell> <text value="rdf:http://home.netscape.com/nc-rdf#name" /> </treecell> <treecell> <text value="rdf:http://home.netscape.com/nc-rdf#url" /> </treecell> </treerow> </treeitem> </treechildren> </template> <treehead> <treeitem> <treecell>name</treecell> <treecell>url</treecell> </treeitem> </treehead> <!-- treechildren built _here_ --> </tree> </window> the important "magic attributes" have been called out in bold, above: datasources="rdf:my-data...
Remote XUL - Archive of obsolete content
how to use xul delivered from a webserver, not as part of chrome.
Frequently Asked Questions - Archive of obsolete content
in to view svg in mozilla on their own computers, but there is no way for svg content authors to make mozilla use a plugin when people view the svg files on their website.
Supporting per-window private browsing - Archive of obsolete content
ly, network channels inherit the privacy status of the document that created them, which means that they work correctly most of the time.
Tamarin Build System Documentation - Archive of obsolete content
uding all checkins since the last build each sandbox build occurs in the order they were submitted, the submitter may cancel a build.
Tuning Pageload - Archive of obsolete content
tuning pageload can be beneficial if you know what you're doing.
Venkman Introduction - Archive of obsolete content
leted) a alias to another property a argument to a function v declared with var figure 8.
Using Breakpoints in Venkman - Archive of obsolete content
sents a promise from venkman to set a hard breakpoint as soon as it is possible.
Venkman - Archive of obsolete content
advanced install.
Creating XPI Installer Modules - Archive of obsolete content
ess of the installation of the barley package is that the user can, as before, invoke our software by using a special startup option: mozilla -chrome chrome://barley/content this option tells mozilla to load a chrome other than the default, which is the main browser window.
getFolder - Archive of obsolete content
"win desktop" "win desktop common" "win program files" "win programs" "win programs common" "win startmenu" "win startmenu common" "win startup" "win startup common" "win system" the "file:///" form is only valid when the subdirectory parameter is used.
autocompletesearch - Archive of obsolete content
n this attribute.
homepage - Archive of obsolete content
« xul reference home homepage type: url this attribute allows you to set a homepage for the browser element.
href - Archive of obsolete content
Archive › Mozilla › XUL › Attribute › href
« xul reference home href type: string defines a url to open when this element is clicked.
panel.type - Archive of obsolete content
panel that provides a richlistbox for an autocomplete element.
searchSessions - Archive of obsolete content
« xul reference home searchsessions obsolete since gecko 26 type: space-separated list of session names set to a keyword indicating what type of data to look up for autocomplete.
treecol.src - Archive of obsolete content
« xul reference home src type: uri set this attribute to have the treecol element use an image for the header instead of a label.
Building accessible custom components in XUL - Archive of obsolete content
1"/> <label value="dinner" flex="1"/> <label value="lodging" flex="1"/> <label value="breakfast" flex="1"/> <label value="lunch" flex="1"/> <label value="dinner" flex="1"/> </column> <-- several columns omitted for brevity --> </columns> </grid> </code> now we can use css to add some minimal styling to make it actually look like a spreadsheet.
Menus - Archive of obsolete content
saves a link links context-sendlink sends a link in an email links context-copyemail copies an email address mailto: links context-copylink copies a link links context-viewimage views an image at full size images context-copyimage-contents copies an image to the clipboard images context-copyimage copies the url of an image to the clipboard images context-saveimage saves an image images context-sendimage sends an image in an email images context-setdesktopbackground sets an image as the desktop background images context-blockimage blocks an image images context-back goes back a page context-forward goes forward a ...
International characters in XUL JavaScript - Archive of obsolete content
n schönes beispiel eines mehrsprachigen textes: 日本語"; this mixes german and japanese characters.
Introduction to XUL - Archive of obsolete content
t which may change as the locale changes.
appendGroup - Archive of obsolete content
« xul reference home appendgroup( group ) return type: no return value not in firefox add several new tabs to the end of the existing tabs.
getIcon - Archive of obsolete content
Archive › Mozilla › XUL › Method › getIcon
« xul reference home geticon( atab ) return type: string returns the url of the specified tab's favicon.
loadGroup - Archive of obsolete content
« xul reference home loadgroup( group ) not in firefox return type: the first tab loads a group of pages into multiple tabs.
loadURI - Archive of obsolete content
Archive › Mozilla › XUL › Method › loadURI
« xul reference home note: this is the xul method on <browser> / <tabbrowser>, not the global function in chrome://browser/content/browser.js.
replaceGroup - Archive of obsolete content
n firefox return type: array of session history objects replaces existing tabs with a new set.
currentIndex - Archive of obsolete content
t language ="javascript"> function treerowclicked(){ var tree = document.getelementbyid("my-tree"); var selection = tree.view.selection; var celltext = tree.view.getcelltext(tree.currentindex, tree.columns.getcolumnat(0)); alert(celltext); } </script> <tree id="my-tree" seltype="single" onselect="treerowclicked()"> <treecols> <treecol label="title" flex="1"/><treecol label="url" flex="1"/> </treecols> <treechildren> <treeitem> <treerow> <treecell label="joe@somewhere.com"/> <treecell label="top secret plans"/> </treerow> </treeitem> <treeitem> <treerow> <treecell label="mel@whereever.com"/> <treecell label="let's do lunch"/> </treerow> </treeitem> </treechildren> </tree> see also lis...
homePage - Archive of obsolete content
« xul reference homepage type: string home page url this property holds the value of the user's home page setting.
image - Archive of obsolete content
Archive › Mozilla › XUL › Property › image
« xul reference image type: image url gets and sets the value of the image attribute.
menulist.image - Archive of obsolete content
« xul reference image type: image url the image associated with the currently selected item.
src - Archive of obsolete content
Archive › Mozilla › XUL › Property › src
« xul reference src type: url gets and sets the value of the src attribute.
Property - Archive of obsolete content
documentcharsetinfo editable editingcolumn editingrow editingsession editor editortype emptytext deprecated since gecko 2 enablecolumndrag eventnode firstordinalcolumn firstpermanentchild flex focused focuseditem forcecomplete group handlectrlpageupdown handlectrltab hasuservalue height hidden hideseconds highlightnonmatches homepage hour hourleadingzero id ignoreblurwhilesearching image increment inputfield inverted is24hourclock ispm issearching iswaiting itemcount label labelelement lastpermanentchild lastselected left linkedpanel listboxobject locked markupdocumentviewer max maxheight maxlength maxrows maxwidth menu menuboxobject menupopup min minheight minresultsforpopup...
Providing Command-Line Options - Archive of obsolete content
the code below is an example of writing a javascript xpcom component to handle command line parameters.
Building Hierarchical Trees - Archive of obsolete content
ren> <treeitem uri="rdf:*"> <treerow> <treecell label="rdf:http://www.xulplanet.com/rdf/address"/> <treecell label="rdf:http://www.xulplanet.com/rdf/floors"/> </treerow> </treeitem> </treechildren> </rule> <rule> <treechildren> <treeitem uri="rdf:*"> <treerow> <treecell label="rdf:http://purl.org/dc/elements/1.1/title"/> </treerow> </treeitem> </treechildren> </rule> </template> </tree> the first rule is for the houses as indicated by the rule's condition and the second rule is for the streets.
Building Menus With Templates - Archive of obsolete content
" ref="http://www.xulplanet.com/rdf/myneighbourhood" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <template> <rule rdf:type="http://www.xulplanet.com/rdf/house"> <menupopup> <menuitem uri="rdf:*" label="rdf:http://www.xulplanet.com/rdf/address"/> </menupopup> </rule> <rule> <menupopup> <menu uri="rdf:*" label="rdf:http://purl.org/dc/elements/1.1/title"/> </menupopup> </rule> </template> </button> this example uses the simple rdf query syntax.
Multiple Rules - Archive of obsolete content
results that didn't match earlier rules to match this last rule.
Result Generation - Archive of obsolete content
are two types of nodes in rdf, resources which usually represent 'things', and literals which are values like the names, dates or sizes of those things, and so on.
Template and Tree Listeners - Archive of obsolete content
ndex in the tree and the associated member resource for the item at the index.
Tree Widget Changes - Archive of obsolete content
e, or leaving out the attribute.
Adding Buttons - Archive of obsolete content
on elements in this tutorial for simplicity.
Adding HTML Elements - Archive of obsolete content
s way, mozilla can distinguish the html tags from the xul ones.
Anonymous Content - Archive of obsolete content
ildren element.
Creating a Wizard - Archive of obsolete content
n the wizard are used to control the wizard navigation.
Creating an Installer - Archive of obsolete content
e that was just installed.
Features of a Window - Archive of obsolete content
rame> or tab) with the specified name.
Install Scripts - Archive of obsolete content
nstall to the assigned installation directory.
Localization - Archive of obsolete content
ks.
More Event Handlers - Archive of obsolete content
s because the xul elements may not have loaded or fully initialized yet, so some things may not work as expected.
Open and Save Dialogs - Archive of obsolete content
of dialog is one where the user can select a file to open or save.
Property Files - Archive of obsolete content
ion.
Toolbars - Archive of obsolete content
usually placed along the top of a window and contains a number of buttons that perform common functions.
XBL Example - Archive of obsolete content
d to will be placed inside the deck.
XUL Tutorial - Archive of obsolete content
this tutorial describes xul, the xml user-interface language.
Using the standard theme - Archive of obsolete content
s simply add one <tt>xml-stylesheet</tt> processing instruction for every style sheet you want to associate with your xul file: <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <?xml-stylesheet href="chrome://myextension/skin/custom.css" type="text/css"?> <tt>@import</tt> chains first, import the global skin in your custom style sheet using the css <tt>@import</tt> rule: @import url("chrome://global/skin/"); you then have to associate your xul file with your custom style sheet only: <?xml-stylesheet href="chrome://myextension/skin/custom.css" type="text/css"?> applying different custom style sheets depending on the selected theme mozilla is able to automatically pick your custom style sheet depending on the theme currently chosen by the user.
XUL accessibility tool - Archive of obsolete content
et is compatible with the following xul applications: firefox 1.5+ thunderbird 3.0a+ recent sunbird builds recent songbird builds.
XUL Coding Style Guidelines - Archive of obsolete content
some of the guidelines are recommended practices, the others are mandatory.
XUL controls - Archive of obsolete content
led box around other user interface controls.
button - Archive of obsolete content
crop attribute.
caption - Archive of obsolete content
ment.
checkbox - Archive of obsolete content
for the element.
editor - Archive of obsolete content
the editortype attribute on the editor.
label - Archive of obsolete content
Archive › Mozilla › XUL › label
ls.
listitem - Archive of obsolete content
e.
menuitem - Archive of obsolete content
ts and sets the value of the command attribute.
menulist - Archive of obsolete content
t attribute.
menuseparator - Archive of obsolete content
nd sets the value of the command attribute.
notification - Archive of obsolete content
e contents, as visible to the user, are read and set using the menulist.value syntax.
notificationbox - Archive of obsolete content
tification will be added behind it.
radio - Archive of obsolete content
Archive › Mozilla › XUL › radio
or the element.
<statusbarpanel> - Archive of obsolete content
t out, no image appears.
tab - Archive of obsolete content
Archive › Mozilla › XUL › tab
object for the element.
toolbarbutton - Archive of obsolete content
the crop attribute.
triple - Archive of obsolete content
ion exists, the rule may match, assuming that all the conditions match.
Opening a Link in the Default Browser - Archive of obsolete content
pref("network.protocol-handler.warn-external.ftp", false); you can also check whether an external handler for a scheme exists.
mozilla.dev.platform FAQ - Archive of obsolete content
or you can use the packages of the firefox release repackager which uses the embedded framework successfully.
2006-10-20 - Archive of obsolete content
entpolicy.
2006-11-03 - Archive of obsolete content
t/airbag/airbag/src/common/windows/guid_string.cc make[1]: leaving directory `/cygdrive/c/mozilla/obj-i686-pc-cygwin' make: *** [build] error 2 he also noted that he is using make 3.80-1.
2006-11-10 - Archive of obsolete content
e about unit testing for the mozilla toolkit, letting developers know about the importance of testing for the improvement of mozilla 2, and asks for complete coverage.
2006-11-03 - Archive of obsolete content
he aim of the group is to develop a new, higher standard for the validation which is done before certificate issuance, called extended validation.
2006-12-08 - Archive of obsolete content
engaging discussion on a problem with trying to call back from c++ to a javascript object using an interface the developer created with an idl.
NPN_GetValue - Archive of obsolete content
abled, false=not enabled npnvasdenabledbool: tells whether smartupdate (former name: asd) is enabled; true=smartupdate enabled, false=not enabled npnvisofflinebool: tells whether offline mode is enabled; true=offline mode enabled, false=not enabled npnvtoolkit: npnvsupportsxembedbool: npnvwindownpobject: returns the npobject * pointer for the dom window object; see getting the page url in npapi plugin for a rough example npnvpluginelementnpobject: npnvsupportswindowless: tells whether the browser supports windowless plugins.
NPN_Status - Archive of obsolete content
o the current plug-in instance.
NPP_Destroy - Archive of obsolete content
ce « plug-in side plug-in api summary deletes a specific instance of a plug-in.
NPP_New - Archive of obsolete content
argc number of html arguments in the embed tag for an embedded plug-in; determines the number of attributes in the argn and argv arrays.
NPAPI plug-in side API - Archive of obsolete content
emented by the plug-in and called by the browser.
Shipping a plugin as a Toolkit bundle - Archive of obsolete content
pack the plugin because dlls can't be loaded from xpi files.
Supporting private browsing in plugins - Archive of obsolete content
not private browsing mode is in effect.
Why RSS Content Module is Popular - Including HTML Contents - Archive of obsolete content
llowed.
Why RSS Slash is Popular - Counting Your Comments - Archive of obsolete content
t is that it includes a comments count, a humorous department, a hit parade, and a section with every blog post.
0.90 - Archive of obsolete content
Archive › RSS › Version › 0.90
<rdf:rdf xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/" > <channel> <title>mozilla dot org</title> <link>http://www.mozilla.org</link> <description>the mozilla organization web site</description> </channel> <image> <title>mozilla</title> <url>http://www.mozilla.org/images/moz.gif</url> <link>http://www.mozilla.org</link> </image> <item> <title>new status updates</title> <link>http://www.mozilla.org/status/</link> </item> <item> <title>bugzilla reorganized</title> <link>http://www.mozilla.org/bugs/</link> </item> <item> ...
title - Archive of obsolete content
lish/formats/rss-0.91.dtd"> <rss version="0.91"> <channel> <title>advogato</title> <link>http://www.advogato.org/article/</link> <description>recent advogato articles</description> <language>en-us</language> <image> <link>http://www.advogato.org/</link> <title>advogato</title> <url>http://www.advogato.org/image/tinyadvogato.png</url> </image> <item> <title>why can i not get any tang?!</title> <link>http://www.advogato.org/article/10101.html</link> <description>seriously.
Element - Archive of obsolete content
s managing editor element) n <name> (rss name element) o p <pubdate> (rss published date element) q r <rating> (rss rating element) <rss> (rss's root "rss" element) s <skipdays> (rss skip days element) <skiphours> (rss skip hours element) <source> (rss source element) t <textinput> (rss text input element) <title> (rss title element) <ttl> (rss ttl element) u <url> (rss url element) v w <webmaster> (rss web master element) <width> (rss width element) x y z ...
Introduction to Public-Key Cryptography - Archive of obsolete content
e a variety of other name-value pairs.
Sunbird Theme Tutorial - Archive of obsolete content
nt from here, making sure that you scroll to get all of it: <?xml version="1.0"?> <rdf xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <description about="urn:mozilla:install-manifest" em:id="just-testing@example.com" em:name="just testing" em:creator="rod whiteley" em:description="a test theme for sunbird" em:homepageurl="http://developer.mozilla.org/" em:version="0.1" em:internalname="testing" em:type="4" > <em:targetapplication><!-- sunbird --> <description em:id="{718e30fb-e89b-41dd-9da7-e25a45638b28}" em:minversion="0.2.9" em:maxversion="0.4" /> </em:targetapplication> </description> </rdf> in the line that starts <tt>em:id</tt>, paste your identifier b...
contents.rdf - Archive of obsolete content
yntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- list all the skins being supplied by this theme --> <rdf:seq about="urn:mozilla:skin:root"> <rdf:li resource="urn:mozilla:skin:my_theme"/> </rdf:seq> <rdf:description about="urn:mozilla:skin:my_theme" chrome:displayname="my theme" chrome:accesskey="n" chrome:author="" chrome:authorurl="" chrome:description="" chrome:name="my_theme" chrome:image="preview.png"> <chrome:packages> <rdf:seq about="urn:mozilla:skin:my_theme:packages"> <rdf:li resource="urn:mozilla:skin:my_theme:browser"/> <rdf:li resource="urn:mozilla:skin:my_theme:communicator"/> <rdf:li resource="urn:mozilla:skin:my_theme:global"/> <rdf:li resource="...
install.rdf - Archive of obsolete content
3a3a9e97384}</em:id> <em:minversion>min_ff_version</em:minversion> <em:maxversion>max_ff_version</em:maxversion> </description> </em:targetapplication> <!-- front end metadata --> <!-- my_theme --> <em:name>my_theme</em:name> <em:description>my_theme</em:description> <em:creator>your_name</em:creator> <em:contributor>contributors_names</em:contributor> <em:homepageurl>themes_homepage</em:homepageurl> <em:updateurl> url_of_update_location </em:updateurl> <em:abouturl> url_of_about_page </em:abouturl> <!-- front end integration hooks (used by theme manager)--> <em:internalname>my_theme</em:internalname> </description> </rdf> ...
Making sure your theme works with RTL locales - Archive of obsolete content
t/right rules for paddings, borders, and margins.
Theme changes in Firefox 3.5 - Archive of obsolete content
me://global/skin/media/videocontrols.css) shadow effect for disabled text using text-shadow.
Settings - Archive of obsolete content
show original sources enabling this option will make the debugger use source maps, if they are available, to display the original source for code which has been combined, minified, or even compiled to javascript from a language like coffeescript.
::-ms-clear - Archive of obsolete content
ar button is only shown on focused, non-empty text controls.
JSException - Archive of obsolete content
twrappedexception method was not available.
Window.importDialog() - Archive of obsolete content
cause opening windows on mobile isn't necessarily appropriate, the firefox mobile team designed the importdialog() method to replace window.opendialog().
XForms Help Element - Archive of obsolete content
ng form control has focus or if the containing form control recieves a xforms-help event.
XForms Hint Element - Archive of obsolete content
hint will also be displayed if the containing form control recieves a xforms-hint event.
XForms Label Element - Archive of obsolete content
cess key is in a standard way.
XForms Message Element - Archive of obsolete content
eners to display a message to the user when the specified event occurs (see the spec).
XForms Repeat Element - Archive of obsolete content
erits="bind, model, nodeset" anonid="anonidgridrepeat"> <xf:trigger> <xf:label>r</xf:label> <xf:delete ev:event="domactivate" at="index('anonidgridrepeat')" xbl:inherits="model, bind, nodeset"/> </xf:trigger> </xf:repeat> </xbl:content> </xbl:binding> </xbl:bindings> <style> div.grid { -moz-binding: url('#grid'); } </style> <xf:model> <xf:instance> <data xmlns=""> <repeat> <item> <input>input1</input> </item> <item> <input>input2</input> </item> <item> <input>input3</input> </item> </repeat> </data> </xf:instance> </xf:model> </head> <body> <xf:repeat ...
XQuery - Archive of obsolete content
ipt to developers or to browser users), at least one extension has been developed to give a preliminary support for xquery for browser users (and serving as a simple model for how xquery can be implemented within extensions).
Game distribution - Game development
s you don't have to wait several days to have your game's code updated.
Unconventional controls - Game development
umentation there.
Bounce off the walls - Game development
the top and bottom edge covered, so let's think about the left and right ones.
Finishing up - Game development
ered.
Paddle and keyboard controls - Game development
= canvas.width - paddlewidth; } } else if(leftpressed) { paddlex -= 7; if (paddlex < 0){ paddlex = 0; } } the paddlex position we're using will move between 0 on the left side of the canvas and canvas.width-paddlewidth on the right hand side, which will work exactly as we want it to.
Visual typescript game engine - Game development
scriptpath: "externals/drag.ts", }, ]; /** * @description this is main coordinary types of positions * can be "diametric-fullscreen" or "frame".
502 - MDN Web Docs Glossary: Definitions of Web-related terms
an http error code meaning "bad gateway".
API - MDN Web Docs Glossary: Definitions of Web-related terms
les that exist inside a software program (the application) enabling interaction with it through software - as opposed to a human user interface.
Base64 - MDN Web Docs Glossary: Definitions of Web-related terms
a that needs to be stored and transferred over media that are designed to deal with ascii.
CORS-safelisted request header - MDN Web Docs Glossary: Definitions of Web-related terms
-safelisted request header: for accept-language and content-language: can only have values consisting of 0-9, a-z, a-z, space or *,-.;=.
CSRF - MDN Web Docs Glossary: Definitions of Web-related terms
csrf (cross-site request forgery) is an attack that impersonates a trusted user and sends a website unwanted commands.
Domain - MDN Web Docs Glossary: Definitions of Web-related terms
a domain is an authority within the internet that controls its own resources.
Domain name - MDN Web Docs Glossary: Definitions of Web-related terms
a domain name is a website's address on the internet.
HSTS - MDN Web Docs Glossary: Definitions of Web-related terms
ttp strict transport security lets a web site inform the browser that it should never load the site using http and should automatically convert all attempts to access the site using http to https requests instead.
IDL - MDN Web Docs Glossary: Definitions of Web-related terms
number (a signed long).
Media (CSS) - MDN Web Docs Glossary: Definitions of Web-related terms
es—or even offer different styles—according to the media type (such as screen or print, to name two) or media capabilities (such as width, resolution, or other values) of the viewer's device.
Page prediction - MDN Web Docs Glossary: Definitions of Web-related terms
ture or script which, when enabled, tells the browser to download resources the user is likely to visit before the user requests the content.
Preflight request - MDN Web Docs Glossary: Definitions of Web-related terms
lows it, then it will respond to the preflight request with an access-control-allow-methods response header, which lists delete: http/1.1 204 no content connection: keep-alive access-control-allow-origin: https://foo.bar.org access-control-allow-methods: post, get, options, delete access-control-max-age: 86400 the preflight response can be optionally cached for the requests created in the same url using access-control-max-age header like in the above example.
Progressive web apps - MDN Web Docs Glossary: Definitions of Web-related terms
progressive web apps is a term used to describe the modern state of web app development.
Search engine - MDN Web Docs Glossary: Definitions of Web-related terms
spider), by defining "robot exclusion" information in a file named robots.txt.
Site - MDN Web Docs Glossary: Definitions of Web-related terms
per.mozilla.org/docs/ https://support.mozilla.org/ same site because the registrable domain of mozilla.org is the same http://example.com:8080 https://example.com same site because scheme and port are not relevant examples of different site https://developer.mozilla.org/docs/ https://example.com not same site because the registrable domain of the two urls differs specifications specification status comment url living standard initial definition ...
TLD - MDN Web Docs Glossary: Definitions of Web-related terms
dministrating organization might be, tld often serves as a clue to the purpose, ownership, or nationality of a website.
URI - MDN Web Docs Glossary: Definitions of Web-related terms
a uri (uniform resource identifier) is a string that refers to a resource.
Unicode - MDN Web Docs Glossary: Definitions of Web-related terms
as difficult and error-prone to mix languages in the same data.
World Wide Web - MDN Web Docs Glossary: Definitions of Web-related terms
computer at the cern physics research lab in 1990.
caret - MDN Web Docs Glossary: Definitions of Web-related terms
elements that may present a caret these elements provide text entry fields or boxes and therefore make use of the caret.
Origin - MDN Web Docs Glossary: Definitions of Web-related terms
web content's origin is defined by the scheme (protocol), host (domain), and port of the url used to access it.
MDN Web Docs Glossary: Definitions of Web-related terms
me to interactive tld tofu transmission control protocol (tcp) transport layer security (tls) tree shaking trident 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 w...
WAI-ARIA basics - Learn web development
assertive: updates should be announced to the user as soon as possible.
Debugging CSS - Learn web development
n real time on the page.
Fundamental CSS comprehension - Learn web development
e in, you are welcome to — just make sure the image is square.
Organizing your CSS - Learn web development
you may have used a css property in a specific way to get around older browser incompatibilities, for example: .box { background-color: red; /* fallback for older browsers that don't support gradients */ background-image: linear-gradient(to right, #ff0000, #aa0000); } perhaps you followed a tutorial to achieve something, and the css is a little non-obvious.
Test your skills: backgrounds and borders - Learn web development
s codepen, jsfiddle, or glitch to work on the tasks.
Responsive design - Learn web development
fixed-width layout: example, source code.
What is CSS? - Learn web development
b page.
Typesetting a community school homepage - Learn web development
styling techniques.
How can we design for all types of users? - Learn web development
m, you must provide a relevant alt attribute.
How do you host your website on Google App Engine? - Learn web development
have a look at the sample application's structure — the website folder contains your website content and app.yaml is your application configuration file.
What is the difference between webpage, website, web server, and search engine? - Learn web development
ns (science, math, history, etc.) in the library are like websites.
How do you upload your files to a web server? - Learn web development
, then install from the installer file in the usual way.
How do I use GitHub Pages? - Learn web development
u need to turn github pages on for your repository.
What are browser developer tools? - Learn web development
how the property's longhand equivalents.
What software do I need to build a website? - Learn web development
shot of an online text editor: uploading files on the web when your website is ready for public viewing, you'll have to upload your webpages to your web server.
How do you set up a local testing server? - Learn web development
enter the command to start up the server in that directory: # if python version returned above is 3.x python3 -m http.server # on windows try "python" instead of "python3", or "py -3" # if python version returned above is 2.x python -m simplehttpserver by default, this will run the contents of the directory on a local web server, on port 8000.
Client-side form validation - Learn web development
lement matches the :invalid and :out-of-range css pseudo-classes.
UI pseudo-classes - Learn web development
ontrol using the :valid and :invalid pseudo-classes.
CSS basics - Learn web development
you choose which properties you want to affect in the rule.
Add a hitmap on top of an image - Learn web development
de in coords.
Use JavaScript within a webpage - Learn web development
hin html, you need the <script> element.
Advanced text formatting - Learn web development
updatecode(); }; quotations html also has features available for marking up quotations; which element you use depends on whether you are marking up a block or inline quotation.
Marking up a letter - Learn web development
ropriately — in the chemical formulae, and the numbers 103 and 104 (they should be 10 to the power of 3 and 4, respectively).
Test your skills: Links - Learn web development
propriate places: the first link should link to an image called blue-whale.jpg, which is located in a directory called blue inside the current directory.
Video and audio content - Learn web development
start playing right away, while the rest of the page is loading.
Manipulating documents - Learn web development
ed on interfaces like htmlanchorelement in the case of <a> element, its more general parent interface htmlelement, and node — which represents all nodes in a dom).
Solve common problems in your JavaScript code - Learn web development
error message in the developer console if you have code after a return statement.
CSS performance optimization - Learn web development
ay property applied to the @font-face rule, the font-display property defines how font files are loaded and displayed by the browser, allowing text to appear with a fallback font while a font loads, or fails to load.
Measuring performance - Learn web development
emove all whitespace from your code to make the files smaller.
What is web performance? - Learn web development
o load, frames per second, and time to interactive, and subjective experiences of how long it felt like it took the content to load.
Getting started with Ember - Learn web development
is built — including bundling all your files together, asset minification, and creating sourcemaps — with reasonable defaults, so you don't typically need to worry about this file.
Ember interactivity: Events, classes and state - Learn web development
e keydown event via the on modifier, which is just ember syntactic sugar around addeventlistener and removeeventlistener (see this explanation if needed).
Componentizing our React app - Learn web development
odify your todo() function definition so that it takes props as a parameter.
React interactivity: Editing, filtering, conditional rendering - Learn web development
ook.
Beginning our React todo list - Learn web development
box, which we want to avoid.
Starting our Svelte Todo list app - Learn web development
onent inside src/main.js, which isn't used inside app.
Handling common HTML and CSS problems - Learn web development
a good strategy is to validate your code regularly.
Mozilla’s UAAG evaluation report
he resource.
Theme concepts
pload a new version using the developer hub with the following steps: visit the product page for your theme through the developer hub select "upload new version" on the left upload your packaged file for validation or modify it using the theme generator for self-hosted static themes, a new version can be updated through amo by following the above steps or be handled by you through an updateurl or external application updates.
Creating a Login Manager storage module
ub(arguments); }, getalldisabledhosts: function slms_getalldisabledhosts(count) { this.stub(arguments); }, getloginsavingenabled: function slms_getloginsavingenabled(hostname) { this.stub(arguments); }, setloginsavingenabled: function slms_setloginsavingenabled(hostname, enabled) { this.stub(arguments); }, findlogins: function slms_findlogins(count, hostname, formsubmiturl, httprealm) { this.stub(arguments); }, countlogins: function slms_countlogins(ahostname, aformsubmiturl, ahttprealm) { this.stub(arguments); } }; function nsgetmodule(compmgr, filespec) xpcomutils.generatemodule([sampleloginmanagerstorage]); sample c++ implementation bug 309807 contains a complete example.
Creating a spell check dictionary add-on
tion about="urn:mozilla:install-manifest"> <em:id>locale-code@dictionaries.addons.mozilla.org</em:id> <em:version>version number</em:version> <em:type>64</em:type> <em:unpack>true</em:unpack> <em:name>name</em:name> <!-- other install.rdf metadata such as em:localized, em:description, em:creator, em:developer, em:translator, em:contributor or em:homepageurl --> <!-- firefox --> <em:targetapplication> <description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minversion>18.0a1</em:minversion> <em:maxversion>46.0</em:maxversion> </description> </em:targetapplication> <!-- thunderbird --> <em:targetapplication> <description> <em:id>{3550f703-e582-4d0...
Debugging Internet Explorer
to run internet explorer in a single process add a dword registry value to hkey_current_user\software\microsoft\internet explorer\main called tabprocgrowth and set it to 0.
Debugging JavaScript
the first place to go when you're debugging a web page; open the web console using the web console option in the web developer menu.
Debugging on Windows
the executable you are debugging.
HTTP logging
at any point during while your browser is running, you can turn logging on and off.
Old Thunderbird build
full rebuild: ./mozilla/mach build problems building?
Simple Instantbird build
ems building?
Simple Sunbird build
ghtning.
Simple Thunderbird build
run the full rebuild: ./mach build problems building?
Error codes returned by Mozilla APIs
path_unexpected_end (0x80600014) ns_error_xpath_operator_expected (0x80600015) ns_error_xpath_unclosed_literal (0x80600016) ns_error_xpath_bad_colon (0x80600017) ns_error_xpath_bad_bang (0x80600018) ns_error_xpath_illegal_char (0x80600019) ns_error_xpath_binary_expected (0x8060001a) ns_error_xpath_invalid_expression_evaluated (0x8060001c) ns_error_xpath_unbalanced_curly_brace (0x8060001d) xslt errors errors that can occur when using xslt.
Partitioned: All third-party storage access requests
message firefox: cookiepartitionedforeign=partitioned cookie or storage access was provided to “<url>” because it is loaded in the third-party context and storage partitioning is enabled.
Security best practices for Firefox front-end engineers
rance team maintains an eslint rule that disallows unsafe uses of innerhtml and similar dom apis.
mozbrowsercontextmenu
fined via <menu> / <menuitem> elements and pointed to via a contextmenu attribute on the dom element clicked on, which contains the menu's id.
mozbrowsericonchange
mstring listing the sizes the new icon is available in, e.g.
mozbrowseropensearch
ean whether the event normally bubbles or not.
Browser API
used only by the firefox devtools at this point).
Embedding Tips
needed for authentication.
HTML parser threading
eculative http fetches for images (including video poster frames), style sheets and scripts.
Getting Started with Chat
re connected, there are some basic rules you should follow to ensure the most enjoyable and productive experience: as with all mozilla forums and events, agreeing to our community participation guidelines is a requirement for participation.
How Mozilla determines MIME Types
the file.
How to get a process dump with Windows Task Manager
is experiencing a hang.
How to implement a custom autocomplete search component
ype="autocomplete" autocompletesearch="history"/> the type="autocomplete" turns on the autocomplete mechanism and the autocompletesearch="history" sets the source for the autocomplete.
Integrated Authentication
engage in spnego authentication with the browser.
DownloadSource
a downloadsource object represents the source of a download, for example a document or an uri.
Downloads.jsm
ties ); parameters aproperties provides the initial properties for the newly created download.
NetUtil.jsm
o the callback.
Services.jsm
up application startup service storage mozistorageservice storage api service strings nsistringbundleservice string bundle service sysinfo nsipropertybag2 system info service telemetry nsitelemetry telemetry service tm nsithreadmanager thread manager service urifixup nsiurifixup uri fixup service urlformatter nsiurlformatter url formatter service vc nsiversioncomparator version comparator service wm nsiwindowmediator window mediator service ww nsiwindowwatcher window watcher service 1 mobile only 2 windows only 3 main process only 4 child process only ...
XPCOMUtils.jsm
bject during execution of the function.
Localizing extension descriptions
add the following line to it (where extension_id matches your application id from install.rdf and path_to_localization_file is the chrome path to the localization file you added to earlier): pref("extensions.extension_id.description", "path_to_localization_file"); localizable strings the following add-on metadata can be localized using this process: name description creator homepageurl localizable lists in cases where multiple values can exist, a numeric index is appended to the end of the preference name: extensions.extension_id.contributor.1=first_localized_contributor_name extensions.extension_id.contributor.2=second_localized_contributor_name extensions.extension_id.contributor.3=thrid_localized_contributor_name pref("extensions.extension_id.contributor.1", "path_to_lo...
Localizing with Pontoon
cales.
SVN for Localizers
ll always add needed files to your repository or update your files with new strings in english.
Creating localizable web content
e the code to display the video in an overlayed video player on the page instead of linking to a video section in english.
Basics
tretchy='false'>(</mo> <mi>i</mi> <mi>z</mi> <mo stretchy='false'>)</mo> <msup> <mrow> <mo>(</mo> <mo>-</mo> <mi>z</mi> <mo>)</mo> </mrow> <mi>&alpha;</mi> </msup> </mrow> <mrow> <msup> <mi>e</mi> <mrow> <mn>2</mn> <mi>&pi;</mi> <mi>z</mi> </mrow> </msup> <mo>-</mo> <mn>1</mn> </mrow> </mfrac> </mrow> <mi>d</mi> <mi>z</mi> </mrow> </math> css content [class="background"] { background-image: url(http://www.mozilla.org/images/mozilla-banner.gif); opacity: 0.2; position: absolute; left: 0; width: 100%; height: 58px; } ...
MathML Demo: <mfrac> - fractions
se'>(</mo> <mi>i</mi> <mi>z</mi> <mo stretchy='false'>)</mo> <msup> <mrow> <mo>(</mo> <mo>-</mo> <mi>z</mi> <mo>)</mo> </mrow> <mi>&alpha;</mi> </msup> </mrow> <mrow> <msup> <mi>e</mi> <mrow> <mn>2</mn> <mi>&pi;</mi> <mi>z</mi> </mrow> </msup> <mo>-</mo> <mn>1</mn> </mrow> </mfrac> </mrow> <mi>d</mi> <mi>z</mi> </mrow> </math> css content [class="background"] { background-image: url(http://www.mozilla.org/images/mozilla-banner.gif); opacity: 0.2; position: absolute; left: 0; width: 100%; height: 58px; } ...
Investigating leaks using DMD heap scan mode
ddress of the leaking object, usually a window.
Gecko Profiler FAQ
) requires the signal occur on the calling thread, not a random thread.
about:memory
00 mb ── canvas-2d-pixels 5.38 mb ── gfx-surface-xlib 0.00 mb ── gfx-textures 0.00 mb ── gfx-tiles-waste 0 ── ghost-windows 109.22 mb ── heap-allocated 164 ── heap-chunks 1.00 mb ── heap-chunksize 114.51 mb ── heap-committed 164.00 mb ── heap-mapped 4.84% ── heap-overhead-ratio 1 ── host-object-urls 0.00 mb ── imagelib-surface-cache 5.27 mb ── js-main-runtime-temporary-peak 0 ── page-faults-hard 203,349 ── page-faults-soft 274.99 mb ── resident 251.47 mb ── resident-unique 1,103.64 mb ── vsize some measurements of note are as follows.
Preference reference
age" (about:newtab) which offers the most often visited pages for fast navigation.browser.search.context.loadinbackgroundbrowser.search.context.loadinbackground controls whether a search from the context menu with "search <search engine> for <selected text>" opening a new tab will give focus to it and load it in the foreground or keep focus on the current tab and open it in the background.browser.urlbar.formatting.enabledthe preference browser.urlbar.formatting.enabled controls whether the domain name including the top level domain is highlighted in the address bar by coloring it black and the other parts grey.browser.urlbar.trimurlsthe preference browser.urlbar.trimurls controls whether the protocol http and the trailing slash behind domain name (if the open page is exactly the domain name) ...
Preferences system
e window size does not change as the selected panel is changed (e.g.
NSS 3.12.9 release notes
decrypt_cbc_256] bug 444367: nss 3.12 softoken returns the certificate type of a certificate object as ckc_x_509_attr_cert.
Python binding for NSS
e the examples the unit tests are geared towards testing rather than expository illustration.
NSS functions
andshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.11.4 and later ssl_resethandshake mxr 3.2 and later ssl_restarthandshakeaftercertreq mxr 3.2 and later ssl_restarthandshakeafterservercert mxr 3.2 and later ssl_revealcert mxr 3.2 and later ssl_revealpinarg mxr 3.2 and later ssl_revealurl mxr 3.2 and later ssl_securitystatus mxr 3.2 and later ssl_setmaxservercachelocks mxr 3.4 and later ssl_setpkcs11pinarg mxr 3.2 and later ssl_setsockpeerid mxr 3.2 and later ssl_seturl mxr 3.2 and later ssl_shutdownserversessionidcache mxr 3.7.4 and later deprecated ssl functions the followi...
NSS tools : ssltab
and with no options other than hostname:port, the information you get in this way is not very useful.
NSS tools : ssltap
and with no options other than hostname:port, the information you get in this way is not very useful.
NSS tools : vfychain
tool can also create certificate, key, and module security database files.
sslerr.html
"peer user canceled handshake." ssl_error_no_renegotiation_alert -12186 "peer does not permit renegotiation of ssl security parameters." ssl_error_unsupported_extension_alert -12184 "ssl peer does not support requested tls hello extension." ssl_error_certificate_unobtainable_alert -12183 "ssl peer could not obtain your certificate from the supplied url." ssl_error_unrecognized_name_alert -12182 "ssl peer has no certificate for the requested dns name." ssl_error_bad_cert_status_response_alert -12181 "ssl peer was unable to get an ocsp response for its certificate." ssl_error_bad_cert_hash_value_alert -12180 "ssl peer reported bad certificate hash value." unspecified errors that occurred ...
SSL functions
andshake mxr 3.2 and later ssl_rehandshakewithtimeout mxr 3.11.4 and later ssl_resethandshake mxr 3.2 and later ssl_restarthandshakeaftercertreq mxr 3.2 and later ssl_restarthandshakeafterservercert mxr 3.2 and later ssl_revealcert mxr 3.2 and later ssl_revealpinarg mxr 3.2 and later ssl_revealurl mxr 3.2 and later ssl_securitystatus mxr 3.2 and later ssl_setmaxservercachelocks mxr 3.4 and later ssl_setpkcs11pinarg mxr 3.2 and later ssl_setsockpeerid mxr 3.2 and later ssl_seturl mxr 3.2 and later ssl_shutdownserversessionidcache mxr 3.7.4 and later ...
NSS_3.12.3_release_notes.html
ibute is encoded in the wrong way: missing encapsulating octet string bug 480442: remove (empty) watcomfx.h from nss bug 481216: fix specific spelling errors in nss bug 482702: ocsp test with revoked ca cert validated as good.
NSS Tools ssltap
with no options other than hostname:port, the information you get in this way is not very useful.
NSS tools : ssltap
Mozilla › Projects › NSS › tools › ssltap
s other than hostname:port, the information you get in this way is not very useful.
NSS tools : vfychain
les.
Getting SpiderMonkey source code
you can get the spidermonkey source code in gzipped form or directly from the mercurial repository.
Parser API
bstract syntax tree (ast).
SpiderMonkey 31
ver previous spidermonkey releases, with a significantly improved garbage collector and other features.
SpiderMonkey 38
s to improve performance over previous spidermonkey releases, with xxx blah blah blah.
SavedFrame
all stack frames, including the frames from chrome compartments (a -> b -> c).
TPS Pref Lists
a prefs asset list is an array of objects with name and value keys, representing browser preferences.
TPS Tab Lists
following functions: tabs.add - opens the specified tabs in the browser window.
Secure Development Guidelines
lowing snippet of javascript: document.write("welcome to " + document.location); ...
Using the Places annotation service
ese functions and not make up your own uris, because these functions will efficiently default to the default page favicon when it does not exist.
The Publicity Stream API
cification.
Resources
de the gecko networking library ("necko") the netscape portable runtime environment embedding mozilla current module owners xpinstall xul xpcom resources the xpcom project page xulplanet's online xpcom reference information on xpconnect and scriptable components the smart pointer guide xpidl xpidl compiler reference general development resources the world wide web consortium url specification at the w3 gnu make « previous copyright (c) 2003 by doug turner and ian oeschger.
Components.utils.importGlobalProperties
pported: string/object xpcom component atob blob btoa crypto css fetch file nsidomfile indexeddb nodefilter firefox 60 nsidomnodefilter obsolete since gecko 60 rtcidentityprovider textdecoder textencoder url urlsearchparams xmlhttprequest nsixmlhttprequest obsolete since gecko 60 for string/object in table without a minimum firefox version, it is not exactly known since when it was available, however it is guranteed available from firefox 28 and up.
HOWTO
atement, your script will hang (busy wait).
Observer Notifications
spector-treepanel-ready - sent when the inspector's tree panel is opened and initialized.
IAccessibleHyperlink
e anchors would all reference the image object.
imgICache
disposition' 'type' is a nsisupportscstring containing the images' mime type such as 'image/png' 'content-disposition' will be a nsisupportscstring containing the header if you call this before any data has been loaded from a uri, it will succeed, but come back empty.
mozIAsyncHistory
toolkit/components/places/moziasynchistory.idlscriptable this interface allows you to add multiple visits to a single url in a batch.
nsIAccessibleHyperLink
ssible within the parent accessible.
nsIAutoCompleteItem
xpfe/components/autocomplete/public/nsiautocompleteresults.idlscriptable please add a summary to this article.
nsICommandLine
o 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) components may implement the nsicommandlinehandler interface to add custom command line handling behavior.
nsIDOMHTMLSourceElement
a summary to this article.
nsIDOMNSHTMLDocument
de domstring returns "backcompat" if the document is in quirks mode or "css1compat" if the document is in full standards or almost standards mode.
nsIDOMStorageEventObsolete
tribute is "#session", then the session storage has changed.
nsIDragDropHandler
lated to drag and drop.
nsIDroppedLinkHandler
uri, or null if there is no valid link to be dropped.
nsIEditorDocShell
tforuriload); attributes attribute type description editable boolean this docshell is editable.
nsIExternalHelperAppService
ot data whose filename has the specified extension should be decoded from the specified encoding type before being saved or delivered to helper applications.
nsIFeed
g2 the cloud element on a feed is used to identify the api endpoint of an rsscloud ping server, which distributes notifications of changes to this feed.
nsIMIMEInputStream
of the nsimimeinputstream also is used as an nsiseekablestream.
nsIMsgCompFields
.
nsIMsgFilterList
terlist::arbitraryheaders shoulddownloadallheaders readonly attribute boolean nsimsgfilterlist::shoulddownloadallheaders filtercount readonly attribute unsigned long nsimsgfilterlist::filtercount loggingenabled attribute boolean nsimsgfilterlist::loggingenabled defaultfile attribute nsilocalfile nsimsgfilterlist::defaultfile logstream attribute nsioutputstream nsimsgfilterlist::logstream logurl readonly attribute acstring nsimsgfilterlist::logurl methods getfilterat() nsimsgfilter nsimsgfilterlist::getfilterat (in unsigned long filterindex ) getfilternamed() nsimsgfilter nsimsgfilterlist::getfilternamed (in astring filtername) setfilterat() nsimsgfilter nsimsgfilterlist::setfilterat ( in unsigned long filterindex, in nsimsgfilter filter ) removefilter()...
nsINavBookmarkObserver
aparentguid the unique id associated with the item's parent.
nsINavHistoryQueryOptions
do anything if excludequeries is set.
nsIPrincipal
caps/nsiprincipal.idlscriptable provides the interface to a principal, which represents a security context.
nsIProtocolHandler
null, aspec must specify an absolute uri.
nsIProtocolProxyService
oxies will be removed from the list.
nsIScriptableIO
riptor.
nsITraceableChannel
he browser tab that made the request) with your own implementation (see "implementing nsistreamlistener" below).
nsIURIFixup
ernate uri from the input uri, for example to turn foo into www.foo.com.
nsIURIFixupInfo
upports consumer that asked for the fixed up uri.
nsIXULTemplateQueryProcessor
ariable may be specified in a similar way using the "member" attribute, or it may be specified in the first <action> body in the template as the value of a uri attribute on an element.
Using nsIPasswordManager
orage of sensitive password information.
LDAP Support
zipcode postalcode workzipcode zip workcountry countryname jobtitle title department ou department orgunit department department department departmentnumber company o company company workcountry countryname _aimscreenname nscpaimscreenname webpage1 workurl webpage2 homeurl birthyear birthyear custom1 custom1 custom2 custom2 custom3 custom3 custom4 custom4 notes notes notes description prefermailformat xmozillausehtmlmail lastmodifieddate modifytimestamp custom ldap attributes thunderbird supports custom ldap attributes for...
Add New Tab
var aurl = "chrome://myext/mytab.xul"; let tabmail = getmail3pane().document.getelementbyid("tabmail"); tabmail.opentab("chrometab", { chromepage: aurl }); ...
Add Toolbar Button
tion/x-javascript" src="overlay.js" /> <toolbarpalette id="mailtoolbarpalette"> <toolbarbutton id="demo-button" class="demo-button toolbarbutton-1" label="demo" type="button" oncommand="demo.load();" /> </toolbarpalette> </overlay> add this to the css file you referenced in your xul file: #demo-button, [place="palette"] > #demo-button { list-style-image: url("chrome://demo/skin/icon.png") !important; } ...
Virtualenv
riable, virtual_env, that points to the path of the virtualenv, as well as a deactivate function for deactivating the virtualenv.
Zombie compartments
(http://www.facebook.com/plugins/like.php?...) compartment(https://plusone.google.com/_/+1/fastbutton?...) compartment(http://platform.twitter.com/widgets/...utton.html?...) compartment(http://cdn.at.atwola.com/_media/uac/tcode3.html) compartment(https://s-static.ak.fbcdn.net/connec..._proxy.php?...) compartment(http://ads.tw.adsonar.com/adserving/getads.jsp?...) (some of those compartment urls are long and have been truncated.) another thing to beware is each compartment is created for an origin (e.g.
ctypes.open
ix.so then it is converted to a file uri like this: components.utils.import("resource://gre/modules/services.jsm"); var cr = components.classes['@mozilla.org/chrome/chrome-registry;1'].getservice(components.interfaces.nsichromeregistry); var chromeuri_mylib = services.io.newuri('chrome://youraddon/content/mysubfolder/mycfunctionsforunix.so', 'utf-8', null); var localfile_mylib = cr.convertchromeurl(chromeuri_mylib); var jarpath_mylib = localfile_mylib.spec; // "jar:file:///c:/users/vayeate/appdata/roaming/mozilla/firefox/profiles/aecgxse.unnamed%20profile%201/extensions/youraddon@jetpack.xpi!/mysubfolder/mycfunctionsforunix.so" var filepath_mylib = localfilemylib.path; // "file:///c:/users/vayeate/appdata/roaming/mozilla/firefox/profiles/aecgxse.unnamed%20profile%201/extensions/youraddon@je...
Plugins
t the roadmap for adobe flash and other plugin support in firefox.
Preferences System
e window size does not change as the selected panel is changed (e.g.
Accessibility Inspector - Firefox Developer Tools
ed above.
Debugging service workers - Firefox Developer Tools
stepping through your code to pinpoint exactly where it is going wrong.
Tutorial: Show Allocations Per Call Path - Firefox Developer Tools
tutorial: show allocations per call path this page shows how to use the debugger api to show how many objects a web page allocates, sorted by the function call path that allocated them.
Tutorial: Set a breakpoint - Firefox Developer Tools
e this: you can also click on the text that says “or me!”, to see report called from a different handler.
JSON viewer - Firefox Developer Tools
viewer is enabled by default only in firefox developer edition and firefox nightly.
Network monitor toolbar - Firefox Developer Tools
the network monitor provides two toolbar areas, one above the main section, and another below.
View background images - Firefox Developer Tools
in the rules view, you can see a preview of images specified using background-image.
Settings - Firefox Developer Tools
lt: a dark theme: common preferences settings that apply to more than one tool.
Cache Storage - Firefox Developer Tools
under the cache storage type within the storage inspector you can see the contents of any dom caches created using the cache api.
Validators - Firefox Developer Tools
checker this tool will check links on a given web page.
View Source - Firefox Developer Tools
also highlights parsing errors in red.
about:debugging (before Firefox 68) - Firefox Developer Tools
the about:debugging page provides a single place from which you can attach the firefox developer tools to a number of debugging targets.
AbortController.AbortController() - Web APIs
cond event listener.
AbortController.abort() - Web APIs
cond event listener.
AbortController.signal - Web APIs
cond event listener.
AbortController - Web APIs
cond event listener.
AbortSignal - Web APIs
cond event listener.
AudioTrack.id - Web APIs
Web › API › AudioTrack › id
the id property contains a string which uniquely identifies the track represented by the audiotrack.
AudioTrack - Web APIs
es enabled a boolean value which controls whether or not the audio track's sound is enabled.
Bluetooth - Web APIs
Web › API › Bluetooth
options = {}); }; bluetooth includes bluetoothdeviceeventhandlers; bluetooth includes characteristiceventhandlers; bluetooth includes serviceeventhandlers; properties inherits properties from its parent eventtarget.
Body.body - Web APIs
Web › API › Body › body
// when no more data needs to be consumed, close the stream if (done) { controller.close(); return; } // enqueue the next data chunk into our target stream controller.enqueue(value); return pump(); }); } } }) }) .then(stream => new response(stream)) .then(response => response.blob()) .then(blob => url.createobjecturl(blob)) .then(url => console.log(image.src = url)) .catch(err => console.error(err)); specifications specification status comment fetchthe definition of 'body' in that specification.
CSSRule - Web APIs
Web › API › CSSRule
ommon to all rules, while properties unique to specific rule types are specified in the more specialized interfaces for those rules' respective types.
CanvasRenderingContext2D.font - Web APIs
amily.
Manipulating video using canvas - Web APIs
ffects to the video being displayed.
Clients.get() - Web APIs
Web › API › Clients › get
t matching a given id and returns it in a promise.
Clients.matchAll() - Web APIs
Web › API › Clients › matchAll
"window", "worker", "sharedworker", and "all".
CrashReportBody - Web APIs
om: the browser ran out of memory.
CustomElementRegistry.define() - Web APIs
bute('class','wrapper'); var icon = document.createelement('span'); icon.setattribute('class','icon'); icon.setattribute('tabindex', 0); var info = document.createelement('span'); info.setattribute('class','info'); // take attribute content and put it inside the info span var text = this.getattribute('text'); info.textcontent = text; // insert icon var imgurl; if(this.hasattribute('img')) { imgurl = this.getattribute('img'); } else { imgurl = 'img/default.png'; } var img = document.createelement('img'); img.src = imgurl; icon.appendchild(img); // create some css to apply to the shadow dom var style = document.createelement('style'); style.textcontent = '.wrapper {' + 'positio...
DOMParser - Web APIs
Web › API › DOMParser
the domparser interface provides the ability to parse xml or html source code from a string into a dom document.
Document Object Model (DOM) - Web APIs
tfragment documenttype domerror domexception domimplementation domstring domtimestamp domstringlist domtokenlist element event eventtarget htmlcollection mutationobserver mutationrecord namednodemap node nodefilter nodeiterator nodelist nondocumenttypechildnode parentnode processinginstruction selection range text textdecoder textencoder timeranges treewalker url window worker xmldocument obsolete dom interfaces the document object model has been highly simplified.
FeaturePolicy.allowsFeature() - Web APIs
.
FetchEvent.preloadResponse - Web APIs
r expectedresponse = fetchevent.preloadresponse; value a promise that resolves to a response or otherwise to undefined.
FileReader: abort event - Web APIs
t); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = fileinput.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } reader.abort(); } fileinput.addeventlistener('change', handleselected); result specifications specification status file api working draft ...
FileReader: error event - Web APIs
nction handleselected(e) { const selectedfile = fileinput.files[0]; if (selectedfile) { reader.addeventlistener('error', () => { console.error(`error occurred reading file: ${selectedfile.name}`); }); reader.addeventlistener('load', () => { console.error(`file: ${selectedfile.name} read successfully`); }); reader.readasdataurl(selectedfile); } } fileinput.addeventlistener('change', handleselected); specifications specification status file api working draft ...
FileReader: load event - Web APIs
t); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = fileinput.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } fileinput.addeventlistener('change', handleselected); result specifications specification status file api working draft ...
FileReader: loadend event - Web APIs
t); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = fileinput.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } fileinput.addeventlistener('change', handleselected); result specifications specification status file api working draft ...
FileReader: loadstart event - Web APIs
t); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = fileinput.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } fileinput.addeventlistener('change', handleselected); result specifications specification status file api working draft ...
FileReader.onload - Web APIs
Web › API › FileReader › onload
the filereader.onload property contains an event handler executed when the load event is fired, when content read with readasarraybuffer, readasbinarystring, readasdataurl or readastext is available.
FileReader: progress event - Web APIs
t); reader.addeventlistener('loadend', handleevent); reader.addeventlistener('progress', handleevent); reader.addeventlistener('error', handleevent); reader.addeventlistener('abort', handleevent); } function handleselected(e) { eventlog.textcontent = ''; const selectedfile = fileinput.files[0]; if (selectedfile) { addlisteners(reader); reader.readasdataurl(selectedfile); } } fileinput.addeventlistener('change', handleselected); result specifications specification status file api working draft ...
FileReaderSync.readAsArrayBuffer() - Web APIs
blematic situation is detected: the resource has been modified by a third party; too many read are performed simultaneously; the file pointed by the resource is unsafe for a use from the web (like it is a system file).
FileReaderSync.readAsBinaryString() - Web APIs
blematic situation is detected: the resource has been modified by a third party; too many read are performed simultaneously; the file pointed by the resource is unsafe for a use from the web (like it is a system file).
FileReaderSync.readAsText() - Web APIs
blematic situation is detected: the resource has been modified by a third party; too many read are performed simultaneously; the file pointed by the resource is unsafe for a use from the web (like it is a system file).
FontFace.family - Web APIs
Web › API › FontFace › family
the fontface.family property allows the author to get or set the font family of a fontface object.
FormData - Web APIs
Web › API › FormData
the formdata interface provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the xmlhttprequest.send() method.
Using the Geolocation API - Web APIs
error has been returned, and a human-readable message that describes what the error code means.
Geolocation API - Web APIs
all other functionality can be accessed.
HTMLAnchorElement.referrerPolicy - Web APIs
referrerpolicy attribute of the <a> element defining which referrer is sent when fetching the resource.
HTMLAreaElement.referrerPolicy - Web APIs
l referrerpolicy attribute of the <area> element defining which referrer is sent when fetching the resource.
HTMLAudioElement - Web APIs
"211" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlaudioelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} constructor audio() creates and returns a new htmlaudioelement object, optionally starting the process of loading an audio file into it if the file url is given.
HTMLElement.lang - Web APIs
Web › API › HTMLElement › lang
the value of lang elementnodereference.lang = newlanguage; // set new value for lang languageused is a string variable that gets the language in which the text of the current element is written.
HTMLFormElement - Web APIs
var info = properties.map(function(property) { return property + ": " + f[property] }).join("\n"); // set the form's <textarea> to display the form's properties document.forms["forma"].elements['form-info'].value = info; // document.forms["forma"]['form-info'].value would also work } function setforminfo(f){ // argument should be a form element reference.
HTMLHyperlinkElementUtils.host - Web APIs
the htmlhyperlinkelementutils.host property is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', and the port of the url.
HTMLHyperlinkElementUtils.hostname - Web APIs
the htmlhyperlinkelementutils.hostname property is a usvstring containing the domain of the url.
HTMLHyperlinkElementUtils.href - Web APIs
the htmlhyperlinkelementutils.href property is a stringifier that returns a usvstring containing the whole url, and allows the href to be updated.
HTMLHyperlinkElementUtils.origin - Web APIs
the htmlhyperlinkelementutils.origin read-only property is a usvstring containing the unicode serialization of the origin of the represented url; that is: for url using the http or https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url using file: scheme, the value is browser dependant; for url using the blob: scheme, the origin of the url following blob:.
HTMLHyperlinkElementUtils.pathname - Web APIs
the htmlhyperlinkelementutils.pathname property is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
HTMLHyperlinkElementUtils.protocol - Web APIs
the htmlhyperlinkelementutils.protocol property is a usvstring representing the protocol scheme of the url, including the final ':'.
HTMLHyperlinkElementUtils.toString() - Web APIs
the htmlhyperlinkelementutils.tostring() stringifier method returns a usvstring containing the whole url.
HTMLIFrameElement.src - Web APIs
ameelement.src property reflects the html referrerpolicy attribute of the <iframe> element defining which referrer is sent when fetching the resource.
HTMLImageElement.decode() - Web APIs
eption indicating that an error occurred while decoding the image.
HTMLImageElement.isMap - Web APIs
s true if the image is being used for a server-side image map; otherwise, the value is false.
HTMLImageElement.referrerPolicy - Web APIs
ferrer is sent when fetching the resource.
HTMLInputElement.setSelectionRange() - Web APIs
e, that the selection was set by the user clicking and dragging from the end of the selected text toward the beginning.
HTMLLinkElement.rel - Web APIs
the htmllinkelement.rel property reflects the rel attribute.
HTMLOrForeignElement.nonce - Web APIs
|| script.getattribute('nonce'); however, recent browsers version hide nonce values that are accessed this way (an empty string will be returned).
HTMLQuoteElement - Web APIs
"411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlquoteelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its parent, htmlelement.
HTMLTextAreaElement - Web APIs
o behave like a link: .intlink { cursor: pointer; text-decoration: underline; color: #0000ff; } html: <form name="myform"> <p>[&nbsp;<span class="intlink" onclick="insertmetachars('&lt;strong&gt;','&lt;\/strong&gt;');"><strong>bold</strong></span> | <span class="intlink" onclick="insertmetachars('&lt;em&gt;','&lt;\/em&gt;');"><em>italic</em></span> | <span class="intlink" onclick="var newurl=prompt('enter the full url for the link');if(newurl){insertmetachars('&lt;a href=\u0022'+newurl+'\u0022&gt;','&lt;\/a&gt;');}else{document.myform.mytxtarea.focus();}">url</span> | <span class="intlink" onclick="insertmetachars('\n&lt;code&gt;\n','\n&lt;\/code&gt;\n');">code</span> | <span class="intlink" onclick="insertmetachars(' :-)');">smile</span> | etc.
HTML Drag and Drop API - Web APIs
ata, see drag data.
Basic concepts - Web APIs
he wikipedia article on object database.
Browser storage limits and eviction criteria - Web APIs
default data storage repository note: after introducing storage api, the "permanent" folder can be considered obsolete; the "permanent" folder only stores indexeddb persistent-type databases.
install - Web APIs
ions to pass to a single install.
InstallTrigger - Web APIs
the client version registry for the specified component.
Location: host - Web APIs
Web › API › Location › host
the host property of the location interface is a usvstring containing the host, that is the hostname, and then, if the port of the url is nonempty, a ':', and the port of the url.
Location: hostname - Web APIs
Web › API › Location › hostname
the hostname property of the location interface is a usvstring containing the domain of the url.
Location: origin - Web APIs
Web › API › Location › origin
the origin read-only property of the location interface is a usvstring containing the unicode serialization of the origin of the represented url; that is: for url using the http or https, the scheme followed by '://', followed by the domain, followed by ':', followed by the port (the default port, 80 and 443 respectively, if explicitely specified); for url using file: scheme, the value is browser dependant; for url using the blob: scheme, the origin of the url following blob:.
Location: pathname - Web APIs
Web › API › Location › pathname
the pathname property of the location interface is a usvstring containing an initial '/' followed by the path of the url (or the empty string if there is no path).
Location: protocol - Web APIs
Web › API › Location › protocol
the protocol property of the location interface is a usvstring representing the protocol scheme of the url, including the final ':'.
Location: reload() - Web APIs
Web › API › Location › reload
the location.reload() method reloads the current url, like the refresh button.
Location: toString() - Web APIs
Web › API › Location › toString
the tostring() stringifier method of the location interface returns a usvstring containing the whole url.
MediaImage - Web APIs
the media session api's mediaimage dictionary describes the images associated with the media resource mediametadata.
MediaRecorder - Web APIs
''); deletebutton.innerhtml = "delete"; cliplabel.innerhtml = clipname; clipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); audio.controls = true; var blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; var audiourl = url.createobjecturl(blob); audio.src = audiourl; console.log("recorder stopped"); deletebutton.onclick = function(e) { evttgt = e.target; evttgt.parentnode.parentnode.removechild(evttgt.parentnode); } } mediarecorder.ondataavailable = function(e) { chunks.push(e.data); } }) .catch(function(err) { console.log('the following erro...
MediaSource.activeSourceBuffers - Web APIs
aining the sourcebuffer objects for each of the active tracks.
MediaSource.duration - Web APIs
ted (i.e.
MediaSource.sourceBuffers - Web APIs
ffers = mediasource.sourcebuffers; value a sourcebufferlist.
Media Capture and Streams API (Media Stream) - Web APIs
need to know about each of the interfaces that make up the media capture and streams api.
Microsoft API extensions - Web APIs
ssetvideorectangle msstereo3dpackingmode msstereo3drendermode onmsvideoformatchanged onmsvideoframestepcompleted onmsvideooptimallayoutchanged msfirstpaint pinned sites apis mssitemodeevent mssitemodejumplistitemremoved msthumbnailclick other apis x-ms-aria-flowfrom x-ms-acceleratorkey x-ms-format-detection mscaching mscachingenabled mscapslockwarningoff event.msconverturl() mselementresize document.mselementsfromrect() msisstatichtml navigator.mslaunchuri() mslaunchuricallback element.msmatchesselector() msprotocols msputpropertyenabled mswriteprofilermark ...
msPlayToPreferredSourceUri - Web APIs
ts the path to the preferred media source.
Navigator.msLaunchUri() - Web APIs
as an email client, that handles a given protocol.
Node - Web APIs
Web › API › Node
30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">node</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties in addition to the properties below, node inherits properties from its parent, eventtarget.
Notification.icon - Web APIs
Web › API › Notification › icon
note: this feature is available in web workers.
Notification.image - Web APIs
note: this feature is available in web workers.
NotificationAction - Web APIs
cation.
NotificationEvent.notification - Web APIs
tion tag:', event.notification.tag); console.log('notification data:', event.notification.data); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment notifications apithe definition of 'notification' in that specification.
NotificationEvent - Web APIs
icationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment notifications apithe definition of 'notificationevent' in that specification.
PaintWorklet - Web APIs
trates loading the above worklet from its js file and does so by feature detection.
PaymentMethodChangeEvent.methodName - Web APIs
payment handler may support multiple payment methods; changes to the payment method within the payment handler are described by the paymentmethodchangeevent.
PerformanceEventTiming - Web APIs
d cases where the visibility state changes before this code runs.
PerformanceNavigation.type - Web APIs
rmancenavigationtiming interface instead.
PerformanceNavigation - Web APIs
g the performance.navigation read-only attribute.
PerformanceNavigationTiming.type - Web APIs
the type read-only property returns a string representing the type of navigation.
PerformanceResourceTiming - Web APIs
g></div> a:hover text { fill: #0095dd; pointer-events: all;} note: this feature is available in web workers.
PublicKeyCredential.rawId - Web APIs
the rawid read-only property of the publickeycredential interface is an arraybuffer object containing the identifier of the credentials.
PublicKeyCredential - Web APIs
d federatedcredential.
PublicKeyCredentialCreationOptions.rp - Web APIs
the rp property of the publickeycredentialcreationoptions dictionary is an object describing the relying party which requested the credential creation (via navigator.credentials.create()).
PublicKeyCredentialCreationOptions.user - Web APIs
cribing the user account for which the credentials are generated (via navigator.credentials.create()).
PushManager.getSubscription() - Web APIs
ages.
PushManager.registrations() - Web APIs
point registrations.
PushManager.unregister() - Web APIs
pushendpoint to be unregistered.
PushManager - Web APIs
the pushmanager interface of the push api provides a way to receive notifications from third-party servers as well as request urls for push notifications.
PushSubscription.endpoint - Web APIs
the endpoint read-only property of the pushsubscription interface returns a usvstring containing the endpoint associated with the push subscription.
PushSubscription - Web APIs
the pushsubscription interface of the push api provides a subcription's url endpoint and allows unsubscription from a push service.
RTCConfiguration.bundlePolicy - Web APIs
e.
RTCConfiguration.iceTransportPolicy - Web APIs
iving the user's ip addresses, which may be important in some security situations.
RTCIceCandidate.address - Web APIs
pplications being built with user privacy and security in mind can choose to limit the permitted candidates to relay candidates only.
RTCIceServer.credential - Web APIs
}; var credential = iceserver.credential; iceserver.credential = newcredential; example this example creates a new rtcpeerconnection which uses a turn server at turnserver.example.org to negotiate connections.
RTCIceServer.credentialType - Web APIs
equires a username and password to authenticate prior to using the described ice server.
RTCIceServer.username - Web APIs
}; var username = iceserver.username; iceserver.username = newusername; example this example creates a new rtcpeerconnection which will use a turn server at turnserver.example.org to negotiate connections.
RTCPeerConnection.setIdentityProvider() - Web APIs
tate is set to "closed", an invalidstateerror is raised.
RTCPeerConnectionIceErrorEvent.address - Web APIs
describing the local network interface for the connection as well as the ice server that was being used to try to open the connection, then calls a function to display those as well as the event's errortext property's contents.
RTCStatsReport - Web APIs
rovides statistics about a specific rtcrtpreceiver.
RTCStatsType - Web APIs
rovides statistics about a specific rtcrtpreceiver.
Request.context - Web APIs
Web › API › Request › context
the deprecated context read-only property of the request interface contains the context of the request (e.g., audio, image, iframe).
Request.credentials - Web APIs
rom the other domain in the case of cross-origin requests.
Request.referrer - Web APIs
Web › API › Request › referrer
the referrer read-only property of the request interface is set by the user agent to be the referrer of the request.
Response() - Web APIs
Web › API › Response › Response
the response() constructor creates a new response object.
SVGAElement - Web APIs
nts properties from svgurireference and htmlhyperlinkelementutils.
SecurityPolicyViolationEvent - Web APIs
typolicyviolationevent.linenumberread only the line number in the document or worker at which the violation occurred.
ServiceWorker.state - Web APIs
the state read-only property of the serviceworker interface returns a string representing the current state of the service worker.
ServiceWorkerGlobalScope.onfetch - Web APIs
if no match is found, the code fetches a response from the network.
ServiceWorkerGlobalScope.onnotificationclick - Web APIs
icationclick = function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }; specifications specification status comment notifications apithe definition of 'onnotificationclick' in that specification.
ServiceWorkerGlobalScope - Web APIs
if no match is found, the code fetches a response from the network.
ServiceWorkerRegistration.active - Web APIs
the active property of the serviceworkerregistration interface returns a service worker whose serviceworker.state is activated.
ServiceWorkerRegistration.update() - Web APIs
the update() method of the serviceworkerregistration interface attempts to update the service worker.
ServiceWorkerRegistration - Web APIs
a service worker whose state is installing.
SharedWorker - Web APIs
workers.
SpeechSynthesisVoice.voiceURI - Web APIs
the voiceuri read-only property of the speechsynthesisvoice interface returns the type of uri and location of the speech synthesis service for this voice.
ValidityState - Web APIs
only a boolean that is true if the value fails to meet the specified minlength for htmlinputelement or htmltextareaelement objects, or false if its length is greater than or equal to the minimum length.
VideoTrack.id - Web APIs
Web › API › VideoTrack › id
the id property contains a string which uniquely identifies the track represented by the videotrack.
VideoTrack - Web APIs
ack can be active at any given time, so setting this property to true for one track while another track is active will make that other track inactive.
Establishing a connection: The WebRTC perfect negotiation pattern - Web APIs
oth peers involved in the connection.
Improving compatibility using WebRTC adapter.js - Web APIs
ter is provided under a bsd-style license.
Movement, orientation, and motion: A WebXR example - Web APIs
initializes the buffers that contain data to be passed into webgl.
Starting up and shutting down a WebXR session - Web APIs
rtly here on mdn.
Background audio processing using AudioWorklet - Web APIs
estinations (either other nodes or to the audiocontext object's destination property.
Window.external - Web APIs
Web › API › Window › external
he window api returns an instance of the external interface, which was intended to contain functions related to adding external search providers to the browser.
Window.frameElement - Web APIs
point, including <object>, <iframe>, or <embed>.
Window.getComputedStyle() - Web APIs
e between pre- and post-layout values includes the resolution of percentages for width or height, as those will be replaced by their pixel equivalent only for used values.
Window: hashchange event - Web APIs
the hashchange event is fired when the fragment identifier of the url has changed (the part of the url beginning with and following the # symbol).
Window.resizeBy() - Web APIs
Web › API › Window › resizeBy
he default size of a window in a browser if the window wasn’t created by window.open(), or contains more than one tab.
Window.sessionStorage - Web APIs
ata in localstorage doesn't expire, data in sessionstorage is cleared when the page session ends.
Window.showModalDialog() - Web APIs
e has been removed.
WindowClient.focus() - Web APIs
icationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) return client.focus(); } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe definition of 'focus()' in that specification.
WindowClient.focused - Web APIs
icationclick', function(event) { console.log('on notification click: ', event.notification.tag); event.notification.close(); // this looks to see if the current is already open and // focuses if it is event.waituntil(clients.matchall({ type: "window" }).then(function(clientlist) { for (var i = 0; i < clientlist.length; i++) { var client = clientlist[i]; if (client.url == '/' && 'focus' in client) { if(!client.focused) return client.focus(); } } } if (clients.openwindow) return clients.openwindow('/'); })); }); specifications specification status comment service workersthe definition of 'windowclient: focused' in that specification.
WindowClient.visibilityState - Web APIs
the current client.
WindowOrWorkerGlobalScope.origin - Web APIs
syntax var myorigin = self.origin; // or just origin value a usvstring.
WindowOrWorkerGlobalScope.setTimeout() - Web APIs
t background tabs are no longer throttled if an audiocontext is present in the tab at all, even if no sound is being played.
WorkerGlobalScope.importScripts() - Web APIs
the importscripts() method of the workerglobalscope interface synchronously imports one or more scripts into the worker's scope.
Worklet - Web APIs
Web › API › Worklet
g the positioning and dimensions of custom elements.
How to check the security state of an XMLHTTPRequest over SSL - Web APIs
"\n"); dump("\torganisation = " + cert.organization + "\n"); dump("\tsha1 fingerprint = " + cert.sha1fingerprint + "\n"); var validity = cert.validity.queryinterface(ci.nsix509certvalidity); dump("\tvalid from " + validity.notbeforegmt + "\n"); dump("\tvalid until " + validity.notaftergmt + "\n"); } } catch(err) { alert(err); } } function test(url) { var req = cc["@mozilla.org/xmlextras/xmlhttprequest;1"].createinstance(); req.open('get', url, true); req.addeventlistener("error", function(e) { var error = createtcperrorfromfailedxhr(req); dumpsecurityinfo(req, error); }, false); req.onload = function(e) { dumpsecurityinfo(req); }; req.send(); } then test("https://addons.mozilla.org"); produced t...
XMLHttpRequest: abort event - Web APIs
tent + `${e.type}: ${e.loaded} bytes transferred\n`; } function addlisteners(xhr) { xhr.addeventlistener('loadstart', handleevent); xhr.addeventlistener('load', handleevent); xhr.addeventlistener('loadend', handleevent); xhr.addeventlistener('progress', handleevent); xhr.addeventlistener('error', handleevent); xhr.addeventlistener('abort', handleevent); } function runxhr(url) { log.textcontent = ''; const xhr = new xmlhttprequest(); addlisteners(xhr); xhr.open("get", url); xhr.send(); return xhr; } xhrbuttonsuccess.addeventlistener('click', () => { runxhr('https://mdn.mozillademos.org/files/16553/dgszyjnxcaipwzy.jpg'); }); xhrbuttonerror.addeventlistener('click', () => { runxhr('https://somewhere.org/i-dont-exist'); }); xhrbuttonab...
XMLHttpRequest: error event - Web APIs
tent + `${e.type}: ${e.loaded} bytes transferred\n`; } function addlisteners(xhr) { xhr.addeventlistener('loadstart', handleevent); xhr.addeventlistener('load', handleevent); xhr.addeventlistener('loadend', handleevent); xhr.addeventlistener('progress', handleevent); xhr.addeventlistener('error', handleevent); xhr.addeventlistener('abort', handleevent); } function runxhr(url) { log.textcontent = ''; const xhr = new xmlhttprequest(); addlisteners(xhr); xhr.open("get", url); xhr.send(); return xhr; } xhrbuttonsuccess.addeventlistener('click', () => { runxhr('https://mdn.mozillademos.org/files/16553/dgszyjnxcaipwzy.jpg'); }); xhrbuttonerror.addeventlistener('click', () => { runxhr('https://somewhere.org/i-dont-exist'); }); xhrbuttonab...
XMLHttpRequest: load event - Web APIs
tent + `${e.type}: ${e.loaded} bytes transferred\n`; } function addlisteners(xhr) { xhr.addeventlistener('loadstart', handleevent); xhr.addeventlistener('load', handleevent); xhr.addeventlistener('loadend', handleevent); xhr.addeventlistener('progress', handleevent); xhr.addeventlistener('error', handleevent); xhr.addeventlistener('abort', handleevent); } function runxhr(url) { log.textcontent = ''; const xhr = new xmlhttprequest(); addlisteners(xhr); xhr.open("get", url); xhr.send(); return xhr; } xhrbuttonsuccess.addeventlistener('click', () => { runxhr('https://mdn.mozillademos.org/files/16553/dgszyjnxcaipwzy.jpg'); }); xhrbuttonerror.addeventlistener('click', () => { runxhr('https://somewhere.org/i-dont-exist'); }); xhrbuttonab...
XMLHttpRequest: loadend event - Web APIs
tent + `${e.type}: ${e.loaded} bytes transferred\n`; } function addlisteners(xhr) { xhr.addeventlistener('loadstart', handleevent); xhr.addeventlistener('load', handleevent); xhr.addeventlistener('loadend', handleevent); xhr.addeventlistener('progress', handleevent); xhr.addeventlistener('error', handleevent); xhr.addeventlistener('abort', handleevent); } function runxhr(url) { log.textcontent = ''; const xhr = new xmlhttprequest(); addlisteners(xhr); xhr.open("get", url); xhr.send(); return xhr; } xhrbuttonsuccess.addeventlistener('click', () => { runxhr('https://mdn.mozillademos.org/files/16553/dgszyjnxcaipwzy.jpg'); }); xhrbuttonerror.addeventlistener('click', () => { runxhr('https://somewhere.org/i-dont-exist'); }); xhrbuttonab...
XMLHttpRequest: loadstart event - Web APIs
tent + `${e.type}: ${e.loaded} bytes transferred\n`; } function addlisteners(xhr) { xhr.addeventlistener('loadstart', handleevent); xhr.addeventlistener('load', handleevent); xhr.addeventlistener('loadend', handleevent); xhr.addeventlistener('progress', handleevent); xhr.addeventlistener('error', handleevent); xhr.addeventlistener('abort', handleevent); } function runxhr(url) { log.textcontent = ''; const xhr = new xmlhttprequest(); addlisteners(xhr); xhr.open("get", url); xhr.send(); return xhr; } xhrbuttonsuccess.addeventlistener('click', () => { runxhr('https://mdn.mozillademos.org/files/16553/dgszyjnxcaipwzy.jpg'); }); xhrbuttonerror.addeventlistener('click', () => { runxhr('https://somewhere.org/i-dont-exist'); }); xhrbuttonab...
XMLHttpRequest.overrideMimeType() - Web APIs
er, xmlhttprequest assumes that the mime type is "text/xml".
XMLHttpRequest: progress event - Web APIs
tent + `${e.type}: ${e.loaded} bytes transferred\n`; } function addlisteners(xhr) { xhr.addeventlistener('loadstart', handleevent); xhr.addeventlistener('load', handleevent); xhr.addeventlistener('loadend', handleevent); xhr.addeventlistener('progress', handleevent); xhr.addeventlistener('error', handleevent); xhr.addeventlistener('abort', handleevent); } function runxhr(url) { log.textcontent = ''; const xhr = new xmlhttprequest(); addlisteners(xhr); xhr.open("get", url); xhr.send(); return xhr; } xhrbuttonsuccess.addeventlistener('click', () => { runxhr('https://mdn.mozillademos.org/files/16553/dgszyjnxcaipwzy.jpg'); }); xhrbuttonerror.addeventlistener('click', () => { runxhr('https://somewhere.org/i-dont-exist'); }); xhrbuttonab...
XMLHttpRequest.responseXML - Web APIs
or if the data can't be parsed as xml or html.
XRInputSourceArray.length - Web APIs
the array.
ARIA Test Cases - Accessibility
- n/a - - zoom (leopard) pass n/a pass pass zoomtext - - - - orca - - - - listbox and option dojo nightly build single select listbox using aria-activedescendant listbox in an iframe -- this is an important case as it's an example of how a mashup widget can be built (the widget source simply comes from another url, and is tied in using an iframe) yui "carousel" listbox -- a more advanced test case expected at behavior: (mz) screen reader should announce the label and role of the listbox when it gains focus.
-webkit-mask-attachment - CSS: Cascading Style Sheets
xed is specified, the mask image does not scroll with its containing element, instead remaining stationary within the viewport.
-webkit-mask-position-x - CSS: Cascading Style Sheets
definition initial value0%applies toall elementsinheritednopercentagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete formal syntax [ <length-percentage> | left | center | right ]#where <length-percentage> = <length> | <percentage> examples horizontally positioning a mask image .exampleone { -webkit-mask-image: url(mask.png); -webkit-mask-position-x: right; } .exampletwo { -webkit-mask-image: url(mask.png); -webkit-mask-position-x: 25%; } specifications not part of any standard.
-webkit-mask-position-y - CSS: Cascading Style Sheets
l definition initial value0%applies toall elementsinheritednopercentagesrefer to the size of the box itselfcomputed valuefor <length> the absolute value, otherwise a percentageanimation typediscrete formal syntax [ <length-percentage> | top | center | bottom ]#where <length-percentage> = <length> | <percentage> examples vertically positioning a mask image .exampleone { -webkit-mask-image: url(mask.png); -webkit-mask-position-y: bottom; } .exampletwo { -webkit-mask-image: url(mask.png); -webkit-mask-position-y: 25%; } specifications not part of any standard.
:-moz-loading - CSS: Cascading Style Sheets
because they have not started loading, such as images that haven't started to arrive yet.
:enabled - CSS: Cascading Style Sheets
Web › CSS › :enabled
accept focus.
font-family - CSS: Cascading Style Sheets
ont family'; /* <custom-ident> value */ font-family: examplefont; values <family-name> specifies the name of the font family.
font-stretch - CSS: Cascading Style Sheets
ra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | <percentage> examples setting a percentage range for font-stretch the following find a local open sans font or import it, and allow using the font for normal, semi-condensed and semi-expanded states.
font-variation-settings - CSS: Cascading Style Sheets
ters or contains characters outside the u+20 - u+7e codepoint range, the whole property is invalid.
font-weight - CSS: Cascading Style Sheets
syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[1,1000]> examples setting normal font weight in a @font-face rule the following finds a local open sans font or import it, and allows using the font for normal font weights.
aspect-ratio - CSS: Cascading Style Sheets
iv> css /* minimum aspect ratio */ @media (min-aspect-ratio: 8/5) { div { background: #9af; /* blue */ } } /* maximum aspect ratio */ @media (max-aspect-ratio: 3/2) { div { background: #9ff; /* cyan */ } } /* exact aspect ratio, put it at the bottom to avoid override*/ @media (aspect-ratio: 1/1) { div { background: #f9a; /* red */ } } _example used iframe and dataurl to enable this iframe could resize html <label id="wf" for="w">width:165</label> <input id="w" name="w" type="range" min="100" max="250" step="5" value="165"> <label id="hf" for="w">height:165</label> <input id="h" name="h" type="range" min="100" max="250" step="5" value="165"> <iframe id="outer" src="data:text/html,<style> @media (min-aspect-ratio: 8/5) { div { background: %239af; } } @media ...
display-mode - CSS: Cascading Style Sheets
the display-mode css media feature can be used to test the display mode of an application.
light-level - CSS: Cascading Style Sheets
evel in the ideal range for the screen, and which does not necessitate any particular adjustment.
prefers-reduced-data - CSS: Cascading Style Sheets
2" as="font" media="(prefers-reduced-data: no-preference)" crossorigin> <link rel="stylesheet" href="style.css"> </head> css @media (prefers-reduced-data: no-preference) { @font-face { font-family: montserrat; font-style: normal; font-weight: 400; font-display: swap; /* latin */ src: local('montserrat regular'), local('montserrat-regular'), url('fonts/montserrat-regular.woff2') format('woff2'); unicode-range: u+0000-00ff, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+2000-206f, u+2074, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd; } } body { font-family: montserrat, -apple-system, blinkmacsystemfont, "segoe ui", roboto, helvetica, arial, "microsoft yahei", sans-serif, "apple color emoji", "...
@viewport - CSS: Cascading Style Sheets
Web › CSS › @viewport
e application-available screen area (either the full screen or the screen minus any areas owned by the operating system or other applications).
Using CSS gradients - CSS: Cascading Style Sheets
cyan); } overlaying gradients gradients support transparency, so you can stack multiple backgrounds to achieve some pretty fancy effects.
Overview of CSS Shapes - CSS: Cascading Style Sheets
n image which is never displayed on the page purely as a method of creating a complex shape without needing to carefully map a polygon.
CSS data types - CSS: Cascading Style Sheets
Web › CSS › CSS Types
yle> <custom-ident> <dimension> <filter-function> <flex> <frequency> <frequency-percentage> <gradient> <ident> <image> <integer> <length> <length-percentage> <number> <number-percentage> <percentage> <position> <quote> <ratio> <resolution> <shape-box> <shape-radius> <string> <time> <time-percentage> <timing-function> <toggle-value> <transform-function> <type-or-unit> <url> <url-modifier> <zero> specifications specification status comment css values and units module level 4 editor's draft css values and units module level 3 candidate recommendation initial definition.
CSS reference - CSS: Cascading Style Sheets
Web › CSS › Reference
transformtext-underline-offsettext-underline-position<time><time-percentage><timing-function>top@top-centertouch-actiontransformtransform-box<transform-function>transform-origintransform-styletransitiontransition-delaytransition-durationtransition-propertytransition-timing-functiontranslatetranslate()translate3d()translatex()translatey()translatez()turnuunicode-bidiunicode-range (@font-face)unset<url>url()user-zoom (@viewport)v:validvar()vertical-alignvh@viewportviewport-fit (@viewport)visibility:visitedvmaxvminvwwwhite-spacewidowswidthwidth (@viewport)will-changeword-breakword-spacingword-wrapwriting-modexxzz-indexzoom (@viewport)others--* selectors the following are the various selectors, which allow styles to be conditional based on various features of elements within the dom.
background-blend-mode - CSS: Cascading Style Sheets
ion>lighten</option> <option>color-dodge</option> <option>color-burn</option> <option>hard-light</option> <option>soft-light</option> <option>difference</option> <option>exclusion</option> <option>hue</option> <option>saturation</option> <option>color</option> <option>luminosity</option> </select> #div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'),url('https://mdn.mozillademos.org/files/8545/tr.png'); background-blend-mode: screen; } document.getelementbyid("select").onchange = function(event) { document.getelementbyid("div").style.backgroundblendmode = document.getelementbyid("select").selectedoptions[0].innerhtml; } console.log(document.getelementbyid('div')); specifications ...
background-position-x - CSS: Cascading Style Sheets
ntage>?
background-position-y - CSS: Cascading Style Sheets
ntage>?
border-image-repeat - CSS: Cascading Style Sheets
valuestretchapplies toall elements, except internal table elements when border-collapse is collapse.
border-image-slice - CSS: Cascading Style Sheets
tput id="width-output">30px</output> </li> <li> <label for="slice">slide to adjust <code>border-image-slice</code></label> <input type="range" min="10" max="45" id="slice"> <output id="slice-output">30</output> </li> </ul> css .wrapper { width: 400px; height: 300px; } div > div { width: 300px; height: 200px; border-width: 30px; border-style: solid; border-image: url(https://udn.realityripple.com/samples/56/bb98f533ef.png); border-image-slice: 30; border-image-repeat: round; } li { display: flex; place-content: center; } javascript const widthslider = document.getelementbyid('width'); const sliceslider = document.getelementbyid('slice'); const widthoutput = document.getelementbyid('width-output'); const sliceoutput = document.getelementbyid('slice-...
border-image-width - CSS: Cascading Style Sheets
ource image is 30 by 30 pixels.
<color> - CSS: Cascading Style Sheets
css level 2 (revision 1) orange #ffa500 css color module level 3 aliceblue #f0f8ff antiquewhite #faebd7 aquamarine #7fffd4 azure #f0ffff beige #f5f5dc bisque #ffe4c4 blanchedalmond #ffebcd blueviolet #8a2be2 brown #a52a2a burlywood #deb887 cadetblue #5f9ea0 chartreuse #7fff00 chocolate #d2691e coral #ff7f50 cornflowerblue #6495ed cornsilk #fff8dc crimson #dc143c cyan (synonym of aqua) #00ffff darkblue #00008b darkcyan #008b8b darkgoldenrod ...
<filter-function> - CSS: Cascading Style Sheets
ow</option> <option>grayscale</option> <option>hue-rotate</option> <option>invert</option> <option>opacity</option> <option>saturate</option> <option>sepia</option> </select> </li> <li> <input type="range"><output></output> </li> <li> <p>current value: <code></code></p> </li> </ul> css div { width: 300px; height: 300px; background: url(https://media.prod.mdn.mozit.cloud/attachments/2020/07/29/17350/3b4892b7e820122ac6dd7678891d4507/firefox.png) no-repeat center; } li { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; } input { width: 60% } output { width: 5%; text-align: center; } select { width: 40%; margin-left: 2px; } javascript const selectelem = document.queryselector...
font-family - CSS: Cascading Style Sheets
lyphs are partially or completely connected, and the result looks more like handwritten pen or brush writing than printed letterwork.
font-optical-sizing - CSS: Cascading Style Sheets
tter and ::first-line.inheritedyescomputed valueas specifiedanimation typediscrete formal syntax auto | none examples disabling optical sizing <p class="optical-sizing">this paragraph is optically sized.
font-stretch - CSS: Cascading Style Sheets
elephantine lizard</p> <p class="normal">an elephantine lizard</p> <p class="expanded">an elephantine lizard</p> </div> css /* this example uses the league mono variable font, developed by tyler finck (https://www.tylerfinck.com/) and used here under the terms of the sil open font license, version 1.1: http://scripts.sil.org/cms/scripts/page.php?item_id=ofl_web */ @font-face { src: url('https://mdn.mozillademos.org/files/16014/leaguemonovariable.ttf'); font-family:'leaguemonovariable'; font-style: normal; font-stretch: 1% 500%; /* required by chrome */ } .container { border: 10px solid #f5f9fa; padding: 0 1rem; font: 1.5rem 'leaguemonovariable', sans-serif; } .condensed { font-stretch: 50%; } .normal { font-stretch: 100%; } .expanded { font-stretch: 200%; ...
font-style - CSS: Cascading Style Sheets
ner"> <p class="sample">...it would not be wonderful to meet a megalosaurus, forty feet long or so, waddling like an elephantine lizard up holborn hill.</p> </div> css /* amstelvaralpha-vf is created by david berlow (https://github.com/typenetwork/amstelvar) and is used here under the terms of its license: https://github.com/typenetwork/amstelvar/blob/master/ofl.txt */ @font-face { src: url('https://mdn.mozillademos.org/files/16044/amstelvaralpha-vf.ttf'); font-family:'amstelvaralpha'; font-style: normal; } label { font: 1rem monospace; } .container { max-height: 150px; overflow: scroll; } .sample { font: 2rem 'amstelvaralpha', sans-serif; } html, body { max-height: 100vh; max-width: 100vw; overflow: hidden; } body { display: flex; flex-direction: colum...
font-variant-numeric - CSS: Cascading Style Sheets
setting ordinal numeric forms html <p class="ordinal">1st, 2nd, 3rd, 4th, 5th</p> css /* this example uses the source sans pro opentype font, developed by adobe and used here under the terms of the sil open font license, version 1.1: http://scripts.sil.org/cms/scripts/page.php?item_id=ofl_web */ @font-face { font-family: "source sans pro"; font-style: normal; font-weight: 400; src: url("https://mdn.mozillademos.org/files/15757/sourcesanspro-regular.otf") format("opentype"); } .ordinal { font-variant-numeric: ordinal; font-family: "source sans pro"; } result specifications specification status comment css fonts module level 3the definition of 'font-variant-numeric' in that specification.
font-weight - CSS: Cascading Style Sheets
="container"> <p class="sample">...it would not be wonderful to meet a megalosaurus, forty feet long or so, waddling like an elephantine lizard up holborn hill.</p> </div> css /* mutator sans is created by letterror (https://github.com/letterror/mutatorsans) and is used here under the terms of its license: https://github.com/letterror/mutatorsans/blob/master/license */ @font-face { src: url('https://mdn.mozillademos.org/files/16011/mutatorsans.ttf'); font-family:'mutatorsans'; font-style: normal; } label { font: 1rem monospace; white-space: nowrap; } .container { max-height: 150px; overflow-y: auto; } .sample { text-transform: uppercase; font: 1.5rem 'mutatorsans', sans-serif; } html, body { max-height: 100vh; max-width: 100vw; overflow: hidden; } body {...
list-style-position - CSS: Cascading Style Sheets
ist item 2-3</li> <li>list item 2-4</li> </ul> <ul class="inside-img">list 3 <li>list item 3-1</li> <li>list item 3-2</li> <li>list item 3-3</li> <li>list item 3-4</li> </ul> css .inside { list-style-position: inside; list-style-type: square; } .outside { list-style-position: outside; list-style-type: circle; } .inside-img { list-style-position: inside; list-style-image: url("https://mdn.mozillademos.org/files/11979/starsolid.gif"); } result specifications specification status comment css lists module level 3the definition of 'list-style-position' in that specification.
mask-clip - CSS: Cascading Style Sheets
Web › CSS › mask-clip
mal syntax [ <geometry-box> | no-clip ]#where <geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <shape-box> = <box> | margin-boxwhere <box> = border-box | padding-box | content-box examples clipping a mask to the border box css #masked { width: 100px; height: 100px; background-color: #8cffa0; margin: 20px; border: 20px solid #8ca0ff; padding: 20px; mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg); mask-size: 100% 100%; mask-clip: border-box; /* can be changed in the live sample */ } html <div id="masked"> </div> <select id="clipbox"> <option value="content-box">content-box</option> <option value="padding-box">padding-box</option> <option value="border-box" selected>border-box</option> <option value="margin-box">margin-box</...
mask-composite - CSS: Cascading Style Sheets
n svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <compositing-operator>#where <compositing-operator> = add | subtract | intersect | exclude examples compositing mask layers with addition css #masked { width: 100px; height: 100px; background-color: #8cffa0; mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg), url(https://mdn.mozillademos.org/files/12676/star.svg); mask-size: 100% 100%; mask-composite: add; /* can be changed in the live sample */ } html <div id="masked"> </div> <select id="compositemode"> <option value="add">add</option> <option value="subtract">subtract</option> <option value="intersect">intersect</option> ...
mask-mode - CSS: Cascading Style Sheets
Web › CSS › mask-mode
s toall elements; in svg, it applies to container elements excluding the defs element and all graphics elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <masking-mode>#where <masking-mode> = alpha | luminance | match-source examples using alpha mask mode css #masked { width: 227px; height: 200px; background: blue linear-gradient(red, blue); mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg); mask-mode: alpha; /* can be changed in the live sample */ } html <div id="masked"> </div> <select id="maskmode"> <option value="alpha">alpha</option> <option value="luminance">luminance</option> <option value="match-source">match-source</option> </select> javascript var maskmode = document.getelementbyid("maskmode"); maskmode.addev...
mask-origin - CSS: Cascading Style Sheets
ypediscrete formal syntax <geometry-box>#where <geometry-box> = <shape-box> | fill-box | stroke-box | view-boxwhere <shape-box> = <box> | margin-boxwhere <box> = border-box | padding-box | content-box examples setting mask origin to border-box css #masked { width: 100px; height: 100px; margin: 10px; border: 10px solid blue; background-color: #8cffa0; padding: 10px; mask-image: url(https://mdn.mozillademos.org/files/12676/star.svg); mask-origin: border-box; /* can be changed in the live sample */ } html <div id="masked"> </div> <select id="origin"> <option value="content-box">content-box</option> <option value="padding-box">padding-box</option> <option value="border-box" selected>border-box</option> <option value="margin-box">margin-box</option> <option valu...
mask-position - CSS: Cascading Style Sheets
| center | bottom | <length-percentage> ]?
mask-size - CSS: Cascading Style Sheets
Web › CSS › mask-size
olute lengthsanimation typerepeatable list of simple list of length, percentage, or calc formal syntax <bg-size>#where <bg-size> = [ <length-percentage> | auto ]{1,2} | cover | containwhere <length-percentage> = <length> | <percentage> examples setting mask size as a percentage css #masked { width: 200px; height: 200px; background: blue linear-gradient(red, blue); -webkit-mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg); mask-image: url(https://mdn.mozillademos.org/files/12668/mdn.svg); -webkit-mask-size: 50%; mask-size: 50%; /* can be changed in the live sample */ margin-bottom: 10px; } html <div id="masked"> </div> <select id="masksize"> <option value="auto">auto</option> <option value="40% 80%">40% 80%</option> <option value="50%" selected>50...
mix-blend-mode - CSS: Cascading Style Sheets
if; text-align: left; white-space: nowrap; } .note + .row .cell { margin-top: 0; } .container { position: relative; background: linear-gradient(to right, #000 0%, transparent 50%, #fff 100%), linear-gradient(to bottom, #ff0 0%, #f0f 50%, #0ff 100%); width: 150px; height: 150px; margin: 0 auto; } .r { transform-origin: center; transform: rotate(-30deg); fill: url(#red); } .g { transform-origin: center; transform: rotate(90deg); fill: url(#green); } .b { transform-origin: center; transform: rotate(210deg); fill: url(#blue); } .isolate .group { isolation: isolate; } .normal .item { mix-blend-mode: normal; } .multiply .item { mix-blend-mode: multiply; } .screen .item { mix-blend-mode: screen; } .overlay .item { mix-blend-mode...
overflow-wrap - CSS: Cascading Style Sheets
; /* global values */ overflow-wrap: inherit; overflow-wrap: initial; overflow-wrap: unset; the overflow-wrap property is specified as a single keyword chosen from the list of values below.
Guide to Web APIs - Developer guides
Web › Guide › API
apture and streamsmedia session apimedia source extensions mediastream recordingnnavigation timingnetwork information api ppage visibility apipayment request apiperformance apiperformance timeline apipermissions apipointer eventspointer lock apiproximity events push api rresize observer apiresource timing apisserver sent eventsservice workers apistoragestorage access apistreams ttouch eventsuurl apivvibration apivisual viewport wweb animationsweb audio apiweb authentication apiweb crypto apiweb notificationsweb storage apiweb workers apiwebglwebrtcwebvttwebxr device apiwebsockets api ...
Adding captions and subtitles to HTML5 video - Developer guides
track> element has the following attributes set: kind is given a value of subtitles, indicating the type of content the files contain label is given a value indicating which language that subtitle set is for — for example english or deutsch — these labels will appear in the user interface to allow the user to easily select which subtitle language they want to see.
Live streaming web audio and video - Developer guides
ython's twisted framework or use something like flumotion (open source streaming software).
Audio and Video Delivery - Developer guides
ss(stream) { var recorder = new mediarecorder(stream); var data = []; recorder.ondataavailable = function(e) { data.push(e.data); }; recorder.start(); recorder.onerror = function(e) { throw e.error || new error(e.name); // e.name is ff non-spec } recorder.onstop = function(e) { var audio = document.createelement('audio'); audio.src = window.url.createobjecturl(new blob(data)); } settimeout(function() { rec.stop(); }, 5000); }) .catch(function onerror(error) { console.log(error.message); }); see mediarecorder api for more details.
Rich-Text Editing in Mozilla - Developer guides
txsqdqww6n5ceads=" /> <img class="intlink" title="delete indentation" onclick="formatdoc('indent');" src="data:image/gif;base64,r0lgodlhfgawaomiaaaaadljwl9vj1ie35gjuaezxtdv3nha7p///////////////////////////////yh5baeaaagalaaaaaawabyaaaq7emljq704650b/x8gemmpgugwhjnzxodkso5oquogo5khbwwesymqscrdhu9voyk5tm9zspfsr9gsjwiaow==" /> <img class="intlink" title="hyperlink" onclick="var slnk=prompt('write the url here','http:\/\/');if(slnk&&slnk!=''&&slnk!='http://'){formatdoc('createlink',slnk)}" src="data:image/gif;base64,r0lgodlhfgawaomkab1chdrly19vj3morpgjuaezxrcztb/i19ha7pv8/f///////////////////////yh5baekaa8alaaaaaawabyaaary8mljq7046827/2byiqvhhg9pegvgiklydeuby/rle4fqf4dcj2aqxaijqdcwqcaebwiioemqbgsafhdagghgi9xghahmnoszgjkjei33uesv2+/4vd4taqa7" /> <img class="intlink" title="cut" onclick="formatdoc('...
Making content editable - Developer guides
nagtxsqdqww6n5ceads=" /> <img class="intlink" title="add indentation" onclick="formatdoc('indent');" src="data:image/gif;base64,r0lgodlhfgawaomiaaaaadljwl9vj1ie35gjuaezxtdv3nha7p///////////////////////////////yh5baeaaagalaaaaaawabyaaaq7emljq704650b/x8gemmpgugwhjnzxodkso5oquogo5khbwwesymqscrdhu9voyk5tm9zspfsr9gsjwiaow==" /> <img class="intlink" title="hyperlink" onclick="var slnk=prompt('write the url here','http:\/\/');if(slnk&&slnk!=''&&slnk!='http://'){formatdoc('createlink',slnk)}" src="data:image/gif;base64,r0lgodlhfgawaomkab1chdrly19vj3morpgjuaezxrcztb/i19ha7pv8/f///////////////////////yh5baekaa8alaaaaaawabyaaary8mljq7046827/2byiqvhhg9pegvgiklydeuby/rle4fqf4dcj2aqxaijqdcwqcaebwiioemqbgsafhdagghgi9xghahmnoszgjkjei33uesv2+/4vd4taqa7" /> <img class="intlink" title="cut" onclick="formatdoc('...
A hybrid approach - Developer guides
sing client-side techniques here: another option is to use server-side user-agent detection to show the user the proper content.
Printing - Developer guides
tle>mdn example</title> <script type="text/javascript"> function closeprint () { document.body.removechild(this.__container__); } function setprint () { this.contentwindow.__container__ = this; this.contentwindow.onbeforeunload = closeprint; this.contentwindow.onafterprint = closeprint; this.contentwindow.focus(); // required for ie this.contentwindow.print(); } function printpage (surl) { var ohiddframe = document.createelement("iframe"); ohiddframe.onload = setprint; ohiddframe.style.position = "fixed"; ohiddframe.style.right = "0"; ohiddframe.style.bottom = "0"; ohiddframe.style.width = "0"; ohiddframe.style.height = "0"; ohiddframe.style.border = "0"; ohiddframe.src = surl; document.body.appendchild(ohiddframe); } </script> </head> <body> <p><span oncl...
HTML attribute: multiple - HTML: Hypertext Markup Language
<label for="text">pick a text file to upload: </label> <input type="file" id="text" name="text" accept=".txt"> </p> <p> <input type="submit" value="submit"> </p> </form> note the difference in appearance between the example with multiple set and the other file input without.
HTML attribute: readonly - HTML: Hypertext Markup Language
the boolean readonly attribute, when present, makes the element not mutable, meaning the user can not edit the control.
HTML attribute: required - HTML: Hypertext Markup Language
the boolean required attribute which, if present, indicates that the user must specify a value for the input before the owning form can be submitted.
<address>: The Contact Address element - HTML: Hypertext Markup Language
Web › HTML › Element › address
s stored in a github repository.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
Web › HTML › Element › audio
lue.
<bgsound>: The Background Sound element (obsolete) - HTML: Hypertext Markup Language
Web › HTML › Element › bgsound
n order to embed audio in a web page, you should be using the <audio> element.
<embed>: The Embed External Content element - HTML: Hypertext Markup Language
Web › HTML › Element › embed
ded content.
manifest - HTML: Hypertext Markup Language
Web › HTML › Element › html › manifest
the manifest attribute of <html> element specifies a url of a application cache manifest that is downloaded in the early stages of page load.
<input type="date"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › date
ill fade away.
<input type="datetime-local"> - HTML: Hypertext Markup Language
and time are formatted according to the user's locale as reported by their operating system, whereas the date/time value is always formatted yyyy-mm-ddthh:mm.
<input type="tel"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › tel
<input> elements of type tel are used to let the user enter and edit a telephone number.
<input type="text"> - HTML: Hypertext Markup Language
Web › HTML › Element › input › text
permitted values are: go, done, next, search, and send.
<isindex> - HTML: Hypertext Markup Language
Web › HTML › Element › isindex
er to react to the query.
<menuitem> - HTML: Hypertext Markup Language
Web › HTML › Element › menuitem
ault this boolean attribute indicates use of the same command as the menu's subject element (such as a button or input).
<object> - HTML: Hypertext Markup Language
Web › HTML › Element › object
can be used together with, or in place of, the data attribute.
<q>: The Inline Quotation element - HTML: Hypertext Markup Language
Web › HTML › Element › q
aria role no corresponding role permitted aria roles any dom interface htmlquoteelement usage note: most modern browsers will automatically add quotation marks around text inside a <q> element.
<source>: The Media or Image Source element - HTML: Hypertext Markup Language
Web › HTML › Element › source
he direct child of a <picture> element.
autocapitalize - HTML: Hypertext Markup Language
s virtual keyboards on mobile devices and voice input.
itemid - HTML: Hypertext Markup Language
nes a vocabulary that supports global identifiers.
itemscope - HTML: Hypertext Markup Language
itemscope is a boolean global attribute that defines the scope of associated metadata.
Link types - HTML: Hypertext Markup Language
for searching in this document, or site, and its resources.
Preloading content with rel="preload" - HTML: Hypertext Markup Language
600px)"> <link rel="preload" href="bg-image-wide.png" as="image" media="(min-width: 601px)"> <link rel="stylesheet" href="main.css"> </head> <body> <header> <h1>my site</h1> </header> <script> var mediaquerylist = window.matchmedia("(max-width: 600px)"); var header = document.queryselector('header'); if (mediaquerylist.matches) { header.style.backgroundimage = 'url(bg-image-narrow.png)'; } else { header.style.backgroundimage = 'url(bg-image-wide.png)'; } </script> </body> we include media attributes on our <link> elements so that a narrow image is preloaded if the user has a narrow viewport, and a wider image is loaded if they have a wide viewport.
Evolution of HTTP - HTTP
ses was very simple, later dubbed http/0.9, and sometimes as the one-line protocol.
Reason: Did not find method in CORS header ‘Access-Control-Allow-Methods’ - HTTP
reason reason: did not find method in cors header ‘access-control-allow-methods’ what went wrong?
CORS errors - HTTP
Web › HTTP › CORS › Errors
web site or web app in question and open the developer tools.
HTTP caching - HTTP
Web › HTTP › Caching
t from caching resources, yet this makes them very difficult to update.
Using Feature Policy - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Accept-Language - HTTP
it and informs the client of its choice with the content-language response header.
Access-Control-Allow-Credentials - HTTP
r this header is true (case-sensitive).
Content-Type - HTTP
forbidden header name no cors-safelisted response header yes cors-safelisted request header yes, with the additional restriction that values can't contain a cors-unsafe request header byte: 0x00-0x1f (except 0x08 (tab)), "():<>?@[\]{}, and 0x7f (delete).
Expect - HTTP
Web › HTTP › Headers › Expect
continue, to which the server shall respond with: 100 if the information contained in the header is sufficient to cause an immediate success, 417 (expectation failed) if it cannot meet the expectation; or any other 4xx status otherwise.
Feature-Policy: accelerometer - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: ambient-light-sensor - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: autoplay - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: battery - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: camera - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: display-capture - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: document-domain - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: encrypted-media - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: fullscreen - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: geolocation - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: gyroscope - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: layout-animations - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: legacy-image-formats - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: magnetometer - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: microphone - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: midi - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: oversized-images - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: payment - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: picture-in-picture - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: publickey-credentials-get - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: screen-wake-lock - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: sync-xhr - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: unoptimized-images - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: unsized-media - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: usb - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: vibrate - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: wake-lock - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
web-share - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy: xr-spatial-tracking - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Feature-Policy - HTTP
the feature will be allowed in this document, and all nested browsing contexts (iframes) regardless of their origin.
Origin - HTTP
Web › HTTP › Headers › Origin
ll origin: <scheme> "://" <hostname> [ ":" <port> ] directives <scheme> the protocol that is used.
Public-Key-Pins-Report-Only - HTTP
thms than sha-256 in the future.
Public-Key-Pins - HTTP
.
Sec-Fetch-Site - HTTP
ted 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.
Vary - HTTP
Web › HTTP › Headers › Vary
t used when selecting a representation of a resource in a content negotiation algorithm.
Via - HTTP
Web › HTTP › Headers › Via
pe general header forbidden header name yes syntax via: [ <protocol-name> "/" ] <protocol-version> <host> [ ":" <port> ] or via: [ <protocol-name> "/" ] <protocol-version> <pseudonym> directives <protocol-name> optional.
X-Forwarded-Proto - HTTP
dardized version of this header is the http forwarded header.
An overview of HTTP - HTTP
Web › HTTP › Overview
le http request: requests consists of the following elements: an http method, usually a verb like get, post or a noun like options or head that defines the operation the client wants to perform.
Protocol upgrade mechanism - HTTP
api, or any library that does websockets, most or all of this is done for you.
HTTP Public Key Pinning (HPKP) - HTTP
ertificate or key file.
HTTP resources and specifications - HTTP
tf 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 (permanent redirect) proposed standard rfc 7725 an http status code to report legal obstacles on the standard track rfc 2397 the "data" url scheme proposed standard rfc 3986 uniform resource identifier (uri): generic syntax internet standard rfc 5988 web linking defines the link header proposed standard experimental spec hypertext transfer protocol (http) keep-alive header informational (expired) draft spec http client hints ietf draft rfc 7578 returning v...
201 Created - HTTP
Web › HTTP › Status › 201
the http 201 created success status response code indicates that the request has succeeded and has led to the creation of a resource.
307 Temporary Redirect - HTTP
Web › HTTP › Status › 307
http 307 temporary redirect redirect status response code indicates that the resource requested has been temporarily moved to the url given by the location headers.
431 Request Header Fields Too Large - HTTP
Web › HTTP › Status › 431
be used when the total size of request headers is too large, or when a single header field is too large.
Control flow and error handling - JavaScript
ains exhaustive details about the statements in this chapter.
Functions - JavaScript
cript functions to get to know the details.
Grammar and types - JavaScript
igned (preceded by "+" or "-").
Text formatting - JavaScript
the string.
Using Promises - JavaScript
passing callbacks into a function.
Working with objects - JavaScript
lue.
Classes - JavaScript
"rectangle" // named let rectangle = class rectangle2 { constructor(height, width) { this.height = height; this.width = width; } }; console.log(rectangle.name); // output: "rectangle2" note: class expressions are subject to the same hoisting restrictions as described in the class declarations section.
Arrow function expressions - JavaScript
r function above can be written as the arrow function below elements.map((element) => { return element.length; }); // [8, 6, 7, 9] // when there is only one parameter, we can remove the surrounding parentheses elements.map(element => { return element.length; }); // [8, 6, 7, 9] // when the only statement in an arrow function is `return`, we can remove `return` and remove // the surrounding curly brackets elements.map(element => element.length); // [8, 6, 7, 9] // in this case, because we only need the length property, we can use destructuring parameter: // notice that the `length` corresponds to the property we want to get whereas the // obviously non-special `lengthfoobarx` is just the name of a variable which can be changed // to any valid variable name you want elements.map(({ lengt...
Error.prototype.stack - JavaScript
'throw new error()')(); } catch (e) { console.log(e.stack); } // anonymous@file:///c:/example.html line 7 > function:1:1 // @file:///c:/example.html:7:6 try { eval("eval('fail')"); } catch (x) { console.log(x.stack); } // @file:///c:/example.html line 7 > eval line 1 > eval:1:1 // @file:///c:/example.html line 7 > eval:1:1 // @file:///c:/example.html:7:6 you can also use the //# sourceurl directive to name an eval source.
JSON.stringify() - JavaScript
script text, only using unicode escapes as \u2028 and \u2029.
JSON - JavaScript
ng to the specified value, optionally including only certain properties or replacing property values in a user-defined manner.
decodeURI() - JavaScript
ceptions throws an urierror ("malformed uri sequence") exception when encodeduri contains invalid character sequences.
encodeURI() - JavaScript
s to encode a surrogate which is not part of a high-low pair, e.g., // high-low pair ok console.log(encodeuri('\ud800\udfff')); // lone high surrogate throws "urierror: malformed uri sequence" console.log(encodeuri('\ud800')); // lone low surrogate throws "urierror: malformed uri sequence" console.log(encodeuri('\udfff')); encoding for ipv6 if one wishes to follow the more recent rfc3986 for urls, which makes square brackets reserved (for ipv6) and thus not encoded when forming something which could be part of a url (such as a host), the following code snippet may help: function fixedencodeuri(str) { return encodeuri(str).replace(/%5b/g, '[').replace(/%5d/g, ']'); } specifications specification ecmascript (ecma-262)the definition of 'encodeuri' in that specif...
encodeURIComponent() - JavaScript
at may inadvertently be generated during data entry for special html entities or other characters that require encoding/decoding.
empty - JavaScript
0] unintentional usage it is a good idea to comment intentional use of the empty statement, as it is not really obvious to distinguish from a normal semicolon.
block - JavaScript
a block statement (or compound statement in other languages) is used to group zero or more statements.
export - JavaScript
/my-module.js'; graph.options = { color:'blue', thickness:'3px' }; graph.draw(); console.log(cube(3)); // 27 console.log(foo); // 4.555806215962888 it is important to note the following: you need to include this script in your html with a <script> element of type="module", so that it gets recognised as a module and dealt with appropriately.
Statements and declarations - JavaScript
gle statement may span multiple lines.
Template literals (Template strings) - JavaScript
ns of the es2015 specification.
display - Web app manifests
he user and can range from browser (when the full browser window is shown) to fullscreen (when the app is full-screened).
<mover> - MathML
Web › MathML › Element › mover
d the background color.
<mroot> - MathML
Web › MathML › Element › mroot
the mathml <mroot> element is used to display roots with an explicit index.
<munder> - MathML
Web › MathML › Element › munder
ckground color.
<semantics> - MathML
is set to one of the following: "application/mathml-presentation+xml" "mathml-presentation" "svg1.1" "text/html" "image/svg+xml" "application/xml".
CSS and JavaScript animation performance - Web Performance
ame() callback, also triggered before the next repaint.
Performance fundamentals - Web Performance
se that maximally isolates the problem.
Populating the page: how browsers work - Web Performance
to handle user interactions.
Performance budgets - Web Performance
scripts, and optimizations commonly provided by a cdn.
How to make PWAs re-engageable using Notifications and Push - Progressive web apps (PWAs)
lete the whole process.
Mobile first - Progressive web apps (PWAs)
display: inline; } nav li a { border-right: 1px solid #ad66d5; border-bottom: none; display: inline-block; padding: 0 5px; font-size: 1.6em; } nav li:last-child a { border-right: none; } } @media (min-width: 600px) { html { background: #eee; height: 100%; } body { width: 600px; height: inherit; margin: 0 auto; background: url(../img/firefox-os.png) bottom left no-repeat, linear-gradient(to bottom, #fff, #eee); } .main > p { background: rgba(255,255,255,0.3); } nav li a { padding: 0 10px; font-size: 2em; } } the first one cancels out the css display: table behaviour, hides the links to jump to and from the navigation, as they are not needed anymore in the wider layout, and changes the vertica...
Progressive web apps (PWAs)
ce worker is a script that allows intercepting and control of how a web browser handles its network requests and asset caching.
azimuth - SVG: Scalable Vector Graphics
Web › SVG › Attribute › azimuth
, svg { height: 100%; } <svg viewbox="0 0 440 200" xmlns="http://www.w3.org/2000/svg"> <filter id="distantlight1"> <fediffuselighting> <fedistantlight azimuth="0" /> </fediffuselighting> </filter> <filter id="distantlight2"> <fediffuselighting> <fedistantlight azimuth="240" /> </fediffuselighting> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight2); transform: translatex(240px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'azimuth' in that specification.
begin - SVG: Scalable Vector Graphics
Web › SVG › Attribute › begin
ve duration starts, the element identified by the href attribute is discarded.
clipPathUnits - SVG: Scalable Vector Graphics
=".5" r=".35" /> </clippath> <!-- some reference rect to materialized to clip path --> <rect id="r1" x="0" y="0" width="45" height="45" /> <rect id="r2" x="0" y="55" width="45" height="45" /> <rect id="r3" x="55" y="55" width="45" height="45" /> <rect id="r4" x="55" y="0" width="45" height="45" /> <!-- the first 3 rect are clipped with usespaceonuse units --> <use clip-path="url(#myclip1)" xlink:href="#r1" fill="red" /> <use clip-path="url(#myclip1)" xlink:href="#r2" fill="red" /> <use clip-path="url(#myclip1)" xlink:href="#r3" fill="red" /> <!-- the last rect is clipped with objectboundingbox units --> <use clip-path="url(#myclip2)" xlink:href="#r4" fill="red" /> </svg> clippath for <clippath>, clippathunits define the coordinate system in use for the cont...
color-rendering - SVG: Scalable Vector Graphics
th>, <tspan>, and <use> html, body, svg { height: 100%; } <svg viewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="white"/> <stop offset="100%" stop-color="darkseagreen"/> </radialgradient> </defs> <circle cx="100" cy="100" r="100" fill="url(#gradient)" color-rendering="optimizequality" /> <text x="45" y="50%" color-rendering="optimizequality">quality-optimized</text> <circle cx="100" cy="100" r="100" color-rendering="optimizespeed" fill="url(#gradient)" style="transform: translatex(240px);" /> <text x="290" y="50%" color-rendering="optimizespeed">speed-optimized</text> </svg> usage notes value auto | op...
diffuseConstant - SVG: Scalable Vector Graphics
g in="sourcegraphic" diffuseconstant="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" diffuseconstant="2"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'diffuseconstant' in tha...
divisor - SVG: Scalable Vector Graphics
Web › SVG › Attribute › divisor
"0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 2 0 0 0 0 0 0 -1" divisor="1"/> </filter> <filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 2 0 0 0 0 0 0 -1" divisor="8"/> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes value <number> default value sum of all values in kernelmatrix or 1 if sum is 0 animatable yes <number> this value defines the...
elevation - SVG: Scalable Vector Graphics
vg { height: 100%; } <svg viewbox="0 0 440 200" xmlns="http://www.w3.org/2000/svg"> <filter id="distantlight1"> <fediffuselighting> <fedistantlight elevation="0" /> </fediffuselighting> </filter> <filter id="distantlight2"> <fediffuselighting> <fedistantlight elevation="45" /> </fediffuselighting> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight1);" /> <circle cx="100" cy="100" r="80" style="filter: url(#distantlight2); transform: translatex(240px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'elevation' in that specification.
exponent - SVG: Scalable Vector Graphics
<fefuncb type="gamma" exponent="1"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="gamma" exponent="5"/> <fefuncg type="gamma" exponent="5"/> <fefuncb type="gamma" exponent="5"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes <number> if the type attribute of the component element is set to gamma,...
fill - SVG: Scalable Vector Graphics
Web › SVG › Attribute › fill
} <svg viewbox="0 0 300 100" xmlns="http://www.w3.org/2000/svg"> <!-- simple color fill --> <circle cx="50" cy="50" r="40" fill="pink" /> <!-- fill circle with a gradient --> <defs> <radialgradient id="mygradient"> <stop offset="0%" stop-color="pink" /> <stop offset="100%" stop-color="black" /> </radialgradient> </defs> <circle cx="150" cy="50" r="40" fill="url(#mygradient)" /> <!-- keeping the final state of an animated circle which is a circle with a radius of 40.
filter - SVG: Scalable Vector Graphics
Web › SVG › Attribute › filter
tation attribute, it can be applied to any element but it only has effect on container elements without the <defs> element, all graphics elements and the <use> element.
flood-color - SVG: Scalable Vector Graphics
<fedropshadow> html, body, svg { height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="flood1"> <feflood flood-color="skyblue" x="0" y="0" width="200" height="200"/> </filter> <filter id="flood2"> <feflood flood-color="seagreen" x="0" y="0" width="200" height="200"/> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#flood1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#flood2); transform: translatex(220px);" /> </svg> usage notes value color initial value black animatable yes specifications specification status comment filter effects module level 1the definition of 'flood-color' in that specification.
flood-opacity - SVG: Scalable Vector Graphics
height: 100%; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <filter id="flood1"> <feflood flood-color="seagreen" flood-opacity="1" x="0" y="0" width="200" height="200"/> </filter> <filter id="flood2"> <feflood flood-color="seagreen" flood-opacity="0.3" x="0" y="0" width="200" height="200"/> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#flood1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#flood2); transform: translatex(220px);" /> </svg> usage notes value <alpha-value> initial value 1 animatable yes <alpha-value> a number or percentage indicating the opacity value to use across the current filter primitive subregion.
gradientTransform - SVG: Scalable Vector Graphics
radialgradient> <radialgradient id="gradient2" gradientunits="userspaceonuse" cx="100" cy="100" r="100" fx="100" fy="100" gradienttransform="skewx(20) translate(-35, 0)"> <stop offset="0%" stop-color="darkblue" /> <stop offset="50%" stop-color="skyblue" /> <stop offset="100%" stop-color="darkblue" /> </radialgradient> <rect x="0" y="0" width="200" height="200" fill="url(#gradient1)" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient2)" style="transform: translatex(220px);" /> </svg> usage notes default value identity transform value <transform-list> animatable yes <transform-list> a list of transformation functions specifying some additional transformation from the gradient coordinate system ont...
id - SVG: Scalable Vector Graphics
Web › SVG › Attribute › id
alue none animatable no <id> specifies the element's id.
intercept - SVG: Scalable Vector Graphics
ype="linear" intercept="0"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="linear" intercept="0.3"/> <fefuncg type="linear" intercept="0.1"/> <fefuncb type="linear" intercept="0.8"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment fi...
k1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › k1
0%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="0" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="10" k2="0" k3="0" k4="0" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects modul...
k2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › k2
0%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="1" k3="0" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="10" k3="0" k4="0" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects modul...
k3 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › k3
0%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="1" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="10" k4="0" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects modul...
k4 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › k4
"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="1" k2="0" k3="0" k4="0" /> </filter> <filter id="composite2" x="0" y="0" width="100%" height="100%"> <fecomposite in2="sourcegraphic" operator="arithmetic" k1="10" k2="0" k3="0" k4="0.3" /> </filter> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite1);" /> <image href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="200" height="200" style="filter: url(#composite2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects modul...
kernelMatrix - SVG: Scalable Vector Graphics
id="convolvematrix1" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 1 0 0 0 0 0 0 -1"/> </filter> <filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="-1 0 0 0 0 0 0 0 1"/> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes value <list of numbers> default value none animatable yes <list of numbers> the list of <number>s that make up the kernel ma...
lighting-color - SVG: Scalable Vector Graphics
"sourcegraphic" lighting-color="white"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" lighting-color="blue"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> usage notes value color default value white animatable yes specifications specification status comment filter effects module level 1the definition of 'lighting-color' in tha...
limitingConeAngle - SVG: Scalable Vector Graphics
ointsatx="100" pointsaty="100" limitingconeangle="10" /> </fediffuselighting> </filter> <filter id="spotlight2" x="0" y="0" width="100%" height="100%"> <fediffuselighting diffuseconstant="2"> <fespotlight x="10" y="10" z="50" pointsatx="100" pointsaty="100" limitingconeangle="40" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#spotlight1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#spotlight2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 0 animatable yes specifications specification status comment filter effects module level 1the definition of 'limitingconeangle' in that specific...
marker-end - SVG: Scalable Vector Graphics
0 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="triangle" viewbox="0 0 10 10" refx="1" refy="5" markerunits="strokewidth" markerwidth="10" markerheight="10" orient="auto"> <path d="m 0 0 l 10 5 l 0 10 z" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-end="url(#triangle)"/> </svg> usage notes value none | <marker-ref> default value none animatable yes none indicates that no marker symbol shall be drawn at the final vertex.
marker-mid - SVG: Scalable Vector Graphics
lygon>, <polyline>, and <rect> html, body, svg { height: 100%; } <svg viewbox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="circle" markerwidth="8" markerheight="8" refx="4" refy="4"> <circle cx="4" cy="4" r="4" stroke="none" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-mid="url(#circle)"/> </svg> usage notes value none | <marker-ref> default value none animatable yes none indicates that no marker symbol shall be drawn at the given vertices.
marker-start - SVG: Scalable Vector Graphics
120" xmlns="http://www.w3.org/2000/svg"> <defs> <marker id="triangle" viewbox="0 0 10 10" refx="1" refy="5" markerunits="strokewidth" markerwidth="10" markerheight="10" orient="auto"> <path d="m 0 0 l 10 5 l 0 10 z" fill="#f00"/> </marker> </defs> <polyline fill="none" stroke="black" points="20,100 40,60 70,80 100,20" marker-start="url(#triangle)"/> </svg> usage notes value none | <marker-ref> default value none animatable yes none indicates that no marker symbol shall be drawn at the first vertex.
mask - SVG: Scalable Vector Graphics
Web › SVG › Attribute › mask
undingbox"> <rect fill="white" x="0" y="0" width="100%" height="100%" /> <polygon fill="black" points="0.5,0.2 0.68,0.74 0.21,0.41 0.79,0.41 0.32,0.74" /> </mask> <!-- punch a hole in a shape of a star inside the red circle, revealing the yellow circle underneath --> <circle cx="50" cy="50" r="20" fill="yellow" /> <circle cx="50" cy="50" r="45" fill="red" mask="url(#mymask)"/> </svg> since svg2, the mask attribute is defined as a css property and is a shorthand for many other properties: mask-image, mask-mode, mask-repeat, mask-position, mask-clip, mask-origin, mask-size, and mask-composite.
maskContentUnits - SVG: Scalable Vector Graphics
te" cx=".5" cy=".5" r=".35" /> </mask> <!-- some reference rect to materialized the mask --> <rect id="r1" x="0" y="0" width="45" height="45" /> <rect id="r2" x="0" y="55" width="45" height="45" /> <rect id="r3" x="55" y="55" width="45" height="45" /> <rect id="r4" x="55" y="0" width="45" height="45" /> <!-- the first 3 rect are masked with usespaceonuse units --> <use mask="url(#mymask1)" xlink:href="#r1" fill="red" /> <use mask="url(#mymask1)" xlink:href="#r2" fill="red" /> <use mask="url(#mymask1)" xlink:href="#r3" fill="red" /> <!-- the last rect is masked with objectboundingbox units --> <use mask="url(#mymask2)" xlink:href="#r4" fill="red" /> </svg> mask for <mask>, maskcontentunits defines the coordinate system in use for the content of the element.
maskUnits - SVG: Scalable Vector Graphics
ite" cx="50" cy="50" r="35" /> </mask> <!-- some reference rect to materialized the mask --> <rect id="r1" x="0" y="0" width="45" height="45" /> <rect id="r2" x="0" y="55" width="45" height="45" /> <rect id="r3" x="55" y="55" width="45" height="45" /> <rect id="r4" x="55" y="0" width="45" height="45" /> <!-- the first 3 rect are masked with usespaceonuse units --> <use mask="url(#mymask1)" xlink:href="#r1" fill="red" /> <use mask="url(#mymask1)" xlink:href="#r2" fill="red" /> <use mask="url(#mymask1)" xlink:href="#r3" fill="red" /> <!-- the last rect is masked with objectboundingbox units --> <use mask="url(#mymask2)" xlink:href="#r4" fill="red" /> </svg> mask for <mask>, maskunits defines the coordinate system in use for the geometry attributes (x, y, widt...
mode - SVG: Scalable Vector Graphics
Web › SVG › Attribute › mode
ter> <filter id="blending2" x="0" y="0" width="100%" height="100%"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="seagreen" flood-opacity="1"/> <feblend in="sourcegraphic" in2="floodfill" mode="color-dodge"/> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#blending1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#blending2); transform:translatex(220px);"/> </svg> usage notes value <blend-mode> default value normal animatable yes for a description of the values, see <blend-mode>.
opacity - SVG: Scalable Vector Graphics
Web › SVG › Attribute › opacity
nknown>, and <video> html, body, svg { height: 100%; } <svg viewbox="0 0 200 100" xmlns="http://www.w3.org/2000/svg"> <defs> <lineargradient id="gradient" x1="0%" y1="0%" x2="0" y2="100%"> <stop offset="0%" style="stop-color:skyblue;" /> <stop offset="100%" style="stop-color:seagreen;" /> </lineargradient> </defs> <rect x="0" y="0" width="100%" height="100%" fill="url(#gradient)" /> <circle cx="50" cy="50" r="40" fill="black" /> <circle cx="150" cy="50" r="40" fill="black" opacity="0.3" /> </svg> usage notes default value 1 value <alpha-value> animatable yes <alpha-value> the uniform opacity setting to be applied across an entire object, as a <number>.
operator - SVG: Scalable Vector Graphics
femorphology> html, body, svg { height: 100%; font: 20px arial, helvetica, sans-serif; } <svg viewbox="0 0 120 70" xmlns="http://www.w3.org/2000/svg"> <filter id="erode"> <femorphology operator="erode" radius="0.4"/> </filter> <filter id="dilate"> <femorphology operator="dilate" radius="0.8"/> </filter> <text x="0" y="15">normal text</text> <text x="0" y="40" filter="url(#erode)">thin text</text> <text x="0" y="65" filter="url(#dilate)">fat text</text> </svg> fecomposite for <fecomposite>, operator defines the compositing operation that is to be performed.
order - SVG: Scalable Vector Graphics
Web › SVG › Attribute › order
="100%"> <feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="3"/> </filter> <filter id="emboss2" x="0" y="0" width="100%" height="100%"> <feturbulence basefrequency="0.025" seed="0" /> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -4" order="1 1 1"/> </filter> <rect x="0" y="0" width="200" height="200" style="filter:url(#emboss1);" /> <rect x="0" y="0" width="200" height="200" style="filter:url(#emboss2); transform: translatex(220px);" /> </svg> usage notes value <number-optional-number> default value 3 animatable yes <number-optional-number> this value indicates the number of cells in each dimension for the kernel matrix.
orient - SVG: Scalable Vector Graphics
Web › SVG › Attribute › orient
erheight="6" orient="auto-start-reverse"> <path d="m 0 0 l 10 5 l 0 10 z" /> </marker> <marker id="dataarrow" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="6" markerheight="6" orient="-65deg"> <path d="m 0 0 l 10 5 l 0 10 z" fill="red" /> </marker> </defs> <polyline points="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dataarrow)" marker-mid="url(#dataarrow)" marker-end="url(#dataarrow)" /> </svg> usage notes value auto | auto-start-reverse | <angle> | <number> default value 0 animatable yes (non-additive) auto ...
paint-order - SVG: Scalable Vector Graphics
hey will be painted in their default order after the specified components.
patternTransform - SVG: Scalable Vector Graphics
s="http://www.w3.org/2000/svg"> <!-- apply a transform on the tile --> <pattern id="p1" width=".25" height=".25" patterntransform="rotate(20) skewx(30) scale(1 0.5)"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- apply the transformed pattern tile --> <rect x="10" y="10" width="80" height="80" fill="url(#p1)" /> </svg> pattern for <pattern>, patterntransform defines a list of transform definitions that are applied to a pattern tile.
patternUnits - SVG: Scalable Vector Graphics
nuse"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- all geometry properties are relative to the target bounding box --> <pattern id="p2" x=".125" y=".125" width=".25" height=".25" patternunits="objectboundingbox"> <circle cx="10" cy="10" r="10" /> </pattern> <!-- left square with user space tiles --> <rect x="10" y="10" width="80" height="80" fill="url(#p1)" /> <!-- right square with bounding box tiles --> <rect x="110" y="10" width="80" height="80" fill="url(#p2)" /> </svg> pattern for <pattern>, patternunits defines the coordinate system in use for the geometry properties (x, y, width and height) of the element.
pointsAtX - SVG: Scalable Vector Graphics
<fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsatx="0" /> </fediffuselighting> </filter> <filter id="lighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsatx="400" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes default value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the definition of 'pointsatx' in that specification.
pointsAtY - SVG: Scalable Vector Graphics
<fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsaty="0" /> </fediffuselighting> </filter> <filter id="lighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="60" y="60" z="50" pointsaty="400" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes default value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the definition of 'pointsaty' in that specification.
pointsAtZ - SVG: Scalable Vector Graphics
fediffuselighting in="sourcegraphic"> <fespotlight x="100" y="100" z="50" pointsatz="0" /> </fediffuselighting> </filter> <filter id="lighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fespotlight x="100" y="100" z="50" pointsatz="80" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#lighting2); transform: translatex(220px);" /> </svg> usage notes default value 0 value <number> animatable yes specifications specification status comment filter effects module level 1the definition of 'pointsatz' in that specification.
preserveAlpha - SVG: Scalable Vector Graphics
" height="100%"> <feconvolvematrix kernelmatrix="1 -1 2 0 0 0 0 0 -2" preservealpha="true"/> </filter> <filter id="convolvematrix2" x="0" y="0" width="100%" height="100%"> <feconvolvematrix kernelmatrix="1 -1 2 0 0 0 0 0 -2" preservealpha="false"/> </filter> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix1);"/> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" width="200" height="200" style="filter:url(#convolvematrix2); transform:translatex(220px);"/> </svg> usage notes default value false value true | false animatable yes true this value indicates that the convolution will only apply to the co...
r - SVG: Scalable Vector Graphics
Web › SVG › Attribute › r
r="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <radialgradient r="100%" id="mygradient100"> <stop offset="0" stop-color="white" /> <stop offset="100%" stop-color="black" /> </radialgradient> <circle cx="50" cy="50" r="0"/> <circle cx="150" cy="50" r="25"/> <circle cx="250" cy="50" r="50"/> <rect x="20" y="120" width="60" height="60" fill="url(#mygradient000)" /> <rect x="120" y="120" width="60" height="60" fill="url(#mygradient050)" /> <rect x="220" y="120" width="60" height="60" fill="url(#mygradient100)" /> </svg> circle for <circle>, r defines the radius of the circle and therefor its size.
result - SVG: Scalable Vector Graphics
Web › SVG › Attribute › result
0%; } <svg viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> usage notes value <filter-primitive-reference> default value none animatable yes <filter-primitive-reference> this value is a <custom-ident> and defines the name for the filter primitive.
scale - SVG: Scalable Vector Graphics
Web › SVG › Attribute › scale
nce"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="5"/> </filter> <filter id="displacementfilter2" x="-20%" y="-20%" width="140%" height="140%"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50"/> </filter> <circle cx="100" cy="100" r="80" style="filter: url(#displacementfilter);""/> <circle cx="100" cy="100" r="80" style="filter: url(#displacementfilter2); transform: translatex(240px);""/> </svg> usage notes value <number> default value none animatable yes <number> this value defines the scale factor for the displacement.
specularConstant - SVG: Scalable Vector Graphics
cegraphic" specularconstant="1.2"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </filter> <filter id="specularlighting2" x="0" y="0" width="100%" height="100%"> <fespecularlighting in="sourcegraphic" specularconstant="0.8"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#specularlighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#specularlighting2); transform: translatex(220px);" /> </svg> usage notes value <number> default value 1 animatable yes specifications specification status comment filter effects module level 1the definition of 'specularconstan...
specularExponent - SVG: Scalable Vector Graphics
"sourcegraphic" specularexponent="1"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </filter> <filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fespecularlighting in="sourcegraphic" specularexponent="5"> <fepointlight x="60" y="60" z="20" /> </fespecularlighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> fespecularlighting for <fespecularlighting>, specularexponent defines the exponent value for the specular term.
stdDeviation - SVG: Scalable Vector Graphics
iewbox="0 0 480 200" xmlns="http://www.w3.org/2000/svg"> <filter id="gaussianblur1"> <fegaussianblur stddeviation="1" /> </filter> <filter id="gaussianblur2"> <fegaussianblur stddeviation="5" /> </filter> <filter id="gaussianblur3" x="-30%" y="-30%" width="160%" height="160%"> <fegaussianblur stddeviation="10" /> </filter> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur1);" /> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur2); transform: translatex(140px);" /> <circle cx="100" cy="100" r="50" style="filter: url(#gaussianblur3); transform: translatex(280px);" /> </svg> usage notes value <number-optional-number> default value 0 animatable yes <number-optional-number> if two numb...
stroke - SVG: Scalable Vector Graphics
Web › SVG › Attribute › stroke
3.org/2000/svg"> <!-- simple color stroke --> <circle cx="5" cy="5" r="4" fill="none" stroke="green" /> <!-- stroke a circle with a gradient --> <defs> <lineargradient id="mygradient"> <stop offset="0%" stop-color="green" /> <stop offset="100%" stop-color="white" /> </lineargradient> </defs> <circle cx="15" cy="5" r="4" fill="none" stroke="url(#mygradient)" /> </svg> usage notes value <paint> default value none animatable yes specifications specification status comment scalable vector graphics (svg) 2the definition of 'stroke' in that specification.
surfaceScale - SVG: Scalable Vector Graphics
ghting in="sourcegraphic" surfacescale="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" surfacescale="15"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> fespecularlighting for <fespecularlighting>, surfacescale defines the height of the surface.
tableValues - SVG: Scalable Vector Graphics
able" tablevalues="0 1"/> </fecomponenttransfer> </filter> <filter id="componenttransfer2" x="0" y="0" width="100%" height="100%"> <fecomponenttransfer> <fefuncr type="table" tablevalues="1 0"/> <fefuncg type="table" tablevalues="1 0"/> <fefuncb type="table" tablevalues="1 0"/> </fecomponenttransfer> </filter> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer1);" /> <rect x="0" y="0" width="200" height="200" fill="url(#gradient)" style="filter: url(#componenttransfer2); transform: translatex(220px);" /> </svg> usage notes value <list-of-numbers> default value empty list resulting in identity transfer animatable yes <list-of-numbers> this ...
x1 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › x1
html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector start at the left bounding limit of the shape it is applied to --> <lineargradient x1="0%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 80% of the left bounding limit of the shape it is applied to --> <lineargradient x1="80%" id="g1"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="11" y="1" width="8" height="8" fill="url(#g1)" /> </svg> specifications specification status commen...
x2 - SVG: Scalable Vector Graphics
Web › SVG › Attribute › x2
html,body,svg { height:100% } <svg viewbox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <!-- by default the gradient vector end at the right bounding limit of the shape it is applied to --> <lineargradient x2="100%" id="g0"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="1" y="1" width="8" height="8" fill="url(#g0)" /> <!-- here the gradient vector start at 20% of the left bounding limit of the shape it is applied to --> <lineargradient x2="20%" id="g1"> <stop offset="0" stop-color="black" /> <stop offset="100%" stop-color="red" /> </lineargradient> <rect x="11" y="1" width="8" height="8" fill="url(#g1)" /> </svg> specifications specification status commen...
xChannelSelector - SVG: Scalable Vector Graphics
sourcegraphic" scale="30" xchannelselector="r"/> </filter> <filter id="displacementfilter2"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" xchannelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)">some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color channel of the input image defined in in2 will be used to displace the pixels o...
yChannelSelector - SVG: Scalable Vector Graphics
sourcegraphic" scale="30" ychannelselector="r"/> </filter> <filter id="displacementfilter2"> <feimage xlink:href="https://mdn.mozillademos.org/files/12668/mdn.svg" x="0" y="0" width="100%" height="100%" result="abc"/> <fedisplacementmap in2="abc" in="sourcegraphic" scale="30" ychannelselector="b"/> </filter> <text x="10" y="60" font-size="50" filter="url(#displacementfilter)">some displaced text</text> <text x="10" y="120" font-size="50" filter="url(#displacementfilter2)">some displaced text</text> </svg> usage notes value r | g | b | a default value a animatable yes r this keyword specifies that the red color channel of the input image defined in in2 will be used to displace the pixels o...
z - SVG: Scalable Vector Graphics
Web › SVG › Attribute › z
0%" height="100%"> <fediffuselighting in="sourcegraphic"> <fepointlight x="60" y="60" z="10" /> </fediffuselighting> </filter> <filter id="diffuselighting2" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic"> <fepointlight x="60" y="60" z="50" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting1);" /> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting2); transform: translatex(220px);" /> </svg> fepointlight for <fepointlight>, z defines the location along the z-axis for the light source in the coordinate system established by the primitiveunits attribute on the <filter> element.
zoomAndPan - SVG: Scalable Vector Graphics
ew> html, body, svg { height: 100%; } <svg viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" zoomandpan="disable"> <filter id="diffuselighting" x="0" y="0" width="100%" height="100%"> <fediffuselighting in="sourcegraphic" zoomandpan="1"> <fepointlight x="60" y="60" z="20" /> </fediffuselighting> </filter> <rect x="0" y="0" width="200" height="200" style="filter: url(#diffuselighting);" /> </svg> usage notes value disable | magnify default value magnify animatable no specifications specification status comment scalable vector graphics (svg) 1.1 (second edition)the definition of 'zoomandpan' in that specification.
<clipPath> - SVG: Scalable Vector Graphics
Web › SVG › Element › clipPath
everything outside the circle will be clipped and therefore invisible.
<defs> - SVG: Scalable Vector Graphics
Web › SVG › Element › defs
.w3.org/1999/xlink"> <!-- some graphical objects to use --> <defs> <circle id="mycircle" cx="0" cy="0" r="5" /> <lineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="20%" stop-color="gold" /> <stop offset="90%" stop-color="red" /> </lineargradient> </defs> <!-- using my graphical objects --> <use x="5" y="5" xlink:href="#mycircle" fill="url('#mygradient')" /> </svg> attributes global attributes core attributes most notably: id lang styling attributes class, style event attributes global event attributes, document element event attributes, graphical event attributes presentation attributes most notably: clip-path, clip-rule, color, color-interpolation, color-rendering, cursor, display, fill, fill-opacity, fill-rule, fi...
<feBlend> - SVG: Scalable Vector Graphics
Web › SVG › Element › feBlend
<defs> <filter id="spotlight"> <feflood result="floodfill" x="0" y="0" width="100%" height="100%" flood-color="green" flood-opacity="1"/> <feblend in="sourcegraphic" in2="floodfill" mode="multiply"/> </filter> </defs> <image xlink:href="//developer.mozilla.org/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="filter:url(#spotlight);"/> </svg> result specifications specification status comment filter effects module level 1the definition of '<feblend>' in that specification.
<feConvolveMatrix> - SVG: Scalable Vector Graphics
200" height="200" viewbox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="emboss"> <feconvolvematrix kernelmatrix="3 0 0 0 0 0 0 0 -3"/> </filter> </defs> <image xlink:href="/files/12668/mdn.svg" x="0" y="0" height="200" width="200" style="filter:url(#emboss);" /> </svg> result specifications specification status comment filter effects module level 1the definition of '<feconvolvematrix>' in that specification.
<feDisplacementMap> - SVG: Scalable Vector Graphics
t="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of '<fedisplacementmap>' in that specification.
<feDropShadow> - SVG: Scalable Vector Graphics
dx="0.2" dy="0.4" stddeviation="0.2"/> </filter> <filter id="shadow2"> <fedropshadow dx="0" dy="0" stddeviation="0.5" flood-color="cyan"/> </filter> <filter id="shadow3"> <fedropshadow dx="-0.8" dy="-0.8" stddeviation="0" flood-color="pink" flood-opacity="0.5"/> </filter> </defs> <circle cx="5" cy="50%" r="4" style="fill:pink; filter:url(#shadow);"/> <circle cx="15" cy="50%" r="4" style="fill:pink; filter:url(#shadow2);"/> <circle cx="25" cy="50%" r="4" style="fill:pink; filter:url(#shadow3);"/> </svg> attributes dx this attribute defines the x offset of the drop shadow.
<feFlood> - SVG: Scalable Vector Graphics
Web › SVG › Element › feFlood
flood-opacity dom interface this element implements the svgfefloodelement interface.
<feImage> - SVG: Scalable Vector Graphics
Web › SVG › Element › feImage
nk:href dom interface this element implements the svgfeimageelement interface.
<feMerge> - SVG: Scalable Vector Graphics
Web › SVG › Element › feMerge
rg/2000/svg"> <filter id="feoffset" x="-40" y="-20" width="100" height="200"> <feoffset in="sourcegraphic" dx="60" dy="60" /> <fegaussianblur stddeviation="5" result="blur2" /> <femerge> <femergenode in="blur2" /> <femergenode in="sourcegraphic" /> </femerge> </filter> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green; filter: url(#feoffset);" /> </svg> result attributes global attributes core attributes presentation attributes filter primitive attributes class style specific attributes none dom interface this element implements the svgfemergeelement interface.
<feMergeNode> - SVG: Scalable Vector Graphics
width="100" height="200"> <feoffset in="sourcegraphic" dx="60" dy="60" /> <fegaussianblur in="sourcegraphic" stddeviation="5" result="blur2" /> <femerge> <femergenode in="blur2" /> <femergenode in="sourcegraphic" /> </femerge> </filter> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green; filter: url(#feoffset);" /> <rect x="40" y="40" width="100" height="100" style="stroke: #000000; fill: green;" /> </svg> result attributes global attributes core attributes » specific attributes in dom interface this element implements the svgfemergenodeelement interface.
<feOffset> - SVG: Scalable Vector Graphics
Web › SVG › Element › feOffset
offsetelement interface.
<fePointLight> - SVG: Scalable Vector Graphics
tant="1.5" specularexponent="80" lighting-color="#fff"> <fepointlight x="50" y="50" z="220"/> </fespecularlighting> <fecomposite in="sourcegraphic" in2="spotlight" operator="arithmetic" k1="0" k2="1" k3="1" k4="0"/> </filter> </defs> <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="filter:url(#spotlight);"/> </svg> result specifications specification status comment filter effects module level 1the definition of '<fepointlight>' in that specification.
<feSpecularLighting> - SVG: Scalable Vector Graphics
xmlns="http://www.w3.org/2000/svg"> <filter id = "filter"> <fespecularlighting result="specout" specularexponent="20" lighting-color="#bbbbbb"> <fepointlight x="50" y="75" z="200"/> </fespecularlighting> <fecomposite in="sourcegraphic" in2="specout" operator="arithmetic" k1="0" k2="1" k3="1" k4="0"/> </filter> <circle cx="110" cy="110" r="100" style="filter:url(#filter)"/> </svg> result specifications specification status comment filter effects module level 1the definition of '<fespecularlighting>' in that specification.
<feSpotLight> - SVG: Scalable Vector Graphics
specularexponent="4" lighting-color="#fff"> <fespotlight x="600" y="600" z="400" limitingconeangle="5.5" /> </fespecularlighting> <fecomposite in="sourcegraphic" in2="spotlight" operator="out" k1="0" k2="1" k3="1" k4="0"/> </filter> </defs> <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="filter:url(#spotlight);"/> </svg> result specifications specification status comment filter effects module level 1the definition of '<fespotlight>' in that specification.
<feTile> - SVG: Scalable Vector Graphics
Web › SVG › Element › feTile
="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="tile" x="0" y="0" width="100%" height="100%"> <fetile in="sourcegraphic" x="50" y="50" width="100" height="100" /> <fetile/> </filter> </defs> <image xlink:href="/files/6457/mdn_logo_only_color.png" x="10%" y="10%" width="80%" height="80%" style="filter:url(#tile);"/> </svg> result specifications specification status comment filter effects module level 1the definition of '<fetile>' in that specification.
<feTurbulence> - SVG: Scalable Vector Graphics
t="200" viewbox="0 0 220 220" xmlns="http://www.w3.org/2000/svg"> <filter id="displacementfilter"> <feturbulence type="turbulence" basefrequency="0.05" numoctaves="2" result="turbulence"/> <fedisplacementmap in2="turbulence" in="sourcegraphic" scale="50" xchannelselector="r" ychannelselector="g"/> </filter> <circle cx="100" cy="100" r="100" style="filter: url(#displacementfilter)"/> </svg> specifications specification status comment filter effects module level 1the definition of '<feturbulence>' in that specification.
<filter> - SVG: Scalable Vector Graphics
Web › SVG › Element › filter
height filterres filterunits primitiveunits xlink:href dom interface this element implements the svgfilterelement interface.
<hatch> - SVG: Scalable Vector Graphics
Web › SVG › Element › hatch
y pitch rotate hatchunits hatchcontentunits transform href dom interface this element implements the svghatchelement interface.
<hatchpath> - SVG: Scalable Vector Graphics
Web › SVG › Element › hatchpath
ributes style attributes specific attributes d offset dom interface this element implements the svghatchpathelement interface.
<marker> - SVG: Scalable Vector Graphics
Web › SVG › Element › marker
0 0 l 10 5 l 0 10 z" /> </marker> <!-- simple dot marker definition --> <marker id="dot" viewbox="0 0 10 10" refx="5" refy="5" markerwidth="5" markerheight="5"> <circle cx="5" cy="5" r="5" fill="red" /> </marker> </defs> <!-- coordinate axes with a arrowhead in both direction --> <polyline points="10,10 10,90 90,90" fill="none" stroke="black" marker-start="url(#arrow)" marker-end="url(#arrow)" /> <!-- data line with polymarkers --> <polyline points="15,80 29,50 43,60 57,30 71,40 85,15" fill="none" stroke="grey" marker-start="url(#dot)" marker-mid="url(#dot)" marker-end="url(#dot)" /> </svg> attributes markerheight this attribute defines the height of the marker viewport.
<mask> - SVG: Scalable Vector Graphics
Web › SVG › Element › mask
idth="100" height="100" fill="white" /> <!-- everything under a black pixel will be invisible --> <path d="m10,35 a20,20,0,0,1,50,35 a20,20,0,0,1,90,35 q90,65,50,95 q10,65,10,35 z" fill="black" /> </mask> <polygon points="-10,110 110,110 110,-10" fill="orange" /> <!-- with this mask applied, we "punch" a heart shape hole into the circle --> <circle cx="50" cy="50" r="50" mask="url(#mymask)" /> </svg> attributes height this attribute defines the height of the masking area.
<stop> - SVG: Scalable Vector Graphics
Web › SVG › Element › stop
height:100% } <svg viewbox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <lineargradient id="mygradient" gradienttransform="rotate(90)"> <stop offset="5%" stop-color="gold" /> <stop offset="95%" stop-color="red" /> </lineargradient> </defs> <!-- using my linear gradient --> <circle cx="5" cy="5" r="4" fill="url('#mygradient')" /> </svg> attributes offset this attribute defines where the gradient stop is placed along the gradient vector.
<view> - SVG: Scalable Vector Graphics
Web › SVG › Element › view
zoomandpan viewtarget example svg <svg width="600" height="200" viewbox="0 0 600 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <radialgradient id="gradient"> <stop offset="0%" stop-color="#8cffa0" /> <stop offset="100%" stop-color="#8ca0ff" /> </radialgradient> </defs> <circle r="50" cx="180" cy="50" style="fill:url(#gradient)"/> <view id="halfsizeview" viewbox="0 0 1200 400"/> <view id="normalsizeview" viewbox="0 0 600 200"/> <view id="doublesizeview" viewbox="0 0 300 100"/> <a xlink:href="#halfsizeview"> <text x="5" y="20" font-size="20">half size</text> </a> <a xlink:href="#normalsizeview"> <text x="5" y="40" font-size="20">normal size</text> </a> <a xlink:href="#doublesizeview">...
SVG 2 support in Mozilla - SVG: Scalable Vector Graphics
implicit box transformation to show nearest ancestor <svg> element implementation status unknown unspecified svg view fragment parameters don't cause corresponding attributes to be reset to initial values implementation status unknown viewtarget attribute of <view> and corresponding svg view fragment parameter removed implementation status unknown fragment-only urls are always same-document implementation status unknown additional attributes on <a> implemented (bug 1451823) scripting change notes contentscripttype removed implementation status unknown animationevents.onload removed implementation status unknown fonts change notes <font>, <glyph>, <missing-glyph>,...
Filter effects - SVG: Scalable Vector Graphics
alpha" operator="in" result="specout"/> <fecomposite in="sourcegraphic" in2="specout" operator="arithmetic" k1="0" k2="1" k3="1" k4="0" result="litpaint"/> <!-- merge offsetblur + litpaint --> <femerge> <femergenode in="offsetblur"/> <femergenode in="litpaint"/> </femerge> </filter> </defs> <!-- graphic elements --> <g filter="url(#myfilter)"> <path fill="none" stroke="#d90000" stroke-width="10" d="m50,66 c-50,0 -50,-60 0,-60 h100 c50,0 50,60 0,60z" /> <path fill="#d90000" d="m60,56 c-30,0 -30,-40 0,-40 h80 c30,0 30,40 0,40z" /> <g fill="#ffffff" stroke="black" font-size="45" font-family="verdana" > <text x="52" y="52">svg</text> </g> </g> </svg> step 1 <fegaus...
Getting started - SVG: Scalable Vector Graphics
servers should send the http headers: content-type: image/svg+xml vary: accept-encoding for gzip-compressed svg files, servers should send the http headers: content-type: image/svg+xml content-encoding: gzip vary: accept-encoding you can check that your server is sending the correct http headers with your svg files by using the network monitor panel or a site such as websniffer.cc.
SVG Filters Tutorial - SVG: Scalable Vector Graphics
ment the desired effect.
SVG In HTML Introduction - SVG: Scalable Vector Graphics
="activate!" onclick="signalerror();"></p> </fieldset> </form> <svg viewbox="0 0 100 100" preserveaspectratio="xmidymid slice" style="width:100%; height:100%; position:absolute; top:0; left:0; z-index:-1;"> <lineargradient id="gradient"> <stop class="begin" offset="0%"/> <stop class="end" offset="100%"/> </lineargradient> <rect x="0" y="0" width="100" height="100" style="fill:url(#gradient)" /> <circle cx="50" cy="50" r="30" style="fill:url(#gradient)" /> </svg> </body> </html> discussion the page is mainly regular html, css and javascript.
SVG fonts - SVG: Scalable Vector Graphics
ont> <text font-family="super sans">my text uses super sans</text> however, you are free to combine several methods for great freedom of how and where to define the font.
Using shadow DOM - Web Components
lement('span'); wrapper.setattribute('class', 'wrapper'); let icon = document.createelement('span'); icon.setattribute('class', 'icon'); icon.setattribute('tabindex', 0); let info = document.createelement('span'); info.setattribute('class', 'info'); // take attribute content and put it inside the info span let text = this.getattribute('data-text'); info.textcontent = text; // insert icon let imgurl; if(this.hasattribute('img')) { imgurl = this.getattribute('img'); } else { imgurl = 'img/default.png'; } let img = document.createelement('img'); img.src = imgurl; icon.appendchild(img); styling the shadow dom after that we create a <style> element and populate it with some css to style it: // create some css to apply to the shadow dom let style = document.createelement('style'); style.
Functions - XPath
) xslt-specific function-available() generate-id() xslt-specific id() (partially supported) key() xslt-specific lang() last() local-name() name() namespace-uri() normalize-space() not() number() position() round() starts-with() string() string-length() substring() substring-after() substring-before() sum() system-property() xslt-specific translate() true() unparsed-entity-url() xslt-specific (not supported) ...
XPath
ch a pattern or not.
XSLT elements reference - XSLT: Extensible Stylesheet Language Transformations
Web › XSLT › Element
imply a string that includes an embedded xpath expression which is used to specify the value of an attribute.
PI Parameters - XSLT: Extensible Stylesheet Language Transformations
orted as of firefox 2.0.0.1.
Resources - XSLT: Extensible Stylesheet Language Transformations
xsl results firefox extension (presently awaiting review) - allows one to experiment with xsl, by applying xsl stylesheets (which are manually entered, found via a url or on the file-system) to an xml document (the currently-loaded document or a manually entered/pasted one).
The Netscape XSLT/XPath Reference - XSLT: Extensible Stylesheet Language Transformations
-space() (supported) not() (supported) number() (supported) position() (supported) round() (supported) starts-with() (supported) string() (supported) string-length() (supported) substring() (supported) substring-after() (supported) substring-before() (supported) sum() (supported) system-property() (supported) translate() (supported) true() (supported) unparsed-entity-url() (not supported) ...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
ted) normalize-space() (supported) not() (supported) number() (supported) position() (supported) round() (supported) starts-with() (supported) string() (supported) string-length() (supported) substring() (supported) substring-after() (supported) substring-before() (supported) sum() (supported) system-property() (supported) translate() (supported) true() (supported) unparsed-entity-url() (not supported) for further reading books online the world wide web consortium portals articles tutorials/examples mailing lists/newsgroups resources index original document information copyright information: copyright © 2001-2003 netscape.