Search completed in 1.54 seconds.
RelationsCount
<< nsIAccessible Page Summary Returns the number of accessible
relations for this object. ...
... << nsIAccessible Page Summary Returns the number of accessible
relations for this object. ...
... << nsIAccessible Page Summary Returns the number of accessible
relations for this object. attribute unsigned long
relationsCount; See Also nsIAccessible.getRelation() nsIAccessible.get
Relations() nsIAccessible.getAccessibleRelated() ...
GetRelations
<< nsIAccessible Page Summary This method returns multiple accessible
relations for this accessible object. nsIArray get
Relations(); Return value Returns nsIArray array of accessible
relations for this object, every accessible relation object implements nsIAccessibleRelation interface. ...
... << nsIAccessible Page Summary This method returns multiple accessible
relations for this accessible object. nsIArray get
Relations(); Return value Returns nsIArray array of accessible
relations for this object, every accessible relation object implements nsIAccessibleRelation interface. ...
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
d out using CSS Grid Layout. It isn't the case that you should use flexbox for small components and grid layout for larger ones; a tiny component can be two dimensional, and a large layout can be represented better with layout in one dimension. Try things out -- we have a choice in layout method for the first time, so take advantage of it. For more comparisons of grid and flexbox see the article
Relationship of Grid Layout to other layout methods. This article details many of the ways that Grid Layout differs from flex layout, and demonstrates some of the extra functionality you get when using Grid Layout such as layering of items on the grid. This may also help in your decision as to which layout method to use. Flexbox and display: contents The contents value of the display property is a new va...
Index - Web APIs
erence, drag and drop The DataTransfer.effectAllowed property specifies the effect that is allowed for a drag operation. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of
relationship or connection will be created between the source and drop locations. 788 DataTransfer.files API, HTML DOM, Property, Reference, drag and drop The DataTransfer.files property is a list of the files in the drag operation. If the operation includes no files, the list is empty. 789 DataTransfer.getData() API, HTML DOM, Method, Reference, drag and drop The ...
...rElement.referrerPolicy property reflect the HTML referrerpolicy attribute of the <a> element defining which referrer is sent when fetching the resource. 1566 HTMLAnchorElement.rel API, HTML DOM, HTMLAnchorElement, Property, Reference The HTMLAnchorElement.rel property reflects the rel attribute. ...
...eparated list of link types indicating the
relationship between the resource represented by the <a> element and the current document. 1567 HTMLAnchorElement.relList API, HTML DOM, HTMLAnchorElement, Property, Reference, relList The HTMLAnchorElement.relList read-only property reflects the rel attribute. It is a live DOMTokenList containing the set of link types indicating the
relationship between the resource represented by the <a> element and the current document. 1568 HTMLAreaElement API, HTML DOM, Interface, Reference The HTMLAreaElement interface provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. ...
...And 7 more matches
IAccessible2
[propget] HRESULT localizedExtendedRole([out] BSTR localizedExtendedRole ); [propget] HRESULT localizedExtendedStates([in] long maxLocalizedExtendedStates, [out, size_is(,maxLocalizedExtendedStates), length_is(, nLocalizedExtendedStates)] BSTR localizedExtendedStates, [out] long nLocalizedExtendedStates ); [propget] HRESULT nExtendedStates([out] long nExtendedStates ); [propget] HRESULT n
Relations([out] long n
Relations ); [propget] HRESULT relation([in] long relationIndex, [out] IAccessibleRelation relation ); [propget] HRESULT
relations([in] long max
Relations, [out, size_is(max
Relations), length_is( n
Relations)] IAccessibleRelation
relations, [out] long n
Relations ); HRESULT role([out] long role ); HRESULT scrollTo([in] enum IA2ScrollType scrollType ); HRESULT scrollToPoint([in]...
... it with CoTaskMemFree. nLocalizedExtendedStates The number of localized extended states returned; the size of the returned array. Return value S_FALSE if there are no states, [out] values are null and 0 respectively. S_OK. nExtendedStates() Returns the number of extended states. [propget] HRESULT nExtendedStates( [out] long nExtendedStates ); Parameters nExtendedStates Return value S_OK. n
Relations() Returns the number of accessible
relations for this object. [propget] HRESULT n
Relations( [out] long n
Relations ); Parameters n
Relations Return value S_OK. relation() Returns one accessible relation for this object. [propget] HRESULT relation( [in] long relationIndex, [out] IAccessibleRelation relation ); Parameters relationIndex 0 based. relation Return value E_INVALIDARG if bad ...
...tions for this object. [propget] HRESULT n
Relations( [out] long n
Relations ); Parameters n
Relations Return value S_OK. relation() Returns one accessible relation for this object. [propget] HRESULT relation( [in] long relationIndex, [out] IAccessibleRelation relation ); Parameters relationIndex 0 based. relation Return value E_INVALIDARG if bad [in] passed, [out] value is null. S_OK.
relations() Returns multiple accessible
relations for this object. [propget] HRESULT
relations( [in] long max
Relations, [out, size_is(max
Relations), length_is( n
Relations)] IAccessibleRelation
relations, [out] long n
Relations ); Parameters max
Relations Maximum size of the array allocated by the client.
relations The array of accessible relation objects. Note that this array is to be allocated by th...
...And 5 more matches
Gecko info for Windows accessibility vendors
s up your own table data structure, or 2) use ISimpleDOMNode and parse the table See below for the complete list of roles and notes about what we support Intentional Differences with Internet Explorer For the most part, where we support an MSAA feature, we have tried to duplicate Internet Explorer's use of it. Please let us know if you find any differences not listed here: Accessible
Relations are Supported The accNavigate() method can be used with new constants defined for Gecko. The results are always returned via VT_DISPATCH. enum { NAVRELATION_LABEL_FOR = 0x1002 }; enum { NAVRELATION_DESCRIPTION_FOR = 0x100f }; These two
relations can be used on object to determine what form control is being labelled or desribed. enum { NAVRELATION_LABELLED_BY = 0x1003 }; enum {...
... used with new constants defined for Gecko. The results are always returned via VT_DISPATCH. enum { NAVRELATION_LABEL_FOR = 0x1002 }; enum { NAVRELATION_DESCRIPTION_FOR = 0x100f }; These two
relations can be used on object to determine what form control is being labelled or desribed. enum { NAVRELATION_LABELLED_BY = 0x1003 }; enum { NAVRELATION_DESCRIBED_BY = 0x100e }; These two
relations are they inverse; they can be used on form controls. If the form control has an accName, you can get the IAccessible that it was labelled by in order to get more formatting information. ...
...r desribed. enum { NAVRELATION_LABELLED_BY = 0x1003 }; enum { NAVRELATION_DESCRIBED_BY = 0x100e }; These two
relations are they inverse; they can be used on form controls. If the form control has an accName, you can get the IAccessible that it was labelled by in order to get more formatting information. It is also useful to check for a description. Note that the label and description
relations may be used to prevent redundant information from being presented by the screen reader, since the label and description can occur both on their own, and in the name or description fields of an IAccessible. enum { NAVRELATION_DEFAULT_BUTTON = 0x100d }; When used within an HTML form or a XUL dialog, the NAVRELATION_DEFAULT_BUTTON relation will return the IAccessible for the default button.
...And 4 more matches
Index
used). 103 Component Internals Obsolete, XPCOM Let's start by examining how XPCOM components are written in C++. The most common type of component is one that is written in C++ and compiled into a shared library (a DLL on a Windows system or a DSO on Unix). 104 Creating the Component Code XPCOM This chapter goes over the basic code required to handle the
relationship between your component and XPCOM. Having the component found and registered properly is the goal of this first chapter of the tutorial. In the subsequent chapters, we can begin to work on the example WebLock component functionality itself. 105 Finishing the Component XPCOM At this point you have created most of the infrastructure of the component. The component will be rec...
...ogies that make up XPCOM. Accordingly, the book is arranged so that you can follow along and create your own components or learn about different XPCOM topics individually, as in a reference work. For example, the introduction includes a discussion of components and what they are, and the first chapter - in which you compile the basic code and register it with Mozilla - prompts a discussion of the
relationship between components and modules, of XPCOM interfaces, and of the registration process in general. 108 Resources Guide, XPCOM This last section of the book provides a list of resources referred to in the tutorial and other links that may be useful to the Gecko developer. 109 Setting up the Gecko SDK NeedsUpdate, Tutorial, XPCOM This chapter provides basi...
...ces, NeedsContent, XPCOM, XPCOM Interface Reference This method is only used in content tabs to receive nsIAcceleration data from the chrome process. 232 nsIAccessNode Accessibility, Interfaces, Interfaces:Scriptable, XPCOM, XPCOM Interface Reference The nsIAccessNode implementations are instantiated lazily. The nsIAccessNode tree for a given DOM window has a one to one
relationship to the DOM tree. If the DOM node for this access node is "accessible", then a QueryInterface to nsIAccessible will succeed. 233 DOMNode No summary! 234 GetChildNodeAt No summary! 235 GetComputedStyleCSSValue No summary! 236 GetComputedStyleValue No summary! 237 accessibleDocument No su...
...And 4 more matches
The Implementation of the Application Object Model - Archive of obsolete content
ement, nsIDOMNode, nsIXMLContent, and nsIContent. What is RDF? RDF (pronounced R-D-F) has never been a ravening demon intent upon taking over the Earth, although that does depend on who you ask. RDF stands for resource description framework, a rather intimidating name that doesn't do much to help the layman understand exactly what it does. RDF provides a very general mechanism for representing
relationships between different disparate types of data. The
relationships between data are represented as a directed labeled graph structure. The data itself can be fed in from any number of different sources (e.g., from a local file system, from your bookmarks file, or from some remote downloadable RDF file), and can then be combined into a single graph. Ok, so after that paragraph many of you probably s...
...d by the file. The resulting structure is what the user actually ends up viewing. Forget XUL! Let's just use serialized RDF! Well, that's just plain cool! I say forget XUL! Let's just use serialized RDF to represent the UI! That would be an unwise decision for a variety of reasons. RDF is a graph structure, and windows and dialogs are actually content trees. Because RDF can express arbitrary
relationships between nodes, the serialized form of RDF in XML has to contain extra syntax. In other words, the traditional
relationship of "containment" is not the only kind of
relationship expressible in RDF. In HTML or XUL, when you put one tag inside another tag, a
relationship of containment can safely be assumed. Not so with RDF. For RDF, an extra tag has to be inserted between two other tags to indi...
...The resultant file, although still relatively easy to manipulate, is bloated needlessly with extra syntax that is not strictly necessary. RDF is not a markup language. RDF can be serialized as an XML file, but it isn't a parallel to HTML. It's something different. ...
...And 3 more matches
MathML Demo: <mo> - operator, fence, separator, or accent
The symbols occur in the context of a simple expression. In general, the lspace and rspace around the relation should be greater than that around the operation. Operator and
relations center vertically on the math axis. ...
... Binary Operators and
Relations The following table contains instances of all operators found on the SWP Binary Operations and Binary
Relations panels. The symbols occur in the context of a simple expression. In general, the lspace and rspace around the relation should be greater than that around the operation. Operator and
relations center vertically on the math axis. a +- b <= c a ? b ? c a x b ? c a ? b << c a * b ? c a ? b ? c a ? b ? c a ? b ? c a o b ? c a / b ? c a ? b ? c a ? b ? c a ? b ? c a \ b ~ c a \ b ? c a ? b ? c ...
... a ? b ? c a + b ? c a ? b ? c a ? b \vartriangle c Arrows The following table contains instances of all arrows found on the SWP Arrows panel. The symbols occur in the context of a simple expression. In general, the lspace and rspace around arrows should be similar to the spacing around
relations. There is an issue with the markup of "long" LaTeX arrows in MathML. There are entities from these arrows, ⟵ ⟸ ⟶ etc. but they have no standard unicodes. They can be viewed as stretched versions of short arrows. \longleftarrow can be scripted as <mo>⟵</mo> or as <mo stretchy="true" minsize="1.8">←</mo>. a ? b <- c a ? b <= c ...
...And 3 more matches
<link>: The External Resource Link element - HTML: Hypertext Markup Language
This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...nteractive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. To link an external stylesheet, you'd include a <link> element inside your <head> like this: <link href="main.css" rel="stylesheet"> This simple example provides the path to the stylesheet inside an href attribute, and a rel attribute with a value of stylesheet. The rel stands for "
relationship", and is probably one of the key features of the <link> element -- the value denotes how the item being linked to is related to the containing document. As you'll see from our Link types reference, there are many different kinds of
relationship. There are a number of other common types you'll come across. For example, a link to the site's favicon: <link rel="icon" href="favicon.ico"> There ...
...ther origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer's path. unsafe-url means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins. rel This attribute names a
relationship of the linked document to the current document. The attribute must be a space-separated list of link type values. sizes This attribute defines the sizes of the icons for visual media contained in the resource. It must be present only if the rel contains a value of icon or a non-standard type such as Apple's apple-touch-icon. It may have the following values: any, meaning that the icon ca...
...And 2 more matches
XML - Archive of obsolete content
XUL Syntax & Rules XUL is a standards-based interface definition language. It attempts to balance precise control of layout with flexibility and ease of use, and in this respect it does a great job. Using a combination of XUL's ready-made widgets (e.g., menubar, scrollbar, progressmeter, and so on) and XUL's incorporation of such standards as HTML4, DOM1/2, and Cascading Stylesheets, you can design any interface that you can imagine, using any number of different features, tools, and methodologies. There are many times, for example, when you may use JavaScript tricks to add extra behavior. ...
...ed new languages out of XML. MathML and the Chemical Markup Language (CML) are two of the better-known and more widely-used languages, but there are hundreds. Information developers create languages particular to their applications, any time they need a very specific way to represent the structure of some data. When we say language, we mean that developers create a set of terms, orlexicon, and a
relationship between these terms, or what some people call agrammar. Then they insist that their authors use the language to describe the thing it has been created for. Those authors may be people or machines, but they must use the new language if the readers are to understand what sort of data it is they are reading. It's much simpler than it seems -- much simpler, in fact, than a lot of XML primers and r...
... what XML is: a meta-language for defining languages appropriate to the tasks at hand; It's structured in a way that makes it accessible as "information" to both humans and machines. HTML -- which is a derived language like our MemoML (see the Appendix notes for information on the geneology of markup languages) -- has been created for the purposes of representing hypertext documents and the basic
relationships between them. Humans read raw HTML often when they edit HTML documents, though this is changing as regular HTML editors are replaced by WYSIWYG HTML editors, and so do HTML parsers, which use the markup to format the document in its presentational form in web browsers. Like HTML and MemoML, XUL is an XML-based language. Where in HTML the elements are used to describe the look of text, in XUL...
...es. They are a toolkit whose tools are as simple as HTML tags but as powerful as visual GUI builder tools. In the context of the interface being assembled, these XUL elements are referred to as widgets -- and sometimes collectively as the XPToolkit. As a set of interface-defining tags, XULis the widgets its tags describe. XUL is little beyond the set of tags used to define interface widgets, the
relationship between them, or grammar, and some built-in flexibility for using extra resources like images, HTML elements, and other standards-based technologies. But this is all you need to build any interface. XUL is timely. Only quite recently have the standards out of which XUL was fashioned matured to a level where they might really be powerful and flexible enough to support the sort of development t...
GetRelation
urns accessible relation for this accessible object by index. nsIAccessibleRelation getRelation( in unsigned long aIndex ); Parameters aIndex[in] The index for which relation is to be retrieved. ...
...ndex. nsIAccessibleRelation getRelation( in unsigned long aIndex ); Parameters aIndex[in] The index for which relation is to be retrieved. Return value Returns nsIAccessibleRelation object for this accessible. ...
...Index ); Parameters aIndex[in] The index for which relation is to be retrieved. Return value Returns nsIAccessibleRelation object for this accessible. ...
...The index for which relation is to be retrieved. ...
nsIAccessible
cessibles nsIAccessible.firstChild, nsIAccessible.lastChild to get first and last child nsIAccessible.children, nsIAccessible.getChildAt(), nsIAccessible.childCount to navigate through the children by index Accessible position You can use nsIAccessible.indexInParent to get accessible index in its parent. Use nsIAccessible.groupPosition() to get information about this accessible in its group. ...
...n You can use nsIAccessible.indexInParent to get accessible index in its parent. Use nsIAccessible.groupPosition() to get information about this accessible in its group.
Relations Many accessibles are linked with each other, for example, if one accessible gives the accessible name for another accessible (for example, html:label and html control) then these accessibles are related, please refer to
relations documentation for more information. You can get related accessibles by methods nsIAccessible.getAccessibleRelated() nsIAccessible.get
Relations() nsIAccessible.getRelation() and nsIAccessible.
relationsCount. Focus and selection In order to focus an accessible or get focused child accessible use nsIAccessible.takeFocus() and nsIAccessible.focusedChild. To select an accessible you can use ns...
... This method returns an accessible node geometrically above this one. getAccessibleBelow This method returns an accessible node geometrically below this one. getAccessibleRelated This method returns an accessible related to this one by the given relation type. getRelation This method returns one accessible relation for this object. get
Relations This method returns multiple accessible
relations for this object. getBounds This method returns accessible's (x and y) coordinates relative to the screen and accessible's width and height. setSelected This method adds or remove this accessible to the current selection. extendSelection This method extends the current selection from its curren...
...ems. defaultKeyBinding Provides localized string of global keyboard accelerator for default action, such as Ctrl+O for Open file. role Enumerated accessible role for the associated element. help Help text associated with node. focusedChild Focused accessible child of node. attributes Attributes of accessible.
relationsCount Returns the number of accessible
relations for this object. numActions The number of accessible actions associated with this accessible. ...
Accessibility documentation index - Accessibility
ivedescendant attribute Attribute, Document Object Model, NeedsContent, Property, Widget, aria-activedescendant This article describes the aria-activedescendant property. 18 Using the aria-describedby attribute ARIA, Accessibility, Attribute The aria-describedby attribute is used to indicate the IDs of the elements that describe the object. It is used to establish a
relationship between widgets or groups and text that described them. This is very similar to aria-labelledby: a label describes the essence of an object, while a description provides more information that the user might need. 19 Using the aria-hidden attribute ARIA, Accessibility, Attribute, CodingScripting, HTML, JavaScript, NeedsContent, Role(2), agent, alert, user, userAgent This te...
...ent, aria-label, user, userAgent The aria-label attribute is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use aria-labelledby instead. 22 Using the aria-labelledby attribute ARIA, Accessibility, broken link The aria-labelledby attribute establishes
relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.This idea is similar to how the "for" attribute is used to link a LABEL to an INPUT.Assistive technology, such as screen readers, use this attribute to catalog the objects in a document so th...
... toolbar role and describes the effect it has on browsers and assistive technology. 40 x-ms-aria-flowfrom ARIA, Microsoft, Non-standard The x-ms-aria-flowfrom property specifies the id of the previous element in an alternative reading order, allowing assistive technology to override the general default of reading in document source order. The property serves to define element
relationships utilizing ARIA
relationship attributes and the aria-flowto property. 41 WAI-ARIA Roles ARIA, ARIA Roles, Accessibility, Reference, Roles This page lists reference pages covering all the WAI-ARIA roles discussed on MDN. For a full list of roles, see Using ARIA: Roles, States, and Properties 42 ARIA: Comment role ARIA, ARIA Role, Comment, Reference, annotatio...
...gridcell role is used to make a cell in a grid or treegrid. It is intended to mimic the functionality of the HTML td element for table-style grouping of information. 66 ARIA: heading role ARIA, ARIA Role, ARIA heading, Reference The heading role defines this element as a heading to a page or section. To give the page more structure, a level should also be provided to indicate
relationships between sections. 67 ARIA: img role ARIA, ARIA Img, ARIA Role, Accessibility, Reference, Role, figure The ARIA img role can be used to identify multiple elements inside page content that should be considered as a single image. These elements could be images, code snippets, text, emojis, or other content that can be combined to deliver information in a visual manner. ...
Index - MDN Web Docs Glossary: Definitions of Web-related terms
Web, l10n:priority CSS (Cascading Style Sheets) is a declarative language that controls how webpages look in the browser. 56 CSS Object Model (CSSOM) CSS, CSSOM, DOM, Glossary, Web Performance The CSS Object Model (CSSOM) is a map of all CSS selectors and relevant properties for each selector in the form of a tree, with a root node, sibling, descendant, child, and other
relationship. The CSSOM is very similar to the Document Object Model (DOM). Both of them are part of the critical rendering path which is a series of steps that must happen to properly render a website. 57 CSS pixel CSS, CSS Pixel, Glossary, height, length, pixel, size, unit, width The CSS pixel--denoted in CSS with the suffix px--is a unit of length which roughly corresponds to the wi...
... that is instantiated. The constructor initializes this object and can provide access to its private information. The concept of a constructor can be applied to most object-oriented programming languages. Essentially, a constructor in JavaScript is usually declared at the instance of a class. 89 Continuous Media Glossary, Media Continuous media is data where there is a timing
relationship between source and destination. The most common examples of continuous media are audio and motion video. Continuous media can be real-time (interactive), where there is a "tight" timing
relationship between source and sink, or streaming (playback), where the
relationship is less strict. 90 Control flow CodingScripting, Glossary, JavaScript The control flow is the order in ...
...nd. 449 TLD Glossary, Web, WebMechanics A TLD (top-level domain) is the most generic domain in the Internet's hierarchical DNS (domain name system). A TLD is the final component of a domain name, for example, "org" in developer.mozilla.org. 450 TOFU HTTP, SSH, Security Trust On First Use (TOFU) is a security model in which a client needs to create a trust
relationship with an unknown server. To do that, clients will look for identifiers (for example public keys) stored locally. If an identifier is found, the client can establish the connection. If no identifier is found, the client can prompt the user to determine if the client should trust the identifier. 451 TTL Caching, Domain Name System, Glossary, Infrastructure, Networking, Performance ...
Script security
and are therefore same-origin with each other. Therefore there's no need for any security checks, there are no wrappers, and there is no performance overhead for the common case of objects in a single window interacting with each other. Whenever cross-compartment access happens, the wrappers enable us to implement the appropriate security policy. Because the wrapper we choose is specific to the
relationship between the two compartments, the security policy it implements can be static: when the caller uses the wrapper, there's no need to check who is making the call or where it is going. Cross-compartment access Same-origin As we've already seen, the most common scenario for same-origin access is when objects belonging to the same window object interact. This all takes place within the same com...
...rget object. However, the privileged target is able to copy objects and functions into the less privileged scope using the exportFunction() and cloneInto() functions, and the less privileged scope is then able to use them. Security checks To determine the security relation between two compartments, Gecko uses two concepts: security principals and the act of subsuming. To establish the security
relationship between two compartments A and B, Gecko asks: Does the security principal for compartment A subsume the security principal for compartment B, and vice versa? Subsumes A subsumes B A has all of the privileges of B, and possibly more, and therefore A is allowed to see and do anything that B can see and do. A Subsumes B && B Subsumes A A and B are same-origin. ...
...by untrusted web content, without having to give content scripts system privileges. Null principal The null principal fails almost all security checks. It has no privileges and can't be accessed by anything but itself and chrome. It subsumes no other principals, even other null principals. (This is what is used when HTML5 and other specs say "origin is a globally unique identifier".) Principal
relationships The diagram below summarizes the
relationships between the different principals. The arrow connecting principals A and B means "A subsumes B". (A is the start of the arrow, and B is the end.) Computing a wrapper The following diagram shows the factors that determine the kind of wrapper that compartment A would get when trying to access an object in compartment B. ...
Extending a Protocol
nerally want the parent to let a child know when some work is done - and send some confirmation or result data back to the child. Sometimes, the parent will want to notify all its children of something. So communication can go in both directions. In this tutorial, we are just going to cover a child talking to a parent, and the parent responding with some data. In order to manage parent-child
relationships, IPDL uses a tree herirachy to manage the creation of children. As DOM APIs have access to the Window object, we generally want to use the "PWindowGlobal" protocol to manage things for us: this protocol is convinient because we can easily access it from the Window object... so as long as we can get a hold of a Window object, we can get it to do useful things for us (as we shall soon see!). I...
...parent. And the inverse is also true, as you will soon see: PEcho.idpl will need explicitly state that PWindowGlobal.ipdl is managing it. Includes: this is kinda like "#includes" in C++, except it's not a preprocessor directive. It just includes the defintion and makes it available to PWindowGlobal.ipdl. Constructs: by which we mean, PWindowGlobal is in charge of contructing the parent/child
relationship. Without this, we can't send messages. Anyway, let's put the above into practice by creating our custom protocol: PEcho.ipdl. Custom protocol - PEcho.ipdl This next part requires us to both specify the protocol and actually implement everything in C++. It's quite involved and, unfortunately, all steps need to be done before we can successfully recompile. We will try to compile our code...
...ings in bold is what we added). // Stuff.. include protocol PEcho; async protocol PWindowGlobal { // stuff... manages PEcho; child: // stuff... parent: async PEcho(); // more stuff... } If the above additions are unclear, please see the final implementation of PEcho as a diff in Phabricator - search for "PWindowGlobal.ipdl". Congrats! We've now set up the bi-directional
relationship between PWindowGlobal and PEcho at the protocol level. We've told Gecko who manages who, and what messages we want to send. Now we actually need to implement the "EchoChild" and "EchoParent" actors to handle sending and receiving messages. And we also need to implement the actual management of these objects by dom/ipc/WindowGlobalChild.{h|cpp} and dom/ipc/WindowGlobalParent.{h|cpp}. If we n...
Creating the Component Code
Having the component found and registered properly is the goal of this first chapter of the tutorial. In the subsequent chapters, we can begin to work on the example WebLock component functionality itself. Use the Calculator (After Learning Long Division) You have to write a fair amount of code to create a component library that gets loaded into XPCOM. An XPCOM component needs to implement at least three interfaces that XPCOM requires, and often others as well. There is more code in this chapter than you'll eventually need, however. ...
...out using these macros). The two other includes, nsIComponentManager.h and nsIComponentRegistrar.h, provide functions such as RegisterFactoryLocation that are required to implement the module and factory classes in your code. Identifiers in XPCOM The series of nsIID variables initialized here are actually classes created for handing the 128-bit identifiers that XPCOM uses to support contractual
relationships between the client and component interfaces. The variable kIFactoryIID, for example, provides methods like Equals() that can be used to facilitate comparisons in the code, as in the following example from the Mozilla source: Using Class Methods to Handle Identifiers if (aIID.Equals(NS_GET_IID(nsISupports))) { *aInstancePtr = (void*)(nsISupports*)this; NS_ADDREF_THIS(); return NS_OK; }...
...f the special "bots" on IRC in #developers, where you can also get help from human beings. irc irc.mozilla.org /join #developers /msg firebot uuid This command makes the bot generate and return a UUID, which you can then copy into your component source code. Now that we've looked at the preliminaries, it's time to discuss the classes that this module provides and the way that they define the
relationships of the component in XPCOM. Coding for the Registration Process When XPCOM discovers your component for the first time (via XPInstall or regxpcom, both of which are discussed in Component Installation Overview), the first thing it tries to do is load your library and find the symbol NSGetModule. When this special entry point is called, it is passed XPCOM's Component Manager and the location ...
GetAccessibleRelated
<< nsIAccessible Page Summary This method returns an accessible related to this one by the given relation type. nsIAccessible getAccessibleRelated( in unsigned long aRelationType ); Parameters aRelationType[in] The relation type between the accessible (See constants listed in
relations documentation). Return value Returns an accessible which is related to the one provided by the given relation type. ...
...ation type between the accessible (See constants listed in
relations documentation). ...
...essible (See constants listed in
relations documentation). Return value Returns an accessible which is related to the one provided by the given relation type. ...
nsIAccessibleRelation
1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) Note: Be carefull, do not change constants until ATK has a structure to map gecko constants into ATK constants. Method overview nsIAccessible getTarget(in unsigned long index); nsIArray getTargets(); Attributes Attribute Type Description relationType unsigned long Returns the type of the relation. Read only. ...
...BEL_FOR 0x03 This object is label for a target object. RELATION_LABELLED_BY 0x04 This object is labelled by a target object. If the accessible has an nsIAccessible.name() , you can get the nsIAccessible that it was labelled by in order to get more formatting information. Note: The label and description (see RELATION_DESCRIBED_BY)
relations may be used to prevent redundant information from being presented by the screen reader, since the label and description can occur both on their own, and in the name or description fields of an nsIAccessible. RELATION_MEMBER_OF 0x05 This object is a member of a group of one or more objects. When there is more than one object in the group each member may have one ...
... 0x0d This object is a parent window of the target object. RELATION_DESCRIBED_BY 0x0e This object is described by the target object. If the accessible has an nsIAccessible.description() , you can get the nsIAccessible that it was described by in order to get more formatting information. Note: The label (see RELATION_LABELLED_BY) and description
relations may be used to prevent redundant information from being presented by the screen reader, since the label and description can occur both on their own, and in the name or description fields of an nsIAccessible. RELATION_DESCRIPTION_FOR 0x0f This object is describes the target object. RELATION_DEFAULT_BUTTON 0x4000 Part of a form/dialog with a r...
HTMLLinkElement - Web APIs
This object inherits all of the properties and methods of the HTMLElement interface. ...
...ement.hreflang Is a DOMString representing the language code for the linked resource. HTMLLinkElement.media Is a DOMString representing a list of one or more media formats to which the resource applies. HTMLLinkElement.referrerPolicy Is a DOMString that reflects the referrerpolicy HTML attribute indicating which referrer to use. HTMLLinkElement.rel Is a DOMString representing the forward
relationship of the linked resource from the document to the resource. HTMLLinkElement.relList Read only Is a DOMTokenList that reflects the rel HTML attribute, as a list of tokens. HTMLLinkElement.sizes Read only Is a DOMSettableTokenList that reflects the sizes HTML attribute, as a list of tokens. LinkStyle.sheet Read only Returns the StyleSheet object associated with the given element, or null ...
...LinkStyle.sheet Read only Returns the StyleSheet object associated with the given element, or null if there is none. HTMLLinkElement.type Is a DOMString representing the MIME type of the linked resource. Obsolete properties HTMLLinkElement.charset Is a DOMString representing the character encoding for the target resource. HTMLLinkElement.rev Is a DOMString representing the reverse
relationship of the linked resource from the resource to the document. Note: Currently the W3C HTML 5.2 spec states that rev is no longer obsolete, whereas the WHATWG living standard still has it labeled obsolete. Until this discrepancy is resolved, you should still assume it is obsolete. HTMLLinkElement.target Is a DOMString representing the name of the target frame to which the resource applies. ...
Applying color to HTML elements using CSS - HTML: Hypertext Markup Language
from the border in that it doesn't get space set aside for it in the document (so it may overlap other content). It's generally used as a focus indicator, to show which element will receive input events. Borders Any element can have a border drawn around it. A basic element border is a line drawn around the edges of the element's content. See Box properties in The box model to learn about the
relationship between elements and their borders, and the article Styling borders using CSS to learn more about applying styles to borders. You can use the border shorthand property, which lets you configure everything about the border in one shot (including non-color features of borders, such as its width, style (solid, dashed, etc.), and so forth. border-color Specifies a single color to use for ever...
...ols available that can help you. While they can't replace having a good designer helping you make these decisions, they can definitely get you started. Base color The first step is to choose your base color. This is the color that in some way defines your website or the subject matter of the site. Just as we associate green with the beverage Mountain Dew and one might think of the color blue in
relationship with the sky or the ocean, choosing an appropriate base color to represent your site is a good place to start. There are plenty of ways to select a base color; a few ideas include: A color that is naturally associated with the topic of your content, such as the existing color identified with a product or idea or a color representative of the emotion you wish to convey. A color that comes f...
...resource for helping you with the color sleection process, but is still full of useful information. Color and accessibility There are several ways color can be an accessibility problem. Improper or careless use of color can result in a website or app that a percentage of your target audience may not be able to use adequately, resulting in lost traffic, lost business, and possibly even a public
relations problem. So it's important to consider your use of color carefully. You should do at least basic research into color blindness. There are several kinds; the most common is red-green color blindness, which causes people to be unable to differentiate between the colors red and green. There are others, too, ranging from inabilities to tell the difference between certain colors to total inability to...
HTML attribute: rel - HTML: Hypertext Markup Language
Every keyword within a space seperated value should be unique within that value. Values for the rel attribute, and the elements for which each is relevant rel value Description <link> <a> and <area> <form> alternate Alternate representations of the current document. ...
...k Not allowed The rel attribute is relevant to the <link>, <a>, <area>, and <form> elements, but some values only relevant to a subset of those elements. Like all HTML keyword attribute values, these values are case-insenstive. The rel attribute has no default value. If the attribute is omitted or if none of the values in the attribute are supported, then the document has no particular
relationship with the destination resource other than there being a hyperlink between the two. In this case, on <link> and <form>, if the rel attribute is absent, has no keywords, or if not one or more of the space-separated keywords above, then the element does not create any links. <a> and <area> will still created links, but without a defined
relationship. Like all HTML keyword attribute values, these ...
...link>, <a>, and <area>, the next values indicates that the current document is a part of a series, and that the next document in the series is the referenced document. When included in a <link>, browsers may assume that document will be fetched next, and treat it as a resource hint. nofollow Relevant to <form>, <a>, and <area>, the nofollow keyword tells search engine spiders to ignore the link
relationship. The nofollow
relationship may indicate the current document's owner does not endorse the referenced document. It is often included by Search Engine Optimizers pretending their link farms are not spam pages. noopener Relevant to <form>, <a>, and <area>, creates a top-level browsing context that is not an auxiliary browsing context if the hyperlink would create either of those to begin with (...
HTML documentation index - HTML: Hypertext Markup Language
nMismatch property will be true. 46 HTML attribute: readonly Attribute, Attributes, Constraint validation, Forms, required The Boolean readonly attribute, when present, makes the element not mutable, meaning the user can not edit the control. 47 HTML attribute: rel Attribute, Attributes, Constraint validation, Link, form, rel The rel attribute defines the
relationship between a linked resource and the current document. Valid on <link>, <a>, <area>, and <form>, the supported values depend on the element on which the attribute is found. 48 HTML attribute: required Attribute, Attributes, Constraint validation, Forms, required The Boolean required attribute 49 HTML attribute: size Attribute, HTML, Input, Reference, Select ...
...ion for the content of its parent <fieldset>. 148 <li> Element, HTML, HTML grouping content, Reference The HTML <li> element is used to represent an item in a list. 149 <link>: The External Resource Link element Element, HTML, HTML document metadata, Link, Reference, Web, Web Performance, metadata The HTML External Resource Link element (<link>) specifies
relationships between the current document and an external resource. This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things. 150 <listing> Element, HTML, Obsolete, Reference, Web The HTML Listing Element (<listing>) renders text between t...
...ply to all elements. 222 Inline elements Beginner, Elements, HTML, HTML Elements, HTML:Element Reference, Layout, Reference Inline elements are those which only occupy the space bounded by the tags defining the element, instead of breaking the flow of the content. 223 Link types Attribute, HTML, Link, Link types, Reference In HTML, link types indicate the
relationship between two documents, in which one links to the other using an <a>, <area>, <form>, or <link> element. 224 Link types: dns-prefetch Attribute, HTML, Link, Link types, Reference The dns-prefetch keyword for the rel attribute of the <link> element is a hint to browsers that the user is likely to need resources from the target resource's origin, and therefore the browser can...
Developing New Mozilla Features - Archive of obsolete content
ts may be new to even seasoned developers. Our cross-platform component model ("XPCOM") is similar to COM, but you'll want to make sure you use it well before going too far with your project. And of course, we have a set of coding practices to help everyone live together. Life will be much easier if your team has one or more members who are already familiar with and to the Mozilla world. Develop
relationships with existing developers in the area of your feature If you want to add a big new feature to mail, spend some time helping the existing mail developers. Talk to the developers about fixing some of their bugs. Fix some bugs. Have some of your QA team get involved. Once you're familiar with an area, do the completely unexpected and write a piece of documentation. Developers will be grateful, a...
...to design your feature so that it can be implemented and reviewed in manageable size patches If you can implement and submit core elements first and build on them in subsequent patches, so much the better. If you think your feature can only be implemented and reviewed in one enormous chunk, ask for design help in the appropriate newsgroup and/or from the developers with whom you have established
relationships. If it is not possible to submit your feature in manageable size patches and you submit a 500k patch, be prepared for several months of review and revision before the patch is ready to be checked in It may not take this long. But if your team has worked for months on a feature, it is going to take reviewers new to the code a long time to work their way through it. And if it's not possible t...
Debug.msUpdateAsyncCallbackRelation - Archive of obsolete content
Remarks The synchronous work item is typically the callback function for the asynchronous operation. This function may be called when an asynchronous operation is aborted, when a join operation is used, or in other scenarios. ...
... Remarks The synchronous work item is typically the callback function for the asynchronous operation. This function may be called when an asynchronous operation is aborted, when a join operation is used, or in other scenarios. ...
Continuous Media - MDN Web Docs Glossary: Definitions of Web-related terms
CSS can be used in a variety of contexts, including print media and some CSS, in particular, that used for layout behaves differently depending on the context it is in. Continuous Media, therefore, identifies a context where the content is not broken up, it flows continuously. ...
... CSS can be used in a variety of contexts, including print media and some CSS, in particular, that used for layout behaves differently depending on the context it is in. Continuous Media, therefore, identifies a context where the content is not broken up, it flows continuously. ...
Power profiling overview
being executed. The other states have higher numbers and reflect increasing deeper idle states. The deeper an idle state is, the less power it uses, but the longer it takes to wake up from. Note: the ACPI standard specifies four states, C0, C1, C2 and C3. Intel maps these to processor-specific states such as C0, C1, C2, C6 and C7. and many tools report C-states using the latter names. The exact
relationship is confusing, and chapter 13 of the Intel optimization manual has more details. The important thing is that C0 is always the active state, and for the idle states a higher number always means less power consumption. The other thing to note about C-states is that they apply both to cores and the entire package -- i.e. if all cores are idle then the entire package can also become idle, which r...
...APL (Running Average Power Limit) interface that provides MSRs containing energy consumption estimates for up to four power planes or domains of a machine, as seen in the diagram above. PKG: The entire package. PP0: The cores. PP1: An uncore device, usually the GPU (not available on all processor models.) DRAM: main memory (not available on all processor models.) The following
relationship holds: PP0 + PP1 <= PKG. DRAM is independent of the other three domains. These values are computed using a power model that uses processor-internal counts as inputs, and they have been verified as being fairly accurate. They are also updated frequently, at approximately 1,000 Hz, though the variability in their update latency means that they are probably only accurate at lower frequencies, e.
NSS API Guidelines
nderstand existing NSS code. It should also help you understand how to write new code, and where to place it. Some of the guidelines in this document, are more forward-looking than documentary. These rules are here to help us all immediately achieve more consistent and usable code, but some existing code won't follow all these rules. NSS API Structure This section explains the structure and
relationships of the NSS libraries. The Layering section explains how the NSS code is layered, and how higher-level functions wrap low-level functions. The Libraries section descibes the NSS libraries, the functionality each provides, and the layer in which the library (mostly) operates. Layering Each separate component of the API should live in its own layer. The functions in these APIs should never ca...
...tely opaque to higher level layers. That is, access to these functions should only be provided by the API directly above them. The NSS APIs are layered, as shown in this diagram: The boxes in the gray section, towards the center, are exported only through PKCS #11. PKCS #11 is only exported through the Wrappers. The areas which need the most work (both here and throughout the code) is: The
relationship of the Certificate library with just about every other component (most noticeably PKCS #12, PKCS #7, and PKCS #11) Splitting Low Key and High Key components more clearly The Crypto wrappers (PKCS #11 Wrappers) and High Key PKCS #12 and PKCS #5 Libraries NSS compiles into the libraries described below. The Layer indicates the main layer, seen in the previous diagram, in which the libr...
gtstd.html
ay be found in the Current NSS Reference Getting Started With SSL Chapter 2 Getting Started With SSL This chapter describes how to set up your environment, including certificate and key databases. SSL, PKCS #11, and the Default Security Databases Setting Up the Certificate and Key Databases Building NSS Programs SSL, PKCS #11, and the Default Security Databases The basic
relationships among the NSS libraries are described in Introduction to Network Security Services. Before running the sample programs, it's important to understand the
relationships between the SSL interface, the PKCS #11 interface, PKCS #11 modules, and the default Netscape security databases. A PKCS #11 module (also called a cryptographic module) manages cryptographic services such as encryption and decr...
...ecryption via the PKCS #11 interface. PKCS #11 modules can be thought of as drivers for cryptographic devices that can be implemented in either hardware or software. Netscape provides a built-in PKCS #11 module with NSS. Other kinds of PKCS #11 modules include the Netscape FORTEZZA module, used by the government, and the Litronic PKCS #11 module for smart card readers. Figure 2.1 illustrates the
relationships between NSPR, SSL, PKCS #11, and the available cryptographic modules. SSL is built on top of NSPR, which handles sockets, threads, and related low-level OS operations. On any given server or client, one or more PKCS #11 modules may be available. Figure 2.1
Relationships among NSS libraries, cryptographic modules, slots, and tokens As shown in the figure, SSL communicates with PKCS #11...
Component Internals
the WebLock component tutorial takes you step by step through the component creation process. XXX mediawiki...XXX sucks Creating Components in C++ Let's start by examining how XPCOM components are written in C++. The most common type of component is one that is written in C++ and compiled into a shared library (a DLL on a Windows system or a DSO on Unix). The illustration below shows the basic
relationship between the shared library containing the component implementation code you write and the XPCOM framework itself. In this diagram, the outer boundary is that of the module, the shared library in which a component is defined. A Component in the XPCOM Framework When you build a component or module and compile it into a library, it must export a single method named NSGetModule. This NSGetModu...
... in modules, and those modules are defined in shared library files that typically sit in the components directory of an XPCOM application. A set of default libraries stored in this components directory makes up a typical Gecko installation, providing functionality that consists of networking, layout, composition, a cross-platform user interface, and others. Another, even more basic view of this
relationship of components to the files and interfaces that define them is shown in Onion Peel View of XPCOM Component Creation in the next chapter. The component is an abstraction sitting between the actual module in which it is implemented and the objects that its factory code creates for use by clients. XPCOM Initialization To understand why and when your component library gets called, it is importan...
IAccessibleRelation
other-licenses/ia2/AccessibleRelation.idlNot scriptable This interface gives access to an object's set of
relations. 1.0 66 Introduced Gecko 1.9 Inherits from: IUnknown Last changed in Gecko 1.9 (Firefox 3) Method overview [propget] HRESULT localizedRelationType([out] BSTR localizedRelationType ); [propget] HRESULT nTargets([out] long nTargets ); [propget] HRESULT relationType([out] BSTR relationType ); [propget] HRESULT target([in] long targetIndex, [out] IUnknown target ); [propget] HRESULT targets([in] long maxTargets, [out, size_is(maxTargets), length_is( nTargets)] IUnknown targets, [out] long nTargets ); Methods localizedRelationType() Returns a localized version of the relation type. [propget] HRESULT localizedRelationType( [out] BSTR localiz...
...nType ); Parameters localizedRelationType Return value S_OK. nTargets() Returns the number of targets() for this relation. [propget] HRESULT nTargets( [out] long nTargets ); Parameters nTargets Return value S_OK. relationType() Returns the type of the relation. [propget] HRESULT relationType( [out] BSTR relationType ); Parameters relationType The strings returned are defined @ref grp
Relations "in this section of the documentation". Return value S_OK. target() Returns one accessible relation target. [propget] HRESULT target( [in] long targetIndex, [out] IUnknown target ); Parameters targetIndex 0 based index. target Return value E_INVALIDARG if bad [in] passed, [out] value is null. S_FALSE if there is nothing to return, [out] value is null. S_OK. targets() Returns multiple acc...
Weak reference
ion of your reference. This isn't always appropriate, and can lead to trouble. If, for instance, this owning reference is part of a cycle of owning references (e.g., if the referenced object also holds a owning reference back to you), then none of the objects in the cycle can be reclaimed without taking special measures. There are less severe situations. A naive design for an observer/observable
relationship would require the observable to hold a owning reference to the observer. After all, the observable must send messages to each observer, notifying it of the appropriate state changes. To do that, it will call a method on the observer, so it needs a pointer. And the call would fail if the pointer were allowed to dangle, therefore, the pointer should be a owning reference. This design, however, i...
...om the observable, which then releases its owning reference, allowing the observer to die, or else a new kind of reference. This document describes an implementation ofweak references. A weak reference does not hold its referent in existence, but also will not dangle. When the referent is destroyed, the weak reference automatically becomes nsnull. This technique can significantly simplify certain
relationships, and you should consider it when an owning reference is inappropriate, but where a raw pointer might end up dangling. How do I use it? Here's an example. The new and interesting things are highlighted. #include "nsWeakPtr.h" #include "nsIWeakReferenceUtils.h" // ... // it's easy to get a weak reference... nsWeakPtr weakPtr = do_GetWeakReference(aFooPtr); // ... { // ...but to use my w...
Debugger.Script - Firefox Developer Tools
to a JSScript, "js". If the instance refers to WebAssembly code, "wasm". Function Properties of the Debugger.Script Prototype Object The functions described below may only be called with a this value referring to a Debugger.Script instance; they may not be used as methods of other kinds of objects. getAllOffsets() If the instance refers to a JSScript, return an arrayL describing the
relationship between bytecode instruction offsets and source code positions in this script.L is sparse, and indexed by source line number. If a source line numberline has no code, thenL has noline property. If there is code forline, then L[line] is an array of offsets of byte code instructions that are entry points to that line. For example, suppose we have a script for the following source code: a=[] ...
...t offsets 5 and 20 (for the initialization, which is performed only once, and the loop test, which is performed at the start of each iteration); the third line has no code; and the fourth line begins at offset 10. If the instance refers to WebAssembly code, throw a TypeError. getAllColumnOffsets(): If the instance refers to a JSScript, return an array describing the
relationship between bytecode instruction offsets and source code positions in this script. Unlike getAllOffsets(), which returns all offsets that are entry points for each line, getAllColumnOffsets() returns all offsets that are entry points for each (line, column) pair. The elements of the array are objects, each of which describes a single entry point, and contains the following properties: l...
Introduction to the DOM - Web APIs
ects and the actual things you can use to manipulate the DOM hierarchy. There are many points where understanding how these work can be confusing. For example, the object representing the HTML form element gets its name property from the HTMLFormElement interface but its className property from the HTMLElement interface. In both cases, the property you want is simply in that form object. But the
relationship between objects and the interfaces that they implement in the DOM can be confusing, and so this section attempts to say a little something about the actual interfaces in the DOM specification and how they are made available. Interfaces and Objects Many objects borrow from several different interfaces. The table object, for example, implements a specialized HTMLTableElement interface, which i...
...cript> element, the interface (e.g, buttons) necessary to fire up the script in a form, and the HTML elements upon which the DOM operates listed as well. When this is the case, you can cut and paste the example into a new HTML document, save it, and run the example from the browser. There are some cases, however, when the examples are more concise. To run examples that only demonstrate the basic
relationship of the interface to the HTML elements, you may want to set up a test page in which interfaces can be easily accessed from scripts. The following very simple web page provides a <script> element in the header in which you can place functions that test the interface, a few HTML elements with attributes that you can retrieve, set, or otherwise manipulate, and the web user interface necessary to c...
HTMLAnchorElement - Web APIs
f any, of the referenced URL. HTMLHyperlinkElementUtils.protocol Is a USVString representing the protocol component, including trailing colon (':'), of the referenced URL. HTMLAnchorElement.referrerPolicy Is a DOMString that reflects the referrerpolicy HTML attribute indicating which referrer to use. HTMLAnchorElement.rel Is a DOMString that reflects the rel HTML attribute, specifying the
relationship of the target object to the linked object. HTMLAnchorElement.relList Read only Returns a DOMTokenList that reflects the rel HTML attribute, as a list of tokens. HTMLHyperlinkElementUtils.search Is a USVString representing the search element, including leading question mark ('?'), if any, of the referenced URL. HTMLElement.tabindex Is a long containing the position of the element in the ...
...ame. Obsolete properties HTMLAnchorElement.charset Is a DOMString representing the character encoding of the linked resource. HTMLAnchorElement.coords Is a DOMString representing a comma-separated list of coordinates. HTMLAnchorElement.name Is a DOMString representing the anchor name. HTMLAnchorElement.rev Is a DOMString representing that the rev HTML attribute, specifying the
relationship of the link object to the target object. Note: Currently the W3C HTML 5.2 spec states that rev is no longer obsolete, whereas the WHATWG living standard still has it labeled obsolete. Until this discrepancy is resolved, you should still assume it is obsolete. HTMLAnchorElement.shape Is a DOMString representing the shape of the active area. Methods Inherits methods from its parent, HT...
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
then simulate the movement of the camera, let's actually take a look at the virtual camera and how it can move, at the most fundamental level. As in all things, the position of an object in space--even if that space if virtual--can be represented using three numbers that indicate its position relative to the origin, whose position is defined to be (0, 0, 0). There's another aspect of the spatial
relationship of an object to the origin in space left to be considered: perspective. Perspective, properly applied to the objects in a scene, can take a scene that would otherwise look as flat as a typical 2D screen and make it pop as if it were truly 3D. There are several kinds of perspective; those are defined and their mathematics explained in the article WebGL model view projection. Importantly, the ef...
...ing, this is typically done with the camera mounted on a track or on a moving vehicle. The resulting motion can create impressively smooth effects, especially if moving along with the person or object that's the focus of your shot. While a dolly shot and a zoom seem like they ought to look about the same, they don't. The fact that zooming alters the camera's focal length means that the spatial
relationship between the target and its surroundings doesn't change even as the target gets larger or smaller in the frame. On the other hand, a dolly shot, by actually moving the camera, replicates the sense of physical movement, causing the
relationships of objects in the scene to shift as you expect while moving past them as you go toward or away from the target of the shot. To perform a dolly operatio...
Geometry and reference spaces in WebXR - Web APIs
though it's most useful for inline sessions. It's particularly useful when determining the distance between the viewer and an input, or when working with offset spaces. Otherwise, typically, one of the other reference space types will be used more often. XRReferenceSpace The remainder of this guide explores how to select the right reference space for your app's needs. Defining spatial
relationships with reference spaces There are a number of commonly used ways to reference the positions and orientations of objects relative to their environment, as well as to constrain the environment itself. To that end, WebXR defines a set of standard spaces, called reference spaces, each of which supports a different technique for correlating its local space's reference frame coordinate system to the...
...on is then able to provide you with the view matrices and object poses needed to correctly render the contents of the space. Establishing the reference space The topmost space--the one obtained by calling the XRSession method requestReferenceSpace()--describes the coordinate system used for the overall world space. Everything is fundamentally tied to this coordinate system, which represents the
relationship between the user's equipment's position and the virtual world. While you can use WebXR for everything from augmenting the world with annotations to 360? video playback to scientific simulations to virtual reality training systems or anything else you can imagine, let's take a 3D video game as an example of a typical WebXR application. Consider the model of a player's avatar standing in the ga...
WebXR Device API - Web APIs
the user. XRSpace XRSpace is an opaque base class on which all virtual coordinate system interfaces are based. Positions in WebXR are always expressed in relation to a particular XRSpace at the time at which a particular XFrame takes place. The space's coordinate system has its origin at the a given physical position. XRReferenceSpace A subclass of XRSpace which is used to identify a spatial
relationship in relation to the user's physical environment. The XRReferenceSpace coordinate system is expected to remain unchanged through the lifespan of the XRSession.The world has no boundaries and extends infinitely in every direction. XRBoundedReferenceSpace XRBoundedReferenceSpace extends the XRReferenceSpace coordinate system to further include support for a finite world with set boundaries. Unli...
...ce spaces are used to position objects--and the viewer--and the differences among the available types of reference space, as well as their use cases. Spatial tracking in WebXR This guide describes how objects--including the user's body and its parts--are located in space, and how their movement and orientation relative to one another is monitored and managed over time. This article explains the
relationship between spaces, poses, viewers, and views. Rendering and the WebXR frame animation callback Starting with how you schedule frames to be rendered, this guide then continues to cover how to determine the placement of objects in the view and how to then render them into the WebGL buffer used for each of the two eyes' views of the scene. Viewpoints and viewers: Simulating cameras in WebXR Web...
x-ms-aria-flowfrom - Accessibility
e Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future. The x-ms-aria-flowfrom property specifies the id of the previous element in an alternative reading order, allowing assistive technology to override the general default of reading in document source order. The property serves to define element
relationships utilizing ARIA
relationship attributes and the aria-flowto property. This proprietary property is specific to Internet Explorer and Microsoft Edge. Syntax x-ms-aria-flowfrom="elementID"; Value The x-ms-aria-flowfrom property value uses an ID selector to define which previous element the reading order will flow from. Example <div tabindex="0" class="foo" id="element2" role="option" ari...
...ecific to Internet Explorer and Microsoft Edge. ...
ARIA: cell role - Accessibility
AI-ARIA roles, states, and properties Context roles role="row" An element with role="row" is a row of cells within a tabular structure. A row contains one or more cells, grid cells, column headers, or row headers within a grid, table or treegrid, and optionally within a rowgroup. role="rowgroup" Row is a required cell parent. Rowgroup is an optional contextual row parent. It establishes a
relationship between descendant rows. It is a structural equivalent to the thead, tfoot, and tbody elements in an HTML table element. role="table" One of the three possible contexts (along with grid and treegrid) in which you'll find a row containing cells. Table identifies the cell as being part of a non-interactive table structure containing data arranged in rows and columns, similar to the native HTML...
...tive <table> HTML element. role="treegrid" Similar to a grid, but with rows that can be expanded and collapsed in the same manner as for a tree. Subclass roles role="gridcell" A cell in a row within a grid or treegrid. role="columnheader" A header cell that is the structural equivalent of the HTML <th> element with a column scope. Unlike a plain cell, the columnheader role establishes a
relationship between it and all cells in the corresponding column. role="rowheader" A header cell that is the structural equivalent of the HTML <th> element with a row scope. Unlike a plain cell, the rowheader role establishes a
relationship between it and all cells in the corresponding row. States and properties aria-colspan Similar to the HTML <th> and <td> colspan attribute, it defines the num...
ARIA: row role - Accessibility
nging of cell order or otherwise changing individual cell order such as through drag and drop, use grid or treegrid instead. Note: Using the native HTML table element (<table>) along with the table row element (<tr>) whenever possible is strongly encouraged. Associated WAI-ARIA roles, states, and properties Context roles role="rowgroup" An optional contextual row parent, it establishes a
relationship between descendant rows. It is a structural equivalent to the thead, tfoot, and tbody elements in an HTML table element. role="table" One of the three possible contexts (along with grid and treegrid) in which you'll find a row, it identifies the row as being part of a non-interactive table structure containing data arranged in rows and columns, similar to the native <table> HTML element. r...
...id, but with rows that can be expanded and collapsed in the same manner as for a tree. Descendant roles role="cell" A cell in a row within a tabular container. role="gridcell" A cell in a row within a grid or treegrid. role="columnheader" A header cell that is the structural equivalent of the HTML <th> element with a column scope. Unlike a plain cell, the columnheader role establishes a
relationship between it and all cells in the corresponding column. role="rowheader" A header cell that is the structural equivalent of the HTML <th> element with a row scope. Unlike a plain cell, the rowheader role establishes a
relationship between it and all cells in the corresponding row. States and properties aria-expanded state The aria-expanded attribute, which defines the state of the ro...
Cognitive accessibility - Accessibility
are less technologically literate. People who have poor wireless reception. People who have motor control issues. Adaptability Guideline 1.3 states "content should be adaptable." Create content that can be presented in different ways without losing information or structure. For example, provide responsive layouts, with a single column mobile design. All information, including structure and
relationships conveyed through the presentation, should be available in a form that can be perceived by all users to achieve this goal. For example, the information could be spoken aloud via a narration tool. Making your content capable of being understood by the software is a good way to help ensure it can be used by alternate presentational modes. Time It is important to allow users the time they requi...
...ude a <title> for the document, as titles provide a quick and easy to reference description of the screen's main point. People with cognitive disabilities, limited short-term memory, and reading disabilities all benefit from being able to identify the purpose of content this way. Heading and labels Include clear and descriptive headings so users can easily find information and understand
relationships between different content sections. Descriptive labels help users identify specific components within the content. People who read slowly and people with limited short-term memory benefit when section titles make it possible to predict what each section contains. Section headings Headings help define overall organization of page content. They help facilitate navigation through page c...
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
documents/content than you use for UI/dialogs. Or, do what Mozilla does - expose a control ID (GWL_ID) of 1 for content, and 0 for UI. Consistent window class names are important for the assistive technology vendors, so that they can determine what code to run for a given window. Don't change window class names after you have shipped a version. WindowFromAccessibleObject depends on client-window
relationship Problem: Unless certain rules are followed, WindowFromAccessibleObject will break, causing the failure of accessibility testing tools like accexplore.exe, and assistive technologies which require knowledge of the window class to know what app-specific configurations to run. WindowFromAccessibleObject works by walking up the parent chain until it finds an object of ROLE_WINDOW. If it can't fin...
...Node COM interface. Any IAccessible can be used to QueryInterface to an ISimpleDOMNode, and vice versa for a round trip. However, one might QI ISimpleDOMNode to IAccessible only to find it is null, which means that particular node in question is not exposed in the IAccessible tree. See the following diagram for examples of nodes that do no support IAccessible. MSAA tree vs. DOM tree - what's the
relationship? The MSAA tree and the DOM tree are parallel structures, although the MSAA tree is a subset of the DOM tree. QueryInterface() can be used to switch between the interfaces used in the two trees (IAccessible and ISimpleDOMNode). If there is no MSAA node for a DOM node, pAccessible->QueryInterface(IID_IAccessible) will return null. A Variety of Implementations for IAccessible There are two m...
CSS Box Alignment - CSS: Cascading Style Sheets
s Axis using align-items. The first item overrides the align-items set on the group by setting align-self to center. Key concepts and terminology The specification details some alignment terminology to make it easier to discuss these alignment properties outside of their implementation within a particular layout method. There are also some key concepts which are common to all layout methods.
Relationship to writing modes Alignment is linked to writing modes in that when we align an item we do not consider whether we are aligning it to the physical dimensions of top, right, bottom and left. Instead we describe alignment in terms of the start and end of the particular dimension we are working with. This ensures that alignment works in the same way whichever writing mode the document has. Two d...
...k alignment is specified individually for each layout method and detailed on the page for that method. Types of alignment There are three different types of alignment that the specification details; these use keyword values. Positional alignment: specifying the position of an alignment subject with relation to its alignment container. Baseline alignment: These keywords define alignment as a
relationship among the baselines of multiple alignment subjects within an alignment context. Distributed alignment: These keywords define alignment as a distribution of space among alignment subjects. Positional alignment keyword values The following values are defined for positional alignment, and can be used as values for content alignment with justify-content and align-content and also for self alig...
CSS Grid Layout - CSS: Cascading Style Sheets
Like tables, grid layout enables an author to align elements into columns and rows. However, many more layouts are either possible or easier with CSS grid than they were with tables. For example, a grid container's child elements could position themselves so they actually overlap and layer, similar to CSS positioned elements. Basic example The example below shows a three-column track grid with new rows created at a minimum of 100 pixels and a maximum of auto. Items have been placed onto the grid using line-based placement. ...
...ows grid-auto-flow grid grid-row-start grid-column-start grid-row-end grid-column-end grid-row grid-column grid-area row-gap column-gap gap CSS functions repeat() minmax() fit-content() CSS data types <flex> Glossary entries Grid Grid Lines Grid Tracks Grid Cell Grid Area Gutters Grid Axis Grid row Grid column Guides Basic concepts of Grid Layout
Relationship of Grid Layout to other layout methods Layout using line-based placement Grid template areas Layout using named grid lines Auto-placement in CSS Grid Layout Box alignment in CSS Grid Layout CSS Grid, Logical Values and Writing Modes CSS Grid Layout and accessibility CSS Grid and progressive enhancement Realising common layouts using CSS Grid Subgrid External resources CSS Grid ...
Adapting to the new two-value syntax of display - CSS: Cascading Style Sheets
es how the children of that box behave. As an example, when we use display: flex we create a block-level container, with flex children. The children are described as participating in a flex formatting context. You can see this if you take a <span> -- normally an inline-level element -- and apply display: flex to it. The <span> becomes a block-level element. It behaves as block-level things do in
relationship to other boxes in the layout. It's as if you had applied display: block to the span, however we also get the changed behavior of the children. The live example below has a <span> with display: flex applied. It has become a block-level box taking up all available space in the inline direction. You can now use justify-content: space-between; to put this space between the two flex items. We c...
...lock-level box, which creates a grid formatting context for the direct children. Using display: inline-grid will create an inline-level box, which creates a grid formatting context for the children. The two-value syntax As you can see from the above explanation, the display property has gained considerable new powers. In addition to indicating whether something is block-level or inline-level in
relationship to other boxes on the page, it now also indicates the formatting context inside the box it is applied to. In order to better describe this behavior, the display property has been refactored to allow for two values -- an outer and inner value -- to be set on it, as well as the single values we are used to. This means that instead of setting display: flex to create a block-level box with flex c...
Link types - HTML: Hypertext Markup Language
List of the defined link types and their significance in HTML Link Type Description Allowed in these elements Not allowed in these elements alternate If the element is <link> and the rel attribute also contains the stylesheet type, the link defines an alternative style sheet; in that case the title attribute must be present and not be the empty string. If the type is set to application/rss+xml or application/atom+xml, the link defines a syndication feed. The first one defined on the page is the default. ...
...ads to the next resource of the sequence the current page is in. Note: Other link types related to linking resources in the same sequence are first, prev, last. <a>, <area>, <form>, <link> None. nofollow Indicates that the linked document is not endorsed by the author of this one, for example if it has no control over it, if it is a bad example or if there is commercial
relationship between the two (sold link). This link type may be used by some search engines that use popularity ranking techniques. <a>, <area>, <form> <link> noopener Instructs the browser to open the link without granting the new browsing context access to the document that opened it -- by not setting the Window.opener property on the opened window (it returns null). Thi...
Populating the page: how browsers work - Web Performance
e construction. HTML tokens include start and end tags, as well as attribute names and values. If the document is well-formed, parsing it is straightforward and faster. The parser parses tokenized input into the document, building up the document tree. The DOM tree describes the content of the document. The <html> element is the first tag and root node of the document tree. The tree reflects the
relationships and hierarchies between different tags. Tags nested within other tags are child nodes. The greater the number of DOM nodes, the longer it takes to construct the DOM tree. When the parser finds non-blocking resources, such as an image, the browser will request those resources and continue parsing. Parsing can continue when a CSS file is encountered, but <script> tags--particularly those wit...
...ond step in the critical rendering path is processing CSS and building the CSSOM tree. The CSS object model is similar to the DOM. The DOM and CSSOM are both trees. They are independent data structures. The browser converts the CSS rules into a map of styles it can understand and work with. The browser goes through each rule set in the CSS, creating a tree of nodes with parent, child, and sibling
relationships based on the CSS selectors. As with HTML, the browser needs to convert the received CSS rules into something it can work with. Hence, it repeats the HTML-to-object process, but for the CSS. The CSSOM tree includes styles from the user agent style sheet. The browser begins with the most general rule applicable to a node and recursively refines the computed styles by applying more specific ru...
Enhanced Extension Installation - Archive of obsolete content
ns // The RDF/XML datasource for the items at the // global Install Location. }; Tracking Install Locations Since there are only two locations, the installed location of an Extension is expressed throughout the code using a boolean value, often referred to as isProfile - true if the item is installed in the profile directory's extensions folder. This boolean
relationship itself is not stored directly in the datasource. Rather, if the system needs to know where an item is located, it checks to see if the item is a member of the the appropriate type container (urn:mozilla:extension:root or urn:mozilla:theme:root) in each of the two datasources. This is clumsy. Item Type The Extension System in Firefox 1.0 supports only two item types, Extensions and Themes. Th...
Custom XUL Elements with XBL - Archive of obsolete content
keep this in mind when defining the content of the binding, because weird things can happen if you don't add "xul:" to your content nodes. <binding id="person"> In general, you should only have one binding per file. Bindings tend to require many lines of code, and having more than one ends up making gigantic, unbrowsable files. On the other hand, if your bindings are small and have a strong
relationship with each other, it makes sense to keep them together. As for the CSS file, it's usually good to have a single file declaring all bindings in your extension. Content Under the content tag you define the XUL content that will be displayed for your element. <content> <xul:hbox> <xul:image class="xulshoolhello-person-image" xbl:inherits="src=image" /> <xul:vbox flex="1"> <xul...
XPCOM Objects - Archive of obsolete content
e. XPCOM components can implement multiple interfaces, and they often do. Let's look at the Preference service as an example of this. We'll look at its documentation in a very old XUL site called XUL Planet. All of its documentation was planned to be migrated to MDC, but it looks like it was never finished and XUL Planet was discontinued. Their XPCOM documentation is better in terms of seeing the
relationships between components and interfaces, so we'll use that. Another useful resource is this XPCOM reference. This is generated from source, and it's kept relatively up to date. It shows the
relationships between components and interfaces, but it's more of a source browser than a documentation reference. Stepping into the time machine, we see the Preferences Service component page. Right at the to...
Index - Archive of obsolete content
ified asynchronous operation. 2027 Debug.msTraceAsyncOperationStarting Debug, JavaScript, Method, Reference, msTraceAsyncOperationStarting Initiates a trace for an asynchronous operation. 2028 Debug.msUpdateAsyncCallbackRelation Debug, JavaScript, Method, Reference, msUpdateAsyncCallbackRelation The debug.msUpdateAsyncCallbackRelation function updates the
relationship status between a synchronous work item and the associated asynchronous operation. 2029 Debug.setNonUserCodeExceptions Debug, Example, JavaScript, Property, setNonUserCodeExceptions If this property is set to true within a given scope, the debugger can then choose whether to take some specified action on exceptions thrown inside that scope: for instance, if the developer wi...
MMgc - Archive of obsolete content
ollection. Classic Reference Counting Previous versions of the Flash Player, up to Flash Player 7, used reference counting to track object lifetimes. class Object { public: Object() { refCount = 0; } void AddRef() { refCount++; } void Release() { if (!--refCount) delete this; } int refCount; } Reference counting is a kind of automatic memory management. Reference counting can track
relationships between objects, and as long as AddRef and Release are called at the proper times, can reclaim memory from objects that are no longer referenced. Problem: Circular References Reference counting falls down when circular references occur in objects. If object A and object B are reference counted and refer to each other, their reference counts will both be nonzero even if no other objects in the...
Source Navigator - Archive of obsolete content
Note: This document is still in the draft state. I hope I can finish it within one day or two if I have more time. ;) --Kennykaiyinyu 19:04, 10 June 2008 (PDT) What is Source-Navigator? (quoted from the internet) Source-Navigator is a source code analysis tool which lets users to edit, browse and build their projects. With it, you can edit your source code, display
relationships between classes and functions and members, and display call trees. You can also build your projects, either with your own makefile, or by using Source-Navigator's build system to automatically generate a makefile. Source-Navigator works with the Insight GUI interface for GDB. More information can be found here --> http://sourcenav.sourceforge.net/ Why worth a try? It's quite fast as compared to mxr. (I think.) Y...
Source code directories overview - Archive of obsolete content
expat.). plugin contains code for the MRJ plugin on Mac. profile contains C interfaces, C code, XUL and Javascript scripts for creating new user profiles, managing existing user profiles, migrating profiles from Mozilla Classic and using default profiles for popular ISPs (e.g. Earthlink and Concentric Networks). rdf contains C interfaces and code for accessing various data and organizing their
relationships according to RDF. RDF stands for "Resource Description Framework" which is an open standard. This code reads and writes data from and to the local file system, databases, the Internet or any other source using a URL-like syntax. security contains the security modules including NSS and PSM. storage contains an implementation of sqLite3. suite will contain files specific to the Mozilla suite...
Style System Overview - Archive of obsolete content
we cache the struct in the rule tree, on the first rule node that contributed any data, and mark dependent bits on the path up to that rule node. Managing style contexts Style contexts must (in most cases) be created before frames are constructed, to determine what frame to create. Parent style context determines inheritance; it should always be the content parent. [design flaw in frame/SC
relationship] Three functions for creating style contexts on nsIStyleSet, wrapped by similarly named ones on nsIPresContext: ResolveStyleContextFor: For elements. ResolvePseudoStyleContextFor: for pseudo-elements (:first-letter, :before, etc.) ResolveStyleContextForNonElement: skips rule matching and uses root rule node (text frame optimization) Managing style contexts Style context ...
Modularization techniques - Archive of obsolete content
different registration mechanisms. The first takes a class ID and a pointer to a factory. This mechanism can be used on factories that are linked into the executable. The second takes a class ID and the path to a dynamically loadable library. This mechanism can be used both inside an executable at run-time and externally using the aPersist flag to tell the repository to store the class ID/library
relationship in its permenant store. About nsIIDs and nsCIDs To simplify the process of dynamically finding, loading and binding interfaces, all classes and interfaces are assigned unique IDs. The IDs are unique 128 bit numbers that are based on UUIDs. For those who like gory details, their structure is this: struct nsID { PRUint32 m0; PRUint16 m1, m2; PRUint8 m3[8]; }; Frequently you see them r...
RDF Datasource How-To - Archive of obsolete content
an 'important friend'." Statements from one datasource can be combined with statements from another datasource using a composite datasource. By combining statements from the IMAP datasource and address book datasource, above, we'd be able to identify the sender of "message 126" as an "important friend". Deciding on a vocabulary The vocabulary is the set of properties that you will use to express
relationships between elements (resources and literals) in your data model. The first question that you must answer is "should I use an existing vocabulary, or invent my own?" A reasonable answer is, "use an existing vocabulary unless you absolutely must invent your own." This will allow your datasource to be integrated with other datasources with a minimum of effort. There are several existing vocabularie...
Table Cellmap - Archive of obsolete content
mBits; 86 }; The idea behind this construction is a entry in the cellmap can be either the origin of a row- or colspan (a cell cell without a defined row- or colspan attribute assumes 1 as a default value), or a entry which is only covered by a row- or colspan. Entries which are a origin have a direct corresponding TableCellFrame. Entries which are only spanned don't have that direct
relationship. They belong to a entry which has a direct
relationship to a TableCellFrame. Now that union uses the fact all addresses of real TableCellFrames are aligned at even boundaries, or in other words they cant have an odd address. If the address is odd then it holds some other info (mBits). Easy table cellmap Just imagine a 2x2 table. <table> <tr><td>cell 1</td><td>cell 2</td></tr> <tr><td>cel...
Venkman Internals - Archive of obsolete content
tags found in the parent record's window.document property. To obtain the antecedent files: doc.getElementsByTagName("script"); then extract the URLs from the src attributes. ScriptWrapper newsgroup, 2002, rgrinda Here is a bit more information about how Venkman tracks files and functions... A scriptWrapper is a pure JS object defined only inside Venkman. As you pointed out, there is a 1:1
relationship between scriptWrappers and functions. scriptWrapper has-a jsdScript property, which is an object which supports the jsdIScript interface. jsdIScript is a lower level access to the function than the scriptWrapper. In order to set a breakpoint in a particular function, you'll want to call scriptWrapper.setBreakpoint(pc[, parentBP]); where |pc| is the program counter location to set the breakpoin...
InstallVersion Object - Archive of obsolete content
ftware. Overview This object and its methods are used both when triggering a download, to see whether a particular version needs to be installed, and when installing the software. The init() method associates a particular version with an InstallVersion object, the toString() method converts versions in various formats to a string, and the compareTo() method compares these string and indicates the
relationship between the two versions. Each of the version parameters is also available as a separate property of the InstallVersion object. ...
A XUL Bestiary - Archive of obsolete content
the XML-based language used for creating interfaces, XPToolkit is the set of XUL widgets (menus, toolbar, etc.) actually assembed for this purpose -- the building blocks of the interface, as it were -- and XPFE, the Cross Platform Front End, is the front end that has been created from XPToolkit. The differences here are significant: XUL is the universe of elements, attributes, syntax, rules, and
relationships, while XPToolkit is really the finite set of interface-specific elements created in XUL. The XPFE is what's been created out of the XPToolkit. A loosely analogous
relationship might be that XUL, XPToolkit, and XPFE are to one another what HTML, the actual HTML tags, and an HTML web page are to one another, respectively. XUL Parts People sometimes get confused about the syntax for describing...
Box Objects - Archive of obsolete content
out. About Mozilla Layout Mozilla divides things into two sets of trees, the content tree and the layout tree. The content tree stores the nodes as they are found in the source code. The layout tree holds a different tree of nodes for each individual component that can be displayed. The layout tree holds the structure as the nodes are expected to be displayed There is not necessarily a one to one
relationship between content and layout nodes. Some content nodes may have several layout objects, for example, each line of a paragraph has a separate layout object. Conversely, some content nodes have no layout objects at all. For instance, the key element doesn't have any layout objects since it isn't displayed in any way. Similarly, any element that has been hidden will not have a layout object either.
Skinning XUL Files by Hand - Archive of obsolete content
Parent-Child element:pseudo-class { attribute: value; } parent > child { attribute: value; } button:hover { border: 1px; } menu#file > menuitem { font-weight: bold; } Pseudo-classes reflect states of the element: when the mouse moves over a button, for example, the appropriate pseudo-class stylesheet rules are applied. The parent-child
relationship is more economical than the aforementioned contextual subgrouping, which searches the entire subtree of an element for the subelement. Finally, Mozilla provides some special extensions to the Cascading Style Sheets specification that allow even more control over the way that XUL is skinned within the browser. On to the actual global.css file: After some comments, the CSS file contains ...
Tabboxes - Archive of obsolete content
isible at once, much like a deck. The contents of the individual tab pages should go inside each tabpanel element. They do not go in the tab elements, as that is where the contents of the tabs along the top go. Each tabpanel element becomes a page on the tabbed display. The first panel corresponds to the first tab, the second panel corresponds to the second tab, and so on. There is a one-to-one
relationship between the tab and tabpanel elements. When determining the size of the tabbox, the size of the largest page is used. That means that if there are ten textboxes on one tab page and only one on another, the tab page will be sized to fit the one with the ten on it as this takes up more room. The area taken up by the tab area does not change when the user switches to a new tab page. Tabbox exam...
Mozilla release FAQ - Archive of obsolete content
writing of drivers for a new system, a critical mass point. People who want to work on an operating system no doubt would be welcomed by the BSD teams, the Linux team, the Freedows team, or any of the many other open source operating system groups out there. How about a Netscape release of Linux? This isn't quite so far fetched, but it has the problem of possibly doing a great deal of harm to the
relations between Netscape and several Unix vendors who bundle Netscape's servers. It is unlikely that Netscape would do anything that would endanger its revenue stream. As another point, there are already plenty of Linux distributions out there, most of them doing a pretty good job of making a usable system. Reinvention of the wheel is a poor use of volunteers. Why don't we make a way to compress all the ...
2006-10-27 - Archive of obsolete content
hich currently causes a specific markup to produce a green boarder instead of a gray one. Help for getting HTML element width info Discussion on retrieving width information on HTML elements when using the Gecko engine. It was determined that the offsetWidth property can be used to get this value. Multiple presshells Discussion on why current interfaces allow for multiple presshells and how the
relationships work for the following objects: docshell, presshell, prescontext, document, domwindow, widget, docshell and contentviewer. Boris Zbarsky explains in detail the
relationships between these objects. The presshells are currently used for printing, but should or could have been used for print previews and multiple views in editors. Meetings None this week. ...
Debug - Archive of obsolete content
specified asynchronous operation has completed. Debug.msTraceAsyncCallbackStarting Associates the callback stack with a previously specified asynchronous operation. Debug.msTraceAsyncOperationCompleted Indicates that an asynchronous operation has completed. Debug.msTraceAsyncOperationStarting Initiates a trace for an asynchronous operation. Debug.msUpdateAsyncCallbackRelation Updates the
relationship status between a synchronous work item and the associated asynchronous operation. Debug.write Sends strings to the script debugger. Debug.writeln Sends strings to the script debugger, followed by a newline character. Examples Print the value of a variable This example uses the write function to display the value of the variable. var counter = 42; Debug.write("The value of counter is "...
RDF: Resource Description Framework for metadata - Archive of obsolete content
L. The RDF family of specifications is maintained by the World Wide Web Consortium (W3C). The RDF metadata model is based upon the idea of making statements about resources in the form of a subject-predicate-object expression, called a triple in RDF terminology. The subject is the resource, the "thing" being described. The predicate is a trait or aspect about that resource, and often expresses a
relationship between the subject and the object. The object is the object of the
relationship or value of that trait. Documentation Directions of the Mozilla RDF engine This presentation shows new developments in the Mozilla RDF engine. These include plans to expose the RDF API to public web content, as well as performance and correctness improvements. What is RDF Tim Bray's introduction to the...
Introduction to game development for the Web - Game development
one hidden within another company decides whether or not your critical bug fix will ship today or tomorrow. Control your analytics! Instead of relying on someone else to make all the decisions about what analytics you need, you can collect your own -- or choose the third party that you like the best -- to gather information about your sales and your game's reach. You get to manage your customer
relationship more closely, in your own way. No more having customer feedback filtered through an app store's limited mechanisms. Engage with your customers the way you want to, without a middleman. Your players can play your game anywhere, anytime. Because the Web is ubiquitous, your customers can check their game's status on their phones, tablets, their home laptops, their work desktops, or anything else...
Visual typescript game engine - Game development
template is Platformer. This is high-level programming in this software. Class GamePlay extends Platformer, it good for start. Class Starter is base class for my canvas part and matter.ts (matter.js) implementation. It is injected to the Platformer to make full operated work. gamesList args for IOC constructor is for now just symbolic for now. (WIP) In ioc, you can make strong class dependency
relations. Use it for your own structural changes. Main dependency file // Symbolic for now const plarformerGameInfo = { name: "Crypto-Runner", title: "PLAY PLATFORMER CRYPTO RUNNER!", }; // Symbolic for now const gamesList: any[] = [ plarformerGameInfo, ]; const master = new Ioc(gamesList); const appIcon: AppIcon = new AppIcon(master.get.Browser); master.singlton(Platformer, master.get.Starter)...
REST - MDN Web Docs Glossary: Definitions of Web-related terms
REST(Representational State Transfer) refers to a group of software architecture design constraints that bring about efficient, reliable and scalable distributed systems. A system is called RESTful when it adhere to those constraints. The basic idea of REST is that a resource, e.g. a document, is transferred with its state and
relationships via well-defined, standarized operations and formats or services call themselves RESTful when they directly modify type of document as opposed to triggering actions somewhere. Because HTTP, the standard protocol hehind the "World Wide Web", "Web" also transfers documents and hypertext links, simple HTTP APIs are sometimes colloguially referred to as RESTful APIs, RESTful services, or simply REST services, although they don't necessarily adhere to all R...
TOFU - MDN Web Docs Glossary: Definitions of Web-related terms
To do that, clients will look for identifiers (for example public keys) stored locally. If an identifier is found, the client can establish the connection. If no identifier is found, the client can prompt the user to determine if the client should trust the identifier. TOFU is used in the SSH protocol, in HTTP Public Key Pinning (HPKP) where the browsers will accept the first public key returned by the server, and in Strict-Transport-Security (HSTS) where a browser will obey the redirection rule. ...
WAI-ARIA basics - Learn web development
abs and select them to show the tab contents. It is also fairly accessible too -- you can scroll through the content and use the headings to navigate, even if you can't see what is happening on screen. It is however not that obvious what the content is -- a screenreader currently reports the content as a list of links, and some content with three headings. It doesn't give you any idea of what the
relationship is between the content. Giving the user more clues as to the structure of the content is always good. To improve things, we've created a new version of the example called aria-tabbed-info-box.html (see it running live). We've updated the structure of the tabbed interface like so: <ul role="tablist"> <li class="active" role="tab" aria-selected="true" aria-setsize="3" aria-posinset="1" tabin...
What is accessibility? - Learn web development
uld be fairly minimal. When planning your project, factor accessibility testing into your testing regime, just like testing for any other important target audience segment (e.g. target desktop or mobile browsers). Test early and often, ideally running automated tests to pick up on programmatically detectable missing features (such as missing image alternative text or bad link text -- see Element
relationships and context) and doing some testing with disabled user groups to see how well more complex site features work for them. For example: Is my date picker widget usable by people using screen readers? If content updates dynamically, do visually impaired people know about it? Are my UI buttons accessible using the keyboard and on touch interfaces? You can and should keep a note of potential...
Overflowing content - Learn web development
a consistent scrolling experience. Unwanted overflow in web design Modern layout methods (described in CSS layout) manage overflow. They largely work without assumptions or dependencies for how much content there will be on a web page. This has not always been the norm. In the past, some sites were built with fixed-height containers to align bottoms of boxes. These boxes may otherwise have no
relationship to each other. This was fragile. In a legacy application, you may encounter a box where content is overlaying other content on the page. Now you can recognize that this happens with overflow. Ideally, you will refactor the layout to not rely on fixed-height containers. When developing a site, always keep overflow in mind. Test designs with large and small amounts of content. Increase the font...
Combinators - Learn web development
Prerequisites: Basic computer literacy, basic software installed, basic knowledge of working with files, HTML basics (study Introduction to HTML), and an idea of how CSS works (study CSS first steps.) Objective: To learn about the different combinator selectors that can be used in CSS. ...
The box model - Learn web development
f the above applies fully to block boxes. Some of the properties can apply to inline boxes too, such as those created by a <span> element. In the example below, we have a <span> inside a paragraph and have applied a width, height, margin, border, and padding to it. You can see that the width and height are ignored. The vertical margin, padding, and border are respected but they do not change the
relationship of other content to our inline box and so the padding and border overlaps other words in the paragraph. Horizontal padding, margins, and borders are respected and will cause other content to move away from the box. Using display: inline-block There is a special value of display, which provides a middle ground between inline and block. This is useful for situations where you do not want an...
How CSS works - Learn web development
ould appear in after the rules have been applied to it. The visual display of the page is shown on the screen (this stage is called painting). The following diagram also offers a simple view of the process. About the DOM A DOM has a tree-like structure. Each element, attribute, and piece of text in the markup language becomes a DOM node in the tree structure. The nodes are defined by their
relationship to other DOM nodes. Some elements are parents of child nodes, and child nodes have siblings. Understanding the DOM helps you design, debug and maintain your CSS because the DOM is where your CSS and the document's content meet up. When you start working with browser DevTools you will be navigating the DOM as you select items in order to see which rules apply. A real DOM representation Rathe...
What is CSS? - Learn web development
browser today! As a newcomer to CSS, it is likely that you will find the CSS specs overwhelming -- they are intended for engineers to use to implement support for the features in user agents, not for web developers to read to understand CSS. Many experienced developers would much rather refer to MDN documentation or other tutorials. It is however worth knowing that they exist, understanding the
relationship between the CSS you are using, browser support (see below), and the specs. Browser support Once CSS has been specified then it is only useful for us in developing web pages if one or more browsers have implemented it. This means that the code has been written to turn the instruction in our CSS file into something that can be output to the screen. We'll look at this process more in the lesson...
How to structure a web form - Learn web development
read out something like "Name, edit text". There is another way to associate a form control with a label -- nest the form control within the <label>, implicitly associating it. <label for="name"> Name: <input type="text" id="name" name="user_name"> </label> Even in such cases however, it is considered best practice to set the for attribute to ensure all assistive technologies understand the
relationship between label and widget. If there is no label, or if the form control is neither implicitly or explicitly associated with a label, and a screenreader will read out something like "Edit text blank", which isn't very helpful at all. Labels are clickable, too! Another advantage of properly set up labels is that you can click or tap the label to activate the corresponding widget. This is usefu...
Define terms with HTML - Learn web development
not an acceptable alternative for providing an inline expansion. The contents of title are completely hidden from your users, unless they're using a mouse and they happen to hover over the abbreviation. The spec duly acknowledges this as well. Improve accessibility <dfn> marks the keyword defined, and indicates that the current paragraph defines the keyword. In other words, there's an implicit
relationship between the <dfn> element and its container. If you want a more formal
relationship, or your definition consists of only one sentence rather than the whole paragraph, you can use the aria-describedby attribute to associate a term more formally with its definition: <p> <span id="ff"> <dfn aria-describedby="ff">Firefox</dfn> is the web browser created by the Mozilla Foundation. </sp...
Index - Learn web development
give further detail about the element being marked up. In CSS you can use attribute selectors to target elements with certain attributes. This lesson will show you how to use these very useful selectors. 109 Combinators CSS, Selectors, combinators The final selectors we will look at are called combinators, because they combine other selectors in a way that gives them a useful
relationship to each other and the location of content in the document. 110 Pseudo-classes and pseudo-elements Beginner, CSS, Learn, Pseudo, Pseudo-class, Pseudo-element, Selectors The next set of selectors we will look at are referred to as pseudo-classes and pseudo-elements. There are a large number of these, and they often serve quite specific purposes. Once you know how to use them...
Introduction to web APIs - Learn web development
away from you by the API. Third-party APIs are not built into the browser by default, and you generally have to retrieve their code and information from somewhere on the Web. For example, the Twitter API allows you to do things like displaying your latest tweets on your website. It provides a special set of constructs you can use to query the Twitter service and return specific information.
Relationship between JavaScript, APIs, and other JavaScript tools So above, we talked about what client-side JavaScript APIs are, and how they relate to the JavaScript language. Let's recap this to make it clearer, and also mention where other JavaScript tools fit in: JavaScript -- A high-level scripting language built into browsers that allows you to implement functionality on web pages/apps. Note tha...
What is web performance? - Learn web development
path to prioritize the display of content that relates to the current user action will lead to significant improvements in content rendering time. See Critical rendering path for more information. The document object model. The document object model, or DOM, is a tree structure that represents the content and elements of your HTML as a tree of nodes. This includes all the HTML attributes and the
relationships between the nodes. Extensive DOM manipulation after the pages has loaded (e.g., adding, deleting, or moving of nodes) can affect performance, so it is worth understanding how to DOM works, and how such issues can be mitigated. Find out more at Document Object Model. Latency. We mention this briefly earlier on, but in brief, latency is the time it takes for your website assets to travel from ...
Client-Server Overview - Learn web development
lements of the "team coach" website, along with numbered labels for the sequence of operations when the coach accesses their "best team" list. The parts of the site that make it dynamic are the Web Application (this is how we will refer to the server-side code that processes HTTP requests and returns HTTP responses), the Database, which contains information about players, teams, coaches and their
relationships, and the HTML Templates. After the coach submits the form with the team name and number of players, the sequence of operations is: The web browser creates an HTTP GET request to the server using the base URL for the resource (/best) and encoding the team and player number either as URL parameters (e.g. /best?team=my_team_name&show=11) or as part of the URL pattern (e.g. /best/my_team_na...
Introduction to client-side frameworks - Learn web development
hat supports tree-shaking (removal of any code that isn't actually used in the app during the build process) will allow you to keep your applications small, but this is still a factor you need to keep in mind when considering your app's performance, especially on more network/storage-constrained devices, like mobile phones. The abstraction of frameworks affects not only your JavaScript, but your
relationship with the very nature of the web. No matter how you build for the web, the end result, the layer that your users ultimately interact with, is HTML. Writing your whole application in JavaScript can make you lose sight of HTML and the purpose of its various tags, and lead you to produce an HTML document that is un-semantic and inaccessible. In fact, it's possible to write a fragile application th...
React resources - Learn web development
l of the components that make up our application, including some unique keys for the things that are rendered from arrays. On the right, we see the props and hooks that our App component utilizes. Notice, too, that the Form, FilterButton, and Todo components are indented to the right - this indicates that App is their parent. In more complex apps, this view is great for understanding parent/child
relationships at a glance. React DevTools is available in a number of forms: A Chrome browser extension. A Firefox browser extension. A Chromium Edge browser extension (available soon). A stand-alone application you can install with NPM or Yarn. Try installing one of these, then using it to inspect the app you've just built! You can read more about React DevTools on the React blog. The Context A...
Handling common accessibility problems - Learn web development
is being played, in the form of the <track> element, and the WebVTT format (see Adding captions and subtitles to HTML5 video for a detailed tutorial). Browser compatibility for these features is fairly good, but if you want to provide text alternatives for audio or support older browsers, a simple text transcript presented somewhere on the page or on a separate page might be a good idea. Element
relationships and context There are certain features and best practices in HTML designed to provide context and
relationships between elements where none otherwise exists. The three most common examples are links, form labels, and data tables. The key to accessible link text is that people using screen readers will often use a common feature whereby they pull up a list of all the links on the page. In th...
Accessible Toolkit Checklist
upport needs to know what label goes with what widget. MSAA support: expose window with ROLE_DIALOG, unless it's already the standard dialog window class #32770. If you don't, some screen readers won't automatically read the dialog when it receives focus. Expose status bars with ROLE_STATUSBAR, unless they already use the standard window class msctls_statusbar32. Make sure that parent-child
relationships are exposed correctly in each window's MSAA tree General MSAA support Focus events Handling event callbacks, which requires a unique ID for each non-windowed child of every widget that can be focused or have any other event associated with it. For example, a unique child ID would be required for each tree item Supporting the most important basic I...
Callgraph
For instance, given the C++ code: int foo() { return good(); } int good() { return evil() ? 0 : 1; } The callgraph would be foo() -> good() -> evil(). Given the knowledge that evil() does evil things, one could then determine foo() also does evil things. ...
OSFile.jsm
JavaScript module OS.File contains primitives for manipulating files out of the main thread. F.A.Q. What is OS.File? OS.File is a new API designed for efficient, off-main thread, manipulation of files by privileged JavaScript code. This API is intended to replace, in time, most XPCOM-based manipulation of files (nsIFile, subsets of nsIIOService, etc.) by JavaScript code. What are the
relationships with the HTML5 File API? None, really. The File API is designed for high-level, highly-restricted manipulation of files by web applications. OS.File is designed for efficient, unrestricted, manipulation of files by Firefox itself and by add-ons. Why is Off Main Thread File I/O important? One thing that all developers need to remember is that the duration of a File I/O operation is unbounde...
Using the viewport meta tag to control layout on mobile browsers
on of screen sizes and orientations. The default pixel ratio depends on the display density. On a display with density less than 200dpi, the ratio is 1.0. On displays with density between 200 and 300dpi, the ratio is 1.5. For displays with density over 300dpi, the ratio is the integer floor(density/150dpi). Note that the default ratio is true only when the viewport scale equals 1. Otherwise, the
relationship between CSS pixels and device pixels depends on the current zoom level. Viewport width and screen width Sites can set their viewport to a specific size. For example, the definition "width=320, initial-scale=1" can be used to fit precisely onto a small phone display in portrait mode. This can cause problems when the browser doesn't render a page at a larger size. To fix this, browsers will ex...
Memory Profiler
he buttons in the profiler panel. Start - start profiling Stop - stop profiling Reset - clear profile data when profiler is stopped Profile data is accumulated and resumed after start. Use reset to start a new recording. Understanding the Profiles Traditional memory analysis tools look at the data. They build the referring-to, namely retaining graphs. This is helpful in exploring the
relationships among objects and identifying memory leaks. However, the information exposed in this way is usually a snapshot and the history of how memory has been used goes missing. Moreover, they usually don't keep tracks of how objects are allocated. Developers have to infer how an object might be allocated and freed by himself/herself. Another common approach is to plot the allocations or the memory u...
perf
es can be used to get variations. The output will look like the following. Performance counter stats for 'system wide': 51.58 Joules power/energy-pkg/ [100.00%] 14.80 Joules power/energy-cores/ [100.00%] 9.93 Joules power/energy-gpu/ [100.00%] 27.38 Joules power/energy-ram/ [100.00%] 5.003049064 seconds time elapsed It's not clear from the output, but the following
relationship holds. energy-pkg >= energy-cores + energy-gpu The measurement is in Joules, which is usually less useful than Watts. For these reasons rapl is usually a better tool for measuring power consumption on Linux. Wakeups perf can also be used to do high-context profiling of wakeups. ...
PR_TicksPerSecond
. Syntax #include <prinrval.h> PRUint32 PR_TicksPerSecond(void); Returns An integer between 1000 and 100000 indicating the number of ticks per second counted by PRIntervalTime on the current platform. This value is platform-dependent and does not change after NSPR is initialized. Description The value returned by PR_TicksPerSecond() lies between PR_INTERVAL_MIN and PR_INTERVAL_MAX. The
relationship between a PRIntervalTime tick and standard clock units is platform-dependent. PR_PR_TicksPerSecond() allows you to discover exactly what that
relationship is. Seconds per tick (the inverse of PR_PR_TicksPerSecond()) is always between 10 microseconds and 1 millisecond. ...
An overview of NSS Internals
vironment that describes how to use public key encryption is called Public Key Infrastructure (PKI). The public keys that are exchanged between parties are transported using a container; the container is called a certificate, following standard X.509 version 3. A certificate contains lots of other details; for example, it contains a signature by a third party that expresses trust in the ownership
relationship for the certificate. The trust assigned by the third party might be restricted to certain uses, which are listed in certificate extensions that are contained in the certificate. Many (if not most) of the operations performed by NSS involve the use of X.509 certificates (often abbreviated as "cert", unfortunately making it easy to confuse with the term "computer emergency response team"). ...
NSS FAQ
latforms. The NSS 3.1 API requires C or C++ development environments. For the latest NSS release notes and detailed platform information, see Project Information. What cryptography standards are supported? NSS supports SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, and X.509 v3 certificates. For complete details, see Encryption Technologies Available in NSS 3.11 What is the
relationship between NSS and PSM? Personal Security Manager (PSM) is built on top of NSS. It consists of libraries and a daemon designed to support cross-platform development of security-enabled client applications. The PSM binary provides a client module that performs cryptographic operations on behalf of applications. Netscape Personal Security Manager ships with Netscape 6 and the Gateway Connected Tou...
Index
vironment that describes how to use public key encryption is called Public Key Infrastructure (PKI). The public keys that are exchanged between parties are transported using a container; the container is called a certificate, following standard X.509 version 3. A certificate contains lots of other details; for example, it contains a signature by a third party that expresses trust in the ownership
relationship for the certificate. The trust assigned by the third party might be restricted to certain uses, which are listed in certificate extensions that are contained in the certificate. Many (if not most) of the operations performed by NSS involve the use of X.509 certificates (often abbreviated as "cert", unfortunately making it easy to confuse with the term "computer emergency response team"). ...
Introduction to Network Security Services
ations using the exported APIs will remain compatible with future versions of those libraries. For a complete list of public functions exported by these shared libraries in NSS 3.2, see NSS functions. For information on which static libraries in NSS 3.1.1 are replaced by each of the above shared libraries in NSS 3.2 , see Migration from NSS 3.1.1. Figure 1, below, shows a simplified view of the
relationships among the three shared libraries listed above and NSPR, which provides low-level cross platform support for operations such as threading and I/O. (Note that NSPR is a separate Mozilla project; see Netscape Portable Runtime for details.) Figure 1
Relationships among core NSS libraries and NSPR Naming conventions and special libraries Windows and Unix use different naming conventions fo...
Necko Architecture
n of a URL, you can ask the nsIIOService for a URL instance representing that string. Once you have a URL interface in hand (nsIURL), you have a completely parsed representation of the original URL string, and you can query for the various parts of the URL. Handlers & channels nsIChannel provides a data access interface which allows you to read or write data from or to a URI. There is a 1-to-1
relationship between URIs and channels (if you go so far as to create a channel from a URI, which is not required if all you need is a parsed representation of a URI string). For every URI you want to transact with, there is exactly one channel. In order to get a channel from a URI an intermediary layer was introduced. Because a URI has no self knowledge about what "protocol" it represents, another compone...
JSFunction
JSFunction is a type in the JSAPI. The APIs JS_NewFunction, JS_DefineFunction, JS_CompileFunction, and their Unicode equivalents return values of type JSFunction *. For native functions and JSAPI-compiled functions - that is, functions returned by the APIs listed above-there is a simple one-to-one
relationship between the JSFunction and the corresponding JavaScript Function object. To get a JSFunction * given the JSObject * of a Function object, use JS_ValueToFunction. To get the JSObject * given the JSFunction *, use JS_GetFunctionObject. For other function objects - that is, functions created by running JavaScript code containing function declarations or function-expressions-the
relationship between the JSFunction * and the JSObject * is not well-defined. Different closures (Function objects) ge...
JSObject
are made up of the following parts: Most objects have a prototype. See JS_GetPrototype. An object inherits properties, including methods, from its prototype (which is another object). Most objects have a parent. See JS_GetParent. An object's parent is another object, usually either the global object or an object that represents an activation record. The JavaScript engine sometimes uses this
relationship to implement lexical scoping. Security-sensitive applications can use this
relationship to make every object a member of some security domain. Almost every object can have any number of its own properties. The term own property refers to a property of an object that is not inherited from its prototype. Each property has a name, a getter, a setter, and property attributes. Most properties al...
JS_GetFunctionObject
ctionObject is not necessarily safe to call and should not be exposed to script. In the JavaScript language, functions are objects. But in the JSAPI there are two separate concepts: a JSObject is what is exposed to scripts and has properties and can be stored in variables; and the corresponding JSFunction contains the code of a function. For certain functions, the two have a strictly one-to-one
relationship, and for those functions it is safe to call JS_GetFunctionObject to move from the JSFunction to the JSObject. However, for other functions, and particularly for JavaScript closures, many JSObjects may share the same JSFunction. In these cases, this function should not be called. Calling the JSObject returned by it could cause a crash or worse. JS_GetFunctionObject always returns a pointer to ...
TPS Tests
id JSON, and so you can't have comments in it (sorry, I know this is annoying). One alternative is to put underscores before the "disabled" preferences, e.g. "_identity.fxaccounts.autoconfig.uri": "...". Writing TPS tests Each TPS test is run as a series of "phases". A phase runs in some firefox profile, and contains some set of actions to perform or check on that profile. Phases have an N to M
relationship with profiles, where N >= M (there can never be more phases than profiles). Typically there are two profiles used, but any number of profiles could be used in theory (other than 0). After the phases run, two additional "cleanup" phases are run, to unregister the devices with FxA. This is an implementation detail, but if you work with TPS for any amount of time you will almost certainly see cl...
Redis Tips
bviously, calling ice cream a NoWhale Food doesn't give you any sense of how good the ice cream is, or what sets it apart from other kinds of food that aren't made from whale meat but that are also very unlike ice cream -- it just gives the whaling industry a way to lump together people who don't use their products. So rather than thinking about redis as a database with some kind of non-existent
relationship to SQL, think of it as a data structure server with a rich set of commands for querying and manipulating those data structures over a network connection. Redis data types include: Strings Hashes Lists Sets Ordered Sets (called zsets in redis) Transactions Publishers and Subscribers This table lists some common programming tasks and data structures, and suggests some redis functions...
Implementation Details
es to get information of supported interfaces for interested AT API: Core: Gecko interfaces Windows: MSAA, IA2, IEnumVARIANT and ISimpleDOM* interfaces Linux: AT-SPI Roles Refer to specific pages to get information of supported roles for interested AT API: Gecko MSAA IA2 AT-SPI States Refer to specific pages to get information of supported states for interested AT API: Gecko MSAA IA2 AT-SPI
Relations Refer to specific pages to get information of supported
relations for interested AT API: Gecko MSAA IA2 AT-SPI Attributes Object Attributes Refer to specific pages to get information of supported object attributes for interested AT API: Gecko MSAA IA2 AT-SPI Text Attributes Refer to specific pages to get information of supported text attributes for interested AT API: Gecko MSAA - doesn't hav...
Preface
ogies that make up XPCOM. Accordingly, the book is arranged so that you can follow along and create your own components or learn about different XPCOM topics individually, as in a reference work. For example, the introduction includes a discussion of components and what they are, and the first chapter - in which you compile the basic code and register it with Mozilla - prompts a discussion of the
relationship between components and modules, of XPCOM interfaces, and of the registration process in general. The top of each chapter provides a list of the major topics covered. Sidebar sections are included to highlight technical details. By the end of the book, if we've done our job, you will have learned how to build a component and you will know something about the framework for these components in G...
Creating XPCOM components
ogies that make up XPCOM. Accordingly, the book is arranged so that you can follow along and create your own components or learn about different XPCOM topics individually, as in a reference work. For example, the introduction includes a discussion of components and what they are, and the first chapter - in which you compile the basic code and register it with Mozilla - prompts a discussion of the
relationship between components and modules, of XPCOM interfaces, and of the registration process in general. Note: In general, you should try to avoid having to create XPCOM components. Add-ons should try to use the new Add-on SDK as much as possible; however, there may be cases when it's unavoidable. Note:This article describes a method that uses xpidl but you should use webidl instead. Preface ...
IAccessibleAction
ed. Refer to @ref _arrayConsideration "Special Consideration when using Arrays" for more details. keyBindings An array of BSTRs, allocated by the server, one for each key binding. Free it with CoTaskMemFree. nBindings The number of key bindings returned; the size of the returned array. Return value E_INVALIDARG if bad [in] passed, [out] values are null and 0 respectively. S_FALSE if there are no
relations, [out] values are null and 0 respectively. S_OK. localizedName() Returns the localized name of specified action. [propget] HRESULT localizedName( [in] long actionIndex, [out] BSTR localizedName ); Parameters actionIndex 0 based index specifying which action's localized name should be returned. localizedName The localized name of specified action. Return value E_INVALIDARG if bad [in] passe...
nsIAccessNode
accessibility clients to get style, window, markup and other information about a DOM node. When accessibility is active in Gecko, every DOM node can have one nsIAccessNode. Inherits from: nsISupports Last changed in Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) The nsIAccessNode implementations are instantiated lazily. The nsIAccessNode tree for a given DOM window has a one to one
relationship to the DOM tree. If the DOM node for this access node is "accessible", then a QueryInterface to nsIAccessible will succeed. Method overview nsIAccessNode getChildNodeAt(in long childNum); Obsolete since Gecko 2.0 nsIDOMCSSPrimitiveValue getComputedStyleCSSValue(in DOMString pseudoElt, in DOMString propertyName); DOMString getComputedStyleValue(in DOMString pseudoE...
nsIAccessibleRole
windows or documents, but above individual controls. It is used for the first child of a or iframe. ROLE_CHART 17 Represents a graphical image used to represent data. ROLE_DIALOG 18 Represents a dialog box or message box. It is used for xul:dialog, role="dialog". ROLE_BORDER 19 Represents a window border. ROLE_GROUPING 20 Logically groups other objects. There is not always a parent-child
relationship between the grouping object and the objects it contains. It is used for html:textfield, xul:groupbox, role="group". ROLE_SEPARATOR 21 Used to visually divide a space into two regions, such as a separator menu item or a bar that divides split panes within a window. It is used for xul:separator, html:hr, role="separator". ROLE_TOOLBAR 22 Represents a toolbar, which is a grouping of controls ...
nsIWebProgress
to add or remove nsIWebProgressListener instances to observe the loading of asynchronous requests (usually in the context of a DOM window). nsIWebProgress instances may be arranged in a parent-child configuration, corresponding to the parent-child configuration of their respective DOM windows. However, in some cases a nsIWebProgress instance may not have an associated DOM window. The parent-child
relationship of nsIWebProgress instances is not made explicit by this interface, but the
relationship may exist in some implementations. A nsIWebProgressListener instance receives notifications for the nsIWebProgress instance to which it added itself, and it may also receive notifications from any nsIWebProgress instances that are children of that nsIWebProgress instance. uriloader/base/nsIWebProgress.idl...
nsIWebProgressListener
ebProgressListener.idlScriptable This interface is implemented by clients wishing to listen in on the progress associated with the loading of asynchronous requests in the context of a nsIWebProgress instance as well as any child nsIWebProgress instances. Inherits from: nsISupports Last changed in Gecko 15 (Firefox 15 / Thunderbird 15 / SeaMonkey 2.12) nsIWebProgress describes the parent-child
relationship of nsIWebProgress instances. Method overview void onLocationChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI aLocation, [optional] in unsigned long aFlags); void onProgressChange(in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMaxTotalProgress); v...
nsIXULTemplateQueryProcessor
content/xul/templates/public/nsIXULTemplateQueryProcessor.idlScriptable A query processor takes a template query and generates results for it given a datasource and a reference point. There is a one-to-one
relationship between a template builder and a query processor. The template builder creates the query processor, and there is no other means to retrieve it. 1.0 66 Introduced Gecko 1.9 Inherits from: nsISupports Last changed in Gecko 1.9 (Firefox 3) A query processor takes a template query and generates results for it given a datasource and a reference point. There is a one-to-one
relationship between a template builder and a query processor. The template builder creates the query processor, and there is no other means to retrieve it. A template query is the cont...
Getting Started Guide
// Passing an |nsCOMPtr| by pointer requires extra work... void f( nsCOMPtr<nsIFoo>* ); // ... nsCOMPtr<nsIFoo> myFoo = ...; f( address_of(myFoo) ); void f( nsCOMPtr<T>& ) do pass an nsCOMPtr by reference for `in/out' parameters This is the prefered scheme for providing `in/out' parameters. If you were to use a raw pointer instead, your function couldn't know what ownership
relationship the caller had to the input value, and hence, couldn't know whether to Release it or not before assigning in the new value. By declaring the parameter as an nsCOMPtr&, the
relationship is explicit. Summary An nsCOMPtr is an owning reference. Whatever it points to has been AddRefed, counting the nsCOMPtr as one of its `owners'. An nsCOMPtr always calls Release before letting go, whether the n...
Reference Manual
ding and fixing this particular kind of leak. nsCOMPtr helpers nsCOMPtr<T> = do_QueryReferent( nsIWeakReference* ), nsCOMPtr<T> = do_QueryReferent( nsIWeakReference*, nsresult* ) do_QueryReferent exists to facilitate weak references based on nsIWeakReference. An nsIWeakReference is an XPCOM object that acts as a proxy for another object. The nsIWeakReference and this other object have a special
relationship. They know about each other, but neither holds an owning reference to the other. The two objects cooperate to ensure that neither ever holds a dangling pointer to the other. Holding an owning reference on the nsIWeakReference object allows you to get to this other object when you need to, but does not require it to go on living, just for you. To get to the object, you ask the nsIWeakReference ...
LDAP Support
rganization unit as the LDAP attribute. You can also insert arbitrary text to clarify the LDAP attribute. i.e. "Department: [ou]" would yield a type down entry that looks like "John Smit Department: Client Engineering". LDAP Schema The following table summarizes the schema used by Thunderbird to map between LDAP attributes and attributes within the the Address Book. Some notes about the
relationship: There is a many to one
relationship between LDAP attributes and its Address Book counterpart. There is a one to one
relationship between a Address Book attribute and its LDAP counterpart. If there are multiple entries for a Address Book attribute, the first takes precedence. These
relationships ensure: Generality is maintained when mapping from LDAP attributes to Address Book. Consisten...
Mail client architecture overview
nt of state to aid in view navigation, progress display, etc. URL display and dispatching - In order to perform network operations such as downloading new mail, copying and moving messages, and displaying messages from a remote server, the URL system interacts with necko and reflects it's state to the mail window. There are also a number of protocol independant subsystems that have a symbiotic
relationship with base: libMIME - for dealing with RFC822 messages and their MIME parts. This library has the cabability to stream messages to an HTML renderer such as Gecko, manage individual parts of messages, and so forth. msgdb - A message database for a given folder is a summary of some of the key attributes in a folder such as the Author and Subject. Finally, there are larger modules outside of...
Thunderbird extensions
cipes for things extensions want to do. Still stuck? Ask in a community communication channel on the right. Feeling really brave? Read the source using a fancy interface; you can often find tests that demonstrate what you're trying to achieve. The Gloda database Thunderbird has a subsystem called Gloda. Gloda stands for << Global Database >>, and creates Thunderbird-wide
relations between objects. Gloda provides concepts such as Conversations, Messages, Identities, Contacts. All these concepts are related : a Conversation contains Messages which are linked to Identities (from field, to field) which are themselves part of a Contact: indeed, a contact has multiple identities. Typical use cases for Gloda: find all messages whose subject matches [search term], find all me...
Accessibility Inspector - Firefox Developer Tools
the item is the first item inside its parent, it has a value of 0. If it is the second, it has a value of 1. And so on. states -- a list of the different accessibility-relevant states that can apply to the current item. For example, one of the links in one demo has states of focusable, linked, selectable text, opaque, enabled, and sensitive. For a full list of internal states, see Gecko states.
relations -- a list of the accessiblity-relevant
relationships between this item and other items. For example, in a form, an entry item could have a "labelled by" relation with a label item, which in turn has a "label for" relation to the entry item. attributes -- a list of all the accessibility-relevant attributes that are applied to the item. This can include style-related attributes such as margin-left...
Debugger.Source - Firefox Developer Tools
d functions to DOM elements' event handler IDL attributes. If one assigns a function, that function's script's source doesnot belong to the DOM element; the function's definition must appear elsewhere.) (If the sources attached to a DOM element change, the Debugger.Source instances representing superceded code still refer to the DOM element; this accessor only reflects origins, not current
relationships.) elementAttributeName If this source belongs to a DOM element because it is an event handler content attribute or an event handler IDL attribute, this is the name of that attribute, a string. Otherwise, this is undefined. introductionType If the instance refers to JavaScript source, a string indicating how this source code was introduced into the system. This accessor returns one of ...
BiquadFilterNode() - Web APIs
band-rejection filter) is the opposite of a bandpass filter. It allows all frequencies through, except for a set of frequencies. Q: The width of the band of frequencies that are attenuated. A large value implies a narrow width. frequency: The center frequency of the attenuation range. gain: Not used. allpass: An allpass filter allows all frequencies through, but changes the phase
relationship between the various frequencies. It implements a second-order allpass filter. Q: The sharpness of the phase transition at the center frequency. A larger value implies a sharper transition and a larger group delay. frequency: The frequency where the center of the phase transition occurs. Viewed another way, this is the frequency with maximal group delay. gain: Not used. Return va...
BiquadFilterNode.type - Web APIs
posite of a bandpass filter: frequencies outside the give range of frequencies pass through; frequencies inside it are attenuated. The center of the range of frequencies. Controls the width of the frequency band. The greater the Q value, the larger the frequency band. Not used allpass Standard second-order allpass filter. It Lets all frequencies through, but changes the phase-
relationship between the various frequencies. The frequency with the maximal group delay, that is, the frequency where the center of the phase transition occurs. Controls how sharp the transition is at the medium frequency. The larger this parameter is, the sharper and larger the transition will be. Not used Example The following example shows basic usage of an AudioContext to create a Biq...
BiquadFilterNode - Web APIs
f a bandpass filter: frequencies outside the give range of frequencies pass through; frequencies inside it are attenuated. The center of the range of frequencies. Controls the width of the frequency band. The greater the Q value, the smaller the frequency band. Not used allpass Standard second-order allpass filter. It lets all frequencies through, but changes the phase-
relationship between the various frequencies. The frequency with the maximal group delay, that is, the frequency where the center of the phase transition occurs. Controls how sharp the transition is at the medium frequency. The larger this parameter is, the sharper and larger the transition will be. Not used Methods Inherits methods from its parent, AudioNode. BiquadFilterNode.
CSSPseudoElement.element - Web APIs
The element read-only property of the CSSPseudoElement interface returns a reference to the originating element of the pseudo-element, in other words its parent element. Syntax var originatingElement = cssPseudoElement.element; Value An Element representing the pseudo-element's originating element. ...
CSSPseudoElement.type - Web APIs
The type read-only property of the CSSPseudoElement interface returns the type of the pseudo-element as a string, represented in the form of a CSS selector. ...
CSSRule - Web APIs
only Returns the CSSStyleSheet object for the style sheet that contains this rule CSSRule.type Read only One of the Type constants indicating the type of CSS rule. Constants Type constants The CSSRule interface specifies integer constants that can be used in conjunction with a CSSRule's type property to discern the rule type (and therefore, which specialized interface it implements). The
relationships between these constants and the interfaces are: Type Value Rule-specific interface Comments and examples CSSRule.STYLE_RULE 1 CSSStyleRule The most common kind of rule: selector { prop1: val1; prop2: val2; } CSSRule.IMPORT_RULE 3 CSSImportRule An @import rule. (Until the documentation is completed, see the interface definition in the ...
DataTransfer.effectAllowed - Web APIs
The DataTransfer.effectAllowed property specifies the effect that is allowed for a drag operation. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of
relationship or connection will be created between the source and drop locations. This property should be set in the dragstart event to set the desired drag effect for the drag source. Within the dragenter and dragover event handlers, this property will be set to whatever value was assigned during the dragstart event, thus effectAllowed may be used to determine which effect is permitted. Assigning a value to effectAllowed in event...
Introduction to the File and Directory Entries API - Web APIs
s with other APIs The File and Directory Entries API is case-sensitive The File and Directory Entries API is a virtual representation of a file system The API doesn't give you access to the local file system, nor is the sandbox really a section of the file system. Instead, it is a virtualized file system that looks like a full-fledged file system to the web app. It does not necessarily have a
relationship to the local file system outside the browser. What this means is that a web app and a desktop app cannot share the same file at the same time. The API does not let your web app reach outside the browser to files that desktop apps can also work on. You can, however, export a file from a web app to a desktop app. For example, you can use the File API, create a blob, redirect an iframe to the b...
HTMLAnchorElement.rel - Web APIs
Syntax var relstr = anchorElt.rel; anchorElt.rel = relstr; Example var anchors = document.getElementsByTagName("a"); var length = anchors.length; for (var i = 0; i < length; i++) { alert("Rel: " + anchors[i].rel); } Specifications Specification Status Comment HTML Living StandardThe definition of 'rel' in that specification. ...
HTMLAreaElement.rel - Web APIs
The HTMLAreaElement.rel property reflects the rel attribute. It is a DOMString containing a space-separated list of link types indicating the
relationship between the resource represented by the <area> element and the current document. Syntax var relstr = areaElt.rel; areaElt.rel = relstr; Example var areas = document.getElementsByTagName("area"); var length = areas.length; for (var i = 0; i < length; i++) { alert("Rel: " + areas[i].rel); } Specifications Specification Status Comment HTML Living StandardThe definition of 'rel' in that specification. Living Standard Initial definition ...
HTMLAreaElement.relList - Web APIs
The property itself is read-only, meaning you can't substitute the DOMTokenList by another one, but the content of the returned list can be changed. ...
HTMLAreaElement - Web APIs
d URL. HTMLHyperlinkElementUtils.protocol Is a USVString containing the protocol component (including trailing colon ':'), of the referenced URL. HTMLAreaElement.referrerPolicy Is a DOMString that reflects the referrerpolicy HTML attribute indicating which referrer to use when fetching the linked resource. HTMLAreaElement.rel Is a DOMString that reflects the rel HTML attribute, indicating
relationships of the current document to the linked resource. HTMLAreaElement.relList Read only Returns a DOMTokenList that reflects the rel HTML attribute, indicating
relationships of the current document to the linked resource, as a list of tokens. HTMLHyperlinkElementUtils.search Is a USVString containing the search element (including leading question mark '?'), if any, of the referenced URL. HTML...
HTMLLinkElement.rel - Web APIs
The most common use of this attribute is to specify a link to an external style sheet: the property is set to stylesheet, and the href attribute is set to the URL of an external style sheet to format the page. ...
HTMLLinkElement.relList - Web APIs
The property itself is read-only, meaning you can substitute the DOMTokenList by another one, but the content of the returned list can be changed. ...
Drag Operations - Web APIs
image appears centered on the mouse pointer. Drag Effects When dragging, there are several operations that may be performed. The copy operation is used to indicate that the data being dragged will be copied from its present location to the drop location. The move operation is used to indicate that the data being dragged will be moved, and the link operation is used to indicate that some form of
relationship or connection will be created between the source and drop locations. You can specify which of the three operations are allowed for a drag source by setting the effectAllowed property within a dragstart event listener. event.dataTransfer.effectAllowed = "copy"; In this example, only a copy is allowed. You can combine the values in various ways: none no operation is permitted copy cop...
HTML Drag and Drop API - Web APIs
ing. For example, when the user hovers over a drop target, the browser's cursor may indicate the type of operation that will occur. Three effects may be defined: copy indicates that the dragged data will be copied from its present location to the drop location. move indicates that the dragged data will be moved from its present location to the drop location. link indicates that some form of
relationship or connection will be created between the source and drop locations. During the drag operation, drag effects may be modified to indicate that certain effects are allowed at certain locations. The following example shows how to use this property. function dragstart_handler(ev) { ev.dataTransfer.dropEffect = "copy"; } For more details, see: Drag Effects Define a drop zone By defaul...
Node.compareDocumentPosition() - Web APIs
N_FOLLOWING 4 DOCUMENT_POSITION_CONTAINS 8 DOCUMENT_POSITION_CONTAINED_BY 16 DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC 32 Syntax compareMask = node.compareDocumentPosition(otherNode) Parameters otherNode The other Node with which to compare the first node's document position. Return value An integer value whose bits represent the otherNode's
relationship to the calling node. More than one bit is set if multiple scenarios apply. For example, if otherNode is located earlier in the document and contains the node on which compareDocumentPosition() was called, then both the DOCUMENT_POSITION_CONTAINS and DOCUMENT_POSITION_PRECEDING bits would be set, producing a value of 10 (0x0A). Example const head = document.head; const body = document.body; ...
RTCIceCandidate.relatedAddress - Web APIs
candidate. For relay candidates, the related address and port are set to the mapped address selected by the TURN server. For host candidates, relatedAddress is null, meaning the field is not included in the candidate's a-line. Usage notes The related address is included in ICE candidates despite not being used by ICE itself. relatedAddress can be used for diagnostic purposes; by observing the
relationships between the various types of candidates and their addresses and related addresses. relatedAddress can also be used by Quality-of-Service (QoS) mechanisms. Here's an SDP attribute line (a-line) describing an ICE candidate discovered by the STUN server: a=candidate:4234997325 1 udp 2043278322 192.168.0.56 6502 typ srflx raddr 192.168.2.77 rport 32768 generation 0 The remote address, relatedA...
Resource Timing API - Web APIs
art. The PerformanceResourceTiming interface also includes several network timing properties. The redirectStart and redirectEnd properties return timestamps for redirect start and end times, respectively. Likewise, the The domainLookupStart and domainLookupEnd properties return timestamps for DNS lookup start and end times, respectively. This would be a nice place to have a diagram showing the
relationships between these segments of the resource loading time. Resource size The PerformanceResourceTiming interface has three properties that can be used to obtain size data about a resource. The transferSize property returns the size (in octets) of the fetched resource including the response header fields plus the response payload body. The encodedBodySize property returns the size (in octets) rec...
SVGTextContentElement - Web APIs
he computed tight bounding box of the glyph cell that corresponds to a given typographic character. SVGTextContentElement.getRotationOfChar() Returns a float representing the rotation of typographic character. SVGTextContentElement.getCharNumAtPosition() Returns a long representing the character which caused a text glyph to be rendered at a given position in the coordinate system. Because the
relationship between characters and glyphs is not one-to-one, only the first character of the relevant typographic character is returned SVGTextContentElement.selectSubString() Selects text within the element. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'SVGTextContentElement' in that specification. Candidate Recommendation...
Selection - Web APIs
ection API was initially created by Netscape and allowed multiple ranges (for instance, to allow the user to select a column from a <table>). However, browsers other than Gecko did not implement multiple ranges, and the specification also requires the selection to always have a single range. Selection and input focus Selection and input focus (indicated by Document.activeElement) have a complex
relationship that varies by browser. In cross-browser compatible code, it's better to handle them separately. Safari and Chrome (unlike Firefox) currently focus the element containing selection when modifying the selection programmatically; it's possible that this may change in the future (see W3C bug 14383 and WebKit bug 38696). Behavior of Selection API in terms of editing host focus changes The Selec...
Storage Access API - Web APIs
sts are automatically denied unless the embedded content is currently processing a user gesture such as a tap or click. This also prevents embedded content on the page from spamming the browser or user with excessive access requests. Origins that have never been interacted with as a first party do not have a notion of first-party storage. From the user's perspective, they only have a third-party
relationship with that origin. Access requests are automatically denied if the browser detects that the user hasn't interacted with the embedded content in a first-party context recently (in Firefox, "recently" is "within 30 days"). The browser may decide to involve the user in the decision of whether to grant an incoming storage access request. Specifics regarding the lifetime of a storage grant and the...
Introduction to the Real-time Transport Protocol (RTP) - Web APIs
ers can be obtained by calling RTCPeerConnection.getReceivers(). RTCRtpTransceiver An RTCRtpTransceiver is a pair of one RTP sender and one RTP receiver which share an SDP mid attribute, which means they share the same SDP media m-line (representing a bidirectional SRTP stream). These are returned by the RTCPeerConnection.getTransceivers() method, and each mid and transceiver share a one-to-one
relationship, with the mid being unique for each RTCPeerConnection. Leveraging RTP to implement a "hold" feature Because the streams for an RTCPeerConnection are implemented using RTP and the interfaces above, you can take advantage of the access this gives you to the internals of streams to make adjustments. Among the simplest things you can do is to implement a "hold" feature, wherein a participant in...
Lighting a WebXR setting - Web APIs
ues. Lighting information can leak to the web information about the user's surroundings and device usage patterns. Such information can be used to enhance user profiling and behavior analysis data. If two or more devices access content that uses the same third-party script, that script can be used to correlate lighting information and how it changes over time to attempt to determine a spatial
relationship between the devices; this could in theory indicate that the devices are in the same general area, for example. How browsers mitigate these issues In order to help mitigate these risks, browsers are required by the WebXR Lighting Estimation API specification to report lighting information that is fudged somewhat from the true value. There are many ways this could be done. Spherical harmonic...
Rendering and the WebXR frame animation callback - Web APIs
e, unified, 3D image of the world in the viewer's brain, and that image is what is seen. And because of those differences between what is seen by the left eye versus the right eye, the brain is able to infer a great deal of information about how deep the object is, its size, and more. By combining that inferred depth information with other cues such as perspective, shadows, memories of what these
relationships mean, and so forth, we can figure out a great deal about the world around us. Frames, poses, views, and framebuffers Once you have an XRFrame representing the state of the scene at a moment in time, you need to determine the positions of objects within the scene relative to the viewer so that you can render them. The viewer's position and orientation relative to a reference space is represe...
Spaces and reference spaces: Spatial tracking in WebXR - Web APIs
umes that you are familiar with the concepts introduced in Geometry and reference spaces in WebXR: that is, the basics of 3D coordinate systems, as well as WebXR spaces, reference spaces, and how reference spaces are used to create local coordinate systems for individual objects or movable components within a scene. Representing a position using a reference space As covered in Defining spatial
relationships with reference spaces in Geometry and reference spaces in WebXR, reference spaces establish a local coordinate system which is offset from another coordinate system that is itself defined by some other space. Thus, a reference space can be used to define the position and orientation of a point and by extension the entire object for which that point is the origin. While this is a little heavy-...
Window.open() - Web APIs
ccess of the window.open() call and then verify that windowObjectReference.closed return value is false. How can I tell when my window was blocked by a popup blocker? With the built-in popup blockers, you have to check the return value of window.open(): it will be null if the window wasn't allowed to open. However, for most other popup blockers, there is no reliable way. What is the JavaScript
relationship between the main window and the secondary window? The window.open() method gives a main window a reference to a secondary window; the opener property gives a secondary window a reference to its main window. I cannot access the properties of the new secondary window. I always get an error in the javascript console saying "Error: uncaught exception: Permission denied to get property <property_...
XRFrame - Web APIs
an be used to create an XRPose describing the relative position of one XRSpace relative to another. Properties session Read only The XRSession that for which this XRFrame describes the tracking details for all objects. The information about a specific object can be obtained by calling one of the methods on the object. Methods getPose() Returns an XRPose object representing the spatial
relationship between the two specified XRSpace objects. getViewerPose() Returns an XRViewerPose describing the viewer's position and orientation in a given XRReferenceSpace. Specifications Specification Status Comment WebXR Device APIThe definition of 'XRFrame' in that specification. Working Draft Initial definition. ...
XRInputSource.gripSpace - Web APIs
of the user's hand, with the direction extending outward from the back of the hand being +X if the controller is in the user's right hand or -X if the controller is in the left hand. The z-axis along the length of the rod, parallel to the user's palm and along the length of their grip. +Z is in the direction of the user's thumb, and -Z is in the opposite direction. The y-axis is implied by the
relationship between the other two axes; as is always the case, it's the cross product of the other two axes (lying 90? away from both the X and Z axes). Examples In tis example, taken from the frame rendering callback, the gripSpace is used to render a mesh that represents the position and orieintation of the controller in the virtual environment. for (let source in xrSession.inputSources) { if (sou...
XRView - Web APIs
The third section creates the new XRRigidTransform, specifying a point providing the offsets along the three axes as the first parameter, and the orientation quaternion as the second parameter. The returned object's matrix property is the actual matrix that transforms points from the scene's reference space to the object's new position. Finally, a new reference space is created to describe the
relationship between the two reference spaces fully. That reference space is returnedto the caller. To use this function, we simply pass the returned reference space into XRFrame.getPose() or getViewerPose(), as appropriate for yoru needs. the XRPose returned will then be used to actuall render the scene for the current frame. You can find a more extensive and complete example in our article Movement, or...
Using the aria-describedby attribute - Accessibility
This is very similar to aria-labelledby: a label describes the essence of an object, while a description provides more information that the user might need. The aria-describedby attribute is not used only for form elements; it is also used to associate static text with widgets, groups of elements, panes, regions that have a heading, definitions, and more. ...
Using the aria-labelledby attribute - Accessibility
List multiple element IDs in a space delimited fashion. This idea is similar to how the "for" attribute is used to link a LABEL to an INPUT. Assistive technology, such as screen readers, use this attribute to catalog the objects in a document so that users can navigate between them. Without an element ID, the assistive technology cannot catalog the object. ...
Using the group role - Accessibility
ARIA attributes used group Related ARIA techniques region role Compatibility TBD: Add support information for common UA and AT product combinations Additional resources ARIA Authoring Practices - Accessible Name Guidance by Role - group ...
Using the status role - Accessibility
ten presented as a status bar. When the role is added to an element, the browser will send out an accessible status event to assistive technology products which can then notify the user about it. Status information content must be provided within a status object, and it should be ensured that this object does not receive focus. If another part of the page controls what appears in the status, the
relationship should be made explicit via the aria-controls attribute. Assistive technologies may reserve some cells of a Braille display to render the status. Possible effects on user agents and assistive technology When the status role is added to an element, or such an element becomes visible, the user agent should do the following: Expose the element as having a status role in the operating syste...
Using ARIA: Roles, states, and properties - Accessibility
en aria-invalid aria-label aria-level aria-modal aria-multiline aria-multiselectable aria-orientation aria-placeholder aria-pressed aria-readonly aria-required aria-selected aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext Live region attributes aria-live aria-relevant aria-atomic aria-busy Drag & drop attributes aria-dropeffect aria-dragged
Relationship attributes aria-activedescendant aria-colcount aria-colindex aria-colspan aria-controls aria-describedby aria-details aria-errormessage aria-flowto aria-labelledby aria-owns aria-posinset aria-rowcount aria-rowindex aria-rowspan aria-setsize MicrosoftEdge-specific properties x-ms-aria-flowfrom ...
ARIA: article role - Accessibility
segment</h2> <p>Paragraph for the segment.</p> <p>Another paragraph.</p> ... controls to interact with the article, share it, etc. ... </article> <article> ... </article> Description The article role denotes a section of a document, page, or site that, if it were standing on its own, could be viewed as a complete document, page or site. The aim of a set of article sections is to indicate their
relationship to one another. Articles are not considered a navigational landmark, but many assistive technologies that support landmarks also support a means to navigate among articles. They may also support indication of nesting
relationships within articles. Articles can be nested, indicating that a nested article directly relates to the one it is nested in, but not necessarily to the ones outside the ...
ARIA: document role - Accessibility
rsor. Assistive technologies should switch context back to document mode, possibly intercepting from controls rewired for the parent's dynamic context, re-enabling the standard input events, such as Up or Down arrow keyboard events, to control the reading cursor. In contrast to the article role, the document role does not have any relation to other elements with a document role, it merely has a
relationship to the containing composit widget. An article can have associated articles. Associated WAI-ARIA roles, states, and properties aria-expanded Include with a value of true or false if the document element is collapsible, to indicate if the document is currently expanded or collapsed. Other values include the default undefined which means the document is not collapsible. tabindex="0" Use...
ARIA: grid role - Accessibility
<button id="2a" tabindex="-1">2A</button> </td> <td tabindex="-1"> <button id="2b" tabindex="-1">2B</button> </td> <!-- More Columns --> </tr> </tbody> </table> Description A grid widget contains one or more rows with one or more cells of thematically related interactive content. While it does not imply a specific visual presentation, it implies a
relationship among elements. Uses fall into two categories: presenting tabular information (data grids) and grouping other widgets (layout grids). Even though both data grids and layout grids employ the same ARIA roles, states, and properties, differences in their content and purpose surface factors that are important to consider in keyboard interaction design. See ARIA Authoring practices for more details...
ARIA: gridcell role - Accessibility
the columns and rows, gridcells must have their positions programatically described by using aria-describedby. The ids provided for aria-describedby should correspond to parent elements intended to be the rows and columns. By referencing the parent elements with roles of rowheader or columnheader applied to them via aria-describedby, it allows assistive technology to understand the position and
relationship of the gridcell element to the rest of the table-style grouping of content. Interactive grids and treegrids Editable cells Both td elements and elements with a role of gridcell applied to them can be made editable, mimicking functionality similar to editing a spreadsheet. This is done by applying the HTML contenteditable attribute. <td contenteditable="true">Notes</td> <div role="gridcel...
ARIA: Main role - Accessibility
or "skip to main content" links.There should only be one main landmark role per document. The <main> element has a role of main. Developers should always prefer using the correct semantic HTML element over using ARIA. Documents and applications can be nested in the DOM, which may lead to having more than one main element as DOM descendants. If this is the case, include aria-owns to identify the
relationship of the main to it's document or application ancestor. Example <body> <!-- primary navigation --> <div role="main"> <h1>The The First Indochina War</h1> <!-- article content --> </div> <!-- sidebar and footer --> </body> Accessibility concerns Use only one main role per document The main landmark role should only be used once per document. If a document contains two main...
ARIA: rowgroup role - Accessibility
There is, however, no differentiation between different types of rowgroups. Their elements must be contained in, or owned by, elements with either the table or grid role. Using the native <thead>, <tfoot> , and <tbody> HTML elements, whenever possible, is strongly encouraged. To create an...
ARIA: heading role - Accessibility
<div role="heading" aria-level="1">This is a main page heading</div> This defines the text in the div to be the main heading of the page, indicated by being level 1 via the aria-level attribute. Description The heading role indicates to assistive technologies that this element should be treated like a heading. Screen readers would read the text and indicate that it is formatted like a heading. ...
WAI-ARIA Roles - Accessibility
ant and can be focused using keyboard input.ARIA: gridcell roleThe gridcell role is used to make a cell in a grid or treegrid. It is intended to mimic the functionality of the HTML td element for table-style grouping of information.ARIA: heading roleThe heading role defines this element as a heading to a page or section. To give the page more structure, a level should also be provided to indicate
relationships between sections.ARIA: img roleThe ARIA img role can be used to identify multiple elements inside page content that should be considered as a single image. These elements could be images, code snippets, text, emojis, or other content that can be combined to deliver information in a visual manner.ARIA: List roleThe ARIA list role can be used to identify a list of items. It is normally used in ...
Web applications and ARIA FAQ - Accessibility
as the new <progress> element. In cases where the browser supports an HTML5 tag that also exists in ARIA, there is usually no need to also add ARIA roles and states to the element. ARIA includes many roles, states, and properties that aren't available in HTML5, so these will continue to be useful to developers who use HTML5. For more information, Steve Faulkner has written a good overview of the
relationship between HTML5 and ARIA. Degrading Gracefully from HTML5 to ARIA When delivering content to browsers that aren't HTML5-aware, you may want to consider gracefully degrading to the use of ARIA where necessary. So, using the example of a progress bar, you can degrade gracefully to a role="progressbar" in cases where the <progressbar> tag isn't supported. Here is an example of the markup used fo...
Accessibility and Spacial Patterns - Accessibility
ightness. Text and padding WCAG standards for contrast perception do not take into account the effect of padding. For example, blue text on a gray background is easier to perceive if it is surrounded "locally" by black than by white. There is such a thing as "local" adaptation to colors. The bottom line: padding matters. Math Spatial reasoning affects Math learning; consequently, spatial
relationships in how math is presented affects cognition. The web developer can do something about this in the manner in which he displays math. Animation figures strongly in this arena. For example, "how" an object looks when it is rotated, from different angles, how they look sliced, and how they relate to each other in space all make a difference in an ability to understand Math in spatial terms. B...
HTML To MSAA - Accessibility
elow shows how Gecko maps HTML elements to MSAA. This table reflects mapping rules for specific elements only, it doesn't reflect any general rules applicable to all elements. For example, if name column has n/a value then it means specific elements doesn't provide own rules to calculate name but name can be computed from ARIA markup or @title attribute. ...
Perceivable - Accessibility
description for Guideline 1.2: Time-based Media: Provide alternatives for time-based media. Guideline 1.3 -- Create content that can be presented in different ways This guideline refers to the ability of content to be consumed by users in multiple ways, accomodating their differing needs. Success criteria How to conform to the criteria Practical resource 1.3.1 Info and
relationships (A) Any content structure--or visual
relationship made between content--can also be determined programmatically, or be inferred from text description. The main situations in which this is relevant are: Text labels and the form elements they describe. These are associated unambiguously using the <label> element, which can be picked up by screenreaders, etc. Image alt te...
CSS Multi-column Layout - CSS: Cascading Style Sheets
umns in a layout, as well as how content should flow from column to column, gap sizes between columns, and column dividing lines (known as column rules) along with their appearance. Basic example In the following example the column-count property has been applied to the element with a class of container. As the value of column-count is 3, the content is arranged into 3 columns of equal size.
Relationship to Fragmentation Multiple-column Layout is closely related to Paged Media, in that each column box becomes a fragment, much like a printed page becomes a fragment of an overall document. Therefore the properties now defined in the CSS Fragmentation specification are required in order to control how content breaks between columns. Reference Multiple-column Layout Properties column-count...
CSS Display - CSS: Cascading Style Sheets
block, display: inline) Block and Inline Layout in Normal Flow Flow Layout and Overflow Flow Layout and Writing Modes Formatting Contexts Explained In Flow and Out of Flow display: flex Basic concepts of flexbox Aligning Items in a Flex Container Controlling Ratios of Flex Items Along the Main Axis Cross-browser Flexbox mixins Mastering Wrapping of Flex Items Ordering Flex Items
Relationship of flexbox to other layout methods Backwards Compatibility of Flexbox Typical use cases of Flexbox display: grid Basic Concepts of Grid Layout
Relationship to other layout methods Line-based placement Grid template areas Layout using named grid lines Auto-placement in grid layout Box alignment in grid layout Grids, logical values and writing modes CSS Grid Layout and Accessibili...
Basic concepts of flexbox - CSS: Cascading Style Sheets
assumption about the writing mode of the document. In the past, CSS was heavily weighted towards horizontal and left-to-right writing modes. Modern layout methods encompass the range of writing modes and so we no longer assume that a line of text will start at the top left of a document and run towards the right hand side, with new lines appearing one under the other. You can read more about the
relationship between flexbox and the Writing Modes specification in a later article; however, the following description should help explain why we do not talk about left and right and top and bottom when we describe the direction that our flex items flow in. If the flex-direction is row and I am working in English, then the start edge of the main axis will be on the left, the end edge on the right. If ...
Typical use cases of Flexbox - CSS: Cascading Style Sheets
rowser support, the reason you'd choose to use flexbox is because you want to lay a collection of items out in one direction or another. As you lay out your items you want to control the dimensions of the items in that one dimension, or control the spacing between items. These are the uses that flexbox was designed for. You can read more about the difference between flexbox and CSS Grid Layout in
Relationship of Flexbox to other layout methods, where we discuss how flexbox fits into the overall picture of CSS Layout. In reality we also often use Flexbox for jobs that might be better done by Grid Layout, as a fallback for Grid, and also in order to get alignment capabilities. This is something that may well change once Box Alignment is implemented in Block Layout. In this guide I look at some of th...
CSS Flexible Box Layout - CSS: Cascading Style Sheets
ment specification for up to date definitions. Also additional alignment properties are now defined in Box Alignment. justify-content align-content align-items align-self place-content place-items row-gap column-gap gap Glossary entries Flexbox Flex Container Flex Item Main Axis Cross Axis Flex Guides Basic Concepts of Flexbox An overview of the features of Flexbox
Relationship of Flexbox to other layout methods How Flexbox relates to other layout methods, and other CSS specifications Aligning items in a flex container How the Box Alignment properties work with Flexbox. Ordering flex items Explaining the different ways to change the order and direction of items, and covering the potential issues in doing so. Controlling Ratios of flex items along the main axis ...
Basic Concepts of grid layout - CSS: Cascading Style Sheets
As you can see in the example it has not inherited the grid-gap of the parent and the lines in the nested grid do not align to the lines in the parent grid. Subgrid In the working draft of the Level 2 Grid specification there is a feature called subgrid, which would let us create nested grids that use the track definition of the parent grid. Note: This feature shipped in Fir...
CSS Grid Layout and Accessibility - CSS: Cascading Style Sheets
elements do not. If the subgrid value of display becomes implemented, it would be possible to make these children of a grid item participate in the overall grid layout by declaring the ul element a subgrid. Currently the only way to do this is to use display: contents to cause the box generated by the ul to disappear from the DOM. For more information about this interaction see the guide on the
Relationship of Grid Layout to other layout methods and the section on display: contents. Given that interoperable support for display: contents is limited and we do not yet have subgrids, there is a definite temptation when developing a site using CSS Grid Layout to flatten out the markup, to remove semantic elements in order to make it simpler to create a layout. An example would be where some content w...
Overview of CSS Shapes - CSS: Cascading Style Sheets
erted into the document, an empty <div> or <span> perhaps, but our preference is to use generated content. This means we can keep things used for styling inside the CSS. In this next example, we use generated content to insert an element with height and width of 150px. We can then use Basic Shapes, Box Values or even the Alpha Channel of an image to create a shape for the text to wrap around.
Relationship to clip-path The Basic Shapes and Box values used to create Shapes are the same as those used as values for clip-path. Therefore if you want to create a shape using an image, and also clip away part of that image, you can use the same values. The image below is a square image with a blue background. We have defined a shape using shape-outside: ellipse(40% 50%); and also used clip-path: ellip...
CSS reference - CSS: Cascading Style Sheets
reate other, more complex selectors. Universal selector *, ns|*, *|*, |* Type selector elementname Class selector .classname ID selector #idname Attribute selector [attr=value] Grouping selectors Selector list A, B Specifies that both A and B elements are selected. This is a grouping method to select several matching elements. Combinators Combinators are selectors that establish a
relationship between two or more simple selectors, such as "A is a child of B" or "A is adjacent to B." Adjacent sibling combinator A + B Specifies that the elements selected by both A and B have the same parent and that the element selected by B immediately follows the element selected by A horizontally. General sibling combinator A ~ B Specifies that the elements selected by both A and B share the ...
Visual formatting model - CSS: Cascading Style Sheets
ia such as a book or document printed by browser print functions. Most of the information applies equally to continuous and paged media. In the visual formatting model, each element in the document tree generates zero or more boxes according to the box model. The layout of these boxes is governed by: Box dimensions and type. Positioning scheme (normal flow, float, and absolute positioning).
Relationships between elements in the document tree. External information (e.g., viewport size, intrinsic dimensions of images, etc.). Much of the information about the visual formatting model is defined in CSS2, however, various level 3 specifications have added to this information. When reading specifications you will often find references to the model as defined in CSS2, so an understanding of the mo...
display - CSS: Cascading Style Sheets
block, display: inline) Block and Inline Layout in Normal Flow Flow Layout and Overflow Flow Layout and Writing Modes Formatting Contexts Explained In Flow and Out of Flow display: flex Basic concepts of flexbox Aligning Items in a Flex Container Controlling Ratios of Flex Items Along the Main Axis Cross-browser Flexbox mixins Mastering Wrapping of Flex Items Ordering Flex Items
Relationship of flexbox to other layout methods Backwards Compatibility of Flexbox Typical use cases of Flexbox display: grid Basic Concepts of Grid Layout
Relationship to other layout methods Line-based placement Grid template areas Layout using named grid lines Auto-placement in grid layout Box alignment in grid layout Grids, logical values and writing modes CSS Grid Layout and Accessibili...
transition-timing-function - CSS: Cascading Style Sheets
jump-both Includes pauses at both the 0% and 100% marks, effectively adding a step during the transition time. start Same as jump-start. end Same as jump-end. step-start Equal to steps(1, jump-start) step-end Equal to steps(1, jump-end) Accessibility concerns Some animations can be helpful such as to guide users to understand what actions are expected, to show
relationships within the user interface, and to inform users as to what actions have occurred. Animations can help reduce cognitive load, prevent change blindness, and establish better recall in spatial
relationships. However, some animations can be problematic for people with cognitive concerns such as Attention Deficit Hyperactivity Disorder (ADHD) and certain kinds of motion can be a trigger for Vestibu...
Audio and video manipulation - Developer guides
ds a boost (or attenuation) to the lower frequencies. High Shelf: Allows all frequencies through, but adds a boost (or attenuation) to the higher frequencies. Peaking: Allows all frequencies through, but adds a boost (or attenuation) to a range of frequencies. Notch: Allows all frequencies through, except for a set of frequencies. Allpass: Allows all frequencies through, but changes the phase
relationship between the various frequencies. Note: See BiquadFilterNode for more information. Convolutions and impulses It's also possible to apply impulse responses to audio using the ConvolverNode. An impulse response is the sound created after a brief impulse of sound (like a hand clap). An impulse response will signify the environment in which the impulse was created (for example, an echo create...
Content categories - Developer guides
It's also possible for elements to not be a member of any of these categories. There are three types of content categories: Main content categories, which describe common rules shared by many elements. ...
HTML attribute reference - HTML: Hypertext Markup Language
Indicates whether the whole resource, parts of it or nothing should be preloaded. radiogroup <command> readonly <input>, <textarea> Indicates whether the element can be edited. referrerpolicy <a>, <area>, <iframe>, <img>, <link>, <script> Specifies which referrer is sent when fetching the resource. rel <a>, <area>, <link> Specifies the
relationship of the target object to the link object. required <input>, <select>, <textarea> Indicates whether this element is required to fill out or not. reversed <ol> Indicates whether the list should be displayed in a descending order instead of a ascending. rows <textarea> Defines the number of rows in a text area. rowspan <td>, <th> Defines ...
<a>: The Anchor element - HTML: Hypertext Markup Language
linked URL. No built-in functionality. Allowed values are the same as the global lang attribute. ping A space-separated list of URLs. When the link is followed, the browser will send POST requests with the body PING to the URLs. Typically for tracking. referrerpolicy How much of the referrer to send when following the link. See Referrer-Policy for possible values and their effects. rel The
relationship of the linked URL as space-separated link types. target Where to display the linked URL, as the name for a browsing context (a tab, window, or <iframe>). The following keywords have special meanings for where to load the URL: _self: the current browsing context. (Default) _blank: usually a new tab, but users can configure browsers to open a new window instead. _parent: the parent bro...
<area> - HTML: Hypertext Markup Language
nd the port, while navigations on the same origin will include the referrer's path. "unsafe-url" meaning that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins. rel For anchors containing the href attribute, this attribute specifies the
relationship of the target object to the link object. The value is a space-separated list of link types values. The values and their semantics will be registered by some authority that might have meaning to the document author. The default
relationship, if no other is given, is void. Use this attribute only if the href attribute is present. shape The shape of the associated hot spot. The specifications f...
<dl>: The Description List element - HTML: Hypertext Markup Language
d obscures the meaning of description lists. To change the indentation of a description term, use the CSS margin property. Accessibility concerns Each screen reader announces <dl> content differently. Some screen readers, such as VoiceOver on iOS, will not announce that <dl> content is a list. Because of this, make sure each list item's content is written in such a way that it communicates its
relationship to the other list items in the list grouping. CodePen - HTML Buddies: dt & dd Specifications Specification Status Comment HTML Living StandardThe definition of '<dl>' in that specification. Living Standard HTML5The definition of '<dl>' in that specification. Recommendation HTML 4.01 SpecificationThe definition of '<dl>' in that ...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
In addition to an accessible name, the label provides a larger 'hit' area for mouse and touch screen users to click on or touch. By pairing a <label> with an <input>, clicking on either one will focus the <input>. If you use plain text to "label" your input, this won't happen. Having the prompt part of the activation area for the input is hel...
HTML elements reference - HTML: Hypertext Markup Language
nformation. Element Description <base> The HTML <base> element specifies the base URL to use for all relative URLs in a document. <head> The HTML <head> element contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets. <link> The HTML External Resource Link element (<link>) specifies
relationships between the current document and an external resource. This element is most commonly used to link to stylesheets, but is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things. <meta> The HTML <meta> element represents metadata that cannot be represented by other HTML meta-related elements, like ...
itemprop - HTML: Hypertext Markup Language
emon sorbet" and "Apricot sorbet". An element introducing a property can also introduce multiple properties at once, to avoid duplication when some of the properties have the same value. An item with two properties, "favorite-color" and "favorite-fruit", both set to the value "orange" <div itemscope> <span itemprop="favorite-color favorite-fruit">orange</span> </div> Note: There is no
relationship between the microdata and the content of the document where the microdata is marked up. Same structured data marked up in two different ways There is no semantic difference between the following two examples <figure> <img src="castle.jpeg"> <figcaption><span itemscope><span itemprop="name">The Castle</span></span> (1986)</figcaption> </figure> <span itemscope><meta itemprop...
HTML reference - HTML: Hypertext Markup Language
rence Elements in HTML have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want. Global attributes Global attributes are attributes common to all HTML elements; they can be used on all elements, though they may have no effect on some elements. Link types In HTML, the following link types indicate the
relationship between two documents, in which one links to the other using an <a>, <area>, or <link> element. Content Categories Every HTML element is a member of one or more content categories -- these categories group elements that share common characteristics. Date and time formats used in HTML Certain HTML elements allow you to specify dates and/or times as the value or as the value of an attribute.
HTML: Hypertext Markup Language
ment HTML5-noncompliant. Inline elements and block-level elements HTML elements are usually "inline" or "block-level" elements. An inline element occupies only the space bounded by the tags that define it. A block-level element occupies the entire space of its parent element (container), thereby creating a "block." Link types In HTML, various link types can be used to establish and define the
relationship between two documents. Link elements that types can be set on include <a>, <area> and <link>. Guide to media types and formats on the web The <audio> and <video> elements allow you to play audio and video media natively within your content without the need for external software support. HTML content categories HTML is comprised of several kinds of content, each of which is allowed to be us...
Sec-Fetch-Site - HTTP
Header type Fetch Metadata Request Header Forbidden header name yes, since it has prefix Sec- CORS-safelisted response header CORS-safelisted request header Syntax Sec-Fetch-Site: cross-site Sec-Fetch-Site: same-origin Sec-Fetch-Site: same-site Sec-Fetch-Site: none Values cross-site same-origin same-site none This request does not relate to any context like site, origin, or frame. This can happen when user had initiated this request by, e.g. ...
HTTP headers - HTTP
ociates a specific cryptographic public key with a certain web server to decrease the risk of MITM attacks with forged certificates. Public-Key-Pins-Report-Only Sends reports to the report-uri specified in the header and does still allow clients to connect to the server even if the pinning is violated. Fetch metadata request headers Sec-Fetch-Site It is a request header that indicates the
relationship between a request initiator's origin and its target's origin. It is a Structured Header whose value is a token with possible values cross-site, same-origin, same-site, and none. Sec-Fetch-Mode It is a request header that indicates the request's mode to a server. It is a Structured Header whose value is a token with possible values cors, navigate, nested-navigate, no-cors, same-origin, and we...
JavaScript data types and data structures - JavaScript
alues. Keys are strings (or Symbols), and values can be anything. This makes objects a natural fit for hashmaps. Functions are regular objects with the additional capability of being callable. Dates When representing dates, the best choice is to use the built-in Date utility in JavaScript. Indexed collections: Arrays and typed Arrays Arrays are regular objects for which there is a particular
relationship between integer-key-ed properties and the length property. Additionally, arrays inherit from Array.prototype, which provides to them a handful of convenient methods to manipulate arrays. For example, indexOf (searching a value in the array) or push (adding an element to the array), and so on. This makes Arrays a perfect candidate to represent lists or sets. Typed Arrays are new to JavaScript...
Details of the object model - JavaScript
ee; var amy = new WorkerBee; Employee.prototype.name = 'Unknown'; In this case, the name property of amy becomes "Unknown". As these examples show, if you want to have default values for object properties and you want to be able to change the default values at run time, you should set the properties in the constructor's prototype, not in the constructor function itself. Determining instance
relationships Property lookup in JavaScript looks within an object's own properties and, if the property name is not found, it looks within the special object property __proto__. This continues recursively; the process is called "lookup in the prototype chain". The special property __proto__ is set when an object is constructed; it is set to the value of the constructor's prototype property. So the expre...
Functions - JavaScript
<< PreviousNext >> Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure--a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious
relationship between the input and the output. To use a function, you must define it somewhere in the scope from which you wish to call it. See also the exhaustive reference chapter about JavaScript functions to get to know the details. Defining functions Function declarations A function definition (also called a function declaration, or function statement) consists of the function keyword, followed by: The name of the function. A list of parameters to the...
Array.prototype.length - JavaScript
which causes the third element to be a non-iterable empty slot. const arr = [1, 2]; console.log(arr); // [ 1, 2 ] arr.length = 5; // set array length to 5 while currently 2. console.log(arr); // [ 1, 2, <3 empty items> ] arr.forEach(element => console.log(element)); // 1 // 2 As you can see, the length property does not necessarily indicate the number of defined values in the array. See also
Relationship between length and numerical properties. Property attributes of Array.prototype.length Writable yes Enumerable no Configurable no Writable: If this attribute set to false, the value of the property cannot be changed. Configurable: If this attribute set to false, any attempts to delete the prop...
Array - JavaScript
t it's also possible to quote the array indexes as well (e.g., years['2'] instead of years[2]), although it's not necessary. The 2 in years[2] is coerced into a string by the JavaScript engine through an implicit toString conversion. As a result, '2' and '02' would refer to two different slots on the years object, and the following example could be true: console.log(years['2'] != years['02'])
Relationship between length and numerical properties A JavaScript array's length property and numerical properties are connected. Several of the built-in array methods (e.g., join(), slice(), indexOf(), etc.) take into account the value of an array's length property when they're called. Other methods (e.g., push(), splice(), etc.) also result in updates to an array's length property. const fruits = [] ...
Intl.DateTimeFormat.prototype.formatToParts() - JavaScript
d bold, when using the formatToParts() method. console.log(formatter.format(date)); // "Monday, 12/17/2012, 3:00:42.000 AM" console.log(dateString); // "Monday, 12/17/2012, 3:00:42.000 <b>AM</b>" Named Years and Mixed calendars In some cases, calendars use named years. Chinese and Tibetan calendars, for example, use a 60-year sexagenary cycle of named years. These years are disambiguated by
relationship to corresponding years on the Gregorian calendar. When this is the case, the result of formatToParts() will contain an entry for relatedYear when a year would normally be present, containing the 4-digit Gregorian year, instead of an entry for year. Setting an entry in the bag for year (with any value) will yield both the and the yearName Gregorian relatedYear: let opts = { year: "numeric",...
String.fromCharCode() - JavaScript
two surrogates used to represent a supplementary character is known as a surrogate pair. Because fromCharCode() only works with 16-bit values (same as the \u escape sequence), a surrogate pair is required in order to return a supplementary character. For example, both String.fromCharCode(0xD83C, 0xDF03) and \uD83C\uDF03 return code point U+1F303 "Night with Stars". While there is a mathematical
relationship between the supplementary code point value (e.g. 0x1F303) and both surrogate values that represent it (e.g., 0xD83C and 0xDF03), it does require an extra step to either calculate or look up the surrogate pair values every time a supplementary code point is to be used. For this reason, it's more convenient to use String.fromCodePoint() (part of the ES2015 standard), which allows for returning s...
Nullish coalescing operator (??) - JavaScript
chaining with AND or OR operators It is not possible to combine both the AND (&&) and OR operators (||) directly with ??. A SyntaxError will be thrown in such cases. null || undefined ?? "foo"; // raises a SyntaxError true || undefined ?? "foo"; // raises a SyntaxError However, providing parenthesis to explicitly indicate precedence is correct: (null || undefined) ?? "foo"; // returns "foo"
Relationship with the optional chaining operator (?.) The nullish coalescing operator treats undefined and null as specific values and so does the optional chaining operator (?.) which is useful to access a property of an object which may be null or undefined. let foo = { someFooProp: "hi" }; console.log(foo.someFooProp?.toUpperCase() ?? "not available"); // "HI" console.log(foo.someBarProp?.toUpperCase...
Web video codec guide - Web media technologies
side of a road, and so forth. This is a temporal (time-based) aliasing issue; the speed of the rotation interferes with the frequency of the sampling performed during compression or encoding. Color edging Color edging is a type of visual artifact that presents as spurious colors introduced along the edges of colored objects within the scene. These colors have no intentional color
relationship to the contents of the frame. Loss of sharpness The act of removing data in the process of encoding video requires that some details be lost. If enough compression is applied, parts or potentially all of the image could lose sharpness, resulting in a slightly fuzzy or hazy appearance. Lost sharpness can make text in the image difficult to read, as text--especially small text--is very detai...
rendering-intent - SVG: Scalable Vector Graphics
he target rendering device. Only one element is using this attribute: <color-profile> Usage notes Value auto | perceptual | relative-colorimetric | saturation | absolute-colorimetric Default value auto Animatable Yes auto This value allows the user agent to determine the best intent based on the content type. perceptual This value preserves the
relationship between colors. It attempts to maintain relative color values among the pixels as they are mapped to the target device gamut. Sometimes pixel values that were originally within the target device gamut are changed in order to avoid hue shifts and discontinuities and to preserve as much as possible the overall appearance of the scene. Note: This method should be used for images. relative-co...
<a> - SVG: Scalable Vector Graphics
eature addressing the same use cases, see Navigator.sendBeacon(). Value type: <list-of-URLs> ; Default value: none; Animatable: no referrerpolicy Which referrer to send when fetching the URL. Value type: no-referrer|no-referrer-when-downgrade|same-origin|origin|strict-origin|origin-when-cross-origin|strict-origin-when-cross-origin|unsafe-url ; Default value: none; Animatable: no rel The
relationship of the target object to the link object. Value type: <list-of-Link-Types> ; Default value: none; Animatable: yes target Where to display the linked URL. Value type: _self|_parent|_top|_blank|<name> ; Default value: _self; Animatable: yes type A MIME type for the linked URL. Value type: <string> ; Default value: none; Animatable: yes xlink:href Deprecated since SVG 2 The URL or URL fra...
Axes - XPath
The following is an extremely brief description of the thirteen available axes and the degree of support available in Gecko. For further information on using XPath expressions, please see the For Further Reading section at the end of Transforming XML with XSLT document. Also see the 'axes' section in the xpath spec. ...
XPath
ough there are no plans to improve support further), while other browsers implement it to a lesser extent, if at all. If you need a polyfill, you may consider js-xpath or wicked-good-xpath. Documentation Introduction to using XPath in JavaScript Describes a non-XSLT use of XPath. XPath:Axes List and definition of the axes defined in the XPath specification. Axes are used to describe the
relationships between nodes. XPath:Functions List and description of the core XPath functions and XSLT-specific additions to XPath. Transforming XML with XSLT XSLT uses XPath to address code segments in an XML document that it wishes to transform. XPath snippets These are JavaScript utility functions, that can be used in your own code, based on DOM Level 3 XPath APIs. What is XSLT? This extensive ...
Index - XSLT: Extensible Stylesheet Language Transformations
pt and XSLT could be used to sort XML data and then display it. The sorting would have to alternate between ascending and descending sorting. 13 Transforming XML with XSLT NeedsMigration, Transforming_XML_with_XSLT, XML, XSLT The separation of content and presentation is a key design feature of XML. The structure of an XML document is designed to reflect and clarify important
relationships among the individual aspects of the content itself, unhindered by a need to provide any indication about how this data should eventually be presented. This intelligent structuring is particularly important as more and more data transfers are automated and take place between highly heterogeneous machines linked by a network. 14 An Overview NeedsHelp, NeedsMarkupWork, Transformin...
An Overview - XSLT: Extensible Stylesheet Language Transformations
lled the tree, is what is actually manipulated by the processor. The tree is an abstract datatype, a conceptual model which can be implemented in various ways depending on the parser and the processor. :Netscape's uses a structure similar to the W3C DOM as its tree structure, but others are possible. The only requirements concern the disposition of objects in the tree, their properties, and their
relationships. The tree consists of a hierarchical framework of nodes. It can be made up of seven different types of nodes: the single root node, element nodes, text nodes, attribute nodes, comment nodes, processing instruction nodes, and namespace nodes. At the top of the tree is the root node. The root node does not correspond to any individual part of the XML document: it represents the document as ...
Transforming XML with XSLT - XSLT: Extensible Stylesheet Language Transformations
XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes An Overview The separation of content and presentation is a key design feature of XML. The structure of an XML document is designed to reflect and clarify important
relationships among the individual aspects of the content itself, unhindered by a need to provide any indication about how this data should eventually be presented. This intelligent structuring is particularly important as more and more data transfers are automated and take place between highly heterogeneous machines linked by a network. Yet eventually much of the content stored in XML documents will need to be presented to human readers. Because a browser provides a familiar and highly flexible interface, it is an ideal mechanism for deli...