Search completed in 0.98 seconds.
JS_GetParent
get the
parent object of a given object.
... syntax jsobject * js_get
parent(jsobject *obj); name type description obj jsobject * object for which to retrieve the
parent.
... description js_get
parent retrieves the
parent object of obj, or null if obj does not have a
parent.
...And 23 more matches
JS_SetParent
sets the
parent for an object.
... syntax bool js_set
parent(jscontext *cx, js::handleobject obj, js::handleobject
parent); name type description cx jscontext * pointer to a js context from which to derive runtime information.
... obj js::handleobject pointer to the object for which to set the
parent.
...And 12 more matches
ParentNode - Web APIs
the
parentnode mixin contains methods and properties that are common to all types of node objects that can have children.
... properties
parentnode.childelementcount read only returns the number of children of this
parentnode which are elements.
...
parentnode.children read only returns a live htmlcollection containing all of the element objects that are children of this
parentnode, omitting all of its non-element nodes.
...And 11 more matches
remote/parent - Archive of obsolete content
usage in multiprocess firefox: the browser ui runs in one process, sometimes called the chrome process or the
parent process web content runs in one or more other processes, sometimes called content processes or remote processes or child processes.
... the sdk/remote/
parent module enables you to load sdk modules into the child process to give them direct access to content frames.
... loading modules into the child process to load a module into the child process, use remoterequire(): const { remoterequire } = require("sdk/remote/
parent"); remoterequire("./my-module.js", module); inter-process communication a module loaded into a different process cannot directly communicate or share state with the module that loaded it.
...And 9 more matches
FileSystemEntry.getParent() - Web APIs
the filesystementry interface's method get
parent() obtains a filesystemdirectoryentry.
... syntax filesystementry.get
parent(successcallback[, errorcallback]); parameters successcallback a function which is called when the
parent directory entry has been retrieved.
... the callback receives a single input parameter: a filesystemdirectoryentry object representing the
parent directory.
...And 6 more matches
nsIParentalControlsService
toolkit/components/
parentalcontrols/public/nsi
parentalcontrolsservice.idlscriptable this interface provides access to the operating system's
parental controls feature, allowing code to detect whether such a service is enabled and to request overrides to bypass the feature.
... implemented by: @mozilla.org/
parental-controls-service;1.
... to create an instance, use: var
parentalcontrolsservice = components.classes["@mozilla.org/
parental-controls-service;1"] .createinstance(components.interfaces.nsi
parentalcontrolsservice); method overview void log(in short aentrytype, in boolean aflag, in nsiuri asource, [optional] in nsifile atarget); boolean requesturioverride(in nsiuri atarget, [optional] in nsiinterfacerequestor awindowcontext); boolean requesturioverrides(in nsiarray atargets, [optional] in nsiinterfacerequestor awindowcontext); attributes attribute type description blockfiledownloadsenabled boolean true if the current user account's
parental controls restrictions include the blocking of all file downloads.
...And 5 more matches
ParentNode.append() - Web APIs
the
parentnode.append() method inserts a set of node objects or domstring objects after the last child of the
parentnode.
... differences from node.appendchild():
parentnode.append() allows you to also append domstring objects, whereas node.appendchild() only accepts node objects.
...
parentnode.append() has no return value, whereas node.appendchild() returns the appended node object.
...And 5 more matches
HTMLElement.offsetParent - Web APIs
the htmlelement.offset
parent read-only property returns a reference to the element which is the closest (nearest in the containment hierarchy) positioned ancestor element.
... note: offset
parent returns null in the following situations: the element or its
parent element has the display property set to none.
... offset
parent is useful because offsettop and offsetleft are relative to its padding edge.
...And 3 more matches
ParentNode.prepend() - Web APIs
the
parentnode.prepend() method inserts a set of node objects or domstring objects before the first child of the
parentnode.
... syntax
parentnode.prepend(...nodestoprepend); parameters nodestoprepend one or more nodes to insert before the first child node currently in the
parentnode.
... examples prepending an element var
parent = document.createelement("div"); var p = document.createelement("p"); var span = document.createelement("span");
parent.append(p);
parent.prepend(span); console.log(
parent.childnodes); // nodelist [ <span>, <p> ] prepending text var
parent = document.createelement("div");
parent.append("some text");
parent.prepend("headline: "); console.log(
parent.textcontent); // "headline: some text" appending an element and text var
parent = document.createelement("div"); var p = document.createelement("p");
parent.prepend(...
...And 3 more matches
ParentNode.querySelectorAll() - Web APIs
the
parentnode mixin defines the queryselectorall() method as returning a nodelist representing a list of elements matching the specified group of selectors which are descendants of the object on which the method was called.
... note: this method is implemented as element.queryselectorall(), document.queryselectorall(), and documentfragment.queryselectorall() syntax elementlist =
parentnode.queryselectorall(selectors); parameters selectors a domstring containing one or more selectors to match against.
... examples to obtain a nodelist of all of the <p> elements in the document: var matches = document.queryselectorall("p"); this example returns a list of all <div> elements within the document with a class of either note or alert: var matches = document.queryselectorall("div.note, div.alert"); here, we get a list of <p> elements whose immediate
parent element is a <div> with the class highlighted and which are located inside a container whose id is test.
...And 3 more matches
JS_GetParentRuntime
this article covers features introduced in spidermonkey 31 retrieve a pointer to the
parent jsruntime.
... syntax jsruntime * js_get
parentruntime(jscontext *cx); name type description cx jscontext * the context to query.
... description js_get
parentruntime retrieves a pointer to the
parent jsruntime of the runtime for a specified jscontext.
...And 2 more matches
Node.parentNode - Web APIs
the node.
parentnode read-only property returns the
parent of the specified node in the dom tree.
... syntax
parentnode = node.
parentnode
parentnode is the
parent of the current node.
... the
parent of an element is an element node, a document node, or a documentfragment node.
...And 2 more matches
ParentNode.childElementCount - Web APIs
the
parentnode.childelementcount read-only property returns an unsigned long representing the number of child elements of the given element.
...as this interface contained two distinct set of properties, one aimed at node that have children, one at those that are children, they have been moved into two separate pure interfaces,
parentnode and childnode.
... in this case, childelementcount moved to
parentnode.
...And 2 more matches
ParentNode.firstElementChild - Web APIs
the
parentnode.firstelementchild read-only property returns the object's first child element, or null if there are no child elements.
...as this interface contained two distinct set of properties, one aimed at node that have children, one at those that are children, they have been moved into two separate pure interfaces,
parentnode and childnode.
... in this case, firstelementchild moved to
parentnode.
...And 2 more matches
ParentNode.lastElementChild - Web APIs
the
parentnode.lastelementchild read-only property returns the object's last child element or null if there are no child elements.
...as this interface contained two distinct set of properties, one aimed at node that have children, one at those that are children, they have been moved into two separate pure interfaces,
parentnode and childnode.
... in this case, lastelementchild moved to
parentnode.
...And 2 more matches
ParentNode.querySelector() - Web APIs
the
parentnode mixin defines the queryselector() method as returning an element representing the first element matching the specified group of selectors which are descendants of the object on which the method was called.
... syntax element =
parentnode.queryselector(selectors); parameters selectors a domstring containing one or more selectors to match against.
... specifications specification status comment domthe definition of '
parentnode.queryselector()' in that specification.
...And 2 more matches
ParentNode.replaceChildren() - Web APIs
the
parentnode.replacechildren() method replaces the existing children of a node with a specified new set of children.
... syntax // [throws, unscopable]
parentnode.replacechildren(...nodesordomstrings) // returns undefined parameters nodesordomstrings a set of node or domstring objects to replace the
parentnode's existing children with.
... if no replacement objects are specified, then the
parentnode is emptied of all child nodes.
...And 2 more matches
<rp>: The Ruby Fallback Parenthesis element - HTML: Hypertext Markup Language
the html ruby fallback
parenthesis (<rp>) element is used to provide fall-back
parentheses for browsers that do not support display of ruby annotations using the <ruby> element.
... one <rp> element should enclose each of the opening and closing
parentheses that wrap the <rt> element that contains the annotation's text.
... permitted content text tag omission the end tag can be omitted if the element is immediately followed by an <rt> or another <rp> element, or if there is no more content in the
parent element.
...And 2 more matches
CSSRule.parentStyleSheet - Web APIs
the
parentstylesheet property of the cssrule interface returns the stylesheet object in which the current rule is defined.
... syntax var stylesheet = cssrule.
parentstylesheet parameters stylesheet is a stylesheet object.
... example if (bgrule.
parentstylesheet != mysheet) { // alien style rule!
... } specifications specification status comment css object model (cssom)the definition of 'cssrule:
parentstylesheet' in that specification.
Window.parent - Web APIs
the window.
parent property is a reference to the
parent of the current window or subframe.
... if a window does not have a
parent, its
parent property is a reference to itself.
... when a window is loaded in an <iframe>, <object>, or <frame>, its
parent is the window with the element embedding the window.
... syntax var
parentwindow = window.
parent; example if (window.
parent != window.top) { // we're deeper than one down } specifications specification status comment html living standardthe definition of 'window.
parent' in that specification.
dirGetParent - Archive of obsolete content
dirget
parent returns an object representing the
parent directory of the current directory or file.
... method of file object syntax filespecobject dirget
parent( filespecobject fileordir ); parameters the dirget
parent method has the following parameters: fileordir a filespecobject representing the pathname of the file or directory whose
parent is being requested.
...example f = getfolder("program", "mynewdirectory"); err = file.dircreate(f); err = file.get
parent(f) // returns "program" ...
Parent
« nsiaccessible page summary returns
parent node in accessible tree.
... attribute nsiaccessible
parent; exceptions thrown ns_error_failure indicates that the accessible is unattached from the accessible tree.
... remarks every accessible in the tree has accessible
parent excepting application accessible (top level accessible).
CSSStyleDeclaration.parentRule - Web APIs
the cssstyledeclaration.
parentrule read-only property returns a cssrule that is the
parent of this style block, e.g.
... syntax var rule = styles.
parentrule; value the css rule that contains this declaration block or null if this cssstyledeclaration is not attached to a cssrule.
... example the following javascript code gets the
parent css style rule from a cssstyledeclaration: var declaration = document.stylesheets[0].rules[0].style; var rule = declaration.
parentrule; specifications specification status comment css object model (cssom)the definition of 'cssstyledeclaration.
parentrule' in that specification.
Node.parentElement - Web APIs
the node.
parentelement read-only property returns the dom node's
parent element, or null if the node either has no
parent, or its
parent isn't a dom element.
... syntax
parentelement = node.
parentelement
parentelement is the
parent element of the current node.
... example if (node.
parentelement) { node.
parentelement.style.color = "red"; } specifications specification status comment domthe definition of '
parentelement' in that specification.
StyleSheet.parentStyleSheet - Web APIs
the
parentstylesheet property of the stylesheet interface returns the style sheet, if any, that is including the given style sheet.
... syntax objref = stylesheet.
parentstylesheet example // find the top level stylesheet if (stylesheet.
parentstylesheet) { sheet = stylesheet.
parentstylesheet; } else { sheet = stylesheet; } notes this property returns null if the current stylesheet is a top-level stylesheet or if stylesheet inclusion is not supported.
... specifications specification status comment css object model (cssom)the definition of 'stylesheet:
parentstylesheet' in that specification.
TreeWalker.parentNode() - Web APIs
the treewalker.
parentnode() method moves the current node to the first visible ancestor node in the document order, and returns the found node.
... syntax node = treewalker.
parentnode(); example var treewalker = document.createtreewalker( document.body, nodefilter.show_element, { acceptnode: function(node) { return nodefilter.filter_accept; } }, false ); var node = treewalker.
parentnode(); // returns null as there is no
parent specifications specification status comment domthe definition of 'treewalker.
parentnode' in that specification.
... living standard no change from document object model (dom) level 2 traversal and range specification document object model (dom) level 2 traversal and range specificationthe definition of 'treewalker.
parentnode' in that specification.
IndexInParent
« nsiaccessible page summary the 0-based index of this accessible in its
parent's list of children, or -1 if this accessible does not have a
parent.
... attribute long indexin
parent; ...
ParentNode.children - Web APIs
the
parentnode property children is a read-only property that returns a live htmlcollection which contains all of the child elements of the node upon which it was called.
...en', { get: function() { let i = 0, node, nodes = this.childnodes, children = []; while (node = nodes[i++]) { if (node.nodetype === 1) { children.push(node); } } return children; } }); } })(window.node || window.element); specification specification status comment domthe definition of '
parentnode.children' in that specification.
parent - XPath
the
parent axis indicates the single node that is the
parent of the context node.
Index - Web APIs
181 audioscheduledsourcenode api, audio, audioscheduledsourcenode, interface, media, reference, web audio api, sound the audioscheduledsourcenode interface—part of the web audio api—is a
parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.
... audiotrack.sourcebuffer api, audio, audiotrack, html dom, mse, media, media source extensions, property, read-only, reference, sourcebuffer, track the read-only audiotrack property sourcebuffer returns the sourcebuffer that created the track, or null if the track was not created by a sourcebuffer or the sourcebuffer has been removed from the mediasource.sourcebuffers attribute of its
parent media source.
... 449 csspseudoelement.element api, csspseudoelement, element, experimental, property, reference 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.
...And 63 more matches
nsINavBookmarkObserver
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 21.0 (firefox 21.0 / thunderbird 21.0 / seamonkey 2.18) method overview void onbeforeitemremoved(in long long aitemid, in unsigned short aitemtype, in long long a
parentid, in acstring aguid, in acstring a
parentguid); obsolete since gecko 21.0 void onbeginupdatebatch(); void onendupdatebatch(); void onfolderadded(in print64 folder, in print64
parent, in print32 index); obsolete since gecko 1.9 void onfolderchanged(in print64 folder, in acstring property); obsolete since gecko 1.9 void onfoldermoved(in print64 folder, ...
...in print64 old
parent, in print32 oldindex, in print64 new
parent, in print32 newindex); obsolete since gecko 1.9 void onfolderremoved(in print64 folder, in print64
parent, in print32 index); obsolete since gecko 1.9 void onitemadded(in long long aitemid, in long long a
parentid, in long aindex, in unsigned short aitemtype, in nsiuri auri, in autf8string atitle, in prtime adateadded, in acstring aguid, in acstring a
parentguid); void onitemchanged(in long long aitemid, in acstring aproperty, in boolean aisannotationproperty, in autf8string anewvalue, in prtime alastmodified, in unsigned short aitemtype, in long long a
parentid, in acstring aguid, in acstring a
parentguid); void onitemmoved(in long long aitemid, in long long aold
parentid, in long aoldindex, in long l...
...ong anew
parentid, in long anewindex, in unsigned short aitemtype, in acstring aguid, in acstring aold
parentguid, in acstring anew
parentguid); void onitemremoved(in long long aitemid, in long long a
parentid, in long aindex, in unsigned short aitemtype, in nsiuri auri, in acstring aguid, in acstring a
parentguid); void onitemreplaced(in print64 folder, in nsiuri item, in nsiuri newitem); obsolete since gecko 1.9 void onitemvisited(in long long aitemid, in long long avisitid, in prtime atime, in unsigned long atransitiontype, in nsiuri auri, in long long a
parentid, in acstring aguid, in acstring a
parentguid); void onseparatoradded(in print64
parent, in print32 index); obsolete since gecko 1.9 void onseparatorremoved(in print64
parent, in print32 index); ...
...And 37 more matches
Extending a Protocol
the method will take one argument, a domstring, which we will pass to the
parent process.
...this will matter later, as we will need to convert it to utf-8 (using nscstring) to send it to the
parent process.
... in ipdl there two kinds of "actors" - a "
parent" and "child" - these actors are literally implemented as c++ classes, so they are more than just abstract ideas.
...And 28 more matches
IPDL Tutorial
all ipdl messages are sent between
parent and a child end points, called actors.
... the
parent actor is typically the more permanent side of the conversation:
parent/child actors
parent child ipc tabs chrome process content process ipc plugins content process plugin process each protocol is declared in a separate file.
...the following ipdl code defines a very basic interaction of browser and plugin actors: async protocol pplugin { child: async init(nscstring pluginpath); async shutdown();
parent: async ready(); }; this code declares the pplugin protocol.
...And 27 more matches
nsIFile
void appendrelativenativepath(in acstring relativefilepath); void appendrelativepath(in astring relativefilepath); nsifile clone(); boolean contains(in nsifile infile); void copyto(in nsifile new
parentdir, in astring newname); void copytofollowinglinks(in nsifile new
parentdir, in astring newname); void copytofollowinglinksnative(in nsifile new
parentdir, in acstring newname); native code only!
... void copytonative(in nsifile new
parentdir, in acstring newname); native code only!
...string filepath); void initwithpath(in astring filepath); boolean isdirectory(); boolean isexecutable(); boolean isfile(); boolean ishidden(); boolean isreadable(); boolean isspecial(); boolean issymlink(); boolean iswritable(); void launch(); prlibrarystar load(); void moveto(in nsifile new
parentdir, in astring newname); void movetonative(in nsifile new
parentdir, in acstring newname); native code only!
...And 25 more matches
nsINavBookmarksService
-bookmarks-service;1"] .getservice(components.interfaces.nsinavbookmarksservice); method overview void addobserver(in nsinavbookmarkobserver observer, in boolean ownsweak); void beginupdatebatch(); obsolete since gecko 1.9 void changebookmarkuri(in long long aitemid, in nsiuri anewuri); long long createdynamiccontainer(in long long a
parentfolder, in autf8string aname, in astring acontractid, in long aindex); note: renamed from createcontainer in gecko 1.9 obsolete since gecko 13.0 long long createfolder(in long long a
parentfolder, in autf8string name, in long index); void endupdatebatch(); obsolete since gecko 1.9 void exportbookmarkshtml(in nsifile file); obsolete since gecko 1.9 nsiuri getbookm...
...ildfolder(in long long afolder, in astring asubfolder); obsolete since gecko 2.0 long long getfolderidforitem(in long long aitemid); boolean getfolderreadonly(in long long aitemid); astring getfoldertitle(in print64 folder); obsolete since gecko 1.9 nsiuri getfolderuri(in print64 folder); obsolete since gecko 1.9 long long getidforitemat(in long long a
parentid, in long aindex); prtime getitemdateadded(in long long aitemid); astring getitemguid(in long long aitemid); obsolete since gecko 14.0 long long getitemidforguid(in astring aguid); obsolete since gecko 14.0 long getitemindex(in long long aitemid); prtime getitemlastmodified(in long long aitemid); autf8string getitemtitle(in long long ai...
... obsolete since gecko 40.0 nsitransaction getremovefoldertransaction(in long long aitemid); nsiuri geturiforkeyword(in astring keyword); obsolete since gecko 40.0 void importbookmarkshtml(in nsiuri url); obsolete since gecko 1.9 void importbookmarkshtmltofolder(in nsiuri url, in print64 folder); obsolete since gecko 1.9 print32 indexoffolder(in print64
parent, in print64 folder); obsolete since gecko 1.9 print32 indexofitem(in print64 folder, in nsiuri uri); obsolete since gecko 1.9 long long insertbookmark(in long long a
parentid, in nsiuri auri, in long aindex, in autf8string atitle); void insertitem(in print64 folder, in nsiuri item, in print32 index); obsolete since gecko 1.9 long long insertseparator(in long lo...
...And 24 more matches
JXON - Archive of obsolete content
|*| http://www.gnu.org/licenses/gpl-3.0-standalone.html |*| \*/ function parsetext (svalue) { if (/^\s*$/.test(svalue)) { return null; } if (/^(?:true|false)$/i.test(svalue)) { return svalue.tolowercase() === "true"; } if (isfinite(svalue)) { return parsefloat(svalue); } if (isfinite(date.parse(svalue))) { return new date(svalue); } return svalue; } function jxontree (oxml
parent) { var nattrlen = 0, nlength = 0, scollectedtxt = ""; if (oxml
parent.haschildnodes()) { for (var onode, sprop, vcontent, nitem = 0; nitem < oxml
parent.childnodes.length; nitem++) { onode = oxml
parent.childnodes.item(nitem); if ((onode.nodetype - 1 | 1) === 3) { scollectedtxt += onode.nodetype === 3 ?
... sprop = onode.nodename.tolowercase(); vcontent = new jxontree(onode); if (this.hasownproperty(sprop)) { if (this[sprop].constructor !== array) { this[sprop] = [this[sprop]]; } this[sprop].push(vcontent); } else { this[sprop] = vcontent; nlength++; } } } this.keyvalue = parsetext(scollectedtxt); } else { this.keyvalue = null; } if (o
parentnode.hasattributes && oxml
parent.hasattributes()) { var oattrib; this.keyattributes = {}; for (nattrlen; nattrlen < oxml
parent.attributes.length; nattrlen++) { oattrib = oxml
parent.attributes.item(nattrlen); this.keyattributes[oattrib.name.tolowercase()] = parsetext(oattrib.value.trim()); } } /* * optional properties...
... this.keylength = nlength; this.attributeslength = nattrlen; // this.domnode = oxml
parent; */ /* object.freeze(this); */ } /* * optional methods...
...And 20 more matches
Componentizing our Svelte app - Learn web development
that's because the filter variable flows down from the todos component to the filterbutton component through the prop, but changes occurring in the filterbutton component don't flow back up to its
parent — the data binding is one-way by default.
... sharing data between components: passing a handler as a prop one way to let child components notify their
parents of any changes is to pass a handler as a prop.
... the child component will execute the handler, passing the needed information as a parameter, and the handler will modify the
parent's state.
...And 18 more matches
SVGPathElement - Web APIs
properties this interface also inherits properties from its
parent, svggeometryelement.
... methods this interface also inherits methods from its
parent, svggeometryelement.
... svgpathelement.createsvgpathsegclosepath() returns a stand-alone,
parentless svgpathsegclosepath object.
...And 18 more matches
nsIPromptService
to get an instance, use: var promptservice = components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getservice(components.interfaces.nsipromptservice); method overview void alert(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext); void alertcheck(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext, in wstring acheckmsg, inout boolean acheckstate); boolean confirm(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext); boolean confirmcheck(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext, in wstring acheckms...
...g, inout boolean acheckstate); print32 confirmex(in nsidomwindow a
parent,in wstring adialogtitle,in wstring atext, in unsigned long abuttonflags,in wstring abutton0title, in wstring abutton1title,in wstring abutton2title,in wstring acheckmsg, inout boolean acheckstate); boolean prompt(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext, inout wstring avalue, in wstring acheckmsg, inout boolean acheckstate); boolean promptusernameandpassword(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext, inout wstring ausername, inout wstring apassword, in wstring acheckmsg, inout boolean acheckstate); boolean promptpassword(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext, inout wstring apassword, in wstring acheckmsg, inou...
...t boolean acheckstate); boolean select(in nsidomwindow a
parent, in wstring adialogtitle, in wstring atext, in pruint32 acount, [array, size_is(acount)] in wstring aselectlist, out long aoutselection); constants the following flags are combined to form the abuttonflags parameter passed to confirmex.
...And 17 more matches
Index - Archive of obsolete content
103 remote/
parent reference, sdk enables you to load modules, and privileged parts of your add-on in general, into child processes.
... 249 jetpack processes jetpack jetpack processes are created by components that implement the nsijetpackservice interface, and their
parent chrome process communicates with them via the nsijetpack interface.
... 565 mozprocess mozprocess provides python process management via an operating system and platform trans
parent interface to mozilla platforms of interest.
...And 16 more matches
Index
49 components.utils.waivexrays waives xray vision for an object, giving the caller a trans
parent wrapper to the underlying object.
... 60 using components deprecated, guide, needscontent, xpcom, xpcom:language bindings, xpconnect xpconnect works trans
parently in mozilla and xpcshell to give you access to xpcom components.
...in this case iaccessible2.indexin
parent() will return the child index which then can be used when calling rowindex() and columnindex().
...And 16 more matches
jspage - Archive of obsolete content
b<a;b++){var c=$type(this[b]);if(!c){continue;}d=d.concat((c=="array"||c=="collection"||c=="arguments")?array.flatten(this[b]):this[b]); }return d;},hextorgb:function(b){if(this.length!=3){return null;}var a=this.map(function(c){if(c.length==1){c+=c;}return c.toint(16);});return(b)?a:"rgb("+a+")"; },rgbtohex:function(d){if(this.length<3){return null;}if(this.length==4&&this[3]==0&&!d){return"trans
parent";}var b=[];for(var a=0;a<3;a++){var c=(this[a]-0).tostring(16); b.push((c.length==1)?"0"+c:c);}return(d)?b:"#"+b.join("");}});function.implement({extend:function(a){for(var b in a){this[b]=a[b];}return this;},create:function(b){var a=this; b=b||{};return function(d){var c=b.arguments;c=(c!=undefined)?$splat(c):array.slice(arguments,(b.event)?1:0);if(b.event){c=[d||window.event].extend(c); }var e=...
...; });d=hash.toquerystring(c,e);break;default:d=e+"="+encodeuricomponent(f);}if(f!=undefined){b.push(d);}});return b.join("&");}});hash.alias({keyof:"indexof",hasvalue:"contains"}); var event=new native({name:"event",initialize:function(a,f){f=f||window;var k=f.document;a=a||f.event;if(a.$extended){return a;}this.$extended=true;var j=a.type; var g=a.target||a.srcelement;while(g&&g.nodetype==3){g=g.
parentnode;}if(j.test(/key/)){var b=a.which||a.keycode;var m=event.keys.keyof(b);if(j=="keydown"){var d=b-111; if(d>0&&d<13){m="f"+d;}}m=m||string.fromcharcode(b).tolowercase();}else{if(j.match(/(click|mouse|menu)/i)){k=(!k.compatmode||k.compatmode=="css1compat")?k.html:k.body; var i={x:a.pagex||a.clientx+k.scrollleft,y:a.pagey||a.clienty+k.scrolltop};var c={x:(a.pagex)?a.pagex-f.pagexoffset:a.clientx,y...
...:(a.pagey)?a.pagey-f.pageyoffset:a.clienty}; if(j.match(/dommousescroll|mousewheel/)){var h=(a.wheeldelta)?a.wheeldelta/120:-(a.detail||0)/3;}var e=(a.which==3)||(a.button==2);var l=null;if(j.match(/over|out/)){switch(j){case"mouseover":l=a.relatedtarget||a.fromelement; break;case"mouseout":l=a.relatedtarget||a.toelement;}if(!(function(){while(l&&l.nodetype==3){l=l.
parentnode;}return true;}).create({attempt:browser.engine.gecko})()){l=false; }}}}return $extend(this,{event:a,type:j,page:i,client:c,rightclick:e,wheel:h,relatedtarget:l,target:g,code:b,key:m,shift:a.shiftkey,control:a.ctrlkey,alt:a.altkey,meta:a.metakey}); }});event.keys=new hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});event.implement({stop:function(){return this.stoppropagation().pre...
...And 14 more matches
alignment-baseline - SVG: Scalable Vector Graphics
the alignment-baseline attribute specifies how an object is aligned with respect to its
parent.
... this property specifies which baseline of this element is to be aligned with the corresponding baseline of the
parent.
...age notes value auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | top | center | bottom default value auto animatable yes auto the value is the dominant-baseline of the script to which the character belongs - i.e., use the dominant-baseline of the
parent.
...And 14 more matches
Message manager overview
in multiprocess firefox there are (at least) two processes: the chrome process, also called the
parent process, runs the browser ui (chrome) code and code inserted by extensions one or more content processes, also called child processes.
... process message managers: these correspond to process boundaries, and enable code running in the
parent (chrome) process to communicate with code running in the child (content) process.
... from firefox 38 onwards, they also enable code running in the
parent process to load process scripts into the child process.
...And 13 more matches
IME handling guide
mozilla::contentcache this is a base class of contentcacheinchild and contentcachein
parent and ipc-aware.
...finally, puppetwidget sends the notification and contentcachein
parent instance as contentcache to its
parent process.
... mozilla::contentcachein
parent this exists as a member of tab
parent.
...And 13 more matches
Subgrid - CSS: Cascading Style Sheets
these grids however are independent of the
parent grid and of each other, meaning that they do not take their track sizing from the
parent grid.
... if you set the value subgrid on grid-template-columns, grid-template-rows or both, instead of creating a new track listing the nested grid uses the tracks defined on the
parent.
... for example, if you use grid-template-columns: subgrid and the nested grid spans three column tracks of the
parent, the nested grid will have three column tracks of the same size as the
parent grid.
...And 13 more matches
CSS values and units - Learn web development
percentage values are always relative to another quantity, for example an element's length is relative to its
parent element's length.
... relative length units relative length units are relative to something else, perhaps the size of the
parent element's font, or the size of the viewport.
... unit relative to em font size of the
parent, in the case of typographical properties like font-size, and font size of the element itself, in the case of other properties like width.
...And 12 more matches
Drawing and Event Handling - Plugins
windowless plug-ins can be opaque or trans
parent.
... you can create trans
parent plug-ins.
... see the following items for more information on controlling the drawing of the plug-in instance: specifying that a plug-in is windowless invalidating the drawing area forcing a paint message making a plug-in opaque making a plug-in trans
parent creating pop-up menus and dialog boxes event handling for windowless plug-ins specifying that a plug-in is windowless to specify that a plug-in is windowless, use the npn_setvalue method.
...And 12 more matches
Index
105 jsfun_global_
parent jsapi reference, obsolete, spidermonkey no summary!
...see js_setprototype or js_set
parent in js/src/jsobj.cpp for an example.
... 201 js_clearnonglobalobject jsapi reference, obsolete, spidermonkey js_clearnonglobalobject removes all of obj's own properties, except the special __proto__ and __
parent__ properties, in a single operation.
...And 11 more matches
WebIDL bindings
if you also inherit from nsisupports, make sure the nsisupports comes before the nswrappercache in your list of
parent classes.
...ns_impl_cycle_collection_wrappercache_0(myclass) ns_impl_cycle_collecting_addref(myclass) ns_impl_cycle_collecting_release(myclass) ns_interface_map_begin_cycle_collection(myclass) ns_wrappercache_interface_map_entry ns_interface_map_entry(nsisupports) ns_interface_map_end if your class doesn't inherit from a class that implements get
parentobject, then add a function of that name that, for a given instance of your class, returns the same object every time (unless you write explicit code that handles your
parent object changing by re
parenting js wrappers, as nodes do).
... the idea is that walking the get
parentobject chain will eventually get you to a window, so that every webidl object is associated with a particular window.
...And 10 more matches
FileSystemEntrySync - Web APIs
method overview metadata getmetadata () raises (fileexception); filesystementrysync moveto (in directoryentrysync
parent, optional domstring newname) raises (fileexception); filesystementrysync copyto(in directoryentrysync
parent, optional domstring newname) raises (fileexception); domstring tourl(); void remove() raises (fileexception); directoryentrysync get
parent(); attributes attribute type description filesystem readonly filesystemsync ...
... you cannot do the following: move a directory inside itself or to any child at any depth move an entry into its
parent if a name different from its current one isn't provided move a file to a path occupied by a directory or move a directory to a path occupied by a file move any element to a path occupied by a directory that is not empty.
... filesystementrysync moveto ( in directoryentrysync
parent, optional domstring newname ) raises (fileexception); parameters
parent the directory to which to move the entry.
...And 10 more matches
Node.insertBefore() - Web APIs
the node.insertbefore() method inserts a node before a reference node as a child of a specified
parent node.
...(that is, it will automatically be removed from its existing
parent before appending it to the specified new
parent.) this means that a node cannot be in two locations of the document simultaneously.
... note: the node.clonenode() can be used to make a copy of the node before appending it under the new
parent.
...And 10 more matches
Architecture - Accessibility
the text is actually exposed via a special text interface in the
parent of the text nodes.
...their text is actually exposed in their
parent nshypertextaccessible via nsiaccessibletext.
...they end up getting exposed as '\n' in their
parent nshypertextaccessible.
...And 10 more matches
Style System Overview - Archive of obsolete content
style contexts own their
parents, since inheritance operates through style context
parents (ugly when we have multiple frames per content node).
...in this case: inherited structs: same value as
parent style context (optimization breaks when property has non-inherit value) reset structs: same struct for every style context using rule node (optimization breaks when a value is explicit inherit) reset structs: rule nodes have the same shared struct as their
parent (optimization breaks when a property is specified with a different value or when there is an explicit inherit value).
... style data cached in style context tree if a style struct for a context depends on the data in the
parent context, we will cache that struct in the style context tree.
...And 9 more matches
Message manager overview
in the initial version of multiprocess firefox there are two processes: the chrome process, also called the
parent process, runs the browser ui (chrome) code and code inserted by extensions the content processes, also called the child processes, run all web content.
... process message managers: these correspond to process boundaries, and enable code running in the
parent (chrome) process to communicate with code running in the child (content) process.
... from firefox 38 onwards, they also enable code running in the
parent process to load process scripts into the child process.
...And 9 more matches
nsINavHistoryResultObserver
ationchanged(in nsinavhistoryresultnode anode, in autf8string aannoname); void nodedateaddedchanged(in nsinavhistoryresultnode anode, in prtime anewvalue); void nodehistorydetailschanged(in nsinavhistoryresultnode anode, in prtime anewvisitdate, in unsigned long anewaccesscount); void nodeiconchanged(in nsinavhistoryresultnode anode); void nodeinserted(in nsinavhistorycontainerresultnode a
parent, in nsinavhistoryresultnode anode, in unsigned long anewindex); void nodekeywordchanged(in nsinavhistoryresultnode anode, in autf8string anewkeyword); void nodelastmodifiedchanged(in nsinavhistoryresultnode anode, in prtime anewvalue); void nodemoved(in nsinavhistoryresultnode anode, in nsinavhistorycontainerresultnode aold
parent, in unsigned long aoldindex, in nsinavhistorycontainerresultn...
...ode anew
parent, in unsigned long anewindex); void noderemoved(in nsinavhistorycontainerresultnode a
parent, in nsinavhistoryresultnode aitem, in unsigned long aoldindex); void nodereplaced(in nsinavhistorycontainerresultnode a
parentnode, in nsinavhistoryresultnode aoldnode, in nsinavhistoryresultnode anewnode, in unsigned long aindex); void nodetagschanged(in nsinavhistoryresultnode anode); void nodetitlechanged(in nsinavhistoryresultnode anode, in autf8string anewtitle); void nodeurichanged(in nsinavhistoryresultnode anode, in autf8string anewuri); void sortingchanged(in unsigned short sortingmode); attributes attribute type description result nsinavhistoryresult the nsinavhistoryresult this observer monitors.
... void nodeinserted( in nsinavhistorycontainerresultnode a
parent, in nsinavhistoryresultnode anode, in unsigned long anewindex ); parameters a
parent the container into which to insert the item.
...And 9 more matches
nsINavHistoryResultViewer
); void nodehistorydetailschanged(in nsinavhistoryresultnode anode, in prtime anewvisitdate, in unsigned long anewaccesscount); void nodeiconchanged(in nsinavhistoryresultnode anode); void nodekeywordchanged(in nsinavhistoryresultnode anode, in autf8string anewkeyword); void nodemoved(in nsinavhistoryresultnode anode, in nsinavhistorycontainerresultnode aold
parent, in unsigned long aoldindex, in nsinavhistorycontainerresultnode anew
parent, in unsigned long anewindex); void nodetitlechanged(in nsinavhistoryresultnode anode, in autf8string anewtitle); void noderemoved(in nsinavhistorycontainerresultnode a
parent, in nsinavhistoryresultnode anode, in unsigned long aoldindex); void nodetagschanged(in nsinavhistoryresultnode anode); ...
... void nodeurichanged(in nsinavhistoryresultnode anode, in autf8string anewuri); void nodereplaced(in nsinavhistorycontainerresultnode
parent, in nsinavhistoryresultnode olditem, in nsinavhistoryresultnode newitem, in unsigned long index); void nodeinserted(in nsinavhistorycontainerresultnode a
parent, in nsinavhistoryresultnode anode , in unsigned long anewindex); void sortingchanged(in unsigned short sortingmode); attributes attribute type description result nsinavhistoryresult the nsinavhistoryresult this viewer monitors.
... nodemoved() called when a node is moved from aold
parent at aoldindex to anew
parent at anewindex.
...And 9 more matches
Applying styles and colors - Web APIs
math.floor(255 - 42.5 * j) + ')'; ctx.beginpath(); ctx.arc(12.5 + j * 25, 12.5 + i * 25, 10, 0, math.pi * 2, true); ctx.stroke(); } } } <canvas id="canvas" width="150" height="150"></canvas> draw(); the result looks like this: screenshotlive sample transparency in addition to drawing opaque shapes to the canvas, we can also draw semi-trans
parent (or translucent) shapes.
... this is done by either setting the globalalpha property or by assigning a semi-trans
parent color to the stroke and/or fill style.
...the value must be between 0.0 (fully trans
parent) to 1.0 (fully opaque).
...And 9 more matches
Using CSS transitions - CSS: Cascading Style Sheets
transition-duration: 0.5s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top transform -webkit-transform color; -webkit-transition-duration: 0.5s; -webkit-tra...
...-duration: 0.5s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 1s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position: absolute; -webkit-transition-property: width height background-color font-size left top -webkit-transform color; -webkit-transition-duration: 1s; -webkit-transition-tim...
...on-duration: 1s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 2s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position: absolute; -webkit-transition-property: width height background-color font-size left top transform -webkit-transform color; -webkit-transition-duration: 2s; -webkit-tran...
...And 9 more matches
Object.prototype.constructor - JavaScript
function
parent() { /* ...
... */ }
parent.prototype.
parentmethod = function
parentmethod() {} function child() {
parent.call(this) // make sure everything is initialized properly } child.prototype = object.create(
parent.prototype) // re-define child prototype to
parent prototype child.prototype.constructor = child // return original constructor to child but when do we need to perform the last line here?
... function
parent() { /* ...
...And 9 more matches
SVG documentation index - SVG: Scalable Vector Graphics
when svg documents are embedded within a
parent html document using the tag: 6 namespaces crash course svg, xml as an xml dialect, svg is namespaced.
... 22 alignment-baseline svg, svg attribute the alignment-baseline attribute specifies how an object is aligned with respect to its
parent.
... this property specifies which baseline of this element is to be aligned with the corresponding baseline of the
parent.
...And 9 more matches
Tree View Details - Archive of obsolete content
the get
parentindex method is expected to return the
parent row of a given row, that is, the row before it with a lower nesting value.
... containers there are also three functions, iscontainer, iscontainerempty and iscontaineropen that are used to handle a
parent item in the tree.
... review of the methods here is a review of the methods needed to implement hierarchical views: getlevel(row) hasnextsibling(row, afterindex) get
parentindex(row) iscontainer(row) iscontainerempty(row) iscontaineropen(row) toggleopenstate(row) the afterindex argument to hasnextsibling function is used as optimization to only start looking for the next sibling after that point.
...And 8 more matches
nsIDBChangeListener
example here is an example implementation of the listener (that does nothing): var mylistener = { onhdrflagschanged: function(ahdrchanged, aoldflags, anewflags, ainstigator) {}, onhdrdeleted: function(ahdrchanged, a
parentkey, aflags, ainstigator) {}, onhdradded: function(ahdrchanged, a
parentkey, aflags, ainstigator) {}, on
parentchanged: function(akeychanged, old
parent, new
parent, ainstigator) {}, onannouncergoingaway: function(ainstigator) {}, onreadchanged: function(ainstigator) {}, onjunkscorechanged: function(ainstigator) {}, onhdrpropertychanged: function(ahdrtochange, aprechange, astatus, ainstigator) {}, onevent: function(adb, aeven...
...ener(mylistener); alternately, you can access the message database through the nsimsgdbview like so: gfolderdisplay.view.dbview.db.addlistener(mylistener); method overview void onhdrflagschanged(in nsimsgdbhdr ahdrchanged, in unsigned long aoldflags, in unsigned long anewflags, in nsidbchangelistener ainstigator); void onhdrdeleted(in nsimsgdbhdr ahdrchanged, in nsmsgkey a
parentkey, in long aflags, in nsidbchangelistener ainstigator); void onhdradded(in nsimsgdbhdr ahdrchanged, in nsmsgkey a
parentkey, in long aflags, in nsidbchangelistener ainstigator); void on
parentchanged(in nsmsgkey akeychanged, in nsmsgkey old
parent, in nsmsgkey new
parent, in nsidbchangelistener ainstigator); void onannouncergoingaway(in nsidbchangeannouncer instigator); ...
... void onhdrdeleted(in nsimsgdbhdr ahdrchanged, in nsmsgkey a
parentkey, in long aflags, in nsidbchangelistener ainstigator); parameters ahdrchanged the nsimsgdbhdr of the message that was removed.
...And 8 more matches
font-size - CSS: Cascading Style Sheets
es */ font-size: smaller; font-size: larger; /* <length> values */ font-size: 12px; font-size: 0.8em; /* <percentage> values */ font-size: 80%; /* global values */ font-size: inherit; font-size: initial; font-size: unset; the font-size property is specified in one of the following ways: as one of the absolute-size or relative-size keywords as a <length> or a <percentage>, relative to the
parent element's font size values xx-small, x-small, small, medium, large, x-large, xx-large, xxx-large absolute-size keywords, based on the user's default font size (which is medium).
...the font will be larger or smaller relative to the
parent element's font size, roughly by the ratio used to separate the absolute-size keywords above.
...for most font-relative units (such as em and ex), the font size is relative to the
parent element's font size.
...And 8 more matches
places/bookmarks - Archive of obsolete content
optional options: name type group group the
parent group that the bookmark lives under.
... optional options: name type group group the
parent group that the bookmark group lives under.
... index number the index of the bookmark group within its
parent group.
...And 7 more matches
Index - Archive of obsolete content
150 iframe.trans
parent no summary!
... 273
parent xul attributes, xul reference no summary!
... 786
parentcontainer xul properties, xul reference no summary!
...And 7 more matches
context-menu - Archive of obsolete content
methods destroy() permanently removes the item from its
parent menu and frees its resources.
...if you need to remove the item from its
parent menu but use it afterward, call removeitem() on the
parent menu instead.
...
parentmenu the item's
parent menu, or null if the item is contained in the top-level context menu.
...And 6 more matches
Anonymous Content - Archive of obsolete content
a sample xbl binding for the file widget might look as follows: <binding id="fileupload"> <content> <html:input type="text"/> <html:input type="button"/> </content> </binding> because this content is not visible to its
parent element, it is said to be anonymous content.
...for content generated underneath the bound element, the topmost nodes'
parentnode pointers are set to the bound element.
... when anonymous content elements are built above the bound element, the topmost elements'
parentnode pointers are set to the bound element's
parentnode.
...And 6 more matches
OpenClose - Archive of obsolete content
for instance, a menu's popup will open when the menu label is clicked, and a submenu will open when the mouse is hovered over the
parent menu element.
... if the menu is a child of another menu and the
parent menu is not open.
... in this case, the
parent menu must be opened first.
...And 6 more matches
Special Condition Tests - Archive of obsolete content
parent tag tests sometimes you want to simply generate one block of content at the top level and different content at the recurisive level.
...here is a previous example, rewritten to use the
parent matching syntax: <vbox datasources="people.xml" ref="*" querytype="xml"> <template> <query expr="*"/> <rule
parent="vbox"> <action> <groupbox uri="?"> <caption label="?name"/> </groupbox> </action> </rule> <rule> <action> <label uri="?" value="?name"/> </action> </rule> </template> </vbox> previously, an assign ele...
...the code above accomplishes the same effect except that it using the
parent matching mechanism.
...And 6 more matches
Build your own function - Learn web development
this is fine, as you can tell them apart — function names appear with
parentheses after them, and variables don't.
...this is followed by the name we want to give to our function, a set of
parentheses, and a set of curly braces.
... any parameters we want to give to our function go inside the
parentheses, and the code that runs when we call the function goes inside the curly braces.
...And 6 more matches
Mozilla Style System Documentation
these methods may all return an existing style context rather than a new one (see stylesetimpl::getcontext), if there is a current style context with the same
parent, that matches the same rules (a check that is easy because of the ruletree), and is for the same pseudo-element (or not for a pseudo-element, or a "non-element").
... this is more than just sibling-sharing since if the
parent is shared, it could be cousin-sharing.
... in css, some of the style data for an element depends on the style data for that element's
parent.
...And 6 more matches
inIDOMUtils
in boolean ashowinganonymouscontent); unsigned long long getcontentstate(in nsidomelement aelement); void getcsspropertynames([optional] in unsigned long aflags, [optional] out unsigned long acount, [retval, array, size_is(acount)] out wstring aprops); nsisupportsarray getcssstylerules(in nsidomelement aelement, [optional] in domstring apseudo); nsidomnode get
parentfornode(in nsidomnode anode, in boolean ashowinganonymouscontent); unsigned long getruleline(in nsidomcssstylerule arule); unsigned long getrulecolumn(in nsidomcssstylerule arule); unsigned long getselectorcount(in nsidomcssstylerule arule); astring getselectortext(in nsidomcssstylerule arule, in unsigned long aselectorindex); unsigned long long getspec...
...if you have requested anonymous content, then if the element has an xbl binding then this will be the binding's anonymous nodes, otherwise if the element is itself an anonymous node containing an insertion point then this will be a list combining the element's explicit children from its binding
parent's anonymous nodes and any children inserted as a result of the insertion point.
... get
parentfornode() returns the
parent of the specified node.
...And 6 more matches
nsIDocShell
the rule of thumb here is that we disable js if this docshell or any of its
parents disallow scripting, unless the only reason for js being disabled in this docshell is a
parent docshell having a document that is in design mode.
...
parentcharset nsiatom indicates the docshell's
parent document's character set.
...
parentcharsetsource print32 indicates the source from which the character set being used was obtained.
...And 6 more matches
nsIXPConnect
void flagsystemfilenameprefix(in string afilenameprefix, in prbool awantnativewrappers); void garbagecollect(); [noscript,notxpcom] void getcaller(out jscontextptr ajscontext, out jsobjectptr aobject); jsval getcowforobject(in jscontextptr ajscontext, in jsobjectptr a
parent, in jsobjectptr awrappedobj); native code only!
... obsolete since gecko 2.0 jsval getxowforobject(in jscontextptr ajscontext, in jsobjectptr a
parent, in jsobjectptr awrappedobj); native code only!
... void re
parentscopeawarewrappers(in jscontextptr ajscontext, in jsobjectptr aoldscope, in jsobjectptr anewscope); obsolete since gecko 1.9.1 nsixpconnectjsobjectholder re
parentwrappednativeiffound(in jscontextptr ajscontext, in jsobjectptr ascope, in jsobjectptr anew
parent, in nsisupports acomobj); void restorewrappednativeprototype(in jscontextptr ajscontext, in jsobjectptr ascope, in nsicla...
...And 6 more matches
Using Web Workers - Web APIs
workers may, in turn, spawn new workers, as long as those workers are hosted within the same origin as the
parent page.
...so-called sub-workers must be hosted within the same origin as the
parent page.
... also, the uris for subworkers are resolved relative to the
parent worker's location rather than that of the owning page.
...And 6 more matches
JavaScript modules - JavaScript
45safari ios full support 10.3samsung internet android full support 8.0nodejs full support 13.2.0notes full support 13.2.0notes notes modules must either have a filename ending in .mjs, or the nearest
parent package.json file must contain "type": "module".
... full support 12.0.0notes disabled notes modules must either have a filename ending in .mjs, or the nearest
parent package.json file must contain "type": "module".
... 45safari ios full support 10.3samsung internet android full support 8.0nodejs full support 13.2.0notes full support 13.2.0notes notes modules must either have a filename ending in .mjs, or the nearest
parent package.json file must contain "type": "module".
...And 6 more matches
Introduction to CSS layout - Learn web development
css page layout techniques allow us to take elements contained in a web page and control where they are positioned relative to their default position in normal layout flow, the other elements around them, their
parent container, or the main viewport/window.
...to use flexbox, you apply display: flex to the
parent element of the elements you want to lay out; all its direct children then become flex items.
... however, if we add display: flex to the
parent, the three items now arrange themselves into columns.
...And 5 more matches
PBackground
pbackground is a mechanism available since gecko 30 (see bug 956218) that builds on top of ipdl to provide a solution to common problems that arise when handling multiple threads in the chrome process, for example communication between workers and multiple child processes and other
parent-process worker threads.
... when used at run time, every protocol has two actors — a
parent and a child.
... for example, when we are uploading textures from the content process we don't need to go through the main thread of the
parent process.
...And 5 more matches
sslfnc.html
initializing multi-processing with a shared ssl server cache to start a multi-processing application, the initial
parent process calls ssl_configmpserversidcache, and then creates child processes, by one of these methods: call fork and then exec (unix) call createprocess (win32) call pr_createprocess (both unix and win32) it is essential that the
parent allow the child to inherit the file descriptors.
... when a new child that has been created by either createprocess or exec begins, it may have inherited file descriptors (fds), but not the
parent's memory.
... there are two ways to transfer the content of ssl_inheritance from
parent to child: the child inherits the
parent's environment, which must include the ssl_inheritance variable.
...And 5 more matches
JS_NewObject
syntax // added in spidermonkey 45 jsobject * js_newobject(jscontext *cx, const jsclass *clasp); bool js_newobjectwithgivenproto(jscontext *cx, const jsclass *clasp, js::handle<jsobject*> proto); // obsolete since spidermonkey 38 jsobject * js_newobject(jscontext *cx, const jsclass *clasp, js::handle<jsobject*> proto, js::handle<jsobject*>
parent); jsobject * js_newobjectwithgivenproto(jscontext *cx, const jsclass *clasp, js::handle<jsobject*> proto, js::handle<jsobject*>
parent); // added in spidermonkey 1.8 name type description cx jscontext * the context in which to create the new object.
...
parent js::handle<jsobject*> pointer to the
parent of the new object.
... the new object's __
parent__ property will be a reference to this object.
...And 5 more matches
IAccessibleComponent
the origin of the
parent coordinate system is the upper left corner of the
parent's bounding box.
... with no
parent the screen coordinate system is used instead.
... method overview [propget] hresult background([out] ia2color background ); [propget] hresult foreground([out] ia2color foreground ); [propget] hresult locationin
parent([out] long x, [out] long y ); methods background() returns the background color of this object.
...And 5 more matches
nsIHTMLEditor
ttribute, in astring avalue); void addinsertionlistener(in nsicontentfilter infilter); void align(in astring aalign); boolean breakisvisible(in nsidomnode anode); boolean candrag(in nsidomevent aevent); void checkselectionstateforanonymousbuttons(in nsiselection aselection); nsidomelement createanonymouselement(in astring atag, in nsidomnode a
parentnode, in astring aanonclass, in boolean aiscreatedhidden); nsidomelement createelementwithdefaults(in astring atagname); void decreasefontsize(); void dodrag(in nsidomevent aevent); void getalignment(out boolean amixed, out short aalign); astring getbackgroundcolorstate(out boolean amixed); nsidomelement getelementor
parentbytagname(in astring a...
... createanonymouselement() returns an anonymous nsdomelement of type atag, child of a
parentnode.
...if aanonclass is not the empty string, it becomes the value of the attribute "_moz_anonclass" nsidomelement createanonymouselement( in astring atag, in nsidomnode a
parentnode, in astring aanonclass, in boolean aiscreatedhidden ); parameters atag a string representing the desired type of the element to create.
...And 5 more matches
nsISelection
as a service: var selection = components.classes["@mozilla.org/????????????????????????????"] .createinstance(components.interfaces.nsiselection); method overview void addrange(in nsidomrange range); void collapse(in nsidomnode
parentnode, in long offset); [noscript,notxpcom,nostdcall] boolean collapsed(); void collapsenative(in nsidomnode
parentnode, in long offset); native code only!
... void collapsetoend(); void collapsetostart(); boolean containsnode(in nsidomnode node, in boolean partlycontained); void deletefromdocument(); void extend(in nsidomnode
parentnode, in long offset); void extendnative(in nsidomnode
parentnode, in long offset); native code only!
... nsidomrange getrangeat(in long index); void modify(in domstring alter, in domstring direction, in domstring granularity); void removeallranges(); void removerange(in nsidomrange range); void selectallchildren(in nsidomnode
parentnode); void selectionlanguagechange(in boolean langrtl); domstring tostring(); attributes attribute type description anchornode nsidomnode returns the node in which the selection begins.
...And 5 more matches
DirectoryEntrySync - Web APIs
if you try to create a directory using a full path that includes
parent directories that do not exist yet, you get an error.
... so create the hierarchy by recursively adding a new path after creating the
parent directory.
...you cannot create a file whose immediate
parent does not exist.
...And 5 more matches
DocumentFragment - Web APIs
the documentfragment interface represents a minimal document object that has no
parent.
... properties this interface has no specific properties, but inherits those of its
parent, node, and implements those of the
parentnode interface.
...
parentnode.children read only returns a live htmlcollection containing all objects of type element that are children of the documentfragment object.
...And 5 more matches
Node - Web APIs
"75" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="188.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">node</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties in addition to the properties below, node inherits properties from its
parent, eventtarget.
... node.
parentnoderead only returns a node that is the
parent of this node.
... node.
parentelementread only returns an element that is the
parent of this node.
...And 5 more matches
Shapes From Images - CSS: Cascading Style Sheets
as a simple example, i have an image of a star with a solid red area and an area which is fully trans
parent.
... setting a threshold the shape-image-threshold property enables the creation of shapes from areas which are not fully trans
parent.
... if the value of shape-image-threshold is 0.0 (which is the initial value) then the area must be fully trans
parent.
...And 5 more matches
vertical-align - CSS: Cascading Style Sheets
values for inline elements
parent-relative values these values vertically align the element relative to its
parent element: baseline aligns the baseline of the element with the baseline of its
parent.
... sub aligns the baseline of the element with the subscript-baseline of its
parent.
... super aligns the baseline of the element with the superscript-baseline of its
parent.
...And 5 more matches
Paths - SVG: Scalable Vector Graphics
z (or) z so our path above could be shortened to: <path d="m 10 10 h 90 v 90 h 10 z" fill="trans
parent" stroke="black"/> the relative forms of these commands can also be used to draw the same picture.
...for instance, since our box is 80×80, the <path> element could have been written as: <path d="m 10 10 h 80 v 80 h -80 z" fill="trans
parent" stroke="black"/> the path will move to point (10,10) and then move horizontally 80 points to the right, then 80 points down, then 80 points to the left, and then back to the start.
... <svg width="190" height="160" xmlns="http://www.w3.org/2000/svg"> <path d="m 10 10 c 20 20, 40 20, 50 10" stroke="black" fill="trans
parent"/> <path d="m 70 10 c 70 20, 110 20, 110 10" stroke="black" fill="trans
parent"/> <path d="m 130 10 c 120 20, 180 20, 170 10" stroke="black" fill="trans
parent"/> <path d="m 10 60 c 20 80, 40 80, 50 60" stroke="black" fill="trans
parent"/> <path d="m 70 60 c 70 80, 110 80, 110 60" stroke="black" fill="trans
parent"/> <path d="m 130 60 c 120 80, 180 80, 170 60" stroke="black" fill="transpare...
...And 5 more matches
Notes on HTML Reflow - Archive of obsolete content
a frame is rectangular, with width, height, and an offset from the
parent frame that contains it.
...reflow state the reflow state object, nshtmlreflowstate, is used to pass constraining information "down" from
parent frames to child frames.
...most of the constraints in the new reflow state are computed when the state is created; for example, the available space in the new reflow state is computed by subtracting the container frame's border and padding from the
parent reflow state's available space.
...And 4 more matches
Styling web forms - Learn web development
by default, some widgets do not inherit font-family and font-size from their
parents.
...to make your forms' appearance consistent with the rest of your content, you can add the following rules to your stylesheet: button, input, select, textarea { font-family: inherit; font-size: 100%; } the inherit property value causes the property value to match the computed value of the property of its
parent element; inheriting the value of the
parent.
...inheriting should change their fonts to that of the
parent's font family — in this case the default serif font of the
parent container.
...And 4 more matches
Making decisions in your code — conditionals - Learn web development
else syntax basic if...else syntax looks like the following in pseudocode: if (condition) { code to run if condition is true } else { run some other code instead } here we've got: the keyword if followed by some
parentheses.
... a condition to test, placed inside the
parentheses (typically "is this value bigger than this other value?", or "does this value exist?").
...the
parent might say "hey sweetheart!
...And 4 more matches
A first splash into JavaScript - Learn web development
ton'); resetbutton.textcontent = 'start new game'; document.body.append(resetbutton); resetbutton.addeventlistener('click', resetgame); } function resetgame() { guesscount = 1; const resetparas = document.queryselectorall('.resultparas p'); for(let i = 0 ; i < resetparas.length ; i++) { resetparas[i].textcontent = ''; } resetbutton.
parentnode.removechild(resetbutton); guessfield.disabled = false; guesssubmit.disabled = false; guessfield.value = ''; guessfield.focus(); lastresult.style.backgroundcolor = 'white'; randomnumber = math.floor(math.random() * 100) + 1; } </script> </body> </html> have a go at playing it — familiarize yourself with the game before you move on.
...here we have defined a function by using the keyword function, followed by a name, with
parentheses put after it.
... when we want to run the code, we type the name of the function followed by the
parentheses.
...And 4 more matches
Inheritance in JavaScript - Learn web development
previous overview: objects next with most of the gory details of oojs now explained, this article shows how to create "child" object classes (constructors) that inherit features from their "
parent" classes.
... { this.width = 10; this.height = 20; } you could inherit the width and height properties by doing this (as well as the other steps described below, of course): function blueglassbrick() { brick.call(this); this.opacity = 0.5; this.color = 'blue'; } note that we've only specified this inside call() — no other parameters are required as we are not inheriting any properties from the
parent that are set via parameters.
... therefore running the above code will give an error: uncaught referenceerror: must call super constructor in derived class before accessing 'this' or returning from derived constructor for sub-classes, the this intialization to a newly allocated object is always dependant on the
parent class constructor, i.e the constructor function of the class from which you're extending.
...And 4 more matches
Mozilla accessibility architecture
this tree traversal is accomplished via toolkit-specific calls which end up as calls into nsiaccessible methods getacc
parent(), getaccnextsibling(), getaccprevioussibling(), getaccfirstchild(), getacclastchild(), getaccchildcount() and getchildat(childnum).
...when there is no dom node for each accessible, as is the case for nshtmlcomboboxaccessible and nsxultreeitemaccessible, we also need to override the shutdown() method, so that the children get removed from memory when the
parent is shutdown.
... member variables in nsaccessible that keep track of the number of children (maccchildcount), the
parent (m
parent), the first child (mfirstchild) and the next sibling (mnextsibling).
...And 4 more matches
JavaScript-DOM Prototypes in Mozilla
var obj = document.images[0]; here, obj will not really have any properties (except for the standard jsobject properties such as constructor, and the non-standard __
parent__, __proto__, etc.), all the dom functionality of obj comes from obj's prototype (obj.__proto__) that xpconnect sets up when exposing the first image in document to javascript.
... here are a few of the properties of obj's prototype: obj.__proto__
parentnode (getter function) src (getter and setter functions) getelementsbytagname (function) text_node (number property, constant) ...
...to do this, the code figures out what the name of the immediate prototype of the class is by looking at the
parent of the primary interface in the class info (if the name is a class constructor, such as htmlimageelement) or by looking at the
parent of the interface that the iid stored in the nsscriptnamespacemanager for this name represents (if the name is a class prototype, such as node).
...And 4 more matches
Invariants
but note that a stack frame is not necessarily newer than the next stack frame down, thanks to generators!) an object's scope chain (found by chasing jsobject::fslots[jsslot_
parent]) never forms a cycle.
...js_set
parent can violate this, if the application is really that dumb, but generally every object is newer than its __
parent__.) the tracejit must not trace into a function whose scope chain ends in a different global object.
...even if the function is native, there is serious trouble: js_newobject with null
parent argument calculates the
parent from cx->fp->scopechain, which can be stale if we're on trace.) the chain of properties starting at any jsshape and chasing jsshape::
parent never forms a cycle and does not contain any duplicate jsscopeproperty::slot values other than -1.
...And 4 more matches
JS_ConstructObject
create a new object of the specified class, with the specified prototype and
parent, then invokes a constructor function to initialize the new object.
... syntax jsobject * js_constructobject(jscontext *cx, jsclass *clasp, jsobject *proto, jsobject *
parent); jsobject * js_constructobjectwitharguments(jscontext *cx, jsclass *clasp, jsobject *proto, jsobject *
parent, unsigned int argc, jsval *argv); name type description cx jscontext * the context in which to create the new object.
...
parent jsobject * the object to serve as the new object's
parent, or null.
...And 4 more matches
Places Developer Guide
bookmarks.default_index, // the position of the bookmark in its
parent folder.
... bookmarks.default_index); // the position of the new folder in its
parent folder.
... bookmarks.default_index); // the position of the separator in its
parent folder.
...And 4 more matches
nsIWindowWatcher
method overview nsiwebbrowserchrome getchromeforwindow(in nsidomwindow awindow); nsiauthprompt getnewauthprompter(in nsidomwindow a
parent); nsiprompt getnewprompter(in nsidomwindow a
parent); nsidomwindow getwindowbyname(in wstring atargetname, in nsidomwindow acurrentwindow); nsisimpleenumerator getwindowenumerator(); nsidomwindow openwindow(in nsidomwindow a
parent, in string aurl, in string aname, in string afeatures, in nsisupports aarguments); void registernotification(in nsiobserver ...
... nsiauthprompt getnewauthprompter( in nsidomwindow a
parent ); parameters a
parent the
parent window used for posing alerts.
... nsiprompt getnewprompter( in nsidomwindow a
parent ); parameters a
parent the
parent nsidomwindow used for posing alerts.
...And 4 more matches
Node.appendChild() - Web APIs
the node.appendchild() method adds a node to the end of the list of children of a specified
parent node.
... if the given child is a reference to an existing node in the document, appendchild() moves it from its current position to the new position (there is no requirement to remove the node from its
parent node before appending it to some other node).
...so if the node already has a
parent, the node is first removed, then appended at the new position.
...And 4 more matches
Privileged features - Web APIs
centerscreen centers the window in relation to its
parent's size and position.
... dependent if on, the new window is said to be dependent of its
parent window.
... a dependent window closes when its
parent window closes.
...And 4 more matches
Implementing a Microsoft Active Accessibility (MSAA) Server - Accessibility
here are the methods supported in iaccessible - a minimal implementation would contain those marked "[important]": get_acc
parent: get the
parent of an iaccessible.
...ion] event_object_selectionremove [important for multiple selection] event_object_selectionwithin [important for multiple selection] event_object_statechange [important for checkboxes and radio buttons] event_object_locationchange event_object_namechange event_object_descriptionchange event_object_valuechange [important for sliders and progress meters] event_object_
parentchange event_object_helpchange event_object_defactionchange event_object_acceleratorchange msaa states cheat sheet for information on what each state does, see the msdn state constants page.
...windowfromaccessibleobject works by walking up the
parent chain until it finds an object of role_window.
...And 4 more matches
@supports - CSS: Cascading Style Sheets
precedence of operators can be defined with
parentheses.
...the declaration must be surrounded by
parentheses.
...the following examples are both valid: @supports not (not (transform-origin: 2px)) {} @supports (display: grid) and (not (display: inline-grid)) {} note: there is no need to enclose the not operator between two
parentheses at the top level.
...And 4 more matches
<color> - CSS: Cascading Style Sheets
a <color> can be defined in any of the following ways: using a keyword (such as blue or trans
parent) using the rgb cubic-coordinate system (via the #-hexadecimal or the rgb() and rgba() functional notations) using the hsl cylindrical-coordinate system (via the hsl() and hsla() functional notations) note: this article describes the <color> data type in detail.
... springgreen #00ff7f steelblue #4682b4 tan #d2b48c thistle #d8bfd8 tomato #ff6347 turquoise #40e0d0 violet #ee82ee wheat #f5deb3 whitesmoke #f5f5f5 yellowgreen #9acd32 css color module level 4 rebeccapurple #663399 trans
parent keyword the trans
parent keyword represents a fully trans
parent color.
...technically, trans
parent is a shortcut for rgba(0,0,0,0).
...And 4 more matches
Expressions and operators - JavaScript
the
parentheses are optional.
...the
parentheses surrounding the expression are optional, but it is good style to use them.
...you can override operator precedence by using
parentheses.
...And 4 more matches
ui/frame - Archive of obsolete content
from frame to add-on to send a message from a frame script to the add-on, use window.
parent.postmessage().
... if the frame script initiates the conversation, you need to specify "*" as the origin: window.
parent.postmessage("ping", "*"); if the frame script has received a message from the add-on already, it can use the origin property of the event object passed to the message hander: // listen for messages from the add-on, and send a reply window.addeventlistener("message", function(event) { event.source.postmessage("pong", event.origin) }, false); this frame script listens to change events on the "city-selector" <select> element, and sends a message to the add-on containing the value for the newly selected element.
... // city-info.js var cityselector = window.document.getelementbyid("city-selector"); cityselector.addeventlistener("change", citychanged); function citychanged() { window.
parent.postmessage(cityselector.value, "*"); } to listen for these messages in the main add-on code, you can assign a listener to the frame's message event.
...And 3 more matches
Jetpack Processes - Archive of obsolete content
jetpack processes are created by components that implement the nsijetpackservice interface, and their
parent chrome process communicates with them via the nsijetpack interface.
...messaging facilities that allow them to communicate with their
parent chrome process are the only means by which they can be endowed with any real power.
...createhandle() creates a child handle which becomes invalid when its
parent does.
...And 3 more matches
Chapter 3: Introduction to XUL—How to build a more intuitive UI - Archive of obsolete content
flex takes a positive integer as a value, which is a growth multiple on the axis of the
parent element's orient attribute.
...typically, elements with the disabled="true" attribute will appear as either trans
parent or pale gray.
... var item = document.getelementbyid('menu-item-custom'); function handlecommandevent(aevent) { alert('ok'); item.removeeventlistener('command', handlecommandevent, false); item.
parentnode.removechild(item); } item.addeventlistener('command', handlecommandevent, false); listing 11: additions and deletions using a dynamic event listener special menu items much like input elements in html, menuitem elements can operate like checkboxes and radio buttons by setting their type attributes.
...And 3 more matches
Block and Line Layout Cheat Sheet - Archive of obsolete content
the absence of this flag implies that child margin calculations should ignore the frame and look further up the
parent chain.
...this is "passed in" to a child frame from its
parent, and provides the constraints in which the child frame must size itself; e.g.
...like nshtmlreflowstate, this is read-only data that is passed down from a
parent frame to its children.
...And 3 more matches
Building accessible custom components in XUL - Archive of obsolete content
function spreadsheet_down(current) { var next = find_cell_down(current); if (next) { next.focus(); } } function spreadsheet_left(current) { var next = find_cell_left(current); if (next) { next.focus(); } } function spreadsheet_right(current) { var next = find_cell_right(current); if (next) { next.focus(); } } function get_index_within_
parent(current) { var arsiblings = current.
parentnode.childnodes; for (var i = 0; i < arsiblings.length; i++) { if (arsiblings[i] == current) { return i; } } return -1; } function find_cell_up(current) { var row = get_index_within_
parent(current); var arsiblings = current.
parentnode.childnodes; return row == 0 ?
... null : arsiblings[row - 1]; } function find_cell_down(current) { var row = get_index_within_
parent(current); var arsiblings = current.
parentnode.childnodes; return row == arsiblings.length - 1 ?
... null : arsiblings[row + 1]; } function find_cell_left(current) { var row = get_index_within_
parent(current); var column = get_index_within_
parent(current.
parentnode); var columns = current.
parentnode.
parentnode.childnodes; return column = 0 ?
...And 3 more matches
Looping code - Learn web development
the first, which you'll use most of the time, is the for loop — this has the following syntax: for (initializer; condition; final-expression) { // code to run } here we have: the keyword for, followed by some
parentheses.
... inside the
parentheses we have three items, separated by semi-colons: an initializer — this is usually a variable set to a number, which is incremented to count the number of times the loop has run.
...this loop's syntax looks like so: initializer while (condition) { // code to run final-expression } this works in a very similar way to the for loop, except that the initializer variable is set before the loop, and the final-expression is included inside the loop after the code to run — rather than these two items being included inside the
parentheses.
...And 3 more matches
Displaying Places information using views
it will open any
parent nodes that it needs to in order to show the selected items.
... in firefox 3.6 and earlier requires gecko 1.9.2(firefox 3.6 / thunderbird 3.1 / fennec 1.0) create a built-in menu view by setting the type attribute to "places" on an empty menupopup element (which would be a child of some
parent menu element): <menu> <menupopup type="places" /> </menu> the place attribute or property should be set on the menupopup as well.
... toolbar view create a built-in toolbar view by setting the type attribute to "places" on an empty hbox element (which would be a child of some
parent toolbaritem element, itself the child of a toolbar element): <toolbar> <toolbaritem> <hbox type="places" /> </toolbaritem> </toolbar> the place attribute or property should be set on the hbox as well.
...And 3 more matches
Performance
do some work on the window } function dosomething(message) { result = helper(content, message.data) sendasyncmessage("my-addon:response-from-child", {something: result}) } addmessagelistener("my-addon:request-from-
parent", dosomething) why is this bad?
...do some work on the window } function dosomething(message) { frameglobal = message.target result = helper(frameglobal.content, message.data) frameglobal.sendasyncmessage("my-addon:response-from-child", {something: result}) } function addframe(frameglobal) { frameglobal.addmessagelistener("my-addon:request-from-
parent", dosomething) } javascript modules are per-process singletons and thus all their objects are only initialized once, which makes them suitable for stateless callbacks.
...s services.mm.loadframescript("framescript.js", /*delayed:*/ true) // stuff communicating with the framescript // framescript.js function onlyonceinabluemoon() { // we only need this during a total solar eclipse while goat blood rains from the sky sendasyncmessage('my-addon:paragraph-count', {num: content.document.queryselectorall('p').length}) } addmessagelistener("my-addon:request-from-
parent", onlyonceinabluemoon) better: // addon.js function ontoolbarbutton(event) { let tabmm = gbrowser.mcurrentbrowser.frameloader.messagemanager; let button = event.target; let callback = (message) => { tabmm.removemessagelistener("my-addon:paragraph-count", callback) decoratebutton(button, message.data.num) } tabmm.addmessagelistener("my-addon:paragraph-count", callback); tabm...
...And 3 more matches
WebRequest.jsm
parentwindowid number type string the resource type.
...
parentwindowid number type string the resource type.
...
parentwindowid number type string the resource type.
...And 3 more matches
Rhino scopes and contexts
in general, variables are looked up by starting at the current variable object (which is different depending on what code is being executed in the program), traversing its prototype chain, and then traversing the
parent chain.
...then all we need to do is create a new object and call its setprototypemethod to set the prototype to the shared object, and the
parent of the new scope to null: scriptable newscope = cx.newobject(sharedscope); newscope.setprototype(sharedscope); newscope.set
parentscope(null); the call to newobject simply creates a new javascript object with no properties.
... the answer to 1 determines which scope should be the ultimate
parent scope: rhino follows the
parent chain up to the top and places the variable there.
...And 3 more matches
JSObjectOps.setProto
the jsobjectops.setproto and set
parent callbacks implement the js_setprototype and js_set
parent functions.
... syntax typedef jsbool (*jssetobjectslotop)(jscontext *cx, jsobject *obj, uint32 slot, jsobject *pobj); name type description cx jscontext * pointer to the js context in which the object's prototype or
parent is being modified.
... obj jsobject * the object whose prototype or
parent is being modified.
...And 3 more matches
JS_InitClass
syntax jsobject * js_initclass(jscontext *cx, js::handleobject obj, js::handleobject
parent_proto, const jsclass *clasp, jsnative constructor, unsigned nargs, const jspropertyspec *ps, const jsfunctionspec *fs, const jspropertyspec *static_ps, const jsfunctionspec *static_fs); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...
parent_proto js::handleobject pointer to an object to be used as a prototype.
... js_initclass always creates a new prototype object that serves as the __proto__ for class instances;
parent_proto becomes the __proto__ of that prototype object.
...And 3 more matches
SavedFrame
arrows represent links from child to
parent frame, content.js is from a compartment with content principals, and chrome.js is from a compartment with chrome principals.
... asynccause if this stack frame is the async
parent of other stack frames, then this is a string representing the type of asynchronous call by which this frame invoked its children.
... async
parent if this stack frame was called as a result of an asynchronous operation, for example if the function referenced by this frame is a promise handler, this property points to the stack frame responsible for the asynchronous call, for example where the promise was created.
...And 3 more matches
Animated PNG graphics
fully trans
parent black means red, green, blue and alpha components are all set to zero.
... conceptually, at the beginning of each play the output buffer must be completely initialized to a fully trans
parent black rectangle, with width and height dimensions from the 'ihdr' chunk.
...the default image should be appropriately padded with fully trans
parent pixels if extra space will be needed for later frames.
...And 3 more matches
IAccessible2
attributes ); [propget] hresult extendedrole([out] bstr extendedrole ); [propget] hresult extendedstates([in] long maxextendedstates, [out, size_is(,maxextendedstates), length_is(, nextendedstates)] bstr extendedstates, [out] long nextendedstates ); [propget] hresult groupposition([out] long grouplevel, [out] long similaritemsingroup, [out] long positioningroup ); [propget] hresult indexin
parent([out] long indexin
parent ); [propget] hresult locale([out] ia2locale locale ); [propget] hresult localizedextendedrole([out] bstr localizedextendedrole ); [propget] hresult localizedextendedstates([in] long maxlocalizedextendedstates, [out, size_is(,maxlocalizedextendedstates), length_is(, nlocalizedextendedstates)] bstr localizedextendedstates, [out] long nlocalizedextendedstates ); [pro...
...indexin
parent() returns the index of this object in its
parent object.
... [propget] hresult indexin
parent( [out] long indexin
parent ); parameters indexin
parent 0 based; -1 indicates there is no
parent; the upper bound is the value returned by the
parent's iaccessible::get_accchildcount.
...And 3 more matches
IAccessibleTable
in this case iaccessible2.indexin
parent() will return the child index which then can be used when calling rowindex() and columnindex().
...ats should first test for the presence of the "table-cell-index" attribute and if it is not present then iaccessible2.indexin
parent() can be used as in the typical case where cells are direct children of the table.
...[propget] hresult columnindex( [in] long cellindex, [out] long columnindex ); parameters cellindex 0 based index of the cell in the
parent or closest ancestor table.
...And 3 more matches
mozIThirdPartyUtil
obtain the bottommost nsidomwindow, and its same-type
parent if it exists, from the channel's notification callbacks.
... then: if the
parent is the same as the bottommost window, and the channel has the load_document_uri flag set, return false.
...for example, if auri is "http://mail.google.com/", achannel has a uri of "http://google.com/", and its
parent is the topmost content window with a uri of "http://mozilla.com", the result will be true.
...And 3 more matches
nsITreeView
rties obsolete since gecko 22); astring getcelltext(in long row, in nsitreecolumn col); astring getcellvalue(in long row, in nsitreecolumn col); astring getcolumnproperties(in nsitreecolumn col, in nsisupportsarray properties obsolete since gecko 22); astring getimagesrc(in long row, in nsitreecolumn col); long getlevel(in long index); long get
parentindex(in long rowindex); long getprogressmode(in long row, in nsitreecolumn col); astring getrowproperties(in long index, in nsisupportsarray properties obsolete since gecko 22); boolean hasnextsibling(in long rowindex, in long afterindex); boolean iscontainer(in long index); boolean iscontainerempty(in long index); boolean iscontaineropen(in l...
... get
parentindex() methods used by the tree to draw thread lines in the tree.
... get
parentindex is used to obtain the index of a
parent row.
...And 3 more matches
CanvasRenderingContext2D.drawWindow() - Web APIs
if you're writing chrome code, you probably want windowglobal
parent.drawsnapshot from the
parent process.
...this color may be trans
parent/translucent.
... notes: if "rgba(0,0,0,0)" is used for the background color, the drawing will be trans
parent wherever the window is trans
parent.
...And 3 more matches
ChildNode - Web APIs
the childnode mixin contains methods and properties that are common to all types of node objects that can have a
parent.
... childnode.remove() removes this childnode from the children list of its
parent.
... childnode.before() inserts a set of node or domstring objects in the children list of this childnode's
parent, just before this childnode.
...And 3 more matches
Document.querySelectorAll() - Web APIs
note: this method is implemented based on the
parentnode mixin's queryselectorall() method.
... syntax elementlist =
parentnode.queryselectorall(selectors); parameters selectors a domstring containing one or more selectors to match against.
... examples obtaining a list of matches to obtain a nodelist of all of the <p> elements in the document: var matches = document.queryselectorall("p"); this example returns a list of all <div> elements within the document with a class of either note or alert: var matches = document.queryselectorall("div.note, div.alert"); here, we get a list of <p> elements whose immediate
parent element is a <div> with the class highlighted and which are located inside a container whose id is test.
...And 3 more matches
Element.querySelectorAll() - Web APIs
note: this method is implemented based on the
parentnode mixin's queryselectorall() method.
... syntax elementlist =
parentnode.queryselectorall(selectors); parameters selectors a domstring containing one or more selectors to match against.
... obtaining a list of matches to obtain a nodelist of all of the <p> elements contained within the element "mybox": var matches = mybox.queryselectorall("p"); this example returns a list of all <div> elements within "mybox" with a class of either "note" or "alert": var matches = mybox.queryselectorall("div.note, div.alert"); here, we get a list of the document's <p> elements whose immediate
parent element is a div with the class "highlighted" and which are located inside a container whose id is "test".
...And 3 more matches
HTMLElement - Web APIs
et="_top"><rect x="381" y="1" width="110" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="436" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, element, and implements those from documentandelementeventhandlers, elementcssinlinestyle, globaleventhandlers, htmlorforeignelement and toucheventhandlers.
... htmlelement.offsetleft read only returns a double, the distance from this element's left border to its offset
parent's left border.
... htmlelement.offset
parent read only returns a element that is the element from which all offset calculations are currently computed.
...And 3 more matches
HTMLInputElement - Web APIs
top"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlinputelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties properties related to the
parent form form read only htmlformelement object: returns a reference to the
parent <form> element.
...this overrides the action attribute of the
parent form.
...this overrides the enctype attribute of the
parent form.
...And 3 more matches
Window.open() - Web APIs
on firefox and chrome (at least), this only works from the same
parent, ie.
...google chrome (55.0.2883.87 m ) on the other hand will do it only from the same
parent (as if the window was created dependent, which is the "opener").
... in addition to the toolbar buttons, firefox (before 76) will render the tab bar if it is visible, present in the
parent window.
...And 3 more matches
Color picker tool - CSS: Cascading Style Sheets
ateslider, }; })(); 'use strict'; window.addeventlistener("load", function() { colorpickertool.init(); }); var colorpickertool = (function colorpickertool() { /*========== get dom element by id ==========*/ function getelembyid(id) { return document.getelementbyid(id); } function allowdropevent(e) { e.preventdefault(); } /*========== make an element resizable relative to it's
parent ==========*/ var uicomponent = (function uicomponent() { function makeresizable(elem, axis) { var valuex = 0; var valuey = 0; var action = 0; var resizestart = function resizestart(e) { e.stoppropagation(); e.preventdefault(); if (e.button !== 0) return; valuex = e.clientx - elem.clientwidth; valuey = e.clienty - elem.clientheight; document.body.se...
...t.createelement('div'); handle.classname = 'resize-handle'; if (axis === 'width') action = 1; else if (axis === 'height') action = -1; else axis = 'both'; handle.classname = 'resize-handle'; handle.setattribute('data-resize', axis); handle.addeventlistener('mousedown', resizestart); elem.appendchild(handle); }; /*========== make an element draggable relative to it's
parent ==========*/ var makedraggable = function makedraggable(elem, endfunction) { var offsettop; var offsetleft; elem.setattribute('data-draggable', 'true'); var dragstart = function dragstart(e) { e.preventdefault(); e.stoppropagation(); if (e.target.getattribute('data-draggable') !== 'true' || e.target !== elem || e.button !== 0) return; offsetleft = e.c...
...ode); samples[this.uid] = null; nr_samples--; }; var updateui = function updateui() { updatecontainerprop(); var index = 0; var nr = samples.length; for (var i=0; i < nr; i++) if (samples[i] !== null) { samples[i].updateposition(index); index++; } addsamplebutton.updateposition(index); }; var deletesample = function deletesample(e) { trash_can.
parentelement.setattribute('drag-state', 'none'); var location = e.datatransfer.getdata('location'); if (location !== 'picker-samples') return; var sampleid = e.datatransfer.getdata('sampleid'); samples[sampleid].deletesample(); console.log(samples); updateui(); }; var createdropsample = function createdropsample() { var sample = document.createelement('div'); sample.
...And 3 more matches
Consistent list indentation - CSS: Cascading Style Sheets
now we wrap these in a
parent element; in this case, we'll wrap them in an unordered list (i.e., <ul>).
... according to the css box model, the list items' boxes must be displayed within the
parent element's content area.
... since that
parent has no padding or margins yet, we get the situation shown in figure 3.
...And 3 more matches
<area> - HTML: Hypertext Markup Language
permitted
parents any element that accepts phrasing content.
... the <area> element must have an ancestor <map>, but it need not be a direct
parent.
... _
parent: show the resource in the
parent browsing context of the current one, if the current page is inside a frame.
...And 3 more matches
<iframe>: The Inline Frame element - HTML: Hypertext Markup Language
the browsing context that embeds the others is called the
parent browsing context.
... the topmost browsing context — the one with no
parent — is usually the browser window, represented by the window object.
... permitted
parents any element that accepts embedded content.
...And 3 more matches
<input type="image"> - HTML: Hypertext Markup Language
_
parent loads the response into the
parent browsing context of the current one.
... if there is no
parent context, this behaves the same as _self.
... _
parent: load the response into the
parent browsing context of the current one.
...And 3 more matches
Details of the object model - JavaScript
because of this different basis, it can be less ap
parent how javascript allows you to create hierarchies of objects and to have inheritance of properties and their values.
...an instance has exactly the same properties of its
parent class (no more, no less).
...similarly, although the terms
parent, child, ancestor, and descendant do not have formal meanings in javascript; you can use them informally to refer to objects higher or lower in the prototype chain.
...And 3 more matches
super - JavaScript
the super keyword is used to access and call functions on an object's
parent.
... syntax super([arguments]); // calls the
parent constructor.
... super.functionon
parent([arguments]); description when used in a constructor, the super keyword appears alone and must be used before the this keyword is used.
...And 3 more matches
Same-origin policy - Web security
for example, about:blank is often used as a url of new, empty popup windows into which the
parent script writes content (e.g.
... note: when using document.domain to allow a subdomain to access its
parent securely, you need to set document.domain to the same value in both the
parent domain and the subdomain.
... this is necessary even if doing so is simply setting the
parent domain back to its original value.
...And 3 more matches
Axes - XPath
ancestor indicates all the ancestors of the context node beginning with the
parent node and traveling through to the root node.
...attribute and namespace nodes are not included - the
parent of an attribute node is an element node, but attribute nodes are not the children of their
parents.
...attribute and namespace nodes are not included - the
parent of an attribute node is an element node, but attribute nodes are not the children of their
parents.
...And 3 more matches
Layout System Overview - Archive of obsolete content
nsframe: the frame provides a mechanism to navigate to a
parent frame as well as child frames.
... all frames have a
parent except for the root frame.
... the frame is able to provide a reference to its
parent and to its children upon request.
...And 2 more matches
Adding Methods to XBL-defined Elements - Archive of obsolete content
accessing from inside the anonymous content to go the other way, and get the bound element from inside the anonymous content, you can use the getbinding
parent method of the document to get the element that the binding is bound to.
... you can also use the the
parentnode property to go up by a single node, but the getbinding
parent method is useful for a node that is nested several levels deep.
... for example, we could move the show and hide buttons into the xbl file and do the following: example 1: source <binding id="labeledbutton"> <content> <xul:label xbl:inherits="value=title"/> <xul:label xbl:inherits="value"/> <xul:button label="show" oncommand="document.getbinding
parent(this).showtitle(true);"/> <xul:button label="hide" oncommand="document.getbinding
parent(this).showtitle(false);"/> </content> <implementation> <method name="showtitle"> <parameter name="state"/> <body> if (state) { document.getanonymousnodes(this)[0].setattribute("style","visibility: visible"); } else { document.getanonymousnodes(this)[0].setattribute("style","visibility: collapse"); } </body> </method> </implementation...
...And 2 more matches
Modifying a XUL Interface - Archive of obsolete content
the syntax of these functions is as follows:
parent.appendchild(child);
parent.insertbefore(child, referencechild);
parent.replacechild(newchild, oldchild);
parent.removechild(child); it should be fairly straightforward from the function names what these functions do.
...this is used to insert into the middle of a list of children of the
parent element instead of at the end like appendchild() does.
... the replacechild() function removes an existing child and adds a new one in its place at the same position in the list of its
parent element.
...And 2 more matches
display-outside - Archive of obsolete content
the display-outside css property specifies the outer display type of the box generated by an element, dictating how the element participates in its
parent formatting context.
... layout-specific internal types these display types require their
parent and children to be of particular display types.
... for example, a table-row box requires its
parent to be a table row group box and its children to be table-cell boxes.
...And 2 more matches
XInclude - MDN Web Docs Glossary: Definitions of Web-related terms
there must be an xpointer attribute present if "href" is empty an parse is "xml"'); return false; } } else if (href.match(/#$/, '') || href.match(/^#/, '')) { alert('fragment identifiers are disallowed in an xinclude "href" attribute'); return false; } var j; var xinclude
parent = xinclude.
parentnode; try { netscape.security.privilegemanager.enableprivilege('universalxpconnect universalbrowserread'); // necessary with file:///-located files trying to reach external sites if (href !== null) { var response, responsetype; var request = new xmlhttprequest(); request.open('...
...e a single well-formed document response responsenodes = [response.documentelement]; // put in array so can be treated the same way as the above } // prepend any node(s) (as xml) then remove xinclude for (j=0; j < responsenodes.length ; j++) { xinclude
parent.insertbefore(responsenodes[j], xinclude); } xinclude
parent.removechild(xinclude); } else if (responsetype === 'responsetext') { if (encname) { var encodingtype = response.match(pattern); if (encod...
...ingtype) { encodingtype = encodingtype[2]; } else { encodingtype = 'utf-8'; } // need to make a whole new request ap
parently since cannot convert the encoding after receiving it (to know what the encoding was) var request2 = new xmlhttprequest(); request2.overridemimetype('text/plain; charset='+encodingtype); request2.open('get', href, false); request2.setrequestheader('if-modified-since', 'thu, 1 jan 1970 00:00:00 gmt'); ...
...And 2 more matches
Flexbox - Learn web development
the following simple layout requirements are either difficult or impossible to achieve with such tools, in any kind of convenient, flexible way: vertically centering a block of content inside its
parent.
...to do this, we set a special value of display on the
parent element of the elements you want to affect.
... the
parent element that has display: flex set on it (the <section> in our example) is called the flex container.
...And 2 more matches
Advanced form styling - Learn web development
however, this seems to get rid of the icon with focus too, with no ap
parent way to get it back.
... we've applied some global normalizing css to all the controls and their labels, to get them to size in the same way, adopt their
parent font, etc., as mentioned in the previous article: button, label, input, select, progress, meter { display: block; font-family: inherit; font-size: 100%; padding: 0; margin: 0; box-sizing: border-box; width: 100%; padding: 5px; height: 30px; } we also added some uniform shadow and rounded corners to the controls on which it made sense: input[type="text"], input[type="datetime-...
...you'll notice that the options don't inherit the font set on the
parent.
...And 2 more matches
Manipulating documents - Learn web development
parent node: a node which has another node inside it.
... for example, body is the
parent node of section in the above example.
...inside your script element, add the following line: const link = document.queryselector('a'); now we have the element reference stored in a variable, we can start to manipulate it using properties and methods available to it (these are defined on interfaces like htmlanchorelement in the case of <a> element, its more general
parent interface htmlelement, and node — which represents all nodes in a dom).
...And 2 more matches
Advanced Svelte: Reactivity, lifecycle, accessibility - Learn web development
so far, we've seen how components can share data using props, and communicate with their
parents using events and two-way data binding.
...internally svelte will flag todos as changed and remove the ap
parently redundant self-assignment.
... so far we saw how to send information to a component via props, and how a component can communicate with its
parent by emitting events or using two-way data binding.
...And 2 more matches
Accessible Toolkit Checklist
general dialogs/windows/general escape key cancels dialogs and refocuses the previously focused on the
parent window.
...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 iaccessible events get_acc
parent: get the
parent of an iaccessible.
...And 2 more matches
Process scripts
if you're using the addon sdk you can use the remote/
parent module's remoterequire instead.
... you can load a process script by accessing a
parent process message manager and calling its loadprocessscript() function.
... the following code uses the global
parent process message manager, which will load the script into the the chrome process and any child processes: // chrome code let ppmm = cc["@mozilla.org/
parentprocessmessagemanager;1"] .getservice(ci.nsiprocessscriptloader); ppmm.loadprocessscript("chrome://whatever/process-script.js", true); ppmm.addmessagelistener("hello", function(msg) { ...
...And 2 more matches
IPDL Best Practices
use a flag and the generated actordestroy function to control when ipdl functions can be called; see phttpchannel
parent/child for an example.
... run certain kinds of code: manager::allocpprotocol - allocation manager::recvpprotocolconstructor - initialization, protocol deletion (the typeaheadfind protocol uses one-shot protocols like this) actor::recv__delete__ - cleanup, ipdl calls still valid but ill-advised actor::actordestroy - non-ipdl cleanup manager::deallocpprotocol - deallocation one construct to avoid: class protocol
parent { public: ~protocol
parent() { send__delete__(this); } }; class protocolmanager
parent { public: pprotocol
parent* allocpprotocol() { return new protocol
parent(); } bool deallocpprotocol() { return true; } }; nsautoptr<pprotocol
parent>
parent = manager->sendpprotocolconstructor(); while this may look appealing as the ipdl logic is stuffed away in ...
... consider the following protocol: async protocol pasyncquerier { child: pasyncquery(); } async protocol pasyncquery { child: kickoffquery(nsstring query);
parent: returnresult(nsstring result); __delete__(); } in this situation, there is a guaranteed sequence of messages that will be sent.
...And 2 more matches
Anonymous Shared Memory
the intent is to provide a shared memory that is accessbile only by
parent and child processes.
... the file-mapped shared memory requires a protocol for the
parent process and child process to share the memory.
...in the second protocol, the
parent process is responsible for creating the child process; the
parent and child are mutually responsible for passing a filemap string.
...And 2 more matches
Property cache
o---->o---->o---->o ^x ^x' ^object.prototype, perhaps (----> indicates the proto relation) scope chain shadowing guarantee — if at time t0 the object x has shape s and a name lookup for p starting at scope chain head x finds p on an object x' of shape s', where x !== x'; and the lookup called no resolve hooks or non-native lookup ops; and each object examined along the
parent chain, except possibly the one along whose prototype chain x' was found, had no prototype or was a block object; and at time t1 x has shape s and x' has shape s'; and no shape-regenerating gc occurred; then at t1 the lookup for p in x still finds the same property on x'.
... ↓ o ----> o ----> o ----> o ^global ^x' (----> indicates proto as before; downward arrows ↓ indicate the
parent relation) method guarantee — if at time t0 the object x has shape s; and x has an own property p that is a method property (trans
parently joined function); and at time t1 an object y has shape s; and no shape-regenerating gc occurred; then at time t1 y's own property p is the same method property.
... the shape of an object does not cover: anything about the object's prototype other than its identity; anything about the object's
parent; obj->freeslot, which can be different for same-shaped objects if they have a jsclass.reserveslots hook (bug 535416); anything about the values of the object's own properties, beyond what the method guarantee and the branded object guarantee say about functions.
...And 2 more matches
JS_NewFunction
snative call, unsigned nargs, unsigned flags, const char *name); // obsolete since jsapi 44 jsfunction * js_newfunctionbyid(jscontext *cx, jsnative call, unsigned nargs, unsigned flags, js::handle<jsid> id); // obsolete since jsapi 39 jsfunction * js_newfunction(jscontext *cx, jsnative call, unsigned nargs, unsigned flags, js::handle<jsobject*>
parent, const char *name); jsfunction * js_newfunctionbyid(jscontext *cx, jsnative call, unsigned nargs, unsigned flags, js::handle<jsobject*>
parent, js::handle<jsid> id); // added in spidermonkey 17 name type description cx jscontext * the context in which to create the new function.
...
parent js::handle<jsobject*> pointer to the
parent object for this function.
... if this is null, a default
parent object is used.
...And 2 more matches
nsIDownloadManager
void addlistener(in nsidownloadprogresslistener alistener); void canceldownload(in unsigned long aid); void cleanup(); void endbatchupdate(); obsolete since gecko 1.9.1 void flush(); obsolete since gecko 1.8 nsidownload getdownload(in unsigned long aid); void onclose(); obsolete since gecko 1.9.1 void open(in nsidomwindow a
parent, in nsidownload adownload); obsolete since gecko 1.9.1 void openprogressdialogfor(in nsidownload adownload, in nsidomwindow a
parent, in boolean acanceldownloadonclose); obsolete since gecko 1.9.1 void pausedownload(in unsigned long aid); void removedownload(in unsigned long aid); void removedownloadsbytimeframe(in long long abegintime, in long long aendtime); ...
... download_blocked_
parental 6 the download has been blocked, either by
parental controls or the virus scanner determining that a file is infected and cannot be cleaned.
... void open( in nsidomwindow a
parent, in nsidownload adownload ); parameters a
parent the
parent, or opener, of the front end.
...And 2 more matches
The libmime module
struct foobarclass {
parentclass superclass; ...any callbacks or class-variables...
... struct foobar {
parent parent; ...any instance variables...
... }; then, in the corresponding .c file, the following structure is used: class definition first we pull in the appropriate include file (which includes all necessary include files for the
parent classes) and then we define the class object using the mimedefclass macro: #include "foobar.h" #define mime_superclass
parentlclass mimedefclass(foobar, foobarclass, foobarclass, &mime_superclass); the definition of mime_superclass is just to move most of the knowlege of the exact class hierarchy up to the file's header, instead of it being scattered through the various methods; see below.
...And 2 more matches
CanvasRenderingContext2D.globalAlpha - Web APIs
syntax ctx.globalalpha = value; options value a number between 0.0 (fully trans
parent) and 1.0 (fully opaque), inclusive.
... examples drawing translucent shapes this example uses the globalalpha property to draw two semi-trans
parent rectangles.
... html <canvas id="canvas"></canvas> javascript const canvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); ctx.globalalpha = 0.5; ctx.fillstyle = 'blue'; ctx.fillrect(10, 10, 100, 100); ctx.fillstyle = 'red'; ctx.fillrect(50, 50, 100, 100); result overlaying trans
parent shapes this example illustrates the effect of overlaying multiple trans
parent shapes on top of each other.
...And 2 more matches
CharacterData - Web APIs
="_top"><rect x="266" y="1" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="331" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">characterdata</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, node, and implements the childnode and nondocumenttypechildnode interface.
... nondocumenttypechildnode.nextelementsibling read only returns the element immediately following the specified one in its
parent's children list, or null if the specified element is the last one in the list.
... nondocumenttypechildnode.previouselementsibling read only returns the element immediately prior to the specified one in its
parent's children list, or null if the specified element is the first one in the list.
...And 2 more matches
ChildNode.after() - Web APIs
the childnode.after() method inserts a set of node or domstring objects in the children list of this childnode's
parent, just after this childnode.
... examples inserting an element var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); var span = document.createelement("span"); child.after(span); console.log(
parent.outerhtml); // "<div><p></p><span></span></div>" inserting text var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); child.after("text"); console.log(
parent.outerhtml); // "<div><p></p>text</div>" in...
...serting an element and text var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); var span = document.createelement("span"); child.after(span, "text"); console.log(
parent.outerhtml); // "<div><p></p><span></span>text</div>" childnode.after() is unscopable the after() method is not scoped into the with statement.
...And 2 more matches
DedicatedWorkerGlobalScope - Web APIs
properties this interface inherits properties from the workerglobalscope interface, and its
parent eventtarget, and therefore implements properties from windowtimers, windowbase64, and windoweventhandlers.
... event handlers this interface inherits event handlers from the workerglobalscope interface, and its
parent eventtarget, and therefore implements event handlers from windowtimers, windowbase64, and windoweventhandlers.
... methods this interface inherits methods from the workerglobalscope interface, and its
parent eventtarget, and therefore implements methods from windowtimers, windowbase64, and windoweventhandlers.
...And 2 more matches
Document - Web APIs
the document interface is extended with the
parentnode interface:
parentnode.childelementcount read only returns the number of children of this
parentnode which are elements.
...
parentnode.children read only returns a live htmlcollection containing all of the element objects that are children of this
parentnode, omitting all of its non-element nodes.
...
parentnode.firstelementchild read only returns the first node which is both a child of this
parentnode and is also an element, or null if there is none.
...And 2 more matches
SVGSVGElement - Web APIs
y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="196" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsvgelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggraphicselement and also implements the ones from svgzoomandpan, svgfittoviewbox, and windoweventhandlers.
...the position and size values are unitless values in the coordinate system of the
parent element.
... if no
parent element exists (i.e., <svg> element represents the root of the document tree), if this svg document is embedded as part of another document (e.g., via the html <object> element), then the position and size are unitless values in the coordinate system of the
parent document.
...And 2 more matches
Worker - Web APIs
workers may themselves spawn new workers, as long as those workers are hosted at the same origin as the
parent page.
... properties inherits properties from its
parent, eventtarget, and implements properties from abstractworker.
...when a message is sent to the
parent document from the worker via dedicatedworkerglobalscope.postmessage.
...And 2 more matches
ARIA: tab role - Accessibility
to handle changing the active tab and tabpanel, we have a function that takes in the event, gets the element that triggered the event, the triggering element's
parent element, and its grand
parent element.
... we then find all tabs with aria-selected=true inside the
parent element and sets it to false, then sets the triggering element's aria-selected to true.
... after that, we find all tabpanel elements in the grand
parent element, make them all hidden, and finally select the element whose id is equal to the triggering tab's aria-controls and removes the hidden attribute, making it visible.
...And 2 more matches
Mastering margin collapsing - CSS: Cascading Style Sheets
no content separating
parent and descendants if there is no border, padding, inline part, block formatting context created, or clearance to separate the margin-top of a block from the margin-top of one or more of its descendant blocks; or no border, padding, inline content, height, min-height, or max-height to separate the margin-bottom of a block from the margin-bottom of one or more of its descendant blocks, then those ma...
...the collapsed margin ends up outside the
parent.
... these rules apply even to margins that are zero, so the margin of a descendant ends up outside its
parent (according to the rules above) whether or not the
parent's margin is zero.
...And 2 more matches
Basic Concepts of grid layout - CSS: Cascading Style Sheets
as we saw in our earlier examples, once a grid is defined as a
parent the child items will lay themselves out in one cell each of the defined grid.
...r: #fff4e6; display: grid; grid-template-columns: repeat(3, 1fr); } .box { border: 2px solid #ffa94d; border-radius: 5px; background-color: #ffd8a8; padding: 1em; color: #d9480f; } .box1 { grid-column: 1 / 4; } .nested { border: 2px solid #ffec99; border-radius: 5px; background-color: #fff9db; padding: 1em; } in this case the nested grid has no relationship to the
parent.
... 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.
...And 2 more matches
Using CSS gradients - CSS: Cascading Style Sheets
<div class="layered-image"></div> div { width: 300px; height: 150px; } .layered-image { background: linear-gradient(to right, trans
parent, mistyrose), url("https://mdn.mozillademos.org/files/15525/critters.png"); } stacked gradients you can even stack gradients with other gradients.
...this only makes sense if the gradients are partially trans
parent allowing subsequent gradients to show through the trans
parent areas, or if you include different background-sizes, optionally with different background-position property values, for each gradient image.
...the second background property declaration using the multiple position color stop syntax: <div class="plaid-gradient"></div> div { width: 200px; height: 200px; } .plaid-gradient { background: repeating-linear-gradient(90deg, trans
parent, trans
parent 50px, rgba(255, 127, 0, 0.25) 50px, rgba(255, 127, 0, 0.25) 56px, trans
parent 56px, trans
parent 63px, rgba(255, 127, 0, 0.25) 63px, rgba(255, 127, 0, 0.25) 69px, trans
parent 69px, trans
parent 116px, rgba(255, 206, 0, 0.25) 116px, rgba(255, 206, 0, 0.25) 166px), repeating-linear-gradient(0deg, trans
parent, trans
parent 50px, rgba(25...
...And 2 more matches
The stacking context - CSS: Cascading Style Sheets
importantly, the z-index values of its child stacking contexts only have meaning in this
parent.
... stacking contexts are treated atomically as a single unit in the
parent stacking context.
... each stacking context is self-contained: after the element's contents are stacked, the whole element is considered in the stacking order of the
parent stacking context.
...And 2 more matches
text-align - CSS: Cascading Style Sheets
syntax /* keyword values */ text-align: left; text-align: right; text-align: center; text-align: justify; text-align: justify-all; text-align: start; text-align: end; text-align: match-
parent; /* character-based alignment in a table column */ text-align: "."; text-align: "." center; /* block alignment values (non-standard syntax) */ text-align: -moz-center; text-align: -webkit-center; /* global values */ text-align: inherit; text-align: initial; text-align: unset; the text-align property is specified in one of the following ways: using the keyword values start, end, left, righ...
...t, center, justify, justify-all, or match-
parent.
... match-
parent similar to inherit, but the values start and end are calculated according to the
parent's direction and are replaced by the appropriate left or right value.
...And 2 more matches
<form> - HTML: Hypertext Markup Language
permitted
parents any element that accepts flow content implicit aria role form if the form has an accessible name, otherwise no corresponding role permitted aria roles search, none or presentation dom interface htmlformelement attributes this element includes the global attributes.
... _
parent: load into the
parent browsing context of the current one.
... if no
parent, behaves the same as _self.
...And 2 more matches
<li> - HTML: Hypertext Markup Language
it must be contained in a
parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>).
... tag omission the end tag can be omitted if the list item is immediately followed by another <li> element, or if there is no more content in its
parent element.
... permitted
parents an <ul>, <ol>, or <menu> element.
...And 2 more matches
HTML documentation index - HTML: Hypertext Markup Language
by default, a block-level element occupies the entire space of its
parent element (container), thereby creating a "block." this article helps to explain what this means.
... 66 <basefont> element, fonts, html, layout, obsolete, reference, style, web, basefont the obsolete html base font element (<basefont>) sets a default font face, size, and color for the other elements which are descended from its
parent element.
... 100 <figcaption>: the figure caption element element, html, html grouping content, reference the html <figcaption> or figure caption element represents a caption or legend describing the rest of the contents of its
parent <figure> element.
...And 2 more matches
constructor - JavaScript
if your class is a base class, the default constructor is empty: constructor() {} if your class is a derived class, the default constructor calls the
parent constructor, passing along any arguments that were provided: constructor(...args) { super(...args); } that enables code like this to work: class validationerror extends error { printcustomermessage() { return `validation failed :-( (details: ${this.message})`; } } try { throw new validationerror("not a valid phone number"); } catch (error) { if (error instanceof validationerr...
...the default constructor then takes care of initializing the
parent error from the argument it is given.
... however, if you provide your own constructor, and your class derives from some
parent class, then you must explicitly call the
parent class constructor using super.
...And 2 more matches
Arrow function expressions - JavaScript
syntax basic syntax (param1, param2, …, paramn) => { statements } (param1, param2, …, paramn) => expression // equivalent to: => { return expression; } //
parentheses are optional when there's only one parameter name: (singleparam) => { statements } singleparam => { statements } // the parameter list for a function with no parameters should be written with a pair of
parentheses.
... () => { statements } advanced syntax //
parenthesize the body of a function to return an object literal expression: params => ({foo: bar}) // rest parameters and default parameters are supported (param1, param2, ...rest) => { statements } (param1 = defaultvalue1, param2, …, paramn = defaultvaluen) => { statements } // destructuring within the parameter list is also supported var f = ([a, b] = [1, 2], {x: c} = {x: a + b}) => a + b + c; f(); // 6 description see also "es6 in depth: arrow functions" on hacks.mozilla.org.
...ar elements = [ 'hydrogen', 'helium', 'lithium', 'beryllium' ]; // this statement returns the array: [8, 6, 7, 9] elements.map(function(element) { return element.length; }); // the regular function above can be written as the arrow function below elements.map((element) => { return element.length; }); // [8, 6, 7, 9] // when there is only one parameter, we can remove the surrounding
parentheses elements.map(element => { return element.length; }); // [8, 6, 7, 9] // when the only statement in an arrow function is `return`, we can remove `return` and remove // the surrounding curly brackets elements.map(element => element.length); // [8, 6, 7, 9] // in this case, because we only need the length property, we can use destructuring parameter: // notice that the `length` corresponds ...
...And 2 more matches
RegExp.$1-$9 - JavaScript
the legacy regexp $1, $2, $3, $4, $5, $6, $7, $8, $9 properties are static and read-only properties of regular expressions that contain
parenthesized substring matches.
... the number of possible
parenthesized substrings is unlimited, but the regexp object can only hold the first nine.
... you can access all
parenthesized substrings through the returned array's indexes.
...And 2 more matches
Index - XPath
attribute and namespace nodes are not included - the
parent of an attribute node is an element node, but attribute nodes are not the children of their
parents.
...attribute and namespace nodes are not included - the
parent of an attribute node is an element node, but attribute nodes are not the children of their
parents.
... 10 following-sibling axe, xpath the following-sibling axis indicates all the nodes that have the same
parent as the context node and appear after the context node in the source document.
...And 2 more matches
Finding window handles - Archive of obsolete content
typically the top level browser window hwnd has no children, although if there are windowed plugins (such as flash) visible in the window, they will have hwnds whose
parent is the top level browser window hwnd.
... like this hwnd gethwnd(nsibasewindow *window) { nscomptr< nsiwidget > widget; window->getmainwidget(getter_addrefs(widget)); if (widget) return (hwnd) widget->getnativedata(ns_native_window); } yet another way to find a window handle (
parent window handle) this method is for people who want to get the top level window hwnd from the window object in javascript.
...notice that by using only the c++ part of this code will get the the
parent window handle of the nsibasewindow you give as a param.
....getinterface(components.interfaces.nsiwebnavigation) .queryinterface(components.interfaces.nsidocshelltreeitem) .treeowner .queryinterface(components.interfaces.nsiinterfacerequestor) .getinterface(components.interfaces.nsibasewindow); then in c++ part, a function take nsibasewindow as param hwnd get
parentwindowhwnd(nsibasewindow *window) { nativewindow hwnd; nsresult rv = window->get
parentnativewindow(&hwnd); if (ns_failed(rv)) return null; return (hwnd)hwnd; } that's it; use with caution!
JavaScript Daemons Management - Archive of obsolete content
cos(oletter.pos) * ndist * 5 + "px"; } } function prepare () { // build letters list // http://tyleregeto.com/text-animation-in-javascript this.textcontent = ""; aletters.length = 0; for (var ospan, oletter, nletter = 0, nlen = stext.length; nletter < nlen; nletter++) { ospan = document.createelement("span"); ospan.textcontent = stext[nletter]; oletter = { "elem": ospan, "
parent": this }; aletters.push(oletter); oletter.pos = math.random() * 50; oletter.elem.style.position = "relative"; this.appendchild(ospan); } } var nmaxdist = 25, aletters = [], stext = "do you feel lucky, punk?", orecompose = new daemon(document.createelement("p"), perform, 33, 30, prepare); onload = function () { orecompose.owner.id = "perform-me"; document.body.appendchi...
..."3","4","5","6","7","8","9"], "target": document.createelement("p"), "create": function () { // build letters list this.target.textcontent = ""; this.letters.length = 0; for (var ospan, oletter, nletter = 0, nlen = stext.length; nletter < nlen; nletter++) { ospan = document.createelement("span"); ospan.textcontent = stext[nletter]; oletter = { "elem": ospan, "
parent": this.target }; this.letters.push(oletter); oletter.index = this.numletters; oletter.elem.style.position = "relative"; oletter.val = oletter.elem.textcontent; this.numletters++; this.target.appendchild(ospan); } }, "perform": function (nindex, nlength, bbackw) { for (var oletter, nletter = 0; nletter < this.letters.length; nletter++) { olette...
...cos(oletter.pos) * ndist * 5 + "px"; } } function prepare () { // build letters list // http://tyleregeto.com/text-animation-in-javascript this.textcontent = ""; aletters.length = 0; for (var ospan, oletter, nletter = 0, nlen = stext.length; nletter < nlen; nletter++) { ospan = document.createelement("span"); ospan.textcontent = stext[nletter]; oletter = { "elem": ospan, "
parent": this }; aletters.push(oletter); oletter.pos = math.random() * 50; oletter.elem.style.position = "relative"; this.appendchild(ospan); } } var nmaxdist = 25, aletters = [], stext = "do you feel lucky, punk?", orecompose = new daemon.safe(document.createelement("p"), perform, 33, 30, prepare); onload = function () { orecompose.owner.id = "perform-me"; document.body.appe...
..."3","4","5","6","7","8","9"], "target": document.createelement("p"), "create": function () { // build letters list this.target.textcontent = ""; this.letters.length = 0; for (var ospan, oletter, nletter = 0, nlen = stext.length; nletter < nlen; nletter++) { ospan = document.createelement("span"); ospan.textcontent = stext[nletter]; oletter = { "elem": ospan, "
parent": this.target }; this.letters.push(oletter); oletter.index = this.numletters; oletter.elem.style.position = "relative"; oletter.val = oletter.elem.textcontent; this.numletters++; this.target.appendchild(ospan); } }, "perform": function (nindex, nlength, bbackw) { for (var oletter, nletter = 0; nletter < this.letters.length; nletter++) { olette...
Custom XUL Elements with XBL - Archive of obsolete content
tent> <xul:hbox> <xul:image class="xulshoolhello-person-image" xbl:inherits="src=image" /> <xul:vbox flex="1"> <xul:label xbl:inherits="value=name" /> <xul:description xbl:inherits="value=greeting" /> </xul:vbox> <xul:vbox> <xul:button label="&xulshoolhello.remove.label;" accesskey="&xulshoolhello.remove.accesskey;" oncommand="document.getbinding
parent(this).remove(event);" /> </xul:vbox> </xul:hbox> </content> our element is very simple, displaying an image, a couple of text lines and a button.
... the oncommand attribute of the button has some code you've probably never seen before: document.getbinding
parent(this).
... methods our "person" binding has a single method that removes the item from the list: <method name="remove"> <parameter name="aevent" /> <body><![cdata[ this.
parentnode.removechild(this); ]]></body> </method> as you can see, it's very easy to define a method and the parameters it takes.
...the method uses the
parent node to remove the person node.
Migrate apps from Internet Explorer to Mozilla - Archive of obsolete content
parentnode returns the
parent node of the current node.
... createelement( atagname ) creates and returns a new and
parentless dom node of the type specified by atagname.
... createtextnode( atextvalue ) creates and returns a new and
parentless dom textnode with the data value specified by atextvalue.
...the w3c standard says that, in this case, the inner div overflows to the bottom since the inner content is taller than its
parent.
Venkman Internals - Archive of obsolete content
filecontainerrecord - list of script tags found in the
parent record's window.document property.
...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 breakpoint, and |
parentbp| is an optional "future breakpoint" object to use as the
parent for this breakpoint.
... scriptinstance all scriptwrappers are
parented by a single scriptinstance, which holds all of the scriptwrappers for a particular url.
...to deal with this, all scriptinstances are
parented by a single scriptmanager.
More Tree Features - Archive of obsolete content
the tree will draw the open and close icons to open and close a
parent item as well as lines connecting the children to their
parents.
...to create a set of nested rows, all we need to do is add a second treechildren element inside the
parent treeitem.
...when the user expands and collapses the
parent, the view's toggleopenstate function will be called to toggle the item between open and closed.
...the former creates the data for the
parent row and the latter contains the child items.
XUL element attributes - Archive of obsolete content
if this attribute is not specified, the value is inherited from the
parent of the element.
... always mouse events are trans
parent to the element.
... ordinal type: string (representing an integer) an integer which specifies the position of the element within its
parent.
...the actual displayed width may be different if the element or its contents have a minimum or maximum width, or the size is adjusted by the flexibility or alignment of its
parent.
menuitem - Archive of obsolete content
attributes acceltext, accesskey, allowevents, autocheck, checked, closemenu, command, crop, description, disabled, image, key, label, name, selected, tabindex, type, validate, value properties accessibletype, accesskey, command, control, crop, disabled, image, label, labelelement,
parentcontainer, selected, tabindex, value style classes menuitem-iconic, menuitem-non-iconic examples <menulist> <menupopup> <menuitem label="option 1" value="1"/> <menuitem label="option 2" value="2"/> <menuitem label="option 3" value="3"/> <menuitem label="option 4" value="4"/> </menupopup> </menulist> attributes acceltext type: string text tha...
... auto this, the default value if the closemenu attribute is not specified, closes up the menu and all
parent menus.
... single the menu the item is contained within is closed, but the
parent menus remain open.
...
parentcontainer type: menu element read only property that returns the containing menu element, or null if there isn't a containing menu.
NPN_SetValue - Archive of obsolete content
variable values the function can set: nppvpluginwindowbool: sets windowed/windowless mode for plugin display; true=windowed, false=windowless nppvplugintrans
parentbool: sets trans
parent mode for display of a plugin; true=trans
parent, false=opaque nppvjavaclass nppvpluginwindowsize nppvplugintimerinterval nppvpluginscriptableinstance nppvpluginscriptableiid nppvjavascriptpushcallerbool: specifies whether you are pushing or popping the jscontext off the stack nppvpluginkeeplibraryinmemory: tells browser that the plugin dll should live longer tha...
... nppvplugintrans
parentbool (windows and unix) specifies that a plugin is either opaque or trans
parent.
... to specify an opaque mode, the plugin calls npn_setvalue with nppvplugintrans
parentbool for the variable parameter and false for the value parameter.
... to specify a trans
parent mode, the value parameter should be set to true.
Index - MDN Web Docs Glossary: Definitions of Web-related terms
18 alpha (alpha channel) alpha, alpha channel, drawing, glossary, graphics, translucency, translucent, transparency, trans
parent, webgl, webxr, channel, color, pixel colors are represented in digital form as a collection of numbers, each representing the strength or intensity level of a given component of the color.
... 154 flex container css, glossary, flex container, flexbox a flexbox layout is defined using the flex or inline-flex values of the display property on the
parent item.
... 316
parent object codingscripting, glossary, needscontent the object to which a given property or method belongs.
...scopes can also be layered in a hierarchy, so that child scopes have access to
parent scopes, but not vice versa.
Cascade and inheritance - Learn web development
also significant here is the concept of inheritance, which means that some css properties by default inherit values set on the current element's
parent element, and some don't.
... inheritance inheritance also needs to be understood in this context — some css property values set on
parent elements are inherited by their child elements, and some aren't.
... some properties do not inherit — for example if you set a width of 50% on an element, all of its descendants do not get a width of 50% of their
parent's width.
... inherit sets the property value applied to a selected element to be the same as that of its
parent element.
Normal Flow - Learn web development
by default, a block level element's content is 100% of the width of its
parent element, and as tall as its content.
...by default, block-level elements are laid out in the block flow direction, based on the
parent's writing mode (initial: horizontal-tb) — each one will appear on a new line below the last one, and they will be separated by any margin that is set on them.
... inline elements behave differently — they don't appear on new lines; instead, they sit on the same line as one another and any adjacent (or wrapped) text content, as long as there is space for them to do so inside the width of the
parent block level element.
...my adjacent block level elements sit on new lines below me.</p> <p>by default we span 100% of the width of our
parent element, and we are as tall as our child content.
Fundamental text and font styling - Learn web development
ems: 1 em is equal to the font size set on the
parent element of the current element we are styling (more specifically, the width of a capital letter m contained inside the
parent element.) this can become tricky to work out if you have a lot of nested elements with different font sizes set, but it is doable, as you'll see below.
...<html>), not the
parent element.
... the font-size of an element is inherited from that element's
parent element.
...this has many values available in case you have many font variants available (such as -light, -normal, -bold, -extrabold, -black, etc.), but realistically you'll rarely use any of them except for normal and bold: normal, bold: normal and bold font weight lighter, bolder: sets the current element's boldness to be one step lighter or heavier than its
parent element's boldness.
How can we design for all types of users? - Learn web development
relative units also called proportional units, relative units are computed relative to a
parent element.
...if no
parent can be found, the default font size within the browser is considered as the base size for the calculation (usually the equivalent of 16 pixels).
...h ems: body { font-size:1em; } /* 1em = 100% of the browser's base font size, so in most cases this will render as 16 pixels */ h1 { font-size:2em; } /* twice the size of the body, thus 32 pixels */ span.subheading { font-size:0.5em; } /* half the size of the h1, thus 16 pixels to come back to the original size */ as you can see, the math quickly gets daunting when you have to keep track of the
parent, the
parent's
parent, the
parent's
parent's
parent, and so on.
...this unit is relative to the root element's size and not to any other
parent.
Introduction to events - Learn web development
bubbling and capturing explained when an event is fired on an element that has
parent elements (in this case, the <video> has the <div> as a
parent), modern browsers run two different phases — the capturing phase and the bubbling phase.
... event delegation bubbling also allows us to take advantage of event delegation — this concept relies on the fact that if you want some code to run when you select any one of a large number of child elements, you can set the event listener on their
parent and have events that happen on them bubble up to their
parent rather than having to set the event listener on every child individually.
... remember, bubbling involves checking the element the event is fired on for an event handler first, then moving up to the element's
parent, etc.
... a good example is a series of list items — if you want each one to pop up a message when selected, you can set the click event listener on the
parent <ul>, and events will bubble from the list items to the <ul>.
Functions — reusable blocks of code - Learn web development
pretty much anytime you make use of a javascript structure that features a pair of
parentheses — () — and you're not using a common built-in language structure like a for loop, while or do...while loop, or if...else statement, you are making use of a function.
...anytime you saw a custom name with
parentheses straight after it, you were using a custom function.
...this is done by including the name of the function in the code somewhere, followed by
parentheses.
...again, this looks something like this: mybutton.onclick = function() { alert('hello'); // i can put as much code // inside here as i want } function parameters some functions require parameters to be specified when you are invoking them — these are values that need to be included inside the function
parentheses, which it needs to do its job properly.
Working with Svelte stores - Learn web development
in this case, the alert component is independent from the rest — it is not a
parent or child of any other — so the messages don't fit into the component hierarchy.
...in all these cases we were dealing with communication between
parent and child components.
... first we need some way for our todos component to give back the updated todos to its
parent.
...app.svelte is completely trans
parent in terms of what kind of store we are using.
Accessibility API cross-reference
composite (abstract role) a large perceivable region that contains information about the
parent document such as copyright, authors' names etc.
... none, presentation <private> or perhaps <artifact> a section whose content is
parenthetic or ancillary to the main content of the resource.
...aria requires the
parent to have role radiogroup radiobutton radio_button radio_button radio <input type=radio> a container for a a group of radio buttons radiogroup expressed by giving each radio button the same value name attribute represents the an row in a table row n/a n/a row <tr> a structure containing on...
... n/a expandable expandable implied by the presence of the aria-expanded attribute, regardless of value can extend selection extselectable n/a n/a not clipped to boundary of
parent, does not auto-move with
parent floating n/a n/a identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.
JS_CloneFunctionObject
syntax jsobject * js_clonefunctionobject(jscontext *cx, jsobject *funobj, jsobject *
parent); name type description cx jscontext * pointer to a js context from which to derive runtime information.
...
parent jsobject * the new function's
parent.
...the new object has the same code and argument list as funobj, but uses
parent as its enclosing scope.
...js_clonefunctionobject takes care to choose a prototype that shares a global object with the given
parent whenever possible.
JS_NewRuntime
syntax jsruntime * js_newruntime(uint32_t maxbytes, uint32_t maxnurserybytes = js::defaultnurserybytes, jsruntime *
parentruntime = nullptr); jsruntime * js_newruntime(uint32_t maxbytes, jsusehelperthreads usehelperthreads, jsruntime *
parentruntime = nullptr); // deprecated since jsapi 32 name type description maxbytes uint32 maximum number of allocated bytes after which garbage collection is run.
...added in spidermonkey 38
parentruntime jsruntime * the topmost
parent or nullptr .
...if
parentruntime is specified, the resulting runtime shares significant amounts of read-only state (the self-hosting and initial atoms compartments).
... see also mxr id search for js_newruntime js_init js_destroyruntime js_shutdown bug 714050 - added usehelperthreads parameter bug 964059 - added
parentruntime parameter bug 941805 - removed usehelperthreads parameter bug 1034621 - added maxnurserybytes parameter bug 1286795 - js_newruntime is renamed to js_newcontext ...
nsIAccessible
nsiaccessible.
parent to get the
parent accessible nsiaccessible.nextsibling, nsiaccessible.previoussibling to get sibling accessibles 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.indexin
parent to get accessible inde...
...x in its
parent.
... attributes
parent parent node in accessible tree.
... indexin
parent the 0-based index of this accessible in its
parent's list of children, or -1 if this accessible does not have a
parent.
nsIAccessibleDocument
you can also get one from nsiaccessnode.getaccessibledocument() or nsiaccessibleevent.getaccessibledocument() method overview nsiaccessible getaccessiblein
parentchain(in nsidomnode adomnode, in boolean acancreate); obsolete since gecko 2.0 nsiaccessnode getcachedaccessnode(in voidptr auniqueid); native code only!
... methods getaccessiblein
parentchain() obsolete since gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) returns the first accessible
parent of a dom node.
... nsiaccessible getaccessiblein
parentchain( in nsidomnode adomnode, in boolean acancreate ); parameters adomnode the dom node we need an accessible for.
...otherwise, it will return the first cached accessible in the
parent chain.
nsIWindowCreator
inherits from: nsisupports last changed in gecko 0.9.6 method overview nsiwebbrowserchrome createchromewindow(in nsiwebbrowserchrome
parent, in pruint32 chromeflags); methods createchromewindow() create a new window.
...nsiwebbrowserchrome createchromewindow( in nsiwebbrowserchrome
parent, in pruint32 chromeflags ); parameters
parent the nsiwebbrowserchrome of the
parent window, if any.
... null if no
parent exists.
... the newly created window should be made a child/dependent window of the
parent, if any (and if the concept applies to the underlying os).
ChildNode.before() - Web APIs
the childnode.before() method inserts a set of node or domstring objects in the children list of this childnode's
parent, just before this childnode.
... examples inserting an element var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); var span = document.createelement("span"); child.before(span); console.log(
parent.outerhtml); // "<div><span></span><p></p></div>" inserting text var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); child.before("text"); console.log(
parent.outerhtml); // "<div>text<p></p></div>" ...
... inserting an element and text var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); var span = document.createelement("span"); child.before(span, "text"); console.log(
parent.outerhtml); // "<div><span></span>text<p></p></div>" childnode.before() is unscopable the before() method is not scoped into the with statement.
...argitem : document.createtextnode(string(argitem))); }); this.
parentnode.insertbefore(docfrag, this); } }); }); })([element.prototype, characterdata.prototype, documenttype.prototype]); specification specification status comment domthe definition of 'childnode.before()' in that specification.
ChildNode.replaceWith() - Web APIs
the childnode.replacewith() method replaces this childnode in the children list of its
parent with a set of node or domstring objects.
... examples using replacewith() var
parent = document.createelement("div"); var child = document.createelement("p");
parent.appendchild(child); var span = document.createelement("span"); child.replacewith(span); console.log(
parent.outerhtml); // "<div><span></span></div>" childnode.replacewith() is unscopable the replacewith() method is not scoped into the with statement.
... with(node) { replacewith("foo"); } // referenceerror: replacewith is not defined polyfill you can polyfill the replacewith() method in internet explorer 10+ and higher with the following code: function replacewithpolyfill() { 'use-strict'; // for safari, and ie > 10 var
parent = this.
parentnode, i = arguments.length, currentnode; if (!
parent) return; if (!i) // if there are no arguments
parent.removechild(this); while (i--) { // i-- decrements i and returns the value of i before the decrement currentnode = arguments[i]; if (typeof currentnode !== 'object'){ currentnode = this.ownerdocument.createtextnode(currentnode); } else if (currentnode.
parentnode){ currentnode.
parentnode.removechild(currentnode); ...
...} // the value of "i" below is after the decrement if (!i) // if currentnode is the first argument (currentnode === arguments[0])
parent.replacechild(currentnode, this); else // if currentnode isn't the first
parent.insertbefore(currentnode, this.nextsibling); } } if (!element.prototype.replacewith) element.prototype.replacewith = replacewithpolyfill; if (!characterdata.prototype.replacewith) characterdata.prototype.replacewith = replacewithpolyfill; if (!documenttype.prototype.replacewith) documenttype.prototype.replacewith = replacewithpolyfill; specification specification status comment domthe definition of 'childnode.replacewith()' in that specification.
Element.closest() - Web APIs
the closest() method traverses the element and its
parents (heading toward the document root) until it finds a node that matches the provided selector string.
...3">here is div-03</div> </div> </div> </article> javascript var el = document.getelementbyid('div-03'); var r1 = el.closest("#div-02"); // returns the element with the id=div-02 var r2 = el.closest("div div"); // returns the closest ancestor which is a div in div, here it is the div-03 itself var r3 = el.closest("article > div"); // returns the closest ancestor which is a div and has a
parent article, here it is the div-01 var r4 = el.closest(":not(div)"); // returns the closest ancestor which is not a div, here it is the outmost article polyfill for browsers that do not support element.closest(), but carry support for element.matches() (or a prefixed equivalent, meaning ie9+), a polyfill exists: if (!element.prototype.matches) { element.prototype.matches = element.prototype...
....msmatchesselector || element.prototype.webkitmatchesselector; } if (!element.prototype.closest) { element.prototype.closest = function(s) { var el = this; do { if (element.prototype.matches.call(el, s)) return el; el = el.
parentelement || el.
parentnode; } while (el !== null && el.nodetype === 1); return null; }; } however, if you really do require ie 8 support, then the following polyfill will do the job very slowly, but eventually.
... if (window.element && !element.prototype.closest) { element.prototype.closest = function(s) { var matches = (this.document || this.ownerdocument).queryselectorall(s), i, el = this; do { i = matches.length; while (--i >= 0 && matches.item(i) !== el) {}; } while ((i < 0) && (el = el.
parentelement)); return el; }; } specifications specification status comment domthe definition of 'element.closest()' in that specification.
Element - Web APIs
arget="_top"><rect x="266" y="1" width="75" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="303.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">element</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent interface, node, and by extension that interface's
parent, eventtarget.
... it implements the properties of
parentnode, childnode, nondocumenttypechildnode, and animatable.
... methods inherits methods from its
parents node, and its own
parent, eventtarget, and implements those of
parentnode, childnode, nondocumenttypechildnode, and animatable.
... childnode.remove() removes the element from the children list of its
parent.
FileSystemDirectoryEntry - Web APIs
if you try creating a directory using a full path that includes
parent directories that do not exist yet, an error is returned.
... so create the hierarchy by recursively adding a new path after creating the
parent directory.
... //directoryentry.isfile === false //directoryentry.isdirectory === true //directoryentry.name === 'documents' //directoryentry.fullpath === '/documents' }, onerror); } // opening a file system with temporary storage window.requestfilesystem(temporary, 1024*1024 /*1mb*/, onfs, onerror); properties this interface has no properties of its own, but inherits properties from its
parent interface, filesystementry.
... methods this interface inherits methods from its
parent interface, filesystementry.
HTMLStyleElement - Web APIs
it inherits properties and methods from its
parent, htmlelement, and from linkstyle.
...op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlstyleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement, and implements linkstyle.
... linkstyle.sheet read only returns the stylesheet object associated with the given element, or null if there is none htmlstyleelement.scoped is a boolean value indicating if the element applies to the whole document (false) or only to the
parent's sub-tree (true).
... methods no specific method; inherits properties from its
parent, htmlelement, and linkstyle.
NonDocumentTypeChildNode - Web APIs
the nondocumenttypechildnode interface contains methods that are particular to node objects that can have a
parent, but not suitable for documenttype.
... nondocumenttypechildnode.previouselementsibling read only returns the element immediately prior to this node in its
parent's children list, or null if there is no element in the list prior to this node.
... nondocumenttypechildnode.nextelementsibling read only returns the element immediately following this node in its
parent's children list, or null if there is no element in the list following this node.
... living standard splitted the elementtraversal interface in
parentnode, childnode, and nondocumenttypechildnode.
XRSession.environmentBlendMode - Web APIs
this is used to differentiate between fully-immersive vr sessions and ar sessions which render over a pass-through image of the real world, possibly partially trans
parently.
... additive primarily used by ar devices with trans
parent lenses which directly allow reality to pass through to the user's eyes, the additive blending mode is designed to be used in a situation in which the device has no control over the background and its brightness, since that isn't being digitally controlled.
...therefore, black is rendered as fully trans
parent, and there's no way to make a pixel fully opaque.
...pixels whose alpha value is 1.0 are rendered fully opaque, totally obscuring the real world, while pixels with an alpha of 1.0 are totally trans
parent, leaving the surrounding environment to pass through.
ARIA: gridcell role - Accessibility
use aria-colcount and aria-rowcount on the
parent element with role="grid" applied to it to set the total number of columns or rows.
...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.
... associated wai-aria roles, states, and properties grid communicates that a
parent element is a a table or tree style grouping of information.
Overview of CSS Shapes - CSS: Cascading Style Sheets
shapes from images an interesting way to generate your path is to use an image with an alpha channel — the text will then wrap around the non-trans
parent parts of the image.
... in this next example, we have an image with a fully trans
parent area, and we are using an image as the url value for shape-outside.
...if the value of shape-image-threshold is 0.0 (which is the initial value) then the area must be fully trans
parent.
...values in between mean that you can set a semi-trans
parent area as the defining area of the shape.
CSS values and units - CSS: Cascading Style Sheets
the inherit keyword represents the computed value of the property on the element’s
parent, provided it is inherited.
... as an example, if you specify the width of a box as a percentage, it refers to the percentage of the box's
parent's computed width: .box { width: 50%; } mixing percentages and dimensions some properties accept a dimension that could be either one of two types, for example a <length> or a <percentage>.
...the syntax starts with the name of the function immediately followed by a left
parenthesis ( followed by the argument(s) to the notation followed by a right
parenthesis ).
... white space is allowed, but optional inside the
parentheses.
Using CSS custom properties (variables) - CSS: Cascading Style Sheets
custom properties are subject to the cascade and inherit their value from their
parent.
...this means that if no value is set for a custom property on a given element, the value of its
parent is used.
...with the following css: .two { --test: 10px; } .three { --test: 2em; } in this case, the results of var(--test) are: for the class="two" element: 10px for the class="three" element: 2em for the class="four" element: 10px (inherited from its
parent) for the class="one" element: invalid value, which is the default value of any custom property keep in mind that these are custom properties, not actual variables like you might find in other programming languages.
...yes, but <p> doesn't have any
parent with color property.
Viewport concepts - CSS: Cascading Style Sheets
they are actually relative to the viewport, which is the window in the main document but is the intrinsic size of the element's
parent in a nested browsing context like objects, iframes and svg.
... <iframe> inside an iframe, the visual viewport is the size of the inner width and height of the iframe, rather than the
parent document.
... iframe { width: 50vw; } if the iframe is set to 50vw, it will be 50% of the width of the 1200px
parent document in our example above, or 600px, with 1vw being 6px.
...the width media query in the svg is based on the element in which the svg is contained — the <img> if the source is an svg file, the svg itself if the svg is included directly into the html, or the
parent if the
parent element has a width assigned and — not the viewport’s width.
background-color - CSS: Cascading Style Sheets
syntax /* keyword values */ background-color: red; background-color: indigo; /* hexadecimal value */ background-color: #bbff00; /* fully opaque */ background-color: #bf0; /* fully opaque shorthand */ background-color: #11ffee00; /* fully trans
parent */ background-color: #1fe0; /* fully trans
parent shorthand */ background-color: #11ffeeff; /* fully opaque */ background-color: #1fef; /* fully opaque shorthand */ /* rgb value */ background-color: rgb(255, 255, 128); /* fully opaque */ background-color: rgba(117, 190, 218, 0.5); /* 50% trans
parent */ /* hsl value */ background-color: hsl(50, 33%, 25%); /* fully opa...
...que */ background-color: hsla(50, 33%, 25%, 0.75); /* 75% trans
parent */ /* special keyword values */ background-color: currentcolor; background-color: trans
parent; /* global values */ background-color: inherit; background-color: initial; background-color: unset; the background-color property is specified as a single <color> value.
... webaim: color contrast checker mdn understanding wcag, guideline 1.4 explanations understanding success criterion 1.4.3 | w3c understanding wcag 2.0 formal definition initial valuetrans
parentapplies toall elements.
... though technically removing the trans
parent keyword, this doesn't change anything as it has been incorporated as a true <color> backgrounds level 3 github issues css level 2 (revision 1)the definition of 'background-color' in that specification.
calc() - CSS: Cascading Style Sheets
you may also use
parentheses to establish computation order when needed.
... it is permitted to nest calc() functions, in which case the inner ones are treated as simple
parentheses.
...consider the following code: .foo { --widtha: 100px; --widthb: calc(var(--widtha) / 2); --widthc: calc(var(--widthb) / 2); width: var(--widthc); } after all variables are expanded, widthc's value will be calc( calc( 100px / 2) / 2), then when it's assigned to .foo's width property, all inner calc()s (no matter how deeply nested) will be flattened to just
parentheses, so the width property's value will be eventually calc( ( 100px / 2) / 2), i.e.
...in short: a calc() inside of a calc() is identical to just
parentheses.
font-weight - CSS: Cascading Style Sheets
syntax /* keyword values */ font-weight: normal; font-weight: bold; /* keyword values relative to the
parent */ font-weight: lighter; font-weight: bolder; /* numeric keyword values */ font-weight: 100; font-weight: 200; font-weight: 300; font-weight: 400;// normal font-weight: 500; font-weight: 600; font-weight: 700;// bold font-weight: 800; font-weight: 900; /* global values */ font-weight: inherit; font-weight: initial; font-weight: unset; the font-weight property is specified using any one of the...
... lighter one relative font weight lighter than the
parent element.
... bolder one relative font weight heavier than the
parent element.
...*/ div { font-weight: 600; } /* set span text to be one step lighter than its
parent.
transition-delay - CSS: Cascading Style Sheets
formal definition initial value0sapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <time># examples transition-delay: 0.5s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:0.5s; -webkit-...
...n:2s; transition-delay:0.5s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 1s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:1s; -webkit-t...
...ion:2s; transition-delay:1s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 2s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:2s; -webkit-tr...
...ion:2s; transition-delay:2s; transition-timing-function: linear; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-delay: 4s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top color; -webkit-transition-duration:2s; -webkit-transition-delay:4s; -webkit-tr...
transition-duration - CSS: Cascading Style Sheets
formal definition initial value0sapplies toall elements, ::before and ::after pseudo-elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax <time># examples transition-duration: 0.5s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top transform -webkit-transform color; -webkit-transition-duration:0.5s; -webkit-trans...
...ransition-duration:0.5s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 1s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top -webkit-transform color; -webkit-transition-duration:1s; -webkit-transition-timing...
... transition-duration:1s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 2s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top transform -webkit-transform color; -webkit-transition-duration:2s; -webkit-transit...
... transition-duration:2s; transition-timing-function: ease-in-out; } function updatetransition() { var el = document.queryselector("div.box"); if (el) { el.classname = "box1"; } else { el = document.queryselector("div.box1"); el.classname = "box"; } return el; } var intervalid = window.setinterval(updatetransition, 7000); transition-duration: 4s <div class="
parent"> <div class="box">lorem</div> </div> .
parent { width: 250px; height:125px;} .box { width: 100px; height: 100px; background-color: red; font-size: 20px; left: 0px; top: 0px; position:absolute; -webkit-transition-property: width height background-color font-size left top transform -webkit-transform color; -webkit-transition-duration:4s; -webkit-transit...
transition-timing-function - CSS: Cascading Style Sheets
<a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[0,1]>, <number>)<step-timing-function> = step-start | step-end | steps(<integer>[, <step-position>]?)where <step-position> = jump-start | jump-end | jump-none | jump-both | start | end examples cubic-bezier examples <div class="
parent"> <div class="ease">ease</div> <div class="easein">ease-in</div> <div class="easeout">ease-out</div> <div class="easeinout">ease-in-out</div> <div class="linear">linear</div> <div class="cb">cubic-bezier(0.2,-2,0.8,2)</div> </div> .
parent {} .
parent > div[class] { width: 12em; min-width: 12em; margin-bottom: 4px; background-color: black; border: 1px solid red; ...
... color: white; transition-property: all; transition-duration: 7s; } .
parent > div.box1{ width: 90vw; min-width: 24em; background-color: magenta; color: yellow; border: 1px solid orange; transition-property: all; transition-duration: 2s; } function updatetransition() { var els = document.queryselectorall(".
parent > div[class]"); for(var c = els.length, i = 0; i < c; i++) { els[i].classlist.toggle("box1"); } } var intervalid = window.setinterval(updatetransition, 10000); .ease { transition-timing-function: ease; } .easein { transition-timing-function: ease-in; } .easeout { transition-timing-function: ease-out; } .easeinout { transition-timing-function: ease-in-out; } .linear { transition-timing-function: linear; } .cb { transit...
...ion-timing-function: cubic-bezier(0.2,-2,0.8,2); } step examples <div class="
parent"> <div class="jump-start">jump-start</div> <div class="jump-end">jump-end</div> <div class="jump-both">jump-both</div> <div class="jump-none">jump-none</div> <div class="step-start">step-start</div> <div class="step-end">step-end</div> </div> .
parent {} .
parent > div[class] { width: 12em; min-width: 12em; margin-bottom: 4px; background-color: black; border: 1px solid red; color: white; transition-property: all; transition-duration:7s; } .
parent > div.box1{ width: 90vw; min-width: 24em; background-color: magenta; color: yellow; border: 1px solid orange; transition-property: all; transition-duration:2s; } function updatetransition() { ...
... var els = document.queryselectorall(".
parent > div[class]"); for(var c = els.length, i = 0; i < c; i++) { els[i].classlist.toggle("box1"); } } var intervalid = window.setinterval(updatetransition, 10000); .jump-start { transition-timing-function: steps(5, jump-start); } .jump-end { transition-timing-function: steps(5, jump-end); } .jump-none { transition-timing-function: steps(5, jump-none); } .jump-both { transition-timing-function: steps(5, jump-both); } .step-start { transition-timing-function: step-start; } .step-end { transition-timing-function: step-end; } specifications specification status comment css transitionsthe definition of 'transition-timing-function' in that specification.
<a>: The Anchor element - HTML: Hypertext Markup Language
_
parent: the
parent browsing context of the current one.
... if no
parent, behaves as _self.
... permitted content trans
parent, containing either flow content (excluding interactive content) or phrasing content.
... permitted
parents any element that accepts phrasing content, or any element that accepts flow content, but not other <a> elements.
<menu> - HTML: Hypertext Markup Language
(list menu is the default state, unless the
parent element is a <menu> in the context menu state.) if the element is in the context menu state: zero or more occurrences, in any order, of <menu> (context menu state only), <menuitem>, <hr>, <script>, and <template>.
... permitted
parents any element that accepts flow content.
...must only be specified when the
parent element is a <menu> in the context menu state.
...this value is the default if the attribute is missing and the
parent element is also a <menu> element.
<tbody>: The Table Body element - HTML: Hypertext Markup Language
tag omission the <tbody> element is not a required child element for a
parent <table> element to graphically render.
... however, it must not be present, if its
parent <table> element has a <tr> element as a child.
... permitted
parents within the required
parent <table> element, the <tbody> element can be added after a <caption>, <colgroup>, and a <thead> element.
... when a table is presented in a screen context (such as a window) which is not large enough to display the entire table, the user agent may let the user scroll the contents of the <thead>, <tbody>, <tfoot>, and <caption> blocks separately from one another for the same
parent table.
HTML elements reference - HTML: Hypertext Markup Language
<figcaption> the html <figcaption> or figure caption element represents a caption or legend describing the rest of the contents of its
parent <figure> element.
... <rp> the html ruby fallback
parenthesis (<rp>) element is used to provide fall-back
parentheses for browsers that do not support display of ruby annotations using the <ruby> element.
... <legend> the html <legend> element represents a caption for the content of its
parent <fieldset>.
... <basefont> the obsolete html base font element (<basefont>) sets a default font face, size, and color for the other elements which are descended from its
parent element.
Using Feature Policy - HTTP
all iframes inherit the policy of their
parent page.
... if the iframe has an allow attribute, the policies of the
parent page and the allow attribute are combined, using the most restrictive subset.
... for an iframe to have a feature enabled, the origin must be in the allowlist for both the
parent page and the allow attribute.
...if a feature has been disabled for a child frame by its
parent frame, the child cannot re-enable it, and neither can any of the child's descendants.
Operator precedence - JavaScript
console.log(3 + 10 * 2); // logs 23 console.log(3 + (10 * 2)); // logs 23 because
parentheses here are superfluous console.log((3 + 10) * 2); // logs 26 because the
parentheses change the order left-associativity (left-to-right) means that it is processed as (a op1 b) op2 c, while right-associativity (right-to-left) means it is interpreted as a op1 (b op2 c).
...og("evaluating the " + name + " side"); return num; } // notice the exponentiation operator (**) console.log(echo("left", 2) ** echo("middle", 3) ** echo("right", 2)); evaluating the left side evaluating the middle side evaluating the right side 512 function echo(name, num) { console.log("evaluating the " + name + " side"); return num; } // notice the
parentheses around the left and middle exponentiation console.log((echo("left", 2) ** echo("middle", 3)) ** echo("right", 2)); evaluating the left side evaluating the middle side evaluating the right side 64 looking at the code snippets above, 6 / 3 / 2 is the same as (6 / 3) / 2 because division is left-associative.
...for example, in the expression a && (b + c), if a is falsy, then the sub-expression (b + c) will not even get evaluated, even if it is in
parentheses.
...adding
parentheses makes things clear: (3 > 2) > 1.
stop-color - SVG: Scalable Vector Graphics
note: with respect to gradients, svg treats the trans
parent keyword differently than css.
... svg does not calculate gradients in pre-multiplied space, so trans
parent really means trans
parent black.
... so, specifying a stop-color with the value trans
parent is equivalent to specifying a stop-color with the value black and a stop-opacity with the value 0.
... candidate recommendation added a note that in svg the trans
parent keyword is treated differently than in css.
remote/child - Archive of obsolete content
usage the sdk/remote/
parent module enables sdk code to load modules into child processes.
... communicating with the
parent process to communicate with the
parent process, the process, frames, and frame objects in sdk/remote/child have a port object that you can use to receive messages from, and send messages to, code in the
parent.
... see the documentation for sdk/remote/
parent for more details.
package.json - Archive of obsolete content
it may include a optional url in
parentheses and an email address in angle brackets.
... license the name of the license under which the add-on is distributed, with an optional url in
parentheses.
...this name cannot contain spaces or periods, and defaults to the name of the
parent directory.
Forms related code snippets - Archive of obsolete content
row.appendchild(oth); } othead.appendchild(ohrow); ocapt.appendchild(odecryear); ocapt.appendchild(odecrmonth); ocapt.appendchild(oincryear); ocapt.appendchild(oincrmonth); ocapt.appendchild(this.display); this.container.appendchild(ocapt); this.container.appendchild(othead); this.current.setdate(1); this.writedays(); otarget.onclick = function () { if (otable.
parentnode) { otable.
parentnode.removechild(otable); return; } otable.style.zindex = nzindex++; otable.style.position = "absolute"; otable.style.left = otarget.offsetleft + "px"; otable.style.top = (otarget.offsettop + otarget.offsetheight) + "px"; otarget.
parentnode.insertbefore(otable, otarget); }; ainstances.push(this); } datepicker.p...
...y-cell"; } otr.appendchild(otd); } this.display.innerhtml = smonthsnames[this.current.getmonth()] + " " + this.current.getfullyear(); this.container.appendchild(this.otbody); }; function ondocclick (opssevt) { const oevt = opssevt || /* ie */ window.event; var boutside = true; for (var onode = oevt.target || /* ie */ oevt.srcelement; onode; onode = onode.
parentnode) { if (onode.classname === sprefs + "-calendar" || onode.classname === sdpclass) { boutside = false; break; } } if (boutside) { return; } ainstances[onode.id.replace(rbgnnan, "")].container.style.zindex = nzindex++; } function onheadclick () { const bismonth = rmonth.test(this.id), ndelta = rdecrease.test(this.id) ?
..."getmonth" : "getfullyear"]() + ndelta); othiscal.writedays(); return false; } function ondayclick () { const othiscal = ainstances[this.id.replace(rbgnandend, "")]; othiscal.target.value = (this.innerhtml / 100).tofixed(2).substr(-2) + "\/" + (othiscal.current.getmonth() + 1) + "\/" + othiscal.current.getfullyear(); othiscal.container.
parentnode.removechild(othiscal.container); return false; } function buildcalendars () { const afields = document.getelementsbyclassname(sdpclass), nlen = afields.length; for (var nitem = 0; nitem < nlen; new datepicker(afields[nitem++])); } const /* customizable by user */ sprefs = "zdp"; sdpclass = "date-picker", smonthsnames = ["jan", "feb", "mar", "apr", "may",...
LookupPrefix - Archive of obsolete content
euri) { var htmlmode = document.contenttype; // mozilla only // depends on private function _lookupnamespaceprefix() below and on https://developer.mozilla.org/en/code_snippets/lookupnamespaceuri // http://www.w3.org/tr/dom-level-3-core/core.html#node3-lookupnamespaceprefix // http://www.w3.org/tr/dom-level-3-core/namespaces-algorithms.html#lookupnamespaceprefixalgo // (the above had a few ap
parent 'bugs' in the pseudo-code which were corrected here) if (node.lookupprefix && htmlmode !== 'text/html') { // shouldn't use this in text/html for mozilla as will return null return node.lookupprefix(namespaceuri); } if (namespaceuri === null || namespaceuri === '') { return null; } switch (node.nodetype) { case 1: // node.element_node return _lookupnamespaceprefix(namespaceuri, nod...
...paceprefix(namespaceuri, node.documentelement); case 6: // node.entity_node case 12: // node.notation_node case 11: // node.document_fragment_node case 10: // node.document_type_node return null; // type is unknown case 2: // node.attribute_node if (node.ownerelement) { return _lookupnamespaceprefix(namespaceuri, node.ownerelement); } return null; default: if (node.
parentnode) { // entityreferences may have to be skipped to get to it return _lookupnamespaceprefix(namespaceuri, node.
parentnode); } return null; } } // private function for lookupprefix only function _lookupnamespaceprefix (namespaceuri, originalelement) { var xmlnspattern = /^xmlns:(.*)$/; if (originalelement.namespaceuri && originalelement.namespaceuri === namespaceuri && origi...
...; // latter test for ie which doesn't support localname if (localname.indexof(':') !== -1) { // for firefox when in html mode localname = localname.substr(att.name.indexof(':')+1); } if ( xmlnspattern.test(att.name) && att.value === namespaceuri && lookupnamespaceuri(originalelement, localname) === namespaceuri ) { return localname; } } } if (originalelement.
parentnode) { // entityreferences may have to be skipped to get to it return _lookupnamespaceprefix(namespaceuri, originalelement.
parentnode); } return null; } ...
Creating custom Firefox extensions with the Mozilla build system - Archive of obsolete content
nsionoverlay.js) content/myextensionoverlay.xul (content/myextensionoverlay.xul) locale/myextension.dtd (locale/myextension.dtd) locale/myextension.properties (locale/myextension.properties) skin/classic/myextension.css (skin/classic/myextension.css) place this code in a file called jar.mn in the root directory of your extension, making sure that the paths in
parentheses point to actual files (when interpreted relative to the root directory).
...ude the methods for retrieving the path or file for the extension's home directory: mylocation.prototype = { queryinterface: function(iid) { if (iid.equals(nsisupports)) return this; if (iid.equals(myilocation)) return this; components.returncode = components.results.ns_error_no_interface; return null; }, get locationfile() { return __location__.
parent.
parent; } } this assumes that the component resides in a subdirectory of the extension directory (by convention, this directory is called components/).
... the
parent property of __location__ returns the components/, and the
parent of this is the extension directory.
Displaying web content in an extension without security issues - Archive of obsolete content
this protocol is special because it inherits the privileges from its
parent document.
... however, if a "data:" document is the topmost content document, there is no
parent document (remember, content documents have no access to the chrome documents above them) and consequently no privileges.
...iv class="title"></div> <div class="description"></div> </div> now to insert a new entry in the document you would do the following: var template = doc.getelementbyid("entrytemplate"); var entry = template.clonenode(true); entry.removeattribute("id"); entry.getelementsbyclassname("title")[0].textcontent = title; entry.getelementsbyclassname("description")[0].textcontent = description; template.
parentnode.appendchild(entry); the important difference here is that the result will always have the same structure as the template tag.
Chapter 4: Using XPCOM—Implementing advanced processes - Archive of obsolete content
get window while you can use javascript to get child windows opened from the
parent window, you cannot get dialogs or windows that have no relation to that window.
...' [dir]' : '')); } alert(list.join('\n')); get
parent directory although the nsilocalfile object does not contain a function for moving to higher directories, listing 10 does show how you can use the
parent property to get the
parent directory of the current file.
... listing 10: creating a backup of a specific file in a separate folder file.initwithpath('c:\\temp\\temp.txt'); backupfolder = file.
parent.
parent; // c:\ backupfolder.append('backup'); // c:\backup backupfolder.create(components.interfaces.nsifile.directory_type, 0666); file.copyto(backupfolder, file.leafname+'.bak'); converting between file paths and file urls xpcom functions can use both remote resources and local files, and these functions almost always specify their targets using uris.
Adding windows and dialogs - Archive of obsolete content
modal windows block their
parent window until action is taken on them.
... the prompt service allows you to set the title of the dialog however you want it, and also lets you specify the window you want to use as a
parent for the alert.
... the dialog element handles all of this trans
parently.
Appendix D: Loading Scripts - Archive of obsolete content
in addition to the possible performance concerns, passing data between these compartments is not entirely trans
parent.
... wantxrays: true }); // the script that will be executed: let script = string(); // evaluate the script: components.utils.evalinsandbox(script, sandbox, // the javascript version "1.8", // the ap
parent script filename: "zz-9://plural/zed/alpha", // the ap
parent script starting line number: 42); the following code will execute a simple script loaded from a local file in the same directory as the current script.
...// the following may be used instead at the top-level: // // let context = this if (components.utils.getglobalforobject) // gecko 2.x var context = components.utils.getglobalforobject({}); else // gecko 1.x context = {}.__
parent__; loadscript("script.js", context); the sub-script loader the mozijssubscriptloader can be used to load local scripts from the chrome:, resource:, and file: protocols into any javascript object.
Using microformats - Archive of obsolete content
get
parent() returns the
parent node of the specified microformat or child of a microformat.
... var
parentnode = microformats.get
parent(node); parameters node the node whose
parent you wish to retrieve.
... return value the
parent of the specified node.
DOM Interfaces - Archive of obsolete content
idl definition interface nsidomdocumentxbl { nodelist getanonymousnodes(in element elt); element getanonymouselementbyattribute(in element elt, in domstring attrname, in domstring attrvalue); element getbinding
parent(in node node); void loadbindingdocument(in domstring documenturl); }; methods getanonymousnodes the getanonymousnodes method retrieves the anonymous children of the specified element.
... getbinding
parent the getbinding
parent method is used to obtain the bound element with the binding attached that is responsible for the generation of the specified anonymous node.
... return value element - the return value of getbinding
parent is the element responsible for the given anonymous node.
panel.level - Archive of obsolete content
on linux, the default value is top, otherwise, the default value is
parent.
...
parent the panel is shown just above the window the panel is in, but behind other windows above it.
... if anchored, the child window maintains its relative position to its
parent window.
PopupEvents - Archive of obsolete content
this is because the popup events bubble so the
parent menu will receieve a popupshowing event whenever it opens, or any submenus open.
...this is because you cannot open a submenu directly without first opening the
parent menu.
...otherwise, the user would have a menu for a
parent window that is no longer active.
Recursive Generation - Archive of obsolete content
after generating a result's content, the builder starts again using a new
parent and starting point.
... naturally, the
parent will be the new result's content, rather than the outer containing element, and the starting point will be the endpoint of the previous iteration.
... for the top level generation the
parent insertion point is the element with the datasources attribute, in this example a <vbox>.
Skinning XUL Files by Hand - Archive of obsolete content
css2, for example, gives you control over the absolute positioning of any element within its
parent element.
...s an extremely inefficient way to style xul, and is frowned upon in the mozilla development community (again, refer to the skinning guidelines in writing skinnable xul and css for more info); css2 also provides some new ways to group elements for styling, which we summarize briefly here, because they appear in mozilla with some frequency, but reserve for another article: pseudo-class
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.
XBL Example - Archive of obsolete content
conveniently, we can change the page using the custom 'page' property that was just added: <xul:button xbl:inherits="label=previoustext" oncommand="
parentnode.
parentnode.
parentnode.page--;"/> <xul:description flex="1"/> <xul:button xbl:inherits="label=nexttext" oncommand="
parentnode.
parentnode.
parentnode.page++;"/> because the 'page' property is only on the outer xul element, we need to to use the
parentnode property to get to it.
... the first
parentnode returns the
parent of the button which is the horizontal box, the second its
parent, the vertical box, and finally, its
parent which is the outer box.
... the final code the final code is as follows: example 2 : source <binding id="slideshow"> <content> <xul:vbox flex="1"> <xul:deck xbl:inherits="selectedindex" selectedindex="0" flex="1"> <children/> </xul:deck> <xul:hbox> <xul:button xbl:inherits="label=previoustext" oncommand="
parentnode.
parentnode.
parentnode.page--;"/> <xul:description flex="1"/> <xul:button xbl:inherits="label=nexttext" oncommand="
parentnode.
parentnode.
parentnode.page++;"/> </xul:hbox> </xul:vbox> </content> <implementation> <constructor> var totalpages=this.childnodes.length; document.getanonymousnodes(this)[0].childnodes[1].childnodes[1] ...
iframe - Archive of obsolete content
attributes showcaret, src, type, trans
parent properties accessibletype, contentdocument, contentwindow, docshell, webnavigation examples <iframe src="table.php" flex="2" id="browsertable" name="table_frame"/> selecting an url from a menu <menulist oncommand="donav(this);"> <menupopup> <menuitem label="mozilla" value="http://mozilla.org" /> <menuitem label="slashdot" value="http://slashdot.org"/> <menuitem label="source...
...this boundary has a number of special effects, such as making window.top == window (unless the browser is added to a chrome document), and preventing documents from inheriting the principal of the
parent document.
... trans
parenttype: one of the values belowset the background of an iframe as trans
parent.trans
parentthis results in the iframe's background being trans
parent.
panel - Archive of obsolete content
on linux, the default value is top, otherwise, the default value is
parent.
...
parent the panel is shown just above the window the panel is in, but behind other windows above it.
... if anchored, the child window maintains its relative position to its
parent window.
NPN_GetValue - Archive of obsolete content
in order to bring up popup menus and modal dialogs, a plug-in needs a
parent window.
...in many cases, a plug-in may still have to create its own window (a trans
parent child window of the browser window) to act as the owner window for popup menus and modal dialogs.
... this trans
parent child window can have its own windowproc within which the plug-in can deal with wm_command messages sent to it a result of tracking the popup menu or modal dialog.
CSS - Archive of obsolete content
hat specifies a margin that offsets the inner wrap shape from other shapes.-ms-wrap-throughthe -ms-wrap-through css property is a microsoft extension that specifies how content should wrap around an exclusion element.:-moz-full-screen-ancestorthe :-moz-full-screen-ancestor css pseudo-class is a mozilla extension that represents all ancestors of the full-screen element, except containing frames in
parent documents, which are the full-screen element in their own documents.
...a slider control is one possible representation of <input type="range">.::-ms-valuethe ::-ms-value css pseudo-element is a microsoft extension that applies rules to the value of a text or password <input> control or the content of a <select> control.@media
parent for archived media features.azimuthin combination with elevation, the azimuth css property enables different audio sources to be positioned spatially for aural presentation.
...ones and multi-speaker setups allow for a fully three-dimensional stage.display-insidethe display-inside css property specifies the inner display type of the box generated by an element, dictating how its contents lay out inside the box.display-outsidethe display-outside css property specifies the outer display type of the box generated by an element, dictating how the element participates in its
parent formatting context.
Object.prototype.__noSuchMethod__ - Archive of obsolete content
// doesn't work with multiple inheritance objects as
parents function nomethod(name, args) { var
parents = this.__
parents_; // go through all
parents for (var i = 0; i <
parents.length; i++) { // if we find a function on the
parent, we call it if (typeof
parents[i][name] == 'function') { return
parents[i][name].apply(this, args); } } // if we get here, the method hasn't been found throw new typeerror; } // used to add a pa...
...rent for multiple inheritance function add
parent(obj,
parent) { // if the object isn't initialized, initialize it if (!obj.__
parents_) { obj.__
parents_ = []; obj.__nosuchmethod__ = nomethod; } // add the
parent obj.__
parents_.push(
parent); } an example of using this idea is shown below.
...inherits from namedthing and agedthing // as well as defining address function person(name, age, address){ add
parent(this, namedthing.prototype); namedthing.call(this, name); add
parent(this, agedthing.prototype); agedthing.call(this, age); this.address = address; } person.prototype = { getaddr: function() { return this.address; }, setaddr: function(addr) { this.address = addr; } } var bob = new person('bob', 25, 'new york'); console.log('getage is ' + (('getage' in bob) ?
Styling the Amazing Netscape Fish Cam Page - Archive of obsolete content
nted them to be side by side, it was important to be sure the total width of the element boxes (including margins) was less than 50%, so the first step was this: div.card {float: left; width: 45%; margin: 1em 2% 0 2%;} by making the content of each card 45% the width of the containing element, and adding 2% margin to both the left and right sides, each card's element box is 49% as wide as the
parent.
... two of them side by side will take up 98% the width of the
parent element.
...i did it that way because it's a lot less likely to trigger a situation where rounding errors force the two floats to total more than 100% the width of the
parent, as could happen if the floats' element boxes were made to total 50%.
A cool-looking box - Learn web development
a linear semi-trans
parent black gradient that goes toward the bottom right corner.
... make it completely trans
parent at the start, gradiating to around 0.2 opacity by 30% along, and remaining at the same color until the end.
...the other two should be inset box shadows — a semi-trans
parent white shadow near the top left and a semi-trans
parent black shadow near the bottom right — to add to the nice raised 3d look of the box.
Legacy layout methods - Learn web development
if we want the two <div>s to be floated alongside one another, we need to set their widths to total 100% of the width of their
parent element or smaller so they can fit alongside one another.
... add the following to the bottom of your css: div:nth-of-type(1) { width: 48%; } div:nth-of-type(2) { width: 48%; } here we've set both to be 48% of their
parent's width — this totals 96%, leaving us 4% free to act as a gutter between the two columns, giving the content some space to breathe.
...it is especially useful when there is complex math to be done, and you can even compute a calculation that uses different units, for example "i want this element's height to always be 100% of its
parent's height, minus 50px".
How CSS works - Learn web development
some elements are
parents of child nodes, and child nodes have siblings.
... take the following html code: <p> let's use: <span>cascading</span> <span>style</span> <span>sheets</span> </p> in the dom, the node corresponding to our <p> element is a
parent.
...the span nodes are also
parents, with text nodes as their children: p ├─ "let's use:" ├─ span | └─ "cascading" ├─ span | └─ "style" └─ span └─ "sheets" this is how a browser interprets the previous html snippet —it renders the above dom tree and then outputs it in the browser like so: p {margin:0;} applying css to the dom let's say we added some css to our document, to style it.
Using data attributes - Learn web development
just use data attributes for that: <article id="electric-cars" data-columns="3" data-index-number="12314" data-
parent="cars"> ...
... const article = document.queryselector('#electric-cars'); article.dataset.columns // "3" article.dataset.indexnumber // "12314" article.dataset.
parent // "cars" each property is a string and can be read and written.
...for example to show the
parent data on the article you can use generated content in css with the attr() function: article::before { content: attr(data-
parent); } you can also use the attribute selectors in css to change styles according to the data: article[data-columns='3'] { width: 400px; } article[data-columns='4'] { width: 600px; } you can see all this working together in this jsbin example.
Styling Vue components with CSS - Learn web development
add the following contents to the reset.css file: /*reset.css*/ /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { outline: 3px dashed #228bec; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: trans
parent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { /* 1 */ overflow: visible; } input[type="text"] { bo...
...bel { font-size: inherit; font-family: inherit; line-height: inherit; display: inline-block; margin-bottom: 0; padding: 8px 15px 5px; cursor: pointer; touch-action: manipulation; } .custom-checkbox > label::before { content: ""; box-sizing: border-box; position: absolute; top: 0; left: 0; width: 40px; height: 40px; border: 2px solid currentcolor; background: trans
parent; } .custom-checkbox > input[type="checkbox"]:focus + label::before { border-width: 4px; outline: 3px dashed #228bec; } .custom-checkbox > label::after { box-sizing: content-box; content: ""; position: absolute; top: 11px; left: 9px; width: 18px; height: 7px; transform: rotate(-45deg); border: solid; border-width: 0 0 5px 5px; border-top-color: trans
parent; opacity: 0; ...
... background: trans
parent; } .custom-checkbox > input[type="checkbox"]:checked + label::after { opacity: 1; } @media only screen and (min-width: 40rem) { label, input, .custom-checkbox { font-size: 19px; font-size: 1.9rem; line-height: 1.31579; } } now we need to add some css classes to our template to connect the styles.
Gecko info for Windows accessibility vendors
iaccessible methods that we support: get_acc
parent get_accchildcount get_accchild get_accname get_accvalue get_accdescription get_accrole get_accstate get_accfocus get_accdefaultaction acclocation accselect acchittest accdodefaultaction accnavigate get_acckeyboardshortcut msaa support: iaccessible events and unique id's what msaa events do we support?
... we do not currently support role_system_row, although internet explorer doesn't either, and the reason seems ap
parent.
... hresult get_
parentnode (/* [in] */ isimpledomnode *newnodeptr); hresult get_firstchild (/* [in] */ isimpledomnode *newnodeptr); hresult get_lastchild (/* [in] */ isimpledomnode *newnodeptr); hresult get_previoussibling(/* [in] */ isimpledomnode *newnodeptr); hresult get_nextsibling (/* [in] */ isimpledomnode *newnodeptr); hresult get_childat (/* [in] */ unsigned childindex, /* [out] */...
Theme concepts
however, rather than creating a very wide image, a better approach is to use a narrower image with a trans
parent left edge so that it fades to the background color.
... depending on the effect you want to create you may need to suppress the mandatory "theme_frame": image with an empty or trans
parent image.
... you would use an empty or trans
parent image if, for example, you wanted to tile a centrally justified image, such as to create this effect here you specify the weta image like this: "images": { "theme_frame": "empty.png", "additional_backgrounds": [ "weta_for_tiling.png"] }, and the images tiling with: "properties": { "additional_backgrounds_alignment": [ "top" ], "additional_backgrounds_tiling": [ "repeat" ] }, full details of how to setup this theme can be found in the themes example weta_tiled.
Getting from Content to Layout
a list of restyle roots (places in the content tree where all descendants need to be restyled but nothing on the
parent chain does) are also stored.
... these items are then examined in relation to the location in the content tree that is being modified and either the relevant frames are created/destroyed or the logic moves up to the
parent frame.
... if the <div> is removed, the frame construction code merges those frames by examining the
parent frame, destroying the two frames created for the <span>, and creating one unified frame for the text content.
Application Translation with Mercurial
extract the files: hg update obtaining the texts of your localization go back to the
parent folder of mozilla-aurora: cd ..
... paste the following content into the file: [ui] username = firstname lastname <mynick@example.com> merge = internal:merge [alias] qexport = export -g -r qtip qexportall = diff -r q
parent [defaults] commit = -v diff = -p -u 8 qdiff = -p -u 8 qnew = -u [diff] git = 1 showfunc = 1 unified = 8 [extensions] hgext.mq = progress = [hooks] put in your name and email address which later will be public on the internet after your translation patch got accepted and uploaded.
... now export the patch to the file system using the qexport command which is defined in the .hgrc file (see above): hg qexport > ../firefox-29-aboutprivatebrowsing-v1.patch this creates a patch file called firefox-29-aboutprivatebrowsing-v1.patch containing the changes in the
parent directory of de-mozilla-aurora (in this example: c:\mozilla\).
Profiling with the Firefox Profiler
tip: threads that are annotated with "[default]" are in the
parent (aka "ui", aka "browser chrome", aka "main") process and those annotated with "[tab]" are in the web content (aka "child") processes.
... tip: long-running tasks in the
parent process will block all input or drawing with the browser ui (aka "ui jank") whereas long-running tasks in the content process will block interactivity with the page but still allowing the user to pan and zoom around thanks to apz.
...so is code that is run often in the
parent process or in parts of the codebase that apply to many users.
JSS Provider Notes
the verification is trans
parent to the application (unless it fails and throws an exception).
...thus, the thread token is not inherited from the
parent thread.
...this should usually be trans
parent.
Mozilla-JSS JCA Provider notes
the verification is trans
parent to the application (unless it fails and throws an exception).
...thus, the thread token is not inherited from the
parent thread.
...this should usually be trans
parent.
Functions
when the function object is created, its
parent is set to the first object on the scope chain.
...since it will never need to walk the scope chain, its
parent is the global object.
...the function object's
parent is the global object.
JSFUN_BOUND_METHOD
flag that indicates a function nominally associated with an object is bound, instead, to that object's
parent.
...jsfun_bound_method is a flag that indicates a method associated with an object is bound to the method's
parent, the object on which the method is called.
... see also jsfun_global_
parent bug 429507 ...
JSObject
most objects have a
parent.
... see js_get
parent.
... an object's
parent is another object, usually either the global object or an object that represents an activation record.
JS_NewObjectForConstructor
the standard object creation api, js_newobject, takes explicit arguments for the class, prototype, and
parent of the new object.
... with js_newobjectforconstructor, the prototype and
parent are determined by the constructor, and class is still determined by the caller.
...the
parent is the constructor's
parent.
JSAPI reference
ruct jsruntime js_newruntimeobsolete since jsapi 52 js_destroyruntime js_getruntimeprivate js_setruntimeprivate js_setnativestackquota added in spidermonkey 17 js_contextiteratorobsolete since jsapi 52 js_finish obsolete since jsapi 19 struct jscontext js_newcontext js_destroycontext js_destroycontextnogc js_setcontextcallback enum jscontextop js_getruntime js_get
parentruntime added in spidermonkey 31 js_getobjectruntime added in spidermonkey 17 js_getcontextprivate js_setcontextprivate js_getsecondcontextprivate added in spidermonkey 17 js_setsecondcontextprivate added in spidermonkey 17 js_setinterruptcallback added in spidermonkey 31 js_getinterruptcallback added in spidermonkey 31 js_requestinterruptcallback added in spidermonkey 31 js_checkfo...
...rmonkey 1.8.5 js_isextensible added in spidermonkey 1.8.5 js_preventextensions added in spidermonkey 45 js_instanceof js_hasinstance js_isnative added in spidermonkey 17 js::toprimitiveadded in spidermonkey 45 js::newfunctionfromspecadded in spidermonkey 45 js_defaultvalueobsolete since jsapi 44 js_get_class obsolete since jsapi 13 js_sealobject obsolete since javascript 1.8.5 js_get
parent obsolete since jsapi 39 js_set
parent obsolete since jsapi 39 standard objects enum jsprotokey added in spidermonkey 24 js_getclassobject js_getclassprototype js::protokeytoid added in spidermonkey 38 js_idtoprotokey added in spidermonkey 31 js::identifystandardinstance added in spidermonkey 31 js::identifystandardprototype added in spidermonkey 31 js::identifystandardinstanceorprotot...
... macros js_default_xml_namespace_id obsolete since jsapi 21 jsfun_bound_method obsolete since javascript 1.8.5 jsfun_getter obsolete since javascript 1.8.5 jsfun_setter obsolete since javascript 1.8.5 jsfun_global_
parent obsolete since javascript 1.8.5 jsfun_heavyweight obsolete since jsapi 19 jsfun_lambda obsolete since jsapi 19 c++ features class jsautorequest class jsautolocalrootscope obsolete since javascript 1.8.5 class js::perfmeasurement (in jsperf.h) tracing and debugging js_setfunctioncallback added in spidermonkey 1.8.5 obsolete since jsapi 37 js_getfunctioncallback added in spidermonkey...
Observer Notifications
by this point, the browsingcontext will have been detached from its browsingcontextgroup and
parent windowcontext, and removed from any browsingcontext tree it was a part of.
... window-global-created windowglobal
parent called just after a windowglobal
parent is initialized.
... window-global-destroyed windowglobal
parent called just before a windowglobal
parent is destroyed.
mozIStorageService
1.0 66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.9 (firefox 3) see mozistorageconnection method overview nsifile backupdatabasefile(in nsifile adbfile, in astring abackupfilename, [optional] in nsifile abackup
parentdirectory); mozistorageconnection opendatabase(in nsifile adatabasefile); mozistorageconnection openspecialdatabase(in string astoragekey); mozistorageconnection openunshareddatabase(in nsifile adatabasefile); methods backupdatabasefile() this method makes a backup of the specified file.
...nsifile backupdatabasefile( in nsifile adbfile, in astring abackupfilename, in nsifile abackup
parentdirectory optional ); parameters adbfile the database file to back up.
... abackup
parentdirectory optional the directory to put the backup into.
nsIAccessibleHyperLink
endindex long the end offset of the hyperlink accessible within the
parent accessible.
... note: the link itself is represented by one embedded character within the
parent text, so the endindex should be startindex + 1.
... startindex long the offset of the hyperlink accessible within the
parent accessible.
nsIAccessibleRole
there is not always a
parent-child relationship between the grouping object and the objects it contains.
...all objects sharing a single
parent that have this attribute are assumed to be part of single mutually exclusive group.
... role_app_root 111 role_
parent_menuitem 112 represents a menu item, which is an entry in a menu that a user can choose to display another menu.
nsIContentViewer
[noscript,notxpcom] nsidocumentptr getdocument(); void hide(); void init(in nsiwidgetptr a
parentwidget, [const] in nsintrectref abounds); native code only!
... note: if this container is the root of a view manager hierarchy (that is, this method returns null), and m
parentwidget is also null, then this document should not even be displayed.
...void init( in nsiwidgetptr a
parentwidget, [const] in nsintrectref abounds ); parameters a
parentwidget missing description abounds missing description loadcomplete() void loadcomplete( in unsigned long astatus ); parameters astatus missing description exceptions thrown missing exception missing description loadstart() void loadstart( in nsisupports adoc ); parameters adoc miss...
nsIDOMWindow
parent nsidomwindow the window's
parent window.
... if there is no
parent window, or if the
parent is of a different type, this is the current window.
...this is the window itself if there is no
parent, or if the
parent is of a different type.
nsIDynamicContainer
method overview void oncontainermoved(in long long aitemid, in long long anew
parent, in long anewindex); void oncontainernodeclosed(in nsinavhistorycontainerresultnode acontainer); void oncontainernodeopening(in nsinavhistorycontainerresultnode acontainer, in nsinavhistoryqueryoptions aoptions); void oncontainerremoving(in long long aitemid); methods oncontainermoved() this method is called when the given container has just been moved, in case the service needs to do an...
...void oncontainermoved( in long long aitemid, in long long anew
parent, in long anewindex ); parameters aitemid the item-id of the container item.
... anew
parent the item of the new
parent folder for the container.
nsIFilePicker
to create an instance, use: var filepicker = components.classes["@mozilla.org/filepicker;1"] .createinstance(components.interfaces.nsifilepicker); method overview void appendfilter(in astring title, in astring filter); void appendfilters(in long filtermask); void init(in nsidomwindow
parent, in astring title, in short mode); void open(in nsifilepickershowncallback afilepickershowncallback); short show(); obsolete since gecko 57.0 attributes attribute type description addtorecentdocs boolean if true, the file is added to the operating system's "recent documents" list (if the operating system has one; nothing happens if there i...
... void init( in nsidomwindow
parent, in astring title, in short mode ); parameters
parent the nsidomwindow
parent.
... this dialog will be dependent on this
parent.
nsIMsgFolder
parent nsimsgfolder old nsifolder properties and methods.
...
parentmsgfolder nsimsgfolder readonly: handy accessor when we want a msg folder.
... showdeletedmessages boolean readonly server nsimsgincomingserver readonly: this folder's
parent server.
nsINavHistoryQueryOptions
excludeitemif
parenthasannotation obsolete since gecko 13.0 autf8string this option excludes items from a bookmarks query if the
parent of the item has this annotation.
... an example is to exclude livemark items (
parent folders have the "livemark/feeduri" annotation).
...it only affects cases where the actual folder result node would appear in its
parent folder and filters it out.
nsINavHistoryResultNode
bookmarkindex long when this item is in a bookmark folder (its
parent is of type folder), this is the index into that folder at which this node resides.
...
parent nsinavhistorycontainerresultnode identifies the
parent result node in the result set.
...
parentresult nsinavhistoryresult the history-result to which this node belongs.
nsINavHistoryResultTreeViewer
obsolete since gecko 1.9 constants constant value description index_invisible 0xffffffff returned by treeindexfornode() when the requested node isn't visible (such as when its
parent is collapsed).
...treeindexfornode() returns the row index corresponding to the specified node within the tree, or index_invisible if the tree is unattached or the node is not visible (if, for example, its
parent container is collapsed).
... return value the row index of the node specified by anode, or index_invisible for nodes that are hidden (by their
parents being collapsed, for example) or if there is no attached tree.
nsIPrintingPrompt
embedding/browser/webbrowser/nsiprintingprompt.idlscriptable this is the printing prompt interface which can be used without knowlege of a
parent window.
... the
parentage is hidden by the getinterface though which it is gotten.
... inherits from: nsisupports last changed in gecko 1.7 this interface is identical to nsipintingpromptservice but without the
parent nsidomwindow parameter.
nsIPrompt
netwerk/base/public/nsiprompt.idlscriptable this is the prompt interface which can be used without knowledge of a
parent window.
... the
parentage is hidden by the getinterface though which it is obtained.
... inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) note: this interface is identical to nsipromptservice but without the
parent nsidomwindow parameter.
nsIWinTaskbar
ice(components.interfaces.nsiwintaskbar); method overview nsijumplistbuilder createjumplistbuilder(); nsitaskbartabpreview createtaskbartabpreview(in nsidocshell shell, in nsitaskbarpreviewcontroller controller); nsitaskbarprogress gettaskbarprogress(in nsidocshell shell); nsitaskbarwindowpreview gettaskbarwindowpreview(in nsidocshell shell); void setgroupidforwindow(in nsidomwindow a
parent, in astring aidentifier); attributes attribute type description available boolean returns true if the operating system supports windows 7 or later taskbar features; you can use this instead of in-place operating system version checking.
...universalxpconnect"); var taskbar = components.classes["@mozilla.org/windows-taskbar;1"].getservice(components.interfaces.nsiwintaskbar); // get the docshell for the browser var navigator2 = top.queryinterface(components.interfaces.nsiinterfacerequestor).getinterface(components.interfaces.nsiwebnavigation); var docshell = navigator2.queryinterface(components.interfaces.nsidocshell); // get the
parent docshell; this is the top-level docshell var docshelltreeitem = docshell.queryinterface(components.interfaces.nsidocshelltreeitem); var
parent = docshelltreeitem.
parent; var ds =
parent.queryinterface(components.interfaces.nsidocshell); // create the preview taskbar.createtaskbartabpreview(ds, {}); gettaskbarprogress() gets the taskbar progress for a window.
...void setgroupidforwindow( in nsidomwindow a
parent, in astring aidentifier ); parameters a
parent the
parent nsidomwindow.
XPCOM ownership guidelines
parents own their children (and not the reverse).
... though
parents may not need to own their children.
...in the simplest scheme, however,
parents point to their children with owning-pointers, children point back to their
parents with non-owning-pointers.
Working with windows in chrome code
here is helper function that will package the data correctly and pass it to the newly opened window: function opendialog(
parentwindow, url, windowname, features) { var array = components.classes["@mozilla.org/array;1"] .createinstance(components.interfaces.nsimutablearray); for (var i = 4; i < arguments.length; i++) { var variant = components.classes["@mozilla.org/variant;1"] .createinstance(components.interfaces.nsiwritablevariant); variant...
....setfromvariant(arguments[i]); array.appendelement(variant, false); } var watcher = components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getservice(components.interfaces.nsiwindowwatcher); return watcher.openwindow(
parentwindow, url, windowname, features, array); } the function almost works the same as window.opendialog but accepts an optional
parent window as first parameter.
... the
parent window can be null.
URLs - Plugins
_
parent: load the url into the immediate frameset
parent of the plug-in instance document.
... if the plug-in instance document has no
parent, the default is _self.
...if the target refers to the window or frame containing the instance or one of its
parents/ancestors, the instance is destroyed and the plug-in may be unloaded.
Accessibility Inspector - Firefox Developer Tools
indexin
parent — an index value indicating what number child the item is, inside its
parent.
... if the item is the first item inside its
parent, it has a value of 0.
... highlighting of ui items in the accessibility tab, when the mouse hovers over accessibility items, you can see a semi-trans
parent highlight appear over the ui items they relate to, if appropriate.
AnalyserNode - Web APIs
number of inputs 1 number of outputs 1 (but may be left unconnected) channel count mode "max" channel count 2 channel interpretation "speakers" inheritance this interface inherits from the following
parent interfaces: <div id="interfacediagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/eventtarget" target="_top"><rect x="1" y="1" width=...
... properties inherits properties from its
parent, audionode.
... methods inherits methods from its
parent, audionode.
AudioBufferSourceNode - Web APIs
properties inherits properties from its
parent, audionode.
... event handlers inherits event handlers from its
parent, audioscheduledsourcenode.
... methods inherits methods from its
parent, audioscheduledsourcenode.
AudioScheduledSourceNode - Web APIs
the audioscheduledsourcenode interface—part of the web audio api—is a
parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times.
... properties inherits properties from its
parent interface, audionode.
... methods inherits methods from its
parent interface, audionode, and adds the following methods: start() schedules the node to begin playing the constant sound at the specified time.
CSSCounterStyleRule - Web APIs
inheritance this interface inherits from the following
parent interfaces: <div id="interfacediagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 11.666666666666666%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 70" preserveaspectratio="xminymin meet"><a xlink:href="/docs/web/api/cssrule" target="_top"><rect x="1" y="1" width="75" height="50" fill="#fff" stroke="#d4dde4" stroke-width="2px" /><text x="38.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cssrule</text></a><polyline points="76,25 86,20 8...
..." width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">csscounterstylerule</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent cssrule.
... methods this interface doesn't implement any specific method but inherits methods from its
parent cssrule.
CSSRule - Web APIs
cssrule.
parentrule read only returns the containing rule, otherwise null.
...if this rule is a style rule inside an @media block, the
parent rule would be that cssmediarule.
... cssrule.
parentstylesheet read 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.
CSSStyleSheet - Web APIs
it inherits properties and methods from its
parent, stylesheet.
... properties inherits properties from its
parent, stylesheet.
... methods inherits methods from its
parent, stylesheet.
CanvasRenderingContext2D.shadowColor - Web APIs
note: shadows are only drawn if the shadowcolor property is set to a non-trans
parent value.
...the default value is fully-trans
parent black.
...anvas = document.getelementbyid('canvas'); const ctx = canvas.getcontext('2d'); // shadow ctx.shadowcolor = 'red'; ctx.shadowoffsetx = 10; ctx.shadowoffsety = 10; // filled rectangle ctx.fillrect(20, 20, 100, 100); // stroked rectangle ctx.linewidth = 6; ctx.strokerect(170, 20, 100, 100); result shadows on translucent shapes a shadow's opacity is affected by the transparency level of its
parent object (even when shadowcolor specifies a completely opaque value).
CanvasRenderingContext2D - Web APIs
canvasrenderingcontext2d.clearrect() sets all pixels in the rectangle defined by starting point (x, y) and size (width, height) to trans
parent black, erasing any previously drawn content.
...default: fully-trans
parent black.
...all of the pixels in the new object are trans
parent black.
Compositing example - Web APIs
everything else is made trans
parent.', 'the new shape is drawn where it doesn\'t overlap the existing canvas content.', 'the new shape is only drawn where it overlaps the existing canvas content.', 'new shapes are drawn behind the existing canvas content.', 'the existing canvas content is kept where both the new shape and existing canvas content overlap.
... everything else is made trans
parent.', 'the existing content is kept where it doesn\'t overlap the new shape.', 'the existing canvas is only kept where it overlaps the new shape.
... the new shape is drawn behind the canvas content.', 'where both shapes overlap the color is determined by adding color values.', 'only the new shape is shown.', 'shapes are made trans
parent where both overlap and drawn normal everywhere else.', 'the pixels are of the top layer are multiplied with the corresponding pixel of the bottom layer.
Pixel manipulation with canvas - Web APIs
all pixels are preset to trans
parent black (all zeroes i.e rgba(0,0,0,0)).
...the new object's pixels are all preset to trans
parent black.
... note: any pixels outside the canvas are returned as trans
parent black in the resulting imagedata object.
ConstantSourceNode - Web APIs
properties inherits properties from its
parent interface, audioscheduledsourcenode, and adds the following properties: offset an audioparam which specifies the value that this source continuously outputs.
... event handlers inherits event handlers from its
parent interface, audioscheduledsourcenode.
... methods inherits methods from its
parent interface, audioscheduledsourcenode.
DOMRect - Web APIs
it inherits from its
parent, domrectreadonly.
... properties domrect inherits properties from its
parent, domrectreadonly.
...lue of the domrect (has the same value as x + width, or x if width is negative.) domrectreadonly.bottom returns the bottom coordinate value of the domrect (has the same value as y + height, or y if height is negative.) domrectreadonly.left returns the left coordinate value of the domrect (has the same value as x, or x + width if width is negative.) methods domrect inherits methods from its
parent, domrectreadonly.
DedicatedWorkerGlobalScope: message event - Web APIs
the message event is fired on a dedicatedworkerglobalscope object when the worker receives a message from its
parent (i.e.
... when the
parent sends a message using worker.postmessage()).
...t a message using worker.postmessage(): const worker = new worker("static/scripts/worker.js"); worker.addeventlistener('message', (event) => { console.log(`received message from worker: ${event.data}`) }); the worker can listen for this message using addeventlistener(): // inside static/scripts/worker.js self.addeventlistener('message', (event) => { console.log(`received message from
parent: ${event.data}`); }); alternatively, it could listen using the onmessage event handler property: // static/scripts/worker.js self.onmessage = (event) => { console.log(`received message from
parent: ${event.data}`); }; specifications specification status html living standard living standard ...
DocumentType - Web APIs
t="_top"><rect x="266" y="1" width="120" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="326" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">documenttype</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, node, and implements the childnode interface.
... methods inherits methods from its
parent, node, and implements the childnode interface.
... childnode.remove() removes the object from its
parent children list.
Traversing an HTML table with JavaScript and DOM Interfaces - Web APIs
once we have created the <table>, <tbody>, <tr>, and <td> elements, and then the text node, we then append each object to its
parent in the opposite order: first, we attach each text node to its
parent <td> element using cell.appendchild(celltext); next, we attach each <td> element to its
parent <tr> element using row.appendchild(cell); next, we attach each <tr> element to the
parent <tbody> element using tblbody.appendchild(row); next, we attach the <tbody> element to its
parent <table> element using tbl.
...appendchild(tblbody); next, we attach the <table> element to its
parent <body> element using body.appendchild(tbl); remember this technique.
...first, you create elements from the top down; then you attach the children to the
parents from the bottom up.
HTMLAudioElement - Web APIs
properties no specific properties; inherits properties from its
parent, htmlmediaelement, and from htmlelement.
... methods inherits methods from its
parent, htmlmediaelement, and from htmlelement.
...this snippet copies the audio file's duration to a variable: var audioelement = new audio('car_horn.wav'); audioelement.addeventlistener('loadeddata', () => { let duration = audioelement.duration; // the duration variable now holds the duration (in seconds) of the audio clip }) events inherits methods from its
parent, htmlmediaelement, and from its ancestor htmlelement.
HTMLBodyElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbodyelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement and from windoweventhandlers.
... methods no specific methods; inherits methods from its
parent, htmlelement, and from windoweventhandlers.
... event handlers no specific event handlers; inherits event handlers from its
parent, htmlelement and from windoweventhandlers.
HTMLElement.offsetLeft - Web APIs
the htmlelement.offsetleft read-only property returns the number of pixels that the upper left corner of the current element is offset to the left within the htmlelement.offset
parent node.
... for block-level elements, offsettop, offsetleft, offsetwidth, and offsetheight describe the border box of an element relative to the offset
parent.
... syntax left = element.offsetleft; left is an integer representing the offset to the left in pixels from the closest relatively positioned
parent element.
HTMLElement.offsetTop - Web APIs
the htmlelement.offsettop read-only property returns the distance of the current element relative to the top of the offset
parent node.
... syntax toppos = element.offsettop; parameters toppos is the number of pixels from the top of the closest relatively positioned
parent element.
... example var d = document.getelementbyid("div1"); var toppos = d.offsettop; if (toppos > 10) { // object is offset more // than 10 pixels from its
parent } specification specification status comment css object model (cssom) view modulethe definition of 'offsettop' in that specification.
HTMLFrameSetElement - Web APIs
properties inherits properties from its
parent, htmlelement and from windoweventhandlers.
... methods no specific method; inherits methods from its
parent, htmlelement and from windoweventhandlers.
... event handlers no specific event handler; inherits event handlers from its
parent, htmlelement and from windoweventhandlers.
HTMLLegendElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmllegendelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
...if the legend has a fieldset element as its
parent, then this attribute returns the same value as the form attribute on the
parent fieldset element.
... htmllegendelement.align is a domstring representing the alignment relative to the form set methods no specific method; inherits methods from its
parent, htmlelement.
HTMLScriptElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlscriptelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific methods; inherits methods from its
parent, htmlelement.
... function loaderror(oerror) { throw new urierror("the script " + oerror.target.src + " didn't load correctly."); } function prefixscript(url, onloadfunction) { var newscript = document.createelement("script"); newscript.onerror = loaderror; if (onloadfunction) { newscript.onload = onloadfunction; } document.currentscript.
parentnode.insertbefore(newscript, document.currentscript); newscript.src = url; } this next function, instead of prepending the new scripts immediately before the document.currentscript element, appends them as children of the <head> tag.
HTMLSourceElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlsourceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... note: if the src property is updated (along with any siblings), the
parent htmlmediaelement's load method should be called when done, since <source> elements are not re-scanned automatically.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLTrackElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltrackelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
... events the following events may be fired on a <track> element, in addition to any that may be fired at its
parent, htmlelement.
Intersection Observer API - Web APIs
starting at the target's immediate
parent block and moving outward, each containing block's clipping (if any) is applied to the intersection rectangle.
...so if the top level of an <iframe> is reached, the intersection rectangle is clipped to the frame's viewport, then the frame's
parent element is the next block recursed through toward the intersection root.
...the result: not only does the color get changed, but the transparency of the target element changes, too; as the intersection ratio goes down, the background color's alpha value goes down with it, resulting in an element that's more trans
parent.
Node.replaceChild() - Web APIs
the node.replacechild() method replaces a child node within the given (
parent) node.
... syntax
parentnode.replacechild(newchild, oldchild); parameters newchild the new node to replace oldchild.
...var sp1_content = document.createtextnode("new replacement span element."); // apply that content to the new element sp1.appendchild(sp1_content); // build a reference to the existing node to be replaced var sp2 = document.getelementbyid("childspan"); var
parentdiv = sp2.
parentnode; // replace existing node sp2 with the new span element sp1
parentdiv.replacechild(sp1, sp2); // result: // <div> // <span id="newspan">new replacement span element.</span> // </div> specifications specification status comment domthe definition of 'node: replacechild' in that specification.
SharedWorkerGlobalScope - Web APIs
properties this interface inherits properties from the workerglobalscope interface, and its
parent eventtarget, and therefore implements properties from windowtimers, windowbase64, and windoweventhandlers.
... event handlers this interface inherits event handlers from the workerglobalscope interface, and its
parent eventtarget, and therefore implements event handlers from windowtimers, windowbase64, and windoweventhandlers.
... methods this interface inherits methods from the workerglobalscope interface, and its
parent eventtarget, and therefore implements methods from windowtimers, windowbase64, and windoweventhandlers.
WebGLContextEvent - Web APIs
inheritance this interface inherits properties and methods from its
parent interface, event.
...6" y="1" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="201" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">webglcontextevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits properties from its
parent interface, event.
... methods this interface doesn't define any own methods, but inherits methods from its
parent interface, event.
Window: unload event - Web APIs
onunload it is fired after: beforeunload (cancelable event) pagehide the document is in the following state: all the resources still exist (img, iframe etc.) nothing is visible anymore to the end user ui interactions are ineffective (window.open, alert, confirm, etc.) an error won't stop the unloading workflow please note that the unload event also follows the document tree:
parent frame unload will happen before child frame unload (see example below).
... examples <!doctype html> <html> <head> <title>
parent frame</title> <script> window.addeventlistener('beforeunload', function(event) { console.log('i am the 1st one.'); }); window.addeventlistener('unload', function(event) { console.log('i am the 3rd one.'); }); </script> </head> <body> <iframe src="child-frame.html"></iframe> </body> </html> below, the content of child-frame.html: <!doctype html> <html> <head> <title>child frame</title> <script> window.addeventlistener('beforeunload', function(event) { console.log('i am the 2nd one.'); }); window.addeventlistener('unload', function(event) { console.log('i am the 4th and last one…'); }); </script> </head> <body> �...
...�� </body> </html> when the
parent frame is unloaded, events will be fired in the order described by the console.log() messages.
XREnvironmentBlendMode - Web APIs
additive primarily used by ar devices with trans
parent lenses which directly allow reality to pass through to the user's eyes, the additive blending mode is designed to be used in a situation in which the device has no control over the background and its brightness, since that isn't being digitally controlled.
...therefore, black is rendered as fully trans
parent, and there's no way to make a pixel fully opaque.
...pixels whose alpha value is 1.0 are rendered fully opaque, totally obscuring the real world, while pixels with an alpha of 1.0 are totally trans
parent, leaving the surrounding environment to pass through.
Using the aria-hidden attribute - Accessibility
additionally, since this attribute is inherited by an element's children, it should not be added onto the
parent or ancestor of a focusable element.
... using aria-hidden="false" will not re-expose the element to assistive technology if any of its
parents specify aria-hidden="true".
... deciding between aria-hidden="true", role="presentation", and role="none" on the surface, the aria-hidden="true", role="presentation", and role="none" attributes seem similar because they: hide content from assistive technology cannot be used on a focusable element cannot be used on the
parent of an interactive element despite these similarities, the intent behind each attribute is different.
ARIA: cell role - Accessibility
role="rowgroup" row is a required cell
parent.
... rowgroup is an optional contextual row
parent.
...if the rows that are visible are contiguous, and there are no cells with a colspan or rowspan greater than one, this property can be added to the
parent rows instead of all the rows' cells.
-webkit-mask-composite - CSS: Cascading Style Sheets
the pixels of the source mask image are rendered only if they overlap a nontrans
parent portion of the destination mask image.
...the pixels of the destination mask image are rendered only if they overlap a nontrans
parent portion of the destination mask image.
... xor overlapping pixels in the source mask image and the destination mask image become fully trans
parent if they are both fully opaque.
Relationship of flexbox to other layout methods - CSS: Cascading Style Sheets
for example, if an item is floated and then its
parent becomes a flex container.
... with regard to flex items, if an item was floated or cleared and then becomes a flex item due to the
parent having display: flex applied, the floating and clearing will no longer happen, and the item will not be taken out of normal flow in the way that floats are.
... must be treated as if it had been replaced with its children and pseudo-elements in the document tree.” this value of display controls box generation, and whether the element should generate a box that we can style and see on the page, or whether instead the box it would normally create should be removed and the child elements essentially moved up to participate in whatever layout method the
parent would have been part of.
CSS Grid Layout and Progressive Enhancement - CSS: Cascading Style Sheets
other values of display when an element has a
parent set to display: grid it is blockified, as defined in the css display specification.
...therefore, if you use display: table-cell without any
parent element set to display-table, an anonymous table wrapper is created around any adjacent cells, just as if you had wrapped them in a div or other element set to display: table.
... if you have an item set to display: table-cell, and then in a feature query change the
parent to display: grid, this anonymous box creation will not happen.
Relationship of grid layout to other layout methods - CSS: Cascading Style Sheets
the specification defines the behavior when a grid container is a containing block and a
parent of the absolutely positioned item.
... a grid container as
parent if the absolutely positioned child has a grid container as a
parent but that container does not create a new positioning context, then it is taken out of flow as in the previous example.
... with a grid area as the
parent if the absolutely positioned item is nested inside a grid area then you can create a positioning context on that area.
Stacking context example 3 - CSS: Cascading Style Sheets
second-level and third-level divs appear when hovering or clicking on their
parents.
... the second-level menu is absolutely positioned inside the
parent element.
...the problem is that for each second-level menu, a stacking context is created and each third-level menu belongs to the context of its
parent.
CSS selectors - CSS: Cascading Style Sheets
note: there are no selectors or combinators to select
parent items, siblings of
parents, or children of
parent siblings.
...this means that the second element follows the first (though not necessarily immediately), and both share the same
parent.
...this means that the second element directly follows the first, and both share the same
parent.
Privacy and the :visited selector - CSS: Cascading Style Sheets
ly the following styles can be applied to visited links: color background-color border-color (and its sub-properties) column-rule-color outline-color the color parts of the fill and stroke attributes in addition, even for the above styles, you won't be able to change the transparency between unvisited and visited links, as you otherwise would be able to using rgba(), hsla(), or the trans
parent keyword.
... here is an example of how to use styles with the aforementioned restrictions: :link { outline: 1px dotted blue; background-color: white; /* the default value of background-color is `trans
parent`.
... colors that are otherwise trans
parent will fail to appear if styled in a :visited selector.
Specificity - CSS: Cascading Style Sheets
#
parent { color: green; } h1 { color: purple; } ...
... <html> <body id="
parent"> <h1>here is a title!</h1> </body> </html> ...
... will also render as: this is because the h1 selector targets the element specifically, but the green selector is only inherited from its
parent.
Visual formatting model - CSS: Cascading Style Sheets
this situation happens when, for example, you declare display: flex on a
parent element, and directly inside there is a run of text not contained in another element.
... something to consider about these anonymous boxes is that they inherit styles from their direct
parent, but you cannot change how they look by targeting the anonymous box.
...this does not change the anonymous boxes, as they are not a child of the
parent block.
<alpha-value> - CSS: Cascading Style Sheets
if given as a number, the useful range is 0 (fully trans
parent) to 1.0 (fully opaque), with decimal values in between; that is, 0.5 indicates that half of the foreground color is used and half of the background color is used.
... if the alpha value is given as a percentage, 0% corresponds to fully trans
parent while 100% indicates fully opaque.
... examples setting text color opacity here an alpha value is used to set partially trans
parent text: /* <rgba()> */ color: rgba(34, 12, 64, 0.6); color: rgba(34.0 12 64 / 60%); setting shape image threshold here an alpha value is used to determine which parts of an image are considered part of a shape: /* shape-image-threshold */ shape-image-threshold: 70%; shape-image-threshold: 0.7; specifications specification status comment css color module level 4the definition of '<alpha-value>' in that specification.
appearance (-moz-appearance, -webkit-appearance) - CSS: Cascading Style Sheets
use progress-bar instead progressbar-vertical div { color: trans
parent; -moz-appearance: progressbar-vertical; -webkit-appearance: preogressbar-vertical; } <div>lorem</div> firefox range div { color: black; -moz-appearance: range; -webkit-appearance: range; } range <div>lorem</div> firefox range-thumb div { color: black; -moz-appearance: range-thumb; -webkit-appearance: r...
...-moz-appearance: rating-level-indicator; -webkit-appearance: rating-level-indicator; } <div>lorem</div> safari relevancy-level-indicator div{ color: black; -moz-appearance: relevancy-level-indicator; -webkit-appearance: relevancy-level-indicator; } <div>lorem</div> safari scale-horizontal div { color: trans
parent; -moz-appearance: scale-horizontal; -webkit-appearance: scale-horizontal; } <div>lorem</div> firefox scalethumbend div { color: black; -moz-appearance: scalethumbend; -webkit-appearance: scalethumbend; } <div>lorem</div> firefox scalethumb-horizontal div { color: trans
parent; -moz-appearance: scalethumb-ho...
... div { color: black; -moz-appearance: scalethumbtick; -webkit-appearance: scalethumbtick; } <div>lorem</div> firefox scalethumb-vertical div { color: black; -moz-appearance: scalethumb-vertical; -webkit-appearance: scalethumb-vertical; } <div>lorem</div> firefox scale-vertical div { color: trans
parent; -moz-appearance: scale-vertical; -webkit-appearance: scale-vertical; } <div>lorem</div> firefox scrollbarthumb-horizontal div { color: black; -moz-appearance: scrollbarthumb-horizontal; -webkit-appearance: scrollbarthumb-horizontal; } <div>lorem</div> firefox scrollbarthumb-vertical div { color: black; -m...
box-shadow - CSS: Cascading Style Sheets
inset shadows are drawn inside the border (even trans
parent ones), above the background, but below content.
...fication does not include an exact algorithm for how the blur radius should be calculated, however, it does elaborate as follows: …for a long, straight shadow edge, this should create a color transition the length of the blur distance that is perpendicular to and centered on the shadow’s edge, and that ranges from the full shadow color at the radius endpoint inside the shadow to fully trans
parent at the endpoint outside it.
...if the lists of shadows have different lengths, then the shorter list is padded at the end with shadows whose color is trans
parent, all lengths are 0, and whose inset (or not) matches the longer list.
clamp() - CSS: Cascading Style Sheets
you may also use
parentheses to establish computation order when needed.
... it is permitted to nest max() and min() functions as expression values, in which case the inner ones are treated as simple
parentheses.
...you may also use
parentheses to establish computation order when needed.
font - CSS: Cascading Style Sheets
it also applies to ::first-letter and ::first-line.inheritedyespercentagesas each of the properties of the shorthand:font-size: refer to the
parent element's font sizeline-height: refer to the font size of the element itselfcomputed valueas each of the properties of the shorthand:font-style: as specifiedfont-variant: as specifiedfont-weight: the keyword or the numerical value as specified, with bolder and lighter transformed to the real valuefont-stretch: as specifiedfont-size: as specified, but with relative lengths converted into absolute ...
... set the font family to sans-serif */ p { font: 12px/14px sans-serif } /* set the font size to 80% of the
parent element or default value (if no
parent element present).
...ut_" + radio_name, curelemname = "input_" + radio_name, curelem = document.getelementbyid(curelemname); curelem.value = oradio[i].value; return oradio[i].value; } } } setcss = function () { getproperties(); injectcss(shorttext); } injectcss = function(cssfragment) { old = document.body.getelementsbytagname("style"); if (old.length > 1) { old[1].
parentelement.removechild(old[1]); } css = document.createelement("style"); css.innerhtml = ".fontshorthand{font: " + cssfragment + "}"; document.body.appendchild(css); } setcss(); specifications specification status comment css fonts module level 3the definition of 'font' in that specification.
image() - CSS: Cascading Style Sheets
unlike declaring a background-color, which is placed under or behind all the background images, this can be used to put (generally semi-trans
parent) colors over other images.
...while this can and should be done by including a background-color on every background image, the css image() function allows adding allows only including background colors should an image fail to load, which means you can add a fall back color should a trans
parent png/gif/webp not load.
...of a background image .quarterlogo {height: 200px; width: 200px; border: 1px solid;} .quarterlogo { background-image: image(rgba(0, 0, 0, 0.25)), url("https://mdn.mozillademos.org/files/12053/firefox.png"); background-size: 25%; background-repeat: no-repeat; } <div class="quarterlogo">if supported, a quarter of this div has a darkened logo</div> the above will put a semi-trans
parent black mask over the firefox logo background image.
inherit - CSS: Cascading Style Sheets
the inherit css keyword causes the element for which it is specified to take the computed value of the property from its
parent element.
... inheritance is always from the
parent element in the document tree, even when the
parent element is not the containing block.
... examples exclude selected elements from a rule /* make second-level headers green */ h2 { color: green; } /* ...but leave those in the sidebar alone so they use their
parent's color */ #sidebar h2 { color: inherit; } in this example the h2 elements inside the sidebar might be different colors.
max-width - CSS: Cascading Style Sheets
computed valuethe percentage as specified or the absolute length or noneanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> examples setting max width in pixels in this example, the "child" will be either 150 pixels wide or the width of the "
parent," whichever is smaller.
... html <div id="
parent"> <div id="child"> fusce pulvinar vestibulum eros, sed luctus ex lobortis quis.
... </div> </div> css #
parent { background: lightblue; width: 300px; } #child { background: gold; width: 100%; max-width: 150px; } result specifications specification status comment css box sizing module level 4the definition of 'max-width' in that specification.
pointer-events - CSS: Cascading Style Sheets
in these circumstances, pointer events will trigger event listeners on this
parent element as appropriate on their way to/from the descendant during the event capture/bubble phases.
...if one of the element's children has pointer-events explicitly set to allow that child to be the target of pointer events, then any events targeting that child will pass through the
parent as the event travels along the
parent chain, and trigger event listeners on the
parent as appropriate.
... of course any pointer activity at a point on the screen that is covered by the
parent but not by the child will not be caught by either the child or the
parent (it will go "through" the
parent and target whatever is underneath).
revert - CSS: Cascading Style Sheets
thus, it resets the property to its inherited value if it inherits from its
parent or to the default value established by the user agent's stylesheet (or by user styles, if any exist).
... revert will not affect rules applied to children of an element you reset (but will remove effects of a
parent rule on a child).
... h3 { font-weight: normal; color: blue; border-bottom: 1px solid grey; } <h3>this will have custom styles</h3> <p>just some text</p> <h3 style="all: revert">this should be reverted to browser/user defaults</h3> <p>just some text</p> revert on a
parent reverting effectively removes the value for the element you select with some rule and only for that element.
Video player styling basics - Developer guides
each button has some basic styling: .controls button { border:none; cursor:pointer; background:trans
parent; background-size:contain; background-repeat:no-repeat; } by default, all <button> elements have a border, so this is removed.
... since background images will be used to display appropriate icons, the background colour of the button is set to be trans
parent, non-repeated, and the element should fully contain the image.
...it now also needs to take into account the offset position of the
parent element: progress.addeventlistener('click', function(e) { var pos = (e.pagex - (this.offsetleft + this.offset
parent.offsetleft)) / this.offsetwidth; video.currenttime = pos * video.duration; }); fullscreen the fullscreen implemention hasn't changed.
Challenge solutions - Developer guides
solution define a rule for list items to use the lower-roman list style: li { list-style: lower-roman; } capital letters challenge change your stylesheet to identify the headings with capital letters in
parentheses.
... solution add a rule to the body element (
parent of the headings) to reset a new counter, and one to display and increment the counter on the headings: /* numbered headings */ body {counter-reset: headnum;} h3:before { content: "(" counter(headnum, upper-latin) ") "; counter-increment: headnum; } boxes ocean border challenge add one rule to your stylesheet, making a wide border all around the oceans in a color that reminds you of the sea.
...ired result: // javascript demonstration function dodemo (button) { var square = document.getelementbyid("square"); square.style.backgroundcolor = "#fa4"; square.style.marginleft = "20em"; button.setattribute("disabled", "true"); settimeout(cleardemo, 2000, button); } function cleardemo (button) { var square = document.getelementbyid("square"); square.style.backgroundcolor = "trans
parent"; square.style.marginleft = "0em"; button.removeattribute("disabled"); } svg and css change color of inner petals challenge change the stylesheet so that the inner petals all turn pink when the mouse pointer is over any one of them, without changing the way the outer petals work.
<audio>: The Embed Audio element - HTML: Hypertext Markup Language
permitted content if the element has a src attribute: zero or more <track> elements followed by trans
parent content that contains no <audio> or <video> media elements.
... else: zero or more <source> elements followed by zero or more <track> elements followed by trans
parent content that contains no <audio> or <video> media elements.
... permitted
parents any element that accepts embedded content.
<hgroup> - HTML: Hypertext Markup Language
permitted
parents any element that accepts flow content.
...shown in a rendered outline; for example: an <hgroup> might be shown in a rendered outline in with a colon character and space (“: ”) or other such punctuation after the primary heading and before the first secondary heading (and with the same or similar punctuation before any other secondary headings an <hgroup> might be shown in a rendered outline in with the primary heading followed by
parentheses around the secondary heading(s) consider the following html document: <!doctype html> <title>html standard</title> <body> <hgroup id="document-title"> <h1>html</h1> <h2>living standard — last updated 12 august 2016</h2> </hgroup> <p>some intro to the document.</p> <h2>table of contents</h2> <ol id=toc>...</ol> <h2>first section</h2> <p>some intro to the first secti...
... or, the rendered outline for that document might instead look like the following: that is, the rendered outline might show the primary title, html, followed by the secondary title shown in
parentheses: (living standard — last updated 12 august 2016).
<input type="tel"> - HTML: Hypertext Markup Language
despite the fact that inputs of type tel are functionally identical to standard text inputs, they do serve useful purposes; the most quickly ap
parent of these is that mobile browsers — especially on mobile phones — may opt to present a custom keypad optimized for entering phone numbers.
... var selectelem = document.queryselector("select"); var inputelems = document.queryselectorall("input"); selectelem.onchange = function() { for(var i = 0; i < inputelems.length; i++) { inputelems[i].value = ""; } if(selectelem.value === "us") { inputelems[2].
parentnode.style.display = "inline"; inputelems[0].placeholder = "area code"; inputelems[0].pattern = "[0-9]{3}"; inputelems[1].placeholder = "first part"; inputelems[1].pattern = "[0-9]{3}"; inputelems[1].setattribute("aria-label","first part of number"); inputelems[2].placeholder = "second part"; inputelems[2].pattern = "[0-9]{4}"; inputelems[2].setattribute("aria-la...
...bel","second part of number"); } else if(selectelem.value === "uk") { inputelems[2].
parentnode.style.display = "none"; inputelems[0].placeholder = "area code"; inputelems[0].pattern = "[0-9]{3,6}"; inputelems[1].placeholder = "local number"; inputelems[1].pattern = "[0-9]{4,8}"; inputelems[1].setattribute("aria-label","local number"); } else if(selectelem.value === "germany") { inputelems[2].
parentnode.style.display = "inline"; inputelems[0].placeholder = "area code"; inputelems[0].pattern = "[0-9]{3,5}"; inputelems[1].placeholder = "first part"; inputelems[1].pattern = "[0-9]{2,4}"; inputelems[1].setattribute("aria-label","first part of number"); inputelems[2].placeholder = "second part"; inputelems[2].pattern = "[0-9]{4}"; in...
<input>: The Input (Form Input) element - HTML: Hypertext Markup Language
also available are those methods specified by the
parent interfaces, htmlelement, element, node, and eventtarget.
... firefox uses the following heuristics to determine the locale to validate the user's input (at least for type="number"): try the language specified by a lang/xml:lang attribute on the element or any of its
parents.
... permitted
parents any element that accepts phrasing content.
<summary>: The Disclosure Summary element - HTML: Hypertext Markup Language
clicking the <summary> element toggles the state of the
parent <details> element open and closed.
... permitted
parents the <details> element.
...when the user clicks on the summary, the
parent <details> element is toggled open or closed, and then a toggle event is sent to the <details> element, which can be used to let you know when this state change occurs.
<tr>: The Table Row element - HTML: Hypertext Markup Language
if no value is expressly set for align, the
parent node's value is inherited.
...omitting the attribute or setting it to null in javascript causes the row's cells to inherit the row's
parent element's background color.
...end tag may be omitted if the <tr> element is immediately followed by a <tr> element, or if the row is the last element in its
parent table group (<thead>, <tbody> or <tfoot>) element permitted
parents <table> (only if the table has no child <tbody> element, and even then only after any <caption>, <colgroup>, and <thead> elements); otherwise, the
parent must be <thead>, <tbody> or <tfoot> implicit aria role row permitted aria roles any dom interface htmltablerowelement spec...
Content negotiation - HTTP
over the years, other content negotiation proposals, like trans
parent content negotiation and the alternates header, have been proposed.
...a comment is a free string delimited by
parentheses.
... obviously
parentheses cannot be used in that string.
An overview of HTTP - HTTP
due to the layered structure of the web stack, most of these operate at the transport, network or physical levels, becoming trans
parent at the http layer and potentially making a significant impact on performance.
...these can be trans
parent, forwarding on the requests they receive without altering them in any way, or non-trans
parent, in which case they will change the request in some way before passing it along to the server.
... proxies may perform numerous functions: caching (the cache can be public or private, like the browser cache) filtering (like an antivirus scan or
parental controls) load balancing (to allow multiple servers to serve the different requests) authentication (to control access to different resources) logging (allowing the storage of historical information) basic aspects of http http is simple http is generally designed to be simple and human readable, even with the added complexity introduced in http/2 by encapsulating http messages into frames.
A re-introduction to JavaScript (JS tutorial) - JavaScript
see this example: console.log(3 / 2); // 1.5, not 1 console.log(math.floor(3 / 2)); // 1 so an ap
parent integer is in fact implicitly a float.
...an important detail of nested functions in javascript is that they can access variables in their
parent function's scope: function
parentfunc() { var a = 1; function nestedfunc() { var b = 4; //
parentfunc can't use this return a + b; } return nestedfunc(); // 5 } this provides a great deal of utility in writing more maintainable code.
...nested functions can share variables in their
parent, so you can use that mechanism to couple functions together when it makes sense without polluting your global namespace — "local globals" if you like.
Closures - JavaScript
lexical scoping consider the following example code: function init() { var name = 'mozilla'; // name is a local variable created by init function displayname() { // displayname() is the inner function, a closure alert(name); // use variable declared in the
parent function } displayname(); } init(); init() creates a local variable called name and a function called displayname().
...however, since inner functions have access to the variables of outer functions, displayname() can access the variable name declared in the
parent function, init().
... run the code using this jsfiddle link and notice that the alert() statement within the displayname() function successfully displays the value of the name variable, which is declared in its
parent function.
Regular expression syntax cheatsheet - JavaScript
in results, matches to capturing groups typically in an array whose members are in the same order as the left
parentheses in the capturing group.
...if you don't need the matched substring to be recalled, prefer non-capturing
parentheses (see below).
...a back reference to the last substring matching the n
parenthetical in the regular expression (counting left
parentheses).
Groups and ranges - JavaScript
in results, matches to capturing groups typically in an array whose members are in the same order as the left
parentheses in the capturing group.
...if you don't need the matched substring to be recalled, prefer non-capturing
parentheses (see below).
...a back reference to the last substring matching the n
parenthetical in the regular expression (counting left
parentheses).
Regular expressions - JavaScript
the last example includes
parentheses, which are used as a memory device.
... using
parentheses
parentheses around any part of the regular expression pattern causes that part of the matched substring to be remembered.
... within non-capturing
parentheses (?: , the regular expression looks for three numeric characters \d{3} or | a left
parenthesis \( followed by three digits \d{3}, followed by a close
parenthesis \), (end non-capturing
parenthesis )), followed by one dash, forward slash, or decimal point and when found, remember the character ([-\/\.]), followed by three digits \d{3}, followed by the remembered match of a dash, forward slash,...
Classes - JavaScript
// for similar methods, the child's method takes precedence over
parent's method note that classes cannot extend regular (non-constructible) objects.
... for example, when using methods such as map() that returns the default constructor, you want these methods to return a
parent array object, instead of the myarray object.
... the symbol.species symbol lets you do this: class myarray extends array { // overwrite species to the
parent array constructor static get [symbol.species]() { return array; } } let a = new myarray(1,2,3); let mapped = a.map(x => x * x); console.log(mapped instanceof myarray); // false console.log(mapped instanceof array); // true super class calls with super the super keyword is used to call corresponding methods of super class.
Deprecated and obsolete features - JavaScript
this does not affect their use in replacement strings: property description $1-$9
parenthesized substring matches, if any.
... lastparen the last
parenthesized substring match, if any.
... __
parent__ points to an object's context.
SyntaxError: missing } after function body - JavaScript
check if any closing curly brackets or
parenthesis are in the correct order.
...also check if any closing curly brackets or
parenthesis are in the correct order.
...y bracket oftentimes, there is a missing curly bracket in your function code: var charge = function() { if (sunny) { usesolarcells(); } else { promptbikeride(); }; correct would be: var charge = function() { if (sunny) { usesolarcells(); } else { promptbikeride(); } }; it can be more obscure when using iife, closures, or other constructs that use a lot of different
parenthesis and curly brackets, for example.
SyntaxError: missing ) after condition - JavaScript
it must appear in
parenthesis after the if keyword.
...in javascript, this condition must appear in
parenthesis after the if keyword, like this: if (condition) { // do something if the condition is true } examples missing
parenthesis it might just be an oversight, carefully check all you
parenthesis in your code.
... if (3 > math.pi { console.log("wait what?"); } // syntaxerror: missing ) after condition to fix this code, you would need to add a
parenthesis that closes the condition.
Object.create() - JavaScript
however, when attempting to actually use these objects, their differences quickly become ap
parent: > "oco is: " + oco // shows "oco is: [object object]" > "ocn is: " + ocn // throws error: cannot convert object to primitive value testing just a few of the many most basic built-in functions shows the magnitude of the problem more clearly: > alert(oco) // shows [object object] > alert(ocn) // throws error: cannot convert object to primitive value > oco.tostring() // shows [object object] ...
... var obj = object.create({ a: 1, b: 2 }); > console.log(object.entries(obj)); // shows "[]" some non-solutions a good solution for the missing object-methods is not immediately ap
parent.
...} // subclass extends superclass rectangle.prototype = object.create(shape.prototype); //if you don't set rectangle.prototype.constructor to rectangle, //it will take the prototype.constructor of shape (
parent).
Object - JavaScript
ntalk) { console.log('hi, i am ' + this.name); } }; var employee = function(name, title) { person.call(this, name); this.title = title; }; employee.prototype = object.create(person.prototype); employee.prototype.constructor = employee; //if you don't set object.prototype.constructor to employee, //it will take prototype.constructor of person (
parent).
...is.cantalk) { console.log('hi, i am ' + this.name + ', the ' + this.title); } }; var customer = function(name) { person.call(this, name); }; customer.prototype = object.create(person.prototype); customer.prototype.constructor = customer; //if you don't set object.prototype.constructor to customer, //it will take prototype.constructor of person (
parent).
... var mime = function(name) { person.call(this, name); this.cantalk = false; }; mime.prototype = object.create(person.prototype); mime.prototype.constructor = mime; //if you don't set object.prototype.constructor to mime, //it will take prototype.constructor of person (
parent).
RegExp.prototype.exec() - JavaScript
the returned array has the matched text as the first item, and then one item for each
parenthetical capture group of the matched text.
...member "brown" and "jumps" // ignore case let re = /quick\s(brown).+?(jumps)/ig; let result = re.exec('the quick brown fox jumps over the lazy dog'); the following table shows the results for this script: object property/index description example result [0] the full string of characters matched "quick brown fox jumps" [1], ...[n] the
parenthesized substring matches, if any.
... the number of possible
parenthesized substrings is unlimited.
String.prototype.replace() - JavaScript
$n where n is a positive integer less than 100, inserts the nth
parenthesized submatch string, provided the first argument was a regexp object.
... the nth string found by a
parenthesized capture group (including named capturing groups), provided the first argument to replace() was a regexp object.
... (the exact number of arguments depends on whether the first argument is a regexp object—and, if so, how many
parenthesized submatches it specifies.) the following example will set newstring to 'abc - 12345 - #$*%': function replacer(match, p1, p2, p3, offset, string) { // p1 is nondigits, p2 digits, and p3 non-alphanumerics return [p1, p2, p3].join(' - '); } let newstring = 'abc12345#$*%'.replace(/([^\d]*)(\d*)([^\w]*)/, replacer); console.log(newstring); // abc - 12345 - #$*% examples defining the r...
String.prototype.replaceAll() - JavaScript
$n where n is a positive integer less than 100, inserts the nth
parenthesized submatch string, provided the first argument was a regexp object.
... the nth string found by a
parenthesized capture group, provided the first argument to replace() was a regexp object.
... (the exact number of arguments depends on whether the first argument is a regexp object—and, if so, how many
parenthesized submatches it specifies.) examples using replaceall 'aabbcc'.replaceall('b', '.'); // 'aa..cc' non-global regex throws when using a regular expression search value, it must be global.
export - JavaScript
her file import m from './test'; // note that we have the freedom to use import m instead of import k, because k was default export console.log(m); // will log 12 you can also rename named exports to avoid naming conflicts: export { myfunction as function1, myvariable as variable }; re-exporting / aggregating it is also possible to "import/export" from different modules in a
parent module so that they are available to import from that module.
...// module "my-module.js" export default function cube(x) { return x * x * x; } then, in another script, it is straightforward to import the default export: import cube from './my-module.js'; console.log(cube(3)); // 27 using export from let's take an example where we have the following hierarchy: childmodule1.js: exporting myfunction and myvariable childmodule2.js: exporting myclass
parentmodule.js: acting as an aggregator (and doing nothing else) top level module: consuming the exports of
parentmodule.js this is what it would look like using code snippets: // in childmodule1.js let myfunction = ...; // assign something useful to myfunction let myvariable = ...; // assign something useful to myvariable export {myfunction, myvariable}; // in childmodule2.js let myclass = ...; ...
...// assign something useful to myclass export myclass; // in
parentmodule.js // only aggregating the exports from childmodule1 and childmodule2 // to re-export them export { myfunction, myvariable } from 'childmodule1.js'; export { myclass } from 'childmodule2.js'; // in top-level module // we can consume the exports from a single module since
parentmodule // "collected"/"bundled" them in a single source import { myfunction, myvariable, myclass } from '
parentmodule.js' specifications specification ecmascript (ecma-262)the definition of 'exports' in that specification.
baseline-shift - SVG: Scalable Vector Graphics
the baseline-shift attribute allows repositioning of the dominant-baseline relative to the dominant-baseline of the
parent text content element.
... <length-percentage> a length value raises (positive value) or lowers (negative value) the dominant-baseline of the
parent text content element by the specified length.
... a percentage value raises (positive value) or lowers (negative value) the dominant-baseline of the
parent text content element by the specified percentage of the line-height.
dominant-baseline - SVG: Scalable Vector Graphics
if this property occurs on a <tspan>, <tref>, <altglyph>, or <textpath> element, then the dominant-baseline and the baseline-table components remain the same as those of the
parent text content element.
... if there is no
parent text content element, the scaled-baseline-table value is constructed as above for <text> elements.
... no-change the dominant-baseline, the baseline-table, and the baseline-table font-size remain the same as that of the
parent text content element.
target - SVG: Scalable Vector Graphics
the target attribute should be used when there are multiple possible targets for the ending resource, such as when the
parent document is embedded within an html or xhtml document, or is viewed with a tabbed browser.
...oper.mozilla.org" target="_self"> <text x="0" y="20">open link within iframe</text> </a> <a href="https://developer.mozilla.org" target="_blank"> <text x="0" y="60">open link in new tab or window</text> </a> <a href="https://developer.mozilla.org" target="_top"> <text x="0" y="100">open link in this tab or window</text> </a> </svg> usage notes value _self | _
parent | _top | _blank | <xml-name> default value _self animatable yes _replace the current svg image is replaced by the linked content in the same rectangular area in the same frame as the current svg image.
... _
parent the immediate
parent browsing context of the svg image is replaced by the linked content, if it exists and can be securely accessed from this document.
Scripting - SVG: Scalable Vector Graphics
inter-document scripting: calling javascript functions when calling a javascript function that resides in the html file from an svg file that is embedded in an html document, you should use
parent.functionname() to reference the function.
... according to the svg wiki the "
parent" js variable is broken in adobe's svg version 6 preview plugin.
... the suggested workaround is to use "top" instead of "
parent".
Clipping and masking - SVG: Scalable Vector Graphics
in this case, any half-trans
parent effects are not possible, it's an all-or-nothing approach.
...then every part of the target lying in a trans
parent area of the resulting clippath's content will not be rendered.
...it's the opacity attribute: <rect x="0" y="0" width="100" height="100" opacity=".5" /> the above rectangle will be painted half-trans
parent.
Bookmarks - Archive of obsolete content
var
parentfolderid = bmsvc.getfolderidforitem(newbkmkid); observing changes to bookmarks and tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver() methods.
... { onbeginupdatebatch: function() {}, onendupdatebatch: function() {}, onitemadded: function(aitemid, afolder, aindex) {}, onitemremoved: function(aitemid, afolder, aindex) {}, onitemchanged: function(abookmarkid, aproperty, aisannotationproperty, avalue) { myextension.dosomething(); }, onitemvisited: function(abookmarkid, avisitid, time) {}, onitemmoved: function(aitemid, aold
parent, aoldindex, anew
parent, anewindex) {}, queryinterface: xpcomutils.generateqi([components.interfaces.nsinavbookmarkobserver]) }; // an extension var myextension = { // this function is called when my add-on is loaded onload: function() { bmsvc.addobserver(myext_bookmarklistener, false); }, // this function is called when my add-on is unloaded onunload: function() { bmsvc.remove...
IsDefaultNamespace - Archive of obsolete content
urn (node.namespaceuri === namespaceuri); } if (node.attributes.length) { for (var i=0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.localname === 'xmlns') { return att.value === namespaceuri; } } } if (node.
parentnode) { // entityreferences may have to be skipped to get to it return isdefaultnamespace(node.
parentnode, namespaceuri); } else { return false; // unknown; } case 9: // document_node return isdefaultnamespace(node.documentelement, namespaceuri); case 6: // entity_node case 12: // no...
...node case 10: // document_type_node case 11: // document_fragment_node return false; // unknown case 2: // attribute_node: if (node.ownerelement ) { return isdefaultnamespace(node.ownerelement , namespaceuri); } else { return false; // unknown } default: if (node.
parentnode) { // entityreferences may have to be skipped to get to it return isdefaultnamespace(node.
parentnode, namespaceuri); } else { return false; // unknown } } } ...
LookupNamespaceURI - Archive of obsolete content
} if (att.name === 'xmlns' && prefix == null) { // default namespace if (att.value) { return att.value; } return null; // unknown } } } if (node.
parentnode && node.
parentnode.nodetype !== 9) { // entityreferences may have to be skipped to get to it return lookupnamespaceurihelper(node.
parentnode, prefix); } return null; case 9: // document_node return lookupnamespaceurihelper(node.documentelement, prefix); case 6: // entity_node ...
...2: // attribute_node if (node.ownerelement) { return lookupnamespaceurihelper(node.ownerelement, prefix); } return null; // unknown default: // text_node (3), cdata_section_node (4), entity_reference_node (5), // processing_instruction_node (7), comment_node (8) if (node.
parentnode) { // entityreferences may have to be skipped to get to it return lookupnamespaceurihelper(node.
parentnode, prefix); } return null; // unknown } }; } }()); ...
Rosetta - Archive of obsolete content
"); if (!odicts.hasownproperty(smimetype)) { alert("rosetta.translatescript() \u2013 unknown mime-type \"" + smimetype + "\": script ignored."); return; } var ocompiled = document.createelement("script"); oscript.
parentnode.insertbefore(obaton, oscript); oscript.
parentnode.removechild(oscript); for (var aattrs = oscript.attributes, nattr = 0; nattr < aattrs.length; nattr++) { ocompiled.setattribute(aattrs[nattr].name, aattrs[nattr].value); } ocompiled.type = "text\/ecmascript"; if (oxhr200) { ocompiled.src = "data:text\/javascript," + encodeuricomponent(odicts[smimetype](oxhr200.respo...
..."" : odicts[smimetype](oscript.text); obaton.
parentnode.insertbefore(ocompiled, obaton); } function reqerror (oerror) { throw new urierror("the script " + oerror.target.src + " is not accessible."); } function reqsuccess () { createscript(this.refscript, this); } function getsource (oscript) { var oreq = new xmlhttprequest(); oreq.onload = reqsuccess; oreq.onerror = reqerror; oreq.refscript = oscript; oreq.open("get", oscript.src, true); oreq.send(null); } function parsescript (oscript) { if (oscript.hasattribute("type") && !rignoremimes.test(oscript.getattribute("type").tolowercase())) { oscript.hasattribute("src") ?
Appendix F: Monitoring DOM changes - Archive of obsolete content
for instance, rather than watching for the creation of <a> elements and adding event listeners to them as they are created, an event listener can be added to the root <html> element, and when the event fires, the event.target and its
parents can be searched for a matching element.
... style = components.utils.getweakreference(style); return function unwatch() { if (style.get()) { style.get().ownerdocument.removeeventlistener('animationstart', listener, false); style.get().
parentnode.removechild(style.get()); } }; } watchnodes.namespace = 'mozcsskeyframerule' in window ?
Using Dependent Libraries In Extension Components - Archive of obsolete content
// assume that we're in <extensiondir>/components, and we want to find // <extensiondir>/libraries nscomptr<nsifile> libraries; rv = alocation->get
parent(getter_addrefs(libraries)); if (ns_failed(rv)) return rv; nscomptr<nsilocalfile> library(do_queryinterface(libraries)); if (!library) return ns_error_unexpected; library->setnativeleafname(ns_literal_cstring("libraries")); library->appendnative(ns_literal_cstring("dummy")); // loop through and load dependent libraries for (char const *const *dependent = kdependentlibrarie...
... // assume that we're in <extensiondir>/components, and we want to find // <extensiondir>/libraries nscomptr<nsifile> libraries; rv = alocation->get
parent(getter_addrefs(libraries)); if (ns_failed(rv)) return rv; nscomptr<nsilocalfile> library(do_queryinterface(libraries)); if (!library) return ns_error_unexpected; library->setnativeleafname(ns_literal_cstring("libraries")); library->appendnative(ns_literal_cstring("dummy")); nscstring path; // loop through and load dependent libraries for (char const *const *dependent = kdependen...
CSS3 - Archive of obsolete content
the trans
parent color is now a real color (thanks to the support for the alpha channel) and is a now an alias for rgba(0,0,0,0.0).
... the css text-align property with the value start, end, start end, and match-
parent for a better support of documents with multiple directionalities of text.
Inner-browsing extending the browser navigation paradigm - Archive of obsolete content
another approach is to request an html page in the iframe and inside this page (requested data), set the onload event to callback a function notifying the
parent document (originator).
...e callback mechanism is implemented, imagine the following html page loaded into the iframe as a result of a request (retrievedata method requested the html file in to be loaded in the iframe): <body onload="top.iframecallback(document);" > <mydata> this is the content that comes from the server </mydata> </body> note that when the page is loaded into the iframe, the onload event is fired and the
parent.iframecallback function is called in the context of the
parent document (the originator).
In-Depth - Archive of obsolete content
example: -moz-border-top-colors: threeddarkshadow threedshadow trans
parent; -moz-border-right-colors: threeddarkshadow threedshadow trans
parent; -moz-border-bottom-colors: threeddarkshadow threedshadow trans
parent; -moz-border-left-colors: threeddarkshadow threedshadow trans
parent; -moz-border-top-colors see -moz-border-bottom-colors above.
...example: -moz-image-region: rect(168px 69px 189px 46px); -moz-opacity makes boxes semi-trans
parent.
Venkman Introduction - Archive of obsolete content
if a function has a breakpoint in it, a small red dot will show up in the function icon, as well as the
parent's file icon.
...if you would like to inspect the object's prototype and
parent chains, check the "include ecma properties" menu item in the view's context menu.
closemenu - Archive of obsolete content
auto this, the default value if the closemenu attribute is not specified, closes up the menu and all
parent menus.
... single the menu the item is contained within is closed, but the
parent menus remain open.
collapse - Archive of obsolete content
before when the grippy is clicked, the element immediately before the splitter in the same
parent is collapsed so that its width or height is 0.
... after when the grippy is clicked, the element immediately after the splitter in the same
parent is collapsed so that its width or height is 0.
Positioning - Archive of obsolete content
a submenu, however, is placed by default to the right of the
parent menu item, such that the top edge of the menu is aligned with the top edge of the
parent menu item.
... for a menupopup placed inside a menu, button or toolbarbutton, the position attribute controls how the menupopup is anchored to the
parent menu, button or toolbarbutton.
Tooltips - Archive of obsolete content
if an element does not have a tooltiptext attribute, yet a
parent element does, the
parent tooltip will apply.
...however, the close button does not have a tooltip associated with it, yet the
parent toolbar does.
Property - Archive of obsolete content
cumentviewer max maxheight maxlength maxrows maxwidth menu menuboxobject menupopup min minheight minresultsforpopup minwidth minute minuteleadingzero mode month monthleadingzero name next nomatch notificationshidden object observes onfirstpage onlastpage open ordinal orient pack pagecount pageid pageincrement pageindex pagestep
parentcontainer palette persist persistence placeholder pmindicator popup popupboxobject popupopen position predicate preferenceelements preferencepanes preferences priority radiogroup readonly readonly ref resource resultspopup scrollboxobject scrollincrement scrollheight scrollwidth searchbutton searchcount searchlabel searchparam searchsess...
...ement.clienttop dom:element.clientwidth dom:element.clonenode dom:element.firstchild dom:element.firstelementchild dom:element.lastchild dom:element.lastelementchild dom:element.localname dom:element.namespaceuri dom:element.nextelementsibling dom:element.nextsibling dom:element.nodename dom:element.nodetype dom:element.nodevalue dom:element.ownerdocument dom:element.
parentnode dom:element.prefix dom:element.previouselementsibling dom:element.previoussibling dom:element.scrollheight dom:element.scrollleft dom:element.scrolltop dom:element.scrollwidth dom:element.tagname dom:element.textcontent ...
RDF Modifications - Archive of obsolete content
next, the member statement is examined, and, in this situation, the builder fills in the known ?photo variable, and looks for a
parent container containing this value.
...if a statement hadn't generated a result, for instance if the photo did not have a title, or it wasn't contained in a
parent container, there would be no match and the builder could stop processing the new triple.
Advanced Rules - Archive of obsolete content
the
parent is specified by the container attribute and the children are specified by the child attribute.
...thus the
parent will be the value of the list variable, which has been set to the root resource 'http://www.xulplanet.com/rdf/weather/cities'.
Using the Editor from XUL - Archive of obsolete content
note: these callbacks also fire for every subdocument that loads as a result of the
parent document load, for example with frameset documents, or html documents with their own embedded <iframe>s.
...this parameter is more important when the editor is in a text widget, where it points to the the subtree of the
parent document that corresponds to widget content.
XUL Questions and Answers - Archive of obsolete content
ascending" sortresource="http://home.netscape.com/nc-rdf#dirtreenamesort"> <template> <rule nc:iswriteable="false"/> <rule nc:ismaillist="true"> <menuitem uri="..." label="rdf:http://home.netscape.com/nc-rdf#dirname" value="rdf:http://home.netscape.com/nc-rdf#diruri"/> </rule> </template> </menupopup> </menulist> drawwindow with trans
parent background possible?
... with mozilla trunk --------------------------------------------------------- nsidomcanvasrenderingcontext2d* c2d = //coming from <canvas> nsidomwindow* window = //coming from <iframe> c2d->drawwindow( window, ..., "rgba(0,0,0,0)"); --------------------------------------------------------- this makes canvas background trans
parent if background is trans
parent but when "window" is coming from top level content window, background is not trans
parent.
key - Archive of obsolete content
for example: <!-- this element handles all key events --> <key/> <!-- these elements don't handle any key events --> <key key="" modifiers="control"/> <key keycode="" modifiers="control"/> modifying attributes in case you want to change one of the <key>'s attributes, such as the modifiers attribute, the keyset element has to be re-added to its
parent node; otherwise the new attributes won't be applied.
... for example: // modify some attributes let key = document.getelementbyid(key_id); key.setattribute("modifiers", "alt shift"); // apply the changes let keyset = document.getelementbyid(keyset_id); keyset.
parentnode.appendchild(keyset); ...
menu - Archive of obsolete content
attributes acceltext, accesskey, allowevents, command, crop, disabled, image, label, menuactive, open, sizetopopup, tabindex, value properties accessibletype, accesskey, command, control, crop, disabled, image, itemcount, label, labelelement, menupopup, open,
parentcontainer, selected, tabindex, value methods appenditem, getindexofitem, getitematindex, insertitemat, removeitemat style classes menu-iconic example <menubar id="sample-menubar"> <menu id="file-menu" label="file"> <menupopup id="file-popup"> <menuitem label="new"/> <menuitem label="open"/> <menuitem label="save"/> <menuseparator/> <menuitem label="exi...
...
parentcontainer type: menu element read only property that returns the containing menu element, or null if there isn't a containing menu.
menuseparator - Archive of obsolete content
attributes acceltext, accesskey, allowevents, command, crop, disabled, image, label, selected, tabindex, value properties accessibletype, accesskey, command, control, crop, disabled, image, label, labelelement,
parentcontainer, selected, tabindex, value examples <menu label="menu"> <menupopup> <menuitem label="item1"/> <menuseparator/> <menuitem label="item2"/> <menuitem label="item3"/> </menupopup> </menu> attributes acceltext type: string text that appears beside the menu label to indicate the shortcut key (accelerator key) to use to invoke the command.
...
parentcontainer type: menu element read only property that returns the containing menu element, or null if there isn't a containing menu.
rule - Archive of obsolete content
attributes iscontainer, isempty,
parent, parsetype examples (example needed) attributes iscontainer type: boolean indicates whether rules match based on containment.
...
parent type: element tag name if set, the rule will only match the corresponding tag.
splitter - Archive of obsolete content
before when the grippy is clicked, the element immediately before the splitter in the same
parent is collapsed so that its width or height is 0.
... after when the grippy is clicked, the element immediately after the splitter in the same
parent is collapsed so that its width or height is 0.
NPN_GetURL - Archive of obsolete content
_
parent: load the link into the immediate <frameset>
parent of the plug-in instance's document.
... if the plug-in instance's document has no
parent, the default is _self.
Making sure your theme works with RTL locales - Archive of obsolete content
for example: /* we want to apply a rtl rule to #c; neither it nor its *
parent element #b has a chromedir attribute, but its * grand
parent element #a does.
...nstead to ensure rtl compatibility: -moz-padding-start -moz-padding-end -moz-margin-start -moz-margin-end -moz-border-start -moz-border-start-color -moz-border-start-style -moz-border-start-width -moz-border-end -moz-border-end-color -moz-border-end-style -moz-border-end-width #urlbar-search-splitter { min-width: 8px; -moz-margin-start: -4px; border: none; background: trans
parent; } testing your theme testing your theme for rtl compatibility is easy, and you do not even have to go through the hassle of downloading a rtl locale.
-ms-scroll-chaining - Archive of obsolete content
the nearest scrollable
parent element begins scrolling when the user hits a scroll limit during any manipulation.
...in this case the image container has its -ms-scroll-chaining property set to chained, which means that when a user is scrolling through a nested scrollable element and it hits its boundary the
parent scrollable element will begin to scroll in the same direction.
-ms-text-autospace - Archive of obsolete content
ideograph-
parenthesis creates extra spacing between a normal (non-wide)
parenthesis and an ideograph.
... formal syntax none | ideograph-alpha | ideograph-numeric | ideograph-
parenthesis | ideograph-space specifications not part of any specification.
-ms-wrap-through - Archive of obsolete content
initial valuewrapapplies toblock-level elementsinheritednocomputed valueas specifiedanimation typediscrete syntax values wrap the exclusion element inherits its
parent node's wrapping context.
... none the exclusion element does not inherit its
parent node's wrapping context.
Generator comprehensions - Archive of obsolete content
generator comprehensions are syntactically almost identical to array comprehensions — they use
parentheses instead of braces— but instead of building an array they create a generator that can execute lazily.
...es = [for (i in it) i * 2]; a generator comprehension on the other hand would create a new iterator which would create doubled values on demand as they were needed: var it2 = (for (i in it) i * 2); console.log(it2.next()); // the first value from it, doubled console.log(it2.next()); // the second value from it, doubled when a generator comprehension is used as the argument to a function, the
parentheses used for the function call means that the outer
parentheses can be omitted: var result = dosomething(for (i in it) i * 2); the significant difference between the two examples being that by using the generator comprehension, you would only have to loop over the 'obj' structure once, total, as opposed to once when comprehending the array, and again when iterating through it.
@set - Archive of obsolete content
term zero or more unary operators followed by a constant, conditional compilation variable, or
parenthesized expression.
... examples of variable declarations look like this: @set @myvar1 = 12 @set @myvar2 = (@myvar1 * 20) @set @myvar3 = @_jscript_version the following operators are supported in
parenthesized expressions: !
LiveConnect Overview - Archive of obsolete content
in some ways, the existence of the liveconnect objects is trans
parent, because you interact with java in a fairly intuitive way.
...most of the time, you don't have to worry about the javapackage and javaclass objects—you just work with java packages and classes, and liveconnect creates these objects trans
parently.
First-class Function - MDN Web Docs Glossary: Definitions of Web-related terms
example | assign a function to a variable javascript const foo = function() { console.log("foobar"); } // invoke it using the variable foo(); we assigned an anonymous function in a variable, then we used that variable to invoke the function by adding
parentheses () at the end.
... 2- using double
parentheses function sayhello() { return function() { console.log("hello!"); } } sayhello()(); we are using double
parentheses ()() to invoke the returned function as well.
Advanced styling effects - Learn web development
when used along with the proprietary -webkit-text-fill-color: trans
parent; feature, this allows you to clip background images to the shape of the element's text, making for some nice effects.
...when used in this context, both of the properties would require a -webkit- vendor prefix, even for non-webkit/chrome-based browsers: .text-clip { -webkit-background-clip: text; -webkit-text-fill-color: trans
parent; } so why have other browsers implemented a -webkit- prefix?
Creating fancy letterheaded paper - Learn web development
add a background declaration to the letter that: fixes the top image to the top of the letter fixes the bottom image to the bottom of the letter adds a semi-trans
parent gradient over the top of both of the previous backgrounds that gives the letter a bit of texture.
... make it slightly dark right near the top and bottom, but completely trans
parent for a large part of the center.
Fundamental CSS comprehension - Learn web development
float the image to the right so that it sticks to the right hand side of the main business card contents, and give it a max-height of 100% (a clever trick that ensures that it will grow/shrink to stay the same height as its
parent container, regardless of what height it becomes.) beware!
...also give it a background color of semi-trans
parent black, resulting in a slightly darker shade that lets the background red color shine through a bit too.
Test your skills: Flexbox - Learn web development
flex layout three there are two elements in the html below, a div with a class of .
parent which contains another div with a class of .child.
... use flexbox to center the child inside the
parent.
Positioning - Learn web development
my adjacent block level elements sit on new lines below me.</p> <p class="positioned">by default we span 100% of the width of our
parent element, and we are as tall as our child content.
...my adjacent block level elements sit on new lines below me.</p> <p class="positioned">by default we span 100% of the width of our
parent element, and we are as tall as our child content.
JavaScript basics - Learn web development
if you see something which looks like a variable name, but it's followed by
parentheses— () —it is likely a function.
...arguments go inside the
parentheses, separated by commas if there is more than one argument.
From object to iframe — other embedding technologies - Learn web development
you should serve your websites using https whenever possible: https reduces the chance that remote content has been tampered with in transit, https prevents embedded content from accessing content in your
parent document, and vice versa.
... using https requires a security certificate, which can be expensive (although let's encrypt makes things easier) — if you can't get one, you may serve your
parent document with http.
Client-side storage - Learn web development
let noteid = number(e.target.
parentnode.getattribute('data-note-id')); // open a database transaction and delete the task, finding it using the id we retrieved above let transaction = db.transaction(['notes_os'], 'readwrite'); let objectstore = transaction.objectstore('notes_os'); let request = objectstore.delete(noteid); // report that the data item has been deleted transaction.oncomplete = function() { // delete...
... the
parent of the button // which is the list item, so it is no longer displayed e.target.
parentnode.
parentnode.removechild(e.target.
parentnode); console.log('note ' + noteid + ' deleted.'); // again, if list item is empty, display a 'no notes stored' message if(!list.firstchild) { let listitem = document.createelement('li'); listitem.textcontent = 'no notes stored.'; list.appendchild(listitem); } }; } the first part of this could use some explaining — we retrieve the id of the record to be deleted using number(e.target.
parentnode.getattribute('data-note-id')) — recall that the id of the record was saved in a data-note-id attribute on the <li> when it was first displayed.
Drawing graphics - Learn web development
note that you can draw semi-trans
parent graphics by specifying a semi-trans
parent color, for example by using rgba().
... 0.9)'; ctx.beginpath(); ctx.moveto(moveoffset, moveoffset); ctx.lineto(moveoffset+length, moveoffset); let triheight = length/2 * math.tan(degtorad(60)); ctx.lineto(moveoffset+(length/2), moveoffset+triheight); ctx.lineto(moveoffset, moveoffset); ctx.fill(); length--; moveoffset += 0.7; ctx.rotate(degtorad(5)); so on each iteration, we: set the fillstyle to be a shade of slightly trans
parent purple, which changes each time based on the value of length.
Object-oriented JavaScript for beginners - Learn web development
in oop, we can create new classes based on other classes — these new child classes can be made to inherit the data and code features of their
parent class, so you can reuse functionality common to all the object types rather than having to duplicate it.
... let's look at the constructor calls again: let person1 = new person('bob'); let person2 = new person('sarah'); in each case, the new keyword is used to tell the browser we want to create a new object instance, followed by the function name with its required parameters contained in
parentheses, and the result is stored in a variable — very similar to how a standard function is called.
Object building practice - Learn web development
our loop() function does the following: sets the canvas fill color to semi-trans
parent black, then draws a rectangle of the color across the whole width and height of the canvas, using fillrect() (the four parameters provide a start coordinate, and a width and height for the rectangle drawn).
...the color of the fill is set to semi-trans
parent, rgba(0,0,0,0.25), to allow the previous few frames to shine through slightly, producing the little trails behind the balls as they move.
Object prototypes - Learn web development
a clever trick is that you can put
parentheses onto the end of the constructor property (containing any required parameters) to create another object instance from that constructor.
... the constructor is a function after all, so can be invoked using
parentheses; you just need to include the new keyword to specify that you want to use the function as a constructor.
React resources - Learn web development
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.
Beginning our React todo list - Learn web development
css so that it replaces what's currently there: /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { outline: 3px dashed #228bec; outline-offset: 0; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: trans
parent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } input[type="text"] { border-radiu...
...sor: pointer; position: absolute; z-index: 1; margin: 0; opacity: 0; } .c-cb > label { font-size: inherit; font-family: inherit; line-height: inherit; display: inline-block; margin-bottom: 0; padding: 8px 15px 5px; cursor: pointer; touch-action: manipulation; } .c-cb > label::before { content: ""; position: absolute; border: 2px solid currentcolor; background: trans
parent; } .c-cb > input[type="checkbox"]:focus + label::before { border-width: 4px; outline: 3px dashed #228bec; } .c-cb > label::after { box-sizing: content-box; content: ""; position: absolute; top: 11px; left: 9px; width: 18px; height: 7px; transform: rotate(-45deg); border: solid; border-width: 0 0 5px 5px; border-top-color: trans
parent; opacity: 0; background: transpar...
Starting our Svelte Todo list app - Learn web development
the file public/global.css with the following: /* resets */ *, *::before, *::after { box-sizing: border-box; } *:focus { outline: 3px dashed #228bec; outline-offset: 0; } html { font: 62.5% / 1.15 sans-serif; } h1, h2 { margin-bottom: 0; } ul { list-style: none; padding: 0; } button { border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: trans
parent; color: inherit; font: inherit; line-height: normal; -webkit-font-smoothing: inherit; -moz-osx-font-smoothing: inherit; -webkit-appearance: none; } button::-moz-focus-inner { border: 0; } button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; } button, input { overflow: visible; } input[type="text"] { border-radiu...
...sor: pointer; position: absolute; z-index: 1; margin: 0; opacity: 0; } .c-cb > label { font-size: inherit; font-family: inherit; line-height: inherit; display: inline-block; margin-bottom: 0; padding: 8px 15px 5px; cursor: pointer; touch-action: manipulation; } .c-cb > label::before { content: ""; position: absolute; border: 2px solid currentcolor; background: trans
parent; } .c-cb > input[type="checkbox"]:focus + label::before { border-width: 4px; outline: 3px dashed #228bec; } .c-cb > label::after { box-sizing: content-box; content: ""; position: absolute; top: 11px; left: 9px; width: 18px; height: 7px; transform: rotate(-45deg); border: solid; border-width: 0 0 5px 5px; border-top-color: trans
parent; opacity: 0; background: transpar...
Multiprocess on Windows
this does not (yet) work as trans
parently as we would like.
...this index must take into account the vtable(s) of
parent interfaces.
Adding a new CSS property
some common mistakes to watch out for when writing custom parsing code (which might go away if we redesign the parser along the lines described in css3-syntax): make sure to call skipuntil() to look for the matching close
parentheses, braces, or brackets whenever you hit an error inside of them.
... this is particularly important in case the unexpected token is a
parenthesis or something else that requires matching the other half of a pair.
Gecko Logging
must be enclosed in
parentheses.
... child processes / e10s sometimes it can be useful to only log child processes and ignore the
parent process.
Limitations of chrome scripts
it trans
parently registers an nsicontentpolicy in the content process, whose shouldload just forwards to the chrome process.
...you can do this by loading a frame script or, with the add-on sdk, you can use remoterequire() in the "remote/
parent" module.
Overview of Mozilla embedding APIs
nscomptr<interface-type> these are templatized smart pointers which trans
parently deal with xpcom reference counting issues.
... rv = webbrowser->setcontainerwindow((nsiwebbrowserchrome*)this); if (ns_failed(rv)) return rv; basewindow = do_queryinterface(webbrowser); // initialize the webbrowser with a native
parent window // (ie.
Script security
when objects share an origin but not a global - for example two web pages from the same protocol, port, and domain - they belong to two different compartments, and the caller gets a trans
parent wrapper to the target object.
... trans
parent wrappers allow access to all the target's properties: functionally, it's as if the target is in the caller's compartment.
Creating a New Protocol
creating the implementation the c++ implementation inherits from the abstract ipdl-generated classes pnewprotocol
parent and pnewprotocolchild.
...the method signatures can be read from the generated pnewprotocol
parent.h and pnewprotocolchild.h headers.
Mozilla Quirks Mode Behavior
there are a bunch of quirks to get percentage heights on images, tables, objects, and applets (etc.?) to "work" (the way they did in netscape navigator 4), even though css says that percentage heights should behave like 'auto' heights when the
parent element doesn't have a fixed height.
... in quirks mode, when tables have a border style of inset or outset, the border color is based on the background color of the table or of the nearest ancestor with non-trans
parent background.
DMD
if you are not familiar with that method, you can ignore this
parenthetical note.) first make the executable wrapper on your host machine using the editor of your choice.
... "default": log the
parent process only.
powermetrics
the firefox
parent process and child processes.
... the grouping of
parent and child processes (in coalitions) is obvious.
Network Addresses
to facilitate the transition to ipv6, it is recommended that clients treat all structures containing network addresses as trans
parent objects and use the functions documented here to manipulate the information.
...by using these functions with other network address functions, clients can support either version 4 or version 6 of the internet protocol trans
parently.
PR_GetInheritedFileMap
imports a prfilemap previously exported by my
parent process via pr_createprocess.
... description pr_getinheritedfilemap retrieves a prfilemap object exported from its
parent process via pr_createprocess.
NSS PKCS11 Functions
syntax #include "secmod.h" extern secmodmodule *secmod_loadusermodule(char *modulespec, secmodmodule *
parent, prbool recurse); parameters this function has the following parameters: modulespec is a pkcs #11 modulespec.
...
parent is the moduledb that presented this module spec.
Proxies in Necko
proxies are implemented trans
parently to necko users.
...however, socks is trans
parent to upper-level protocols, and can transport any other tcp- or udp-based protocol.
Rhino serialization
javascript objects contain references to prototypes and to
parent scopes.
...we want to be able to serialize a javascript object and then deserialize it into a new scope and have all of the references from the deserialized object to prototypes and
parent scopes resolved correctly to refer to objects in the new scope.
JS_CheckAccess
(this is redundant with passing the string id "__proto__" as id.) jsacc_
parent check for permission to read obj's
parent.
... (this is redundant with passing the string id "__
parent__" as id.) jsacc_import check for permission to import the property.
SpiderMonkey 45
469) js::setvalues (bug 1159469) js::setentries (bug 1159469) js::setforeach (bug 1159469) js::exceptionstackornull (bug 814497) js::copyasyncstack (bug 1160307) js::getsavedframesource (bug 1216819) js::getsavedframeline (bug 1216819) js::getsavedframecolumn (bug 1216819) js::getsavedframefunctiondisplayname (bug 1216819) js::getsavedframeasynccause (bug 1216819) js::getsavedframeasync
parent (bug 1216819) js::getsavedframe
parent (bug 1216819) js::buildstackstring (bug 1133191) js::flushperformancemonitoring (bug 1181175) js::resetperformancemonitoring (bug 1181175) js::disposeperformancemonitoring (bug 1208747) js::setstopwatchismonitoringcpow (bug 1156264) js::getstopwatchismonitoringcpow (bug 1156264) js::setstopwatchismonitoringjank (bug 1156264) js::getstopwatchismonitor...
...ug 1178581) js_internstring renamed to js_atomizeandpinstring (bug 1178581) js_internucstringn renamed to js_atomizeandpinucstringn (bug 1178581) js_internucstring renamed to js_atomizeandpinucstring (bug 1178581) deleted apis js_getcompartmentstats js_seticumemoryfunctions js_isgcmarkingtracer js_ismarkinggray js_idarraylength js_idarrayget js_destroyidarray js_defaultvalue js_get
parent js_set
parent js::parsepropertydescriptorobject js_deleteproperty2 js_deletepropertybyid2 js_deleteucproperty2 js_deleteelement2 js_newfunctionbyid js_bindcallable js_decompilefunctionbody js_getlatin1internedstringchars js_gettwobyteinternedstringchars js_newdateobjectmsec js_cleardatecaches changed apis js_init has moved from jsapi.h to js/initialization.h js_shutdown has move...
Split object
again, spidermonkey enforces a slightly stronger rule: outer objects may never appear in a scope chain at all, except when put there by an explicit c-level jsapi call (to js_set
parent or equivalent).
... (several objects, such as window.location and window.navigator, are intentionally
parented to the outer window object using such apis.) to enforce this rule: apis that allow the caller to pass a scope object always check that object first and fail if any outer objects are on its scope chain.
TPS Bookmark Lists
be moved to (i.e., this separator would be inserted into the bookmark list at the position of the named bookmark, causing that bookmark to be positioned below this separator) example: { separator: true } bookmark lists and phase actions following are the functions you can use in phase actions related to bookmarks: bookmarks.add - the bookmark items in the list are added to the end of their
parent folder in the specified order.
... that is, the first item is appended to its
parent folder, then the second, and so forth.
Gecko Roles
all objects sharing a single
parent that have this attribute are assumed to be part of single mutually exclusive group.
... role_
parent_menuitem represents a menu item, which is an entry in a menu that a user can choose to display another menu.
Embedded Dialog API
most if not all of these dialogs will need to be child/dependent/transient windows, so each method responsible for actually opening a window must take an nsidomwindow *a
parent parameter, and use that window as the dialog's
parent, if non-null.
...embedded dialog posing interface coding conventions the nsidomwindow *a
parent parameter mentioned above should be the first parameter to each method in which it appears.
The Places database
the hierarchy is defined via the
parent column, which points to the moz_bookmarks record which is the
parent.
... the position column numbers each of the peers beneath a given
parent starting with 0 and incrementing higher with each addition.
Manipulating bookmarks using Places
var
parentfolderid = bmsvc.getfolderidforitem(newbkmkid); observing changes to bookmarks and tags to set up an observer to listen for changes related to bookmarks, you will need to create an nsinavbookmarkobserver object and use the nsinavbookmarksservice.addobserver() and nsinavbookmarksservice.removeobserver() methods.
... { onbeginupdatebatch: function() {}, onendupdatebatch: function() {}, onitemadded: function(aitemid, afolder, aindex) {}, onitemremoved: function(aitemid, afolder, aindex) {}, onitemchanged: function(abookmarkid, aproperty, aisannotationproperty, avalue) { myextension.dosomething(); }, onitemvisited: function(abookmarkid, avisitid, time) {}, onitemmoved: function(aitemid, aold
parent, aoldindex, anew
parent, anewindex) {}, queryinterface: xpcomutils.generateqi([components.interfaces.nsinavbookmarkobserver]) }; // an extension var myextension = { // this function is called when my add-on is loaded onload: function() { bmsvc.addobserver(myext_bookmarklistener, false); }, // this function is called when my add-on is unloaded onunload: function() { bmsvc.remove...
Building the WebLock UI
in xul individual <radio/> elements are contained within a
parent element called <radiogroup/>.
...the
parent of the textbox that users enter an url into is something called an <hbox/>, which is a layout widget - often invisible - that controls the way its child elements are rendered.
IAccessibleImage
[propget] hresult imageposition( [in] enum ia2coordinatetype coordinatetype, [out] long x, [out] long y ); parameters coordinatetype specifies whether the returned coordinates should be relative to the screen or the
parent object.
...imagesize() returns the size of the image in units specified by
parent's coordinate system.
IAccessibleText
coordtype specifies if the coordinates are relative to the screen or to the
parent window.
...coordinatetype specifies whether the coordinates are relative to the screen or the
parent object.
nsIAccessNode
obsolete since gecko 8.0
parentnode nsiaccessnode the
parent nsiaccessnode.
... void scrolltopoint( in unsigned long acoordinatetype, in long ax, in long ay ); parameters acoordinatetype specifies whether the coordinates are relative to the screen or the
parent object (for available constants refer to nsiaccessiblecoordinatetype.constants.
nsIAccessibleText
coordtype specifies if the coordinates are relative to the screen or to the
parent window (see constants declared in nsiaccessiblecoordinatetype.constants).
...coordtype specifies if the coordinates are relative to the screen or to the
parent window (see constants declared in nsiaccessiblecoordinatetype.constants.
nsIAppShellService
boolean createstartupstate(in long awindowwidth, in long awindowheight); obsolete since gecko 1.8 nsixulwindow createtoplevelwindow(in nsixulwindow a
parent, in nsiuri aurl, in pruint32 achromemask, in long ainitialwidth, in long ainitialheight, in nsiappshell aappshell); nsiwebnav createwindowlessbrowser (in bool aischrome) void destroyhiddenwindow(); void doprofilestartup(in nsicmdlineservice acmdlineservice, in boolean caninteract); obsolete since gecko 1.8 void ensure1window(in nsicmdlineservice acmdlineservic...
... nsixulwindow createtoplevelwindow( in nsixulwindow a
parent, in nsiuri aurl, in boolean ashowwindow, in boolean aloaddefaultpage, in pruint32 achromemask, in long ainitialwidth, in long ainitialheight, in nsiappshell aappshell ); parameters a
parent the
parent window.
nsICookiePromptService
last changed in gecko 1.9 (firefox 3) inherits from: nsisupports method overview long cookiedialog(in nsidomwindow
parent, in nsicookie cookie, in acstring hostname, in long cookiesfromhost, in boolean changingcookie, out boolean rememberdecision); constants constant value description deny_cookie 0 holds the value for a denying the cookie.
... long cookiedialog( in nsidomwindow
parent, in nsicookie cookie, in acstring hostname, in long cookiesfromhost, in boolean changingcookie, out boolean rememberdecision ); parameters
parent the
parent window for the dialog.
nsIDocumentLoader
to create an instance, use: var documentloader = components.classes["@mozilla.org/docloaderservice;1"] .createinstance(components.interfaces.nsidocumentloader); method overview void clear
parentdocloader(); obsolete since gecko 1.8 void createdocumentloader(out nsidocumentloader aninstance); obsolete since gecko 1.8 void destroy(); obsolete since gecko 1.8 void fireonlocationchange(in nsiwebprogress awebprogress, in nsirequest arequest, in nsiuri auri); obsolete since gecko 1.8 void fireonstatuschange(in nsiwebprogress awebprogress, in nsirequest arequ...
... methods clear
parentdocloader() obsolete since gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) void clear
parentdocloader(); parameters none.
nsIDownloadManagerUI
void show( in nsiinterfacerequestor awindowcontext, optional in unsigned long aid, optional in short areason optional ); parameters awindowcontext optional the
parent window context to show the user interface.
... with this information, it's possible to put the download manager in a tab in the same window as the
parent.
nsILivemarkService
long long createlivemark( in long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index ); parameters folder the id of the
parent folder.
... long long createlivemarkfolderonly( in long long folder, in astring name, in nsiuri siteuri, in nsiuri feeduri, in long index ); parameters folder the id of the
parent folder.
nsIMsgThread
nsmsgkey msgkey); nsimsgdbhdr getchildhdrat(in long index); nsimsgdbhdr getroothdr(out long index); void removechildat(in long index); void removechildhdr(in nsimsgdbhdr child, in nsidbchangeannouncer announcer); void markchildread(in boolean bread); nsimsgdbhdr getfirstunreadchild(); nsisimpleenumerator enumeratemessages(in nsmsgkey
parent); attributes attribute type description threadkey nsmsgkey unsigned long key designating this thread.
... getfirstunreadchild() nsimsgdbhdr getfirstunreadchild(); enumeratemessages() nsisimpleenumerator enumeratemessages(in nsmsgkey
parent); parameters
parent a key representing the message to start enumerating with.
nsISHEntry
obsolete since gecko 6.0
parent nsishentry
parent of this entry.
...the child shells are restored as children of the
parent docshell, in this order, when the
parent docshell restores a saved presentation.
nsIUpdatePrompt
66 introduced gecko 1.8 inherits from: nsisupports last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) method overview void checkforupdates(); void showupdateavailable(in nsiupdate update); void showupdatedownloaded(in nsiupdate update, [optional] in boolean background); void showupdateerror(in nsiupdate update); void showupdatehistory(in nsidomwindow
parent); void showupdateinstalled(); methods checkforupdates() presents a user interface that checks for and displays the available updates.
...void showupdatehistory( in nsidomwindow
parent ); parameters
parent an nsidomwindow indicating the
parent window to which to anchor the update list window.
nsIWebBrowser
parenturicontentlistener nsiuricontentlistener uri content listener
parent.
...in that case, the embedder should explicitly set this value back to null if the
parent content listener is destroyed before the browser object.
nsIWebProgress
nsiwebprogress instances may be arranged in a
parent-child configuration, corresponding to the
parent-child configuration of their respective dom windows.
...the
parent-child relationship of nsiwebprogress instances is not made explicit by this interface, but the relationship may exist in some implementations.
nsIWebProgressListener
inherits from: nsisupports last changed in gecko 15 (firefox 15 / thunderbird 15 / seamonkey 2.12) nsiwebprogress describes the
parent-child relationship of nsiwebprogress instances.
... example the nsiwebprogresslistener for each tab: gbrowser.mtabprogresslistener can be used in the
parent to listen for most nsiwebprogresslistener events, but in browser code, will not have access to the nsiwebprogress's domwindow property.
nsIXPCScriptable
last changed in gecko 1.9.1 (firefox 3.5 / thunderbird 3.0 / seamonkey 2.0) inherits from: nsisupports method overview void precreate(in nsisupports nativeobj, in jscontextptr cx, in jsobjectptr globalobj, out jsobjectptr
parentobj); void create(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj); void postcreate(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj); prbool addproperty(in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj, in jsval id, in jsvalptr vp); prbool delproperty(in nsixpconnectwrappednative wrapper, in jscontextptr ...
... methods precreate() void precreate( in nsisupports nativeobj, in jscontextptr cx, in jsobjectptr globalobj, out jsobjectptr
parentobj ); parameters nativeobj cx globalobj
parentobj create() void create( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj ); parameters wrapper cx obj postcreate() void postcreate( in nsixpconnectwrappednative wrapper, in jscontextptr cx, in jsobjectptr obj ); parameters wrapper cx obj addproperty() prbool addprop...
nsIXULSortService
inherits from: nsisupports last changed in gecko 2.0 (firefox 4 / thunderbird 3.3 / seamonkey 2.1) method overview void insertcontainernode(in nsirdfcompositedatasource db, in nsrdfsortstate sortstateptr, in nsicontent root, in nsicontent true
parent, in nsicontent container, in nsicontent node, in boolean anotify); native code only!
...void insertcontainernode( in nsirdfcompositedatasource db, in nsrdfsortstate sortstateptr, in nsicontent root, in nsicontent true
parent, in nsicontent container, in nsicontent node, in boolean anotify ); parameters db sortstateptr root true
parent container node anotify sort() sort the contents of the widget containing anode using asortkey as the comparison key, and asorthints as how to sort.
nsIXULTemplateQueryProcessor
for example, a query might have the following syntax: (?id, ?name, ?url) from bookmarks where
parentfolder = ?start this query might generate a result for each bookmark within a given folder.
...for recursive generation, the result from the
parent generation phase will be used directly as the reference so a translation is not needed.
nsIZipWriter
the file need not exist, but the directory that contains it (nsifile.
parent) must exist.
... continue; } if (entry.isdirectory()) { dirarr.push(entry); } var relpath = entry.path.replace(dirarr[0].path, ''); //need relative because we need to use this for telling addentryfile where in the zip it should create it, and because zip is a copy of the directory cu.reporterror('+' + relpath); //makes it relative to directory the
parent dir (dir[0]) so it can succesfully populate files with same names but different folders in this
parent dir, needed because recursviely going through all dirs var saveinzipas = relpath.substr(1); //need to get ride of the first '\' forward slash at start otherwise it puts every file added in a folder of its own.
nsPIPromptService
method overview void dodialog(in nsidomwindow a
parent, in nsidialogparamblock aparamblock, in string achromeurl); methods dodialog() opens a dialog.
... void dodialog( in nsidomwindow a
parent, in nsidialogparamblock aparamblock, in string achromeurl ); parameters a
parent the
parent window of the dialog.
XPCOM Interface Reference by grouping
(i'm fully aware that this will be a great point of discussion and probably will end in tears, but since i'm the first person to ap
parently take a swing at this, i get first dibs.) the primary sections consist of: browser this section contains elements associated with the view pane or the content of the "browser window" proper.
...okie2 nsicookieacceptdialog nsicookieconsent nsicookiemanager nsicookiemanager2 nsicookiepermission nsicookiepromptservice nsicookieservice nsicookiestorage nsisessionstore crypto nsicryptohash filter nsi
parentalcontrolsservice nsipermission nsipermissionmanager nsisecuritycheckedcomponent ssl nsisslerrorlistener stream stream nsipipe nsitraceablechannel nsitransport nsitransporteventsink nsit...
Address Book examples
nents.interfaces.nsiabdirectory); maillist.ismaillist = true; now fill in the details you want to store: maillist.dirname = "my mailing list"; maillist.listnickname = "nickname for list"; maillist.description = "list description"; add the cards you want to include in the list: for (let i = 0; i < numcards; i++) maillist.addresslists.appendelement(card[i], false); now save the list: var
parentdirectory = ...; // an nsiabdirectory for the
parent of the mailing list.
...
parentdirectory.addmaillist(maillist); modifying a mailing list to modify a mailing list, you first need an object that implements nsiabcard.
Standard OS Libraries
ce = ctypes.structtype('gdkdevice'); var gdkmodifiertype = ctypes.int; var gdkwindow = ctypes.structtype('gdkwindow'); var void = ctypes.void_t; // https://developer.gnome.org/gdk3/stable/gdk3-windows.html#gdk-get-default-root-window var gdk_get_default_root_window = gdk.declare('gdk_get_default_root_window', ctypes.default_abi, gdkwindow.ptr // return - the root window, which is top most
parent of all windows ); // in gdk2 we have to use gdk_window_get_pointer, but in gdk3 it was deprecated and have to use gdk_window_get_device_position https://developer.gnome.org/gdk3/stable/gdk3-windows.html#gdk-window-get-pointer var gdk_window_get_pointer = gdk.declare('gdk_window_get_pointer', ctypes.default_abi, gdkwindow.ptr, // return - the window containing the pointer (as with gdk_...
...cemanager'); var gdkdisplay = ctypes.structtype('gdkdisplay'); var gdkmodifiertype = ctypes.int; var gdkwindow = ctypes.structtype('gdkwindow'); // https://developer.gnome.org/gdk3/stable/gdk3-windows.html#gdk-get-default-root-window var gdk_get_default_root_window = gdk.declare('gdk_get_default_root_window', ctypes.default_abi, gdkwindow.ptr // return - the root window, which is top most
parent of all windows ); // in gdk2 we have to use gdk_window_get_pointer, but in gdk3 it was deprecated and have to use gdk_window_get_device_position // https://developer.gnome.org/gdk3/stable/gdk3-windows.html#gdk-window-get-device-position var gdk_window_get_device_position = gdk3.declare('gdk_window_get_device_position', ctypes.default_abi, gdkwindow.ptr, // return - the window undernea...
Plug-in Basics - Plugins
windowless plug-ins can be opaque or trans
parent, and can be invoked in html sections.
... the following examples demonstrate this use of nested object elements with markup more congenial to gecko included as children of the
parent object element.
Gecko Plugin API Reference - Plugins
ing the npwindow structure drawing plug-ins printing the plug-in setting the window getting information windowed plug-ins mac os windows unix event handling for windowed plug-ins windowless plug-ins specifying that a plug-in is windowless invalidating the drawing area forcing a paint message making a plug-in opaque making a plug-in trans
parent creating pop-up menus and dialog boxes event handling for windowless plug-ins streams receiving a stream telling the plug-in when a stream is created telling the plug-in when a stream is deleted finding out how much data the plug-in can accept writing the stream to the plug-in sending the stream in random-access mode sending the stream in file mode sending a stream creatin...
... npn_setvalue sets windowless plug-in as trans
parent or opaque.
Browser Console - Firefox Developer Tools
on windows, the following code will add a new item to the browser's main menu: var
parent = window.document.getelementbyid("appmenuprimarypane"); var makethetea = gbrowser.ownerdocument.defaultview.document.createelementns("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); makethetea.setattribute("label", "a nice cup of tea?");
parent.appendchild(makethetea); on macos, this similar code will add a new item to the "tools" menu: var
parent = window.document.
...getelementbyid("menu_toolspopup"); var makethetea = gbrowser.ownerdocument.defaultview.document.createelementns("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem"); makethetea.setattribute("label", "a nice cup of tea?");
parent.appendchild(makethetea); ...
Debugger.Environment - Firefox Developer Tools
ecmascript environments form a tree, in which each local environment is
parented by its enclosing environment (in ecmascript terms, its ‘outer’ environment).
...
parent the environment that encloses this one (the “outer” environment, in ecmascript terminology), or null if this is the outermost environment.
Tutorial: Show Allocations Per Call Path - Firefox Developer Tools
var totals = new map; for (let [site, count] of counts) { for(;;) { if (!totals.has(site)) totals.set(site, 0); totals.set(site, totals.get(site) + count); if (!site) break; site = site.
parent; } } // compute
parent-to-child links, since saved stack frames // have only
parent links.
... var rootchildren = new map; function childmapfor(site) { if (!site) return rootchildren; let
parentmap = childmapfor(site.
parent); if (
parentmap.has(site)) return
parentmap.get(site); var m = new map;
parentmap.set(site, m); return m; } for (let [site, total] of totals) { childmapfor(site); } // print the allocation count for |site|.
CSS Grid Inspector: Examine grid layouts - Firefox Developer Tools
inspecting a subgrid when the page contains a grid with a subgrid, the entry for the subgrid is indented under its
parent in the overlay grid section.
... when you select the checkbox for the subgrid, the lines for the
parent grid are displayed also displayed; if the checkbox for the
parent grid is unselected, then its lines are translucent.
AbortSignal - Web APIs
properties the abortsignal interface also inherits properties from its
parent interface, eventtarget.
... methods the abortsignal interface inherits methods from its
parent interface, eventtarget.
AbstractRange - Web APIs
the resulting document fragment looks like this: notice especially that the contents of this fragment are all below the shared common
parent of the topmost nodes within it.
... the
parent <section> is not needed to replicate the cloned content, so it is isn't included.
AnimationEvent - Web APIs
properties also inherits properties from its
parent event.
... methods also inherits methods from its
parent event.
AudioContext - Web APIs
properties also inherits properties from its
parent interface, baseaudiocontext.
... methods also inherits methods from its
parent interface, baseaudiocontext.
AudioDestinationNode - Web APIs
number of inputs 1 number of outputs 0 channel count mode "explicit" channel count 2 channel interpretation "speakers" properties inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
AudioTrackList - Web APIs
properties this interface also inherits properties from its
parent interface, eventtarget.
... methods this interface also inherits methods from its
parent interface, eventtarget.
AudioWorkletNode - Web APIs
properties also inherits properties from its
parent, audionode.
... methods also inherits methods from its
parent, audionode.
BiquadFilterNode - Web APIs
properties inherits properties from its
parent, audionode.
... not used methods inherits methods from its
parent, audionode.
BlobBuilder - Web APIs
this can be "trans
parent" (endings unchanged) or "native" (endings changed to match host os filesystem convention).
... the default value is "trans
parent".
BlobEvent - Web APIs
properties inherits properties from its
parent event.
... methods no specific method; inherits methods from its
parent event.
BroadcastChannel - Web APIs
properties this interface also inherits properties from its
parent, eventtarget.
... methods this interface also inherits methods from its
parent, eventtarget.
CDATASection - Web APIs
height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="451" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cdatasection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific properties and implements those of its
parent text.
... methods this interface has no specific methods and implements those of its
parent text.
CSSPrimitiveValue - Web APIs
(for example, a pixel value cannot be converted to a centimeter value.) percentage values can't be converted since they are relative to the
parent value (or another property value).
...op"><rect x="121" y="1" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="206" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cssprimitivevalue</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, cssvalue.
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.
... examples the example below demonstrates the relationship between csspseudoelement.element and element.pseudo(): const myelement = document.queryselector('q'); const csspseudoelement = myelement.pseudo('::after'); const originatingelement = csspseudoelement.element; console.log(myelement === originatingelement); // outputs true console.log(myelement.
parentelement === originatingelement); // outputs false console.log(myelement.lastelementchild === csspseudoelement); // outputs false console.log(myelement.lastchild === csspseudoelement); // outputs false console.log(myelement.nextelementsibling === csspseudoelement); // outputs false console.log(myelement.nextsibling === csspseudoelement); // outputs false specifications ...
CSSRuleList - Web APIs
note that being indirect-modify (changeable but only having read-methods), rules are not added or removed from the list directly, but instead here, only via its
parent stylesheet.
...if however, for some reason the list does need to be modified but has no
parent stylesheet (perhaps being a livecopy of a list that does), it cannot just be assigned one (as it has no such property), and neither can it be assigned to one (as stylesheet.cssrules is read-only), but it must unfortunately be inserted into one, rule by rule, and unless combining lists, after any existing list therein is deleted, rule by rule.
Using the CSS Painting API - Web APIs
paint(ctx, size, props, args) { // use our custom arguments const hasstroke = args[0].tostring(); // if stroke arg is 'stroke', don't fill if (hasstroke === 'stroke') { ctx.fillstyle = 'trans
parent'; ctx.strokestyle = colour; } ...
...t * 0.85; // the values passed in the paint() function in the css const colour = props.get( '--boxcolor' ); const stroketype = args[0].tostring(); const strokewidth = parseint(args[1]); // set the stroke width if ( strokewidth ) { ctx.linewidth = strokewidth; } else { ctx.linewidth = 1.0; } // set the fill type if ( stroketype === 'stroke' ) { ctx.fillstyle = 'trans
parent'; ctx.strokestyle = colour; } else if ( stroketype === 'filled' ) { ctx.fillstyle = colour; ctx.strokestyle = colour; } else { ctx.fillstyle = 'none'; ctx.strokestyle = 'none'; } // block ctx.beginpath(); ctx.moveto( x, y ); ctx.lineto( blockwidth, y ); ctx.lineto( blockwidth + blockheight, blockheight ); ctx.lineto( x, blockheight ); ctx.lineto( x, y ); ctx.
CanvasCaptureMediaStreamTrack - Web APIs
properties this interface inherits the properties of its
parent, mediastreamtrack.
... methods this interface inherits the methods of its
parent, mediastreamtrack.
CanvasRenderingContext2D.clearRect() - Web APIs
the canvasrenderingcontext2d.clearrect() method of the canvas 2d api erases the pixels in a rectangular area by setting them to trans
parent black.
... syntax void ctx.clearrect(x, y, width, height); the clearrect() method sets the pixels in a rectangular area to trans
parent black (rgba(0,0,0,0)).
CanvasRenderingContext2D.getImageData() - Web APIs
if the specified rectangle extends outside the bounds of the canvas, the pixels outside the canvas are trans
parent black in the returned imagedata object.
...of those pixels, most are either trans
parent or taken from off the canvas; only 5,000 of them are opaque black (the color of the drawn rectangle).
Manipulating video using canvas - Web APIs
every pixel in the frame's image data that is found that is within the parameters that are considered to be part of the green screen has its alpha value replaced with a zero, indicating that the pixel is entirely trans
parent.
... as a result, the final image has the entire green screen area 100% trans
parent, so that when it's drawn into the destination context in line 13, the result is an overlay onto the static backdrop.
Using images - Web APIs
insertbefore() is a method of the
parent node (a table cell) of the element (the image) before which we want to insert our new node (the canvas element).
...rough all images for (var i = 0; i < document.images.length; i++) { // don't add a canvas for the frame image if (document.images[i].getattribute('id') != 'frame') { // create canvas element canvas = document.createelement('canvas'); canvas.setattribute('width', 132); canvas.setattribute('height', 150); // insert before the image document.images[i].
parentnode.insertbefore(canvas,document.images[i]); ctx = canvas.getcontext('2d'); // draw image to canvas ctx.drawimage(document.images[i], 15, 20); // add frame ctx.drawimage(document.getelementbyid('frame'), 0, 0); } } } controlling image scaling behavior as mentioned previously, scaling images can result in fuzzy or blocky artifacts due to the scaling proce...
ChannelMergerNode - Web APIs
properties no specific property; inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
ChannelSplitterNode - Web APIs
properties no specific property; inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
ClipboardEvent - Web APIs
properties also inherits properties from its
parent event.
... methods no specific methods; inherits methods from its
parent event.
CloseEvent - Web APIs
properties this interface also inherits properties from its
parent, event.
... methods this interface also inherits methods from its
parent, event.
Comment - Web APIs
="75" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="473.5" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">comment</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no specific property, but inherits those of its
parent, characterdata, and indirectly those of node.
... methods this interface has no specific method, but inherits those of its
parent, characterdata, and indirectly those of node.
CompositionEvent - Web APIs
properties this interface also inherits properties of its
parent, uievent, and its ancestor — event.
... methods this interface also inherits methods of its
parent, uievent, and its ancestor — event.
ContentIndexEvent - Web APIs
properties in addition to the properties listed below, this interface inherits the properties of its
parent interface, extendableevent.
... methods while contentindexevent offers no methods of its own, it inherits any specified by its
parent interface, extendableevent.
ConvolverNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
CustomElementRegistry.define() - Web APIs
// create a class for the element class wordcount extends htmlparagraphelement { constructor() { // always call super first in constructor super(); // count words in element's
parent element var wc
parent = this.
parentnode; function countwords(node){ var text = node.innertext || node.textcontent return text.split(/\s+/g).length; } var count = 'words: ' + countwords(wc
parent); // create a shadow root var shadow = this.attachshadow({mode: 'open'}); // create text node and add word count to it var text = document.createelement('span...
...'); text.textcontent = count; // append it to the shadow root shadow.appendchild(text); // update count when element content changes setinterval(function() { var count = 'words: ' + countwords(wc
parent); text.textcontent = count; }, 200) } } // define the new element customelements.define('word-count', wordcount, { extends: 'p' }); <p is="word-count"></p> specifications specification status comment html living standardthe definition of 'customelements.define()' in that specification.
CustomElementRegistry - Web APIs
// create a class for the element class wordcount extends htmlparagraphelement { constructor() { // always call super first in constructor super(); // count words in element's
parent element var wc
parent = this.
parentnode; function countwords(node){ var text = node.innertext || node.textcontent return text.split(/\s+/g).length; } var count = 'words: ' + countwords(wc
parent); // create a shadow root var shadow = this.attachshadow({mode: 'open'}); // create text node and add word count to it var text = document.createelement('span...
...'); text.textcontent = count; // append it to the shadow root shadow.appendchild(text); // update count when element content changes setinterval(function() { var count = 'words: ' + countwords(wc
parent); text.textcontent = count; }, 200) } } // define the new element customelements.define('word-count', wordcount, { extends: 'p' }); note: the customelementregistry is available through the window.customelements property.
CustomEvent - Web APIs
this interface inherits properties from its
parent, event: event.bubbles read only a boolean indicating whether or not the event bubbles up through the dom.
... this interface inherits methods from its
parent, event: event.createevent() creates a new event, which must then be initialized by calling its initevent() method.
DOMPoint - Web APIs
methods dompoint inherits methods from its
parent, dompointreadonly.
... properties dompoint inherits properties from its
parent, dompointreadonly.
DelayNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods no specific methods; inherits methods from its
parent, audionode.
Document.adoptNode() - Web APIs
note: importednode's node.
parentnode is null, since it has not yet been inserted into the document tree!
... example const iframe = document.queryselector('iframe'); const iframeimages = iframe.contentdocument.queryselectorall('img'); const new
parent = document.getelementbyid('images'); iframeimages.foreach(function(imgel) { new
parent.appendchild(document.adoptnode(imgel)); }); notes before they can be inserted into the current document, nodes from external documents should either be: cloned using document.importnode(); or adopted using document.adoptnode().
Document: drag event - Web APIs
on the dragged elem dragged = event.target; // make it half trans
parent event.target.style.opacity = .5; }, false); document.addeventlistener("dragend", function(event) { // reset the transparency event.target.style.opacity = ""; }, false); /* events fired on the drop targets */ document.addeventlistener("dragover", function(event) { // prevent default to allow drop event.preventdefault(); }, false); document.addeventlistener("dragenter", function(event)...
...eaves it if (event.target.classname == "dropzone") { event.target.style.background = ""; } }, false); document.addeventlistener("drop", function(event) { // prevent default action (open as link for some elements) event.preventdefault(); // move dragged elem to the selected drop target if (event.target.classname == "dropzone") { event.target.style.background = ""; dragged.
parentnode.removechild( dragged ); event.target.appendchild( dragged ); } }, false); specifications specification status comment html living standardthe definition of 'drag event' in that specification.
Document.getElementsByClassName() - Web APIs
<html> <body> <div id="
parent-id"> <p>hello world 1</p> <p class="test">hello world 2</p> <p>hello world 3</p> <p>hello world 4</p> </div> <script> var
parentdom = document.getelementbyid("
parent-id"); var test =
parentdom.getelementsbyclassname("test"); // a list of matching elements, *not* the element itself console.log(test); //htmlcollection[1] var...
... testtarget =
parentdom.getelementsbyclassname("test")[0]; // the first element, as we wanted console.log(testtarget); //<p class="test">hello world 2</p> </script> </body> </html> multiple classes example document.getelementsbyclassname works very similarly to document.queryselector and document.queryselectorall.
Document.getElementsByTagName() - Web APIs
example in the following example, getelementsbytagname() starts from a particular
parent element and searches top-down recursively through the dom from that
parent element, building a collection of all descendant elements which match the tag name parameter.
... clicking the buttons uses getelementsbytagname() to count the descendant paragraph elements of a particular
parent (either the document itself or one of two nested <div> elements).
How whitespace is handled by HTML, CSS, and in the DOM - Web APIs
for example, if you have a reference to a
parent node and want to affect its first element child using node.firstchild, if there is a rogue whitespace node just after the opening
parent tag you will not get the result you are expecting.
... (normally |previoussibling| is a property * of all dom nodes that gives the sibling node, the node that is * a child of the same
parent, that occurs immediately before the * reference node.) * * @param sib the reference node.
DynamicsCompressorNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods no specific methods; inherits methods from its
parent, audionode.
Element.attachShadow() - Web APIs
// create a class for the element class wordcount extends htmlparagraphelement { constructor() { // always call super first in constructor super(); // count words in element's
parent element var wc
parent = this.
parentnode; function countwords(node){ var text = node.innertext || node.textcontent return text.trim().split(/\s+/g).length; } var count = 'words: ' + countwords(wc
parent); // create a shadow root var shadow = this.attachshadow({mode: 'open'}); // create text node and add word count to it var text = document.createelemen...
...t('span'); text.textcontent = count; // append it to the shadow root shadow.appendchild(text); // update count when element content changes setinterval(function() { var count = 'words: ' + countwords(wc
parent); text.textcontent = count; }, 200) } } // define the new element customelements.define('word-count', wordcount, { extends: 'p' }); specifications specification status comment domthe definition of 'attachshadow()' in that specification.
Element: click event - Web APIs
internet explorer internet explorer 8 & 9 suffer from a bug where elements with a computed background-color of trans
parent that are overlaid on top of other element(s) won't receive click events.
... known workarounds for this bug: for ie9 only: set background-color: rgba(0,0,0,0) set opacity: 0 and an explicit background-color other than trans
parent for ie8 and ie9: set filter: alpha(opacity=0); and an explicit background-color other than trans
parent safari mobile safari mobile 7.0+ (and likely earlier versions too) suffers from a bug where click events aren't fired on elements that aren't typically interactive (e.g.
Element.getBoundingClientRect() - Web APIs
scripts without access to these properties can use code like this: // for scrollx (((t = document.documentelement) || (t = document.body.
parentnode)) && typeof t.scrollleft == 'number' ?
... t : document.body).scrollleft // for scrolly (((t = document.documentelement) || (t = document.body.
parentnode)) && typeof t.scrolltop == 'number' ?
ElementTraversal - Web APIs
it has been split into two interfaces, containing the useful methods and properties for each kind of nodes: childnode
parentnode as it was a pure interface, with no object of this type, this change has no effect on the web.
... living standard splitted the elementtraversal interface in
parentnode and childnode element traversal specificationthe definition of 'elementtraversal' in that specification.
ErrorEvent - Web APIs
_top"><rect x="116" y="1" width="100" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="166" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">errorevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from its
parent event.
... methods inherits methods from its
parent event.
Event.eventPhase - Web APIs
this process starts with the window, then document, then the htmlhtmlelement, and so on through the elements until the target's
parent is reached.
... event.bubbling_phase 3 the event is propagating back up through the target's ancestors in reverse order, starting with the
parent, and eventually reaching the containing window.
EventSource - Web APIs
properties this interface also inherits properties from its
parent, eventtarget.
... methods this interface also inherits methods from its
parent, eventtarget.
ExtendableEvent - Web APIs
properties doesn't implement any specific properties, but inherits properties from its
parent, event.
... methods inherits methods from its
parent, event.
FileSystemEntry.copyTo() - Web APIs
an entry can't be copied into its
parent directory unless you specify a new name.
... syntax filesystementry.copyto(new
parent[, newname][, successcallback][, errorcallback]); parameters new
parent a filesystemdirectoryentry object specifying the destination directory for the copy operation.
FileSystemEntry.moveTo() - Web APIs
an entry can't be moved into its
parent directory unless you specify a new name.
... syntax filesystementry.moveto(new
parent[, newname][, successcallback][, errorcallback]); parameters new
parent a filesystemdirectoryentry object specifying the destination directory for the move operation.
FileSystemEntry - Web APIs
get
parent() returns a filesystemdirectoryentry representing the entry's
parent directory.
... ≤37chrome android full support 18firefox android no support noopera android no support nosafari ios no support nosamsung internet android full support yesget
parent experimentalchrome full support 8edge full support 79firefox no support noie no support noopera no support nosafari full support ...
FocusEvent - Web APIs
properties this interface also inherits properties from its
parent uievent, and indirectly from event.
...it inherits methods from its
parent uievent, and indirectly from event.
FormDataEvent - Web APIs
properties inherits properties from its
parent interface, event.
... methods inherits methods from its
parent interface, event.
GainNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
GestureEvent - Web APIs
properties this interface also inherits properties of its
parents, uievent and event.
...initial value: 1.0 methods this interface also inherits methods of its
parents, uievent and event.
HTMLAnchorElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlanchorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement, and implements those from htmlhyperlinkelementutils.
... methods inherits methods from its
parent, htmlelement, and implements those from htmlhyperlinkelementutils.
HTMLAreaElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlareaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement, and implements those from htmlhyperlinkelementutils.
... methods inherits methods from its
parent, htmlelement, and implements those from htmlhyperlinkelementutils.
HTMLBRElement - Web APIs
"_top"><rect x="361" y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="426" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLBaseElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbaseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits attributes from its
parent, htmlelement.
HTMLBaseFontElement - Web APIs
properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLButtonElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlbuttonelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement name return type description checkvalidity() boolean not supported for reset or button elements.
HTMLCanvasElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlcanvaselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLDListElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldlistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific methods; inherits methods from its
parent, htmlelement.
HTMLDataElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLDataListElement - Web APIs
><rect x="301" y="65" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldatalistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement htmldatalistelement.options read only is a htmlcollection representing a collection of the contained option elements.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLDetailsElement - Web APIs
_top"><rect x="1" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldetailselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLDialogElement - Web APIs
"_top"><rect x="1" y="1" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="86" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldialogelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLDivElement - Web APIs
_top"><rect x="351" y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmldivelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLEmbedElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlembedelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLFieldSetElement - Web APIs
><rect x="301" y="65" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlfieldsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLFontElement - Web APIs
properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLFormControlsCollection - Web APIs
dth="260" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="311" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlformcontrolscollection</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface inherits the properties of its
parent, htmlcollection.
... methods this interface inherits the methods of its
parent, htmlcollection.
HTMLFormElement - Web APIs
="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlformelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, htmlelement.
... methods this interface also inherits methods from its
parent, htmlelement.
HTMLHRElement - Web APIs
"_top"><rect x="361" y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="426" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlhrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLHeadElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlheadelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLHeadingElement - Web APIs
"><rect x="311" y="65" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlheadingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLHtmlElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlhtmlelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLIFrameElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmliframeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits properties from its
parent, htmlelement.
HTMLImageElement - Web APIs
properties inherits properties from its
parent, htmlelement.
... methods inherits properties from its
parent, htmlelement.
HTMLIsIndexElement - Web APIs
properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLLIElement - Web APIs
"_top"><rect x="361" y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="426" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmllielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits properties from its
parent, htmlelement.
HTMLLabelElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmllabelelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific methods; inherits methods from its
parent, htmlelement.
HTMLLinkElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmllinkelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement, and linkstyle.
... methods no specific method; inherits methods from its
parent, htmlelement, and linkstyle.
HTMLMapElement - Web APIs
_top"><rect x="351" y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmapelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement .
HTMLMarqueeElement - Web APIs
_top"><rect x="1" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmarqueeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLMetaElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmetaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLMeterElement - Web APIs
rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmeterelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits properties from its
parent, htmlelement.
... methods this interface does not implement any specific methods but inherits methods from its
parent, htmlelement.
HTMLOListElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlolistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLObjectElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlobjectelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLOptGroupElement - Web APIs
><rect x="301" y="65" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmloptgroupelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLOptionElement - Web APIs
p"><rect x="321" y="65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmloptionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLOutputElement - Web APIs
65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmloutputelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, htmlelement.
... methods this interface also inherits methods from its
parent, htmlelement.
HTMLParagraphElement - Web APIs
<rect x="291" y="65" width="200" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlparagraphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific methods, inherits methods from its
parent, htmlelement.
HTMLParamElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlparamelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific methods, inherits methods from its
parent, htmlelement.
HTMLPictureElement - Web APIs
th="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpictureelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property, but inherits properties from its
parent, htmlelement.
... methods no specific method, but inherits methods from its
parent, htmlelement.
HTMLPreElement - Web APIs
_top"><rect x="351" y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlpreelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits properties from its
parent, htmlelement.
HTMLProgressElement - Web APIs
><rect x="301" y="65" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlprogresselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits properties from its
parent, htmlelement.
HTMLQuoteElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlquoteelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits properties from its
parent, htmlelement.
HTMLSelectElement - Web APIs
you can also access an item by specifying the index in array-style brackets or
parentheses, without calling this method explicitly.
...you can also access an item by specifying the name in array-style brackets or
parentheses, without calling this method explicitly.
HTMLTableCaptionElement - Web APIs
ct x="261" y="65" width="230" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltablecaptionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits properties from its
parent, htmlelement.
HTMLTableCellElement - Web APIs
<rect x="291" y="65" width="200" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltablecellelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLTableColElement - Web APIs
><rect x="301" y="65" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltablecolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLTableElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltableelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLTableRowElement - Web APIs
><rect x="301" y="65" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltablerowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLTableSectionElement - Web APIs
ct x="261" y="65" width="230" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltablesectionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods inherits methods from its
parent, htmlelement.
HTMLTimeElement - Web APIs
top"><rect x="341" y="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="416" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltimeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLTitleElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmltitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLUListElement - Web APIs
op"><rect x="331" y="65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlulistelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
... methods no specific method; inherits methods from its
parent, htmlelement.
HTMLUnknownElement - Web APIs
width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlunknownelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties no specific property; inherits properties from its
parent, htmlelement.
... methods no specific method; inherits properties from its
parent, htmlelement.
HTMLVideoElement - Web APIs
methods inherits methods from its
parent, htmlmediaelement, and from its ancestor htmlelement.
... events inherits methods from its
parent, htmlmediaelement, and from its ancestor htmlelement.
HashChangeEvent - Web APIs
"1" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="191" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">hashchangeevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits the properties of its
parent, event.
... methods this interface has no methods of its own, but inherits the methods of its
parent, event.
Ajax navigation example - Web APIs
/a> | <a class="ajax-nav" href="unexisting.php">unexisting page</a> ] </p> include/header.php: <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="js/ajax_nav.js"></script> <link rel="stylesheet" href="css/style.css" /> js/ajax_nav.js: "use strict"; const ajaxrequest = new (function () { function closereq () { oloadingbox.
parentnode && document.body.removechild(oloadingbox); bisloading = false; } function abortreq () { if (!bisloading) { return; } oreq.abort(); closereq(); } function ajaxerror () { alert("unknown error."); } function ajaxload () { var vmsg, nstatus = this.status; switch (nstatus) { case 200: vms...
...replace(rendqstmark, ""); } function getpage (spage) { if (bisloading) { return; } oreq = new xmlhttprequest(); bisloading = true; oreq.onload = ajaxload; oreq.onerror = ajaxerror; if (spage) { opageinfo.url = filterurl(spage, null); } oreq.open("get", filterurl(opageinfo.url, "json"), true); oreq.send(); oloadingbox.
parentnode || document.body.appendchild(oloadingbox); } function requestpage (surl) { if (history.pushstate) { bupdateurl = true; getpage(surl); } else { /* ajax navigation is not supported */ location.assign(surl); } } function processlink () { if (this.classname === sajaxclass) { requestpage(t...
IDBCursorWithValue - Web APIs
t="_top"><rect x="131" y="1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">idbcursorwithvalue</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} methods inherits methods from its
parent interface, idbcursor.
... properties inherits properties from its
parent interface, idbcursor.
IDBLocaleAwareKeyRange - Web APIs
methods this interface inherits all the methods of its
parent interface, idbkeyrange.
... properties this interface inherits all the properties of its
parent interface, idbkeyrange.
IDBOpenDBRequest - Web APIs
p"><rect x="291" y="1" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">idbopendbrequest</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties also inherits methods from its
parents idbrequest and eventtarget.
... methods no methods, but inherits methods from its
parents idbrequest and eventtarget.
IDBVersionChangeEvent - Web APIs
properties also inherits properties from its
parent, method.
... methods no specific method, but inherits properties from its
parent, method.
IIRFilterNode - Web APIs
properties this interface has no properties of its own; however, it inherits properties from its
parent, audionode.
... methods inherits methods from its
parent, audionode.
InputEvent - Web APIs
properties this interface inherits properties from its
parents, uievent and event.
... methods this interface inherits methods from its
parents, uievent and event.
KeyboardEvent - Web APIs
properties this interface also inherits properties of its
parents, uievent and event.
... methods this interface also inherits methods of its
parents, uievent and event.
MSGestureEvent - Web APIs
properties this interface also inherits properties of its
parents, uievent and event.
... methods this interface also inherits methods of its
parents, uievent and event.
MediaDevices - Web APIs
properties inherits properties from its
parent interface, eventtarget.
... methods inherits methods from its
parent interface, eventtarget.
MediaQueryList - Web APIs
properties the mediaquerylist interface inherits properties from its
parent interface, eventtarget.
... methods the mediaquerylist interface inherits methods from its
parent interface, eventtarget.
MediaQueryListEvent - Web APIs
properties the mediaquerylistevent interface inherits properties from its
parent interface, event.
... methods the mediaquerylistevent interface inherits methods from its
parent interface, event.
MediaStream - Web APIs
properties this interface inherits properties from its
parent, eventtarget.
... methods this interface inherits methods from its
parent, eventtarget.
MediaStreamAudioSourceNode - Web APIs
properties in addition to the following properties, mediastreamaudiosourcenode inherits the properties of its
parent, audionode.
... methods inherits methods from its
parent, audionode.
MediaStreamTrackAudioSourceNode - Web APIs
properties the mediastreamtrackaudiosourcenode interface has no properties of its own; however, it inherits the properties of its
parent, audionode.
... methods inherits methods from its
parent, audionode.
MediaStreamTrackEvent - Web APIs
dde4" stroke-width="2px" /><text x="221" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">mediastreamtrackevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} the events based on this interface are addtrack and removetrack properties also inherits properties from its
parent interface, event.
... methods also inherits methods from its
parent event.
Using the MediaStream Recording API - Web APIs
instead, the problem was solved by making the third container's height equal to 100% of the
parent height, minus the heights and padding of the other two: .sound-clips { box-shadow: inset 0 3px 4px rgba(0,0,0,0.7); background-color: rgba(0,0,0,0.1); height: calc(100% - 240px - 0.7rem); overflow: scroll; } note: calc() has good support across modern browsers too, even going back to internet explorer 9.
...lipcontainer.appendchild(audio); clipcontainer.appendchild(cliplabel); clipcontainer.appendchild(deletebutton); soundclips.appendchild(clipcontainer); const blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; const audiourl = window.url.createobjecturl(blob); audio.src = audiourl; deletebutton.onclick = function(e) { let evttgt = e.target; evttgt.
parentnode.
parentnode.removechild(evttgt.
parentnode); } } let's go through the above code and look at what's happening.
MessageEvent - Web APIs
properties this interface also inherits properties from its
parent, event.
... methods this interface also inherits methods from its
parent, event.
MessagePort - Web APIs
methods inherits methods from its
parent, eventtarget postmessage() sends a message from the port, and optionally, transfers ownership of objects to other browsing contexts.
... event handlers inherits event handlers from its
parent, eventtarget onmessage an eventlistener called when messageevent of type message is fired on the port—that is, when the port receives a message.
MouseEvent - Web APIs
properties this interface also inherits properties of its
parents, uievent and event.
... mouseevent.y read only alias for mouseevent.clienty constants mouseevent.webkit_force_at_mouse_down read only minimum force necessary for a normal click mouseevent.webkit_force_at_force_mouse_down read only minimum force necessary for a force click methods this interface also inherits methods of its
parents, uievent and event.
NDEFReader - Web APIs
properties in addition to the properties listed below, ndefreader inherits properties from its
parent interface, eventtarget.
... methods the ndefreader interface inherits the methods of eventtarget, its
parent interface.
NDEFReadingEvent - Web APIs
properties also inherits properties from its
parent event.
... methods inherits methods from its
parent event.
NetworkInformation - Web APIs
properties this interface also inherits properties of its
parent, eventtarget.
... methods this interface also inherits methods of its
parent, eventtarget.
Node.removeChild() - Web APIs
node is the
parent node of child.
... examples simple examples given this html: <div id="top"> <div id="nested"></div> </div> to remove a specified element when knowing its
parent node: let d = document.getelementbyid("top"); let d_nested = document.getelementbyid("nested"); let throwawaynode = d.removechild(d_nested); to remove a specified element without having to specify its
parent node: let node = document.getelementbyid("nested"); if (node.
parentnode) { node.
parentnode.removechild(node); } to remove all children from an element: let element = document.getelem...
NonDocumentTypeChildNode.nextElementSibling - Web APIs
the nondocumenttypechildnode.nextelementsibling read-only property returns the element immediately following the specified one in its
parent's children list, or null if the specified element is the last one in the list.
... living standard split the elementtraversal interface in childnode,
parentnode, and nondocumenttypechildnode.
NonDocumentTypeChildNode.previousElementSibling - Web APIs
the nondocumenttypechildnode.previouselementsibling read-only property returns the element immediately prior to the specified one in its
parent's children list, or null if the specified element is the first one in the list.
... living standard splitted the elementtraversal interface in childnode,
parentnode, and nondocumenttypechildnode.
OfflineAudioContext - Web APIs
properties also inherits properties from its
parent interface, baseaudiocontext.
... methods also inherits methods from its
parent interface, baseaudiocontext.
OscillatorNode - Web APIs
properties inherits properties from its
parent, audioscheduledsourcenode, and adds the following properties: oscillatornode.frequency an a-rate audioparam representing the frequency of oscillation in hertz (though the audioparam returned is read-only, the value it represents is not).
... methods inherits methods from its
parent, audioscheduledsourcenode, and adds the following: oscillatornode.setperiodicwave() sets a periodicwave which describes a periodic waveform to be used instead of one of the standard waveforms; calling this sets the type to custom.
PannerNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods inherits methods from its
parent, audionode.
PaymentRequestUpdateEvent - Web APIs
properties provides only the properties inherited from its
parent interface, event.
... methods in addition to methods inherited from the
parent interface, event, paymentrequestupdateevent offers the following methods: paymentrequestupdateevent.updatewith() secure context if the event handler determines that information included in the payment request needs to be changed, or that new information needs to be added, it calls updatewith() with the information that needs to be replaced or added.
ProgressEvent - Web APIs
properties also inherits properties from its
parent event.
... methods also inherits methods from its
parent event.
PromiseRejectionEvent - Web APIs
properties also inherits properties from its
parent event.
... methods this interface has no unique methods; inherits methods from its
parent event.
PushEvent - Web APIs
properties inherits properties from its
parent, extendableevent.
... methods inherits methods from its
parent, extendableevent.
RTCIceTransport - Web APIs
properties the rtcicetransport interface inherits properties from its
parent, eventtarget.
... methods also includes methods from eventtarget, the
parent interface.
Range.createContextualFragment() - Web APIs
the range.createcontextualfragment() method returns a documentfragment by invoking the html fragment parsing algorithm or the xml fragment parsing algorithm with the start of the range (the
parent of the selected node) as the context node.
... example var tagstring = "<div>i am a div node</div>"; var range = document.createrange(); // make the
parent of the first div in the document becomes the context node range.selectnode(document.getelementsbytagname("div").item(0)); var documentfragment = range.createcontextualfragment(tagstring); document.body.appendchild(documentfragment); specification specification status comment dom parsing and serializationthe definition of 'range.createcontextualfragment()' in that specif...
Range.extractContents() - Web APIs
partially selected nodes are cloned to include the
parent tags necessary to make the document fragment valid.
...ist1 = document.getelementbyid('list1'); const list2 = document.getelementbyid('list2'); const button = document.getelementbyid('swap'); button.addeventlistener('click', e => { selection = window.getselection(); for (let i = 0; i < selection.rangecount; i++) { const range = selection.getrangeat(i); if (range.commonancestorcontainer === list1 || range.commonancestorcontainer.
parentnode === list1) { const documentfragment = range.extractcontents(); list2.appendchild(documentfragment); } else if (range.commonancestorcontainer === list2 || range.commonancestorcontainer.
parentnode === list2) { const documentfragment = range.extractcontents(); list1.appendchild(documentfragment); } } }); result specifications specification ...
Range.surroundContents() - Web APIs
syntax range.surroundcontents(new
parent); parameters new
parent a node with which to surround the contents.
... example html <span class="header-text">put this in a headline</span> javascript const range = document.createrange(); const new
parent = document.createelement('h1'); range.selectnode(document.queryselector('.header-text')); range.surroundcontents(new
parent); result specifications specification status comment domthe definition of 'range.surroundcontents()' in that specification.
SVGAElement - Web APIs
properties this interface also inherits properties from its
parent, svggraphicselement, and implements properties from svgurireference and htmlhyperlinkelementutils.
... methods this interface has no methods but inherits methods from its
parent, svggraphicselement.
SVGAltGlyphDefElement - Web APIs
properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGAltGlyphElement - Web APIs
properties this interface also inherits properties from its
parent interface, svggraphicselement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGAltGlyphItemElement - Web APIs
properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGAnimateColorElement - Web APIs
="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatecolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svganimationelement.
... methods this interface has no methods but inherits methods from its
parent, svganimationelement.
SVGAnimateElement - Web APIs
eight="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="166" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimateelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svganimationelement.
... methods this interface has no methods but inherits methods from its
parent, svganimationelement.
SVGAnimateMotionElement - Web APIs
"50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="136" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatemotionelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svganimationelement.
... methods this interface has no methods but inherits methods from its
parent, svganimationelement.
SVGAnimateTransformElement - Web APIs
" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="121" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimatetransformelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svganimationelement.
... methods this interface has no methods but inherits methods from its
parent, svganimationelement.
SVGAnimatedPathData - Web APIs
svgpathseglist animatednormalizedpathseglist svgpathseglist animatedpathseglist svgpathseglist normalizedpathseglist svgpathseglist pathseglist normative document svg 1.1 (2nd edition) properties this interface also inherits properties from its
parent, svgpathelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgpathelement.
SVGAnimationElement - Web APIs
" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="386" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svganimationelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgelement.
... methods this interface also inherits methods from its
parent, svgelement.
SVGCircleElement - Web APIs
"65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-39" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgcircleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggeometryelement.
... methods this interface has no methods but inherits methods from its
parent, svggeometryelement.
SVGClipPathElement - Web APIs
5" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgclippathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent, svgelement.
SVGComponentTransferFunctionElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement.
SVGCursorElement - Web APIs
"65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgcursorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgelement, and implements properties from svgurireference.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent, svgelement.
SVGDefsElement - Web APIs
f8" stroke="#d4dde4" stroke-width="2px" /><text x="191" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgdefselement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent, svggraphicselement.
... methods this interface doesn't implement any specific methods, but inherits properties from its
parent, svggraphicselement.
SVGDescElement - Web APIs
y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgdescelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggeometryelement.
... methods this interface has no methods but inherits methods from its
parent, svggeometryelement.
SVGEllipseElement - Web APIs
65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-44" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgellipseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svggeometryelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggeometryelement.
SVGFEBlendElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and implements methods of svgfilterprimitivestandardattributes.
SVGFEColorMatrixElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement , and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement , and also implements methods of svgfilterprimitivestandardattributes.
SVGFEComponentTransferElement - Web APIs
90" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="336" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfecomponenttransferelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and implements methods of svgfilterprimitivestandardattributes.
SVGFECompositeElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEConvolveMatrixElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEDiffuseLightingElement - Web APIs
"270" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="346" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfediffuselightingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEDisplacementMapElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEDistantLightElement - Web APIs
th="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="361" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfedistantlightelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement.
SVGFEDropShadowElement - Web APIs
idth="220" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfedropshadowelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface also inherits methods of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEFloodElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefloodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement, and implements properties from svgfilterprimitivestandardattributes.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement, and implements methods from svgfilterprimitivestandardattributes.
SVGFEFuncAElement - Web APIs
#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncaelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its
parent interface, svgcomponenttransferfunctionelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgcomponenttransferfunctionelement.
SVGFEFuncBElement - Web APIs
#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncbelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its
parent interface, svgcomponenttransferfunctionelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgcomponenttransferfunctionelement.
SVGFEFuncGElement - Web APIs
#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncgelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its
parent interface, svgcomponenttransferfunctionelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgcomponenttransferfunctionelement.
SVGFEFuncRElement - Web APIs
#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="6" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfefuncrelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its
parent interface, svgcomponenttransferfunctionelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgcomponenttransferfunctionelement.
SVGFEGaussianBlurElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface also inherits methods of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEImageElement - Web APIs
65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfeimageelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and implements properties of svgfilterprimitivestandardattributes and svgurireference.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and implements methods of svgfilterprimitivestandardattributesand svgurireference.
SVGFEMergeElement - Web APIs
4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfemergeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface not provide any specific properties, but inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEMergeNodeElement - Web APIs
width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfemergenodeelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement.
SVGFEMorphologyElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEOffsetElement - Web APIs
5" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfeoffsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFEPointLightElement - Web APIs
idth="220" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="371" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfepointlightelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement.
SVGFESpecularLightingElement - Web APIs
280" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="341" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfespecularlightingelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFESpotLightElement - Web APIs
width="210" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="376" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfespotlightelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement.
SVGFETileElement - Web APIs
"65" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfetileelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFETurbulenceElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and also implements properties of svgfilterprimitivestandardattributes.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and also implements methods of svgfilterprimitivestandardattributes.
SVGFontElement - Web APIs
0" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement and implements properties from svgexternalresourcesrequired and svgstylable.
... methods this interface has no methods but inherits methods from its
parent, svgelement and implements methods from svgexternalresourcesrequired and svgstylable.
SVGFontFaceElement - Web APIs
eight="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGFontFaceFormatElement - Web APIs
50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="121" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceformatelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGFontFaceNameElement - Web APIs
="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacenameelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGFontFaceSrcElement - Web APIs
t="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="106" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfacesrcelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGFontFaceUriElement - Web APIs
t="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="106" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgfontfaceurielement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGForeignObjectElement - Web APIs
dth="230" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="146" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgforeignobjectelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggraphicselement and implements properties from svgurireference.
... methods this interface has no methods but inherits methods from its
parent, svggraphicselement and implements methods from svgurireference.
SVGGElement - Web APIs
4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="206" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svggelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svggraphicselement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggraphicselement.
SVGGeometryElement - Web APIs
properties this interface also inherits properties from its
parent, svggraphicselement.
... methods this interface also inherits methods from its
parent, svggraphicselement.
SVGGlyphElement - Web APIs
properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGGlyphRefElement - Web APIs
"1" width="180" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="91" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgglyphrefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgelement and implements properties from svgurireference and svgstylable.
... methods this interface has no methods but inherits methods from its
parent, svgelement and implements methods from svgurireference and svgstylable.
SVGGradientElement - Web APIs
properties this interface also inherits properties from its
parent, svgelement, and implements those of svgurireference.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgelement.
getBBox() - Web APIs
it also does not account for any transformation applied to the element or its
parents.
...this value is irrespective of any transformation attribute applied to it or the
parent elements.
SVGGraphicsElement - Web APIs
properties this interface also inherits properties from its
parent, svgelement.
... methods this interface also inherits methods from its
parent, svgelement.
SVGHKernElement - Web APIs
" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svghkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGImageElement - Web APIs
="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="186" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgimageelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggraphicselement.
... methods this interface also inherits methods from its
parent interface, svggraphicselement.
SVGLineElement - Web APIs
y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-29" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svglineelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggeometryelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggeometryelement.
SVGLinearGradientElement - Web APIs
th="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="141" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svglineargradientelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggradientelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggradientelement.
SVGMPathElement - Web APIs
8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmpathelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGMarkerElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement, and implements properties from svgexternalresourcesrequired, svganimatedpreserveaspectratio, and svgstylable.
... methods this also inherits methods from its
parent, svgelement, and implements properties from svgstylable.
SVGMaskElement - Web APIs
y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmaskelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGMeshElement - Web APIs
7f8" stroke="#d4dde4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmeshelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svggeometryelement, and implements the properties of svgurireference.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggeometryelement, and implements the methods of svgurireference.
SVGMetadataElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="391" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmetadataelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGMissingGlyphElement - Web APIs
="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="111" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgmissingglyphelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement and implements properties from svgstylable.
... methods this interface has no methods but inherits methods from its
parent, svgelement and implements methods from svgstylable.
SVGPatternElement - Web APIs
65" width="170" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="396" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpatternelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgelement and implements the ones from svgfittoviewbox and svgurireference.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement and implements the ones from svgfittoviewbox and svgurireference.
SVGPolygonElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="-44" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpolygonelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent, svggeometryelement and also implements properties from svganimatedpoints.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent, svggeometryelement.
SVGPolylineElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="-49" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgpolylineelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent, svggeometryelement and also implements properties from svganimatedpoints.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent, svggeometryelement.
SVGRadialGradientElement - Web APIs
th="240" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="141" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgradialgradientelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggradientelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggradientelement.
SVGRectElement - Web APIs
y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-29" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgrectelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svggeometryelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent, svggeometryelement.
SVGSetElement - Web APIs
7f8" stroke="#d4dde4" stroke-width="2px" /><text x="186" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsetelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svganimationelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svganimationelement.
SVGSolidcolorElement - Web APIs
roke="#d4dde4" stroke-width="2px" /><text x="101" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsolidcolorelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGStopElement - Web APIs
y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="411" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgstopelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGStyleElement - Web APIs
="65" width="150" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgstyleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svgelement and implements properties from linkstyle.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement and implements methods from linkstyle.
SVGSwitchElement - Web APIs
" stroke="#d4dde4" stroke-width="2px" /><text x="181" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgswitchelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svggraphicselement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggraphicselement.
SVGSymbolElement - Web APIs
" stroke="#d4dde4" stroke-width="2px" /><text x="401" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgsymbolelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svggraphicselement, and implements properties from svgfittoviewbox.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggraphicselement, and implements methods from svgfittoviewbox.
SVGTRefElement - Web APIs
0" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="71" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtrefelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgtextpositioningelement and implements properties from svgurireference.
... methods this interface has no methods but inherits methods from its
parent, svgtextpositioningelement and implements properties from svgurireference.
SVGTextContentElement - Web APIs
properties this interface also inherits properties from its
parent, svggraphicselement.
... methods this interface also inherits methods from its
parent, svggraphicselement.
SVGTextElement - Web APIs
8" stroke="#d4dde4" stroke-width="2px" /><text x="-349" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtextelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgtextpositioningelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgtextpositioningelement.
SVGTextPathElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgtextcontentelement, and also implements properties of svgurireference.
... methods this interface does not provide any specific methods, but implements those of its
parent, svgtextcontentelement, and also implements methods of svgurireference.
SVGTextPositioningElement - Web APIs
="250" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="-114" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtextpositioningelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, svgtextcontentelement.
... methods this interface doesn't provide any specific methods, but inherits methods from its
parent, svgtextcontentelement.
SVGTitleElement - Web APIs
8" stroke="#d4dde4" stroke-width="2px" /><text x="406" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtitleelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't implement any specific properties, but inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGUseElement - Web APIs
y="65" width="130" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="196" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svguseelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent interface, svggraphicselement and implements properties from svgurireference.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svggraphicselement and implements methods from svgurireference.
SVGVKernElement - Web APIs
" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="76" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgvkernelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface has no properties but inherits properties from its
parent, svgelement.
... methods this interface has no methods but inherits methods from its
parent, svgelement.
SVGViewElement - Web APIs
properties this interface also inherits properties from its
parent interface, svgelement.
... methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
ScriptProcessorNode - Web APIs
number of inputs 1 number of outputs 1 channel count mode "max" channel count 2 (not used in the default count mode) channel interpretation "speakers" properties inherits properties from its
parent, audionode.
... methods no specific methods; inherits methods from its
parent, audionode.
Selection.selectAllChildren() - Web APIs
syntax sel.selectallchildren(
parentnode) parameters
parentnode all children of
parentnode will be selected.
...
parentnode itself is not part of the selection.
ServiceWorker - Web APIs
properties the serviceworker interface inherits properties from its
parent, worker.
... methods the serviceworker interface inherits methods from its
parent, worker, with the exception of worker.terminate — this should not be accessible from service workers.
ServiceWorkerRegistration - Web APIs
properties also implements properties from its
parent interface, eventtarget.
... methods also implements methods from its
parent interface, eventtarget.
SharedWorker - Web APIs
properties inherits properties from its
parent, eventtarget, and implements properties from abstractworker.
... methods inherits methods from its
parent, eventtarget, and implements methods from abstractworker.
SourceBuffer.changeType() - Web APIs
invalidstateerror the sourcebuffer is not a member of the
parent media source's sourcebuffers list, or the buffer's updating property indicates that a previously queued appendbuffer() or remove() is still being processed.
... usage notes if the
parent mediasource is in its "ended" readystate, calling changetype() will transition the media source to the "open" readystate and fire a simple event named sourceopen at the
parent media source.
SpeechRecognition - Web APIs
properties speechrecognition also inherits properties from its
parent interface, eventtarget.
... methods speechrecognition also inherits methods from its
parent interface, eventtarget.
SpeechSynthesis - Web APIs
properties speechsynthesis also inherits properties from its
parent interface, eventtarget.
... methods speechsynthesis also inherits methods from its
parent interface, eventtarget.
SpeechSynthesisErrorEvent - Web APIs
properties speechsynthesiserrorevent extends the speechsynthesisevent interface, which inherits properties from its
parent interface, event.
... methods speechsynthesiserrorevent extends the speechsynthesisevent interface, which inherits methods from its
parent interface, event.
SpeechSynthesisEvent - Web APIs
properties the speechsynthesisevent interface also inherits properties from its
parent interface, event.
... methods the speechsynthesisevent interface also inherits methods from its
parent interface, event.
StereoPannerNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
StylePropertyMap - Web APIs
="_top"><rect x="1" y="1" width="160" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="81" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">stylepropertymap</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, stylepropertymapreadonly.
... methods inherits methods from its
parent, stylepropertymapreadonly.
SubmitEvent - Web APIs
properties in addition to the properties listed below, this interface inherits the properties of its
parent interface, event.
... methods while submitevent offers no methods of its own, it inherits any specified by its
parent interface, event.
SubtleCrypto - Web APIs
properties this interface doesn't inherit any properties, as it has no
parent interface.
... methods this interface doesn't inherit any methods, as it has no
parent interface.
Text - Web APIs
properties inherits properties from its
parent, characterdata.
... methods inherits methods from its
parent, characterdata.
TextRange - Web APIs
textrange.
parentelement() returns the
parent element of the range, which is the smallest element that contains the range completely.
... if the selection contains more than one element, when you modify the contents of the selection, the contents will be placed in the corresponding position of the
parent element instead of the child element.
TextTrackList - Web APIs
properties this interface also inherits properties from its
parent interface, eventtarget.
... methods this interface also inherits methods from its
parent interface, eventtarget.
Touch - Web APIs
properties this interface has no
parent, and doesn't inherits or implements any other property.
... methods this interface has no method and no
parent, and doesn't inherits or implements any method.
TrackDefaultList - Web APIs
properties inherits properties from its
parent interface, eventtarget.
... methods inherits properties from its
parent interface, eventtarget.
TransitionEvent - Web APIs
properties also inherits properties from its
parent event.
... methods also inherits properties from its
parent event.
UIEvent.layerX - Web APIs
examples <html> <head> <title>pagex\pagey & layerx\layery example</title> <script type="text/javascript"> function showcoords(evt){ var form = document.forms.form_coords; var
parent_id = evt.target.
parentnode.id; form.
parentid.value =
parent_id; form.pagexcoords.value = evt.pagex; form.pageycoords.value = evt.pagey; form.layerxcoords.value = evt.layerx; form.layerycoords.value = evt.layery; } </script> <style type="text/css"> #d1 { border: solid blue 1px; padding: 20px; } #d2 { position: absolute; top: 180px; left: 80%; right:auto; width: 40%; ...
...note the pagex\pagey properties still return the absolute position in the document, including page scrolling.</span> </div> <div id="d3"> <form name="form_coords" id="form1">
parent element id: <input type="text" name="
parentid" size="7" /><br /> pagex:<input type="text" name="pagexcoords" size="7" /> pagey:<input type="text" name="pageycoords" size="7" /><br /> layerx:<input type="text" name="layerxcoords" size="7" /> layery:<input type="text" name="layerycoords" size="7" /> </form> </div> </body> </html> specifications this property is not part of any specification...
UIEvent.layerY - Web APIs
example <html> <head> <title>pagex\pagey & layerx\layery example</title> <script type="text/javascript"> function showcoords(evt){ var form = document.forms.form_coords; var
parent_id = evt.target.
parentnode.id; form.
parentid.value =
parent_id; form.pagexcoords.value = evt.pagex; form.pageycoords.value = evt.pagey; form.layerxcoords.value = evt.layerx; form.layerycoords.value = evt.layery; } </script> <style type="text/css"> #d1 { border: solid blue 1px; padding: 20px; } #d2 { position: absolute; top: 180px; left: 80%; right:auto; width: 40%; ...
...note the pagex\pagey properties still return the absolute position in the document, including page scrolling.</span> </div> <div id="d3"> <form name="form_coords" id="form1">
parent element id: <input type="text" name="
parentid" size="7" /><br /> pagex:<input type="text" name="pagexcoords" size="7" /> pagey:<input type="text" name="pageycoords" size="7" /><br /> layerx:<input type="text" name="layerxcoords" size="7" /> layery:<input type="text" name="layerycoords" size="7" /> </form> </div> </body> </html> specifications this property is not part of any specification...
UIEvent.pageY - Web APIs
example <html> <head> <title>pagex\pagey & layerx\layery example</title> <script type="text/javascript"> function showcoords(evt){ var form = document.forms.form_coords; var
parent_id = evt.target.
parentnode.id; form.
parentid.value =
parent_id; form.pagexcoords.value = evt.pagex; form.pageycoords.value = evt.pagey; form.layerxcoords.value = evt.layerx; form.layerycoords.value = evt.layery; } </script> <style type="text/css"> #d1 { border: solid blue 1px; padding: 20px; } #d2 { position: absolute; top: 180px; left: 80%; right:auto; width: 40%; ...
...note the pagex\pagey properties still return the absolute position in the document, including page scrolling.</span> </div> <div id="d3"> <form name="form_coords">
parent element id: <input type="text" name="
parentid" size="7" /><br /> pagex:<input type="text" name="pagexcoords" size="7" /> pagey:<input type="text" name="pageycoords" size="7" /><br /> layerx:<input type="text" name="layerxcoords" size="7" /> layery:<input type="text" name="layerycoords" size="7" /> </form> </div> </body> </html> specifications this property is not part of any specification...
UIEvent - Web APIs
properties this interface also inherits properties of its
parent, event.
... methods this interface also inherits methods of its
parent, event.
VideoTrackList - Web APIs
properties this interface also inherits properties from its
parent interface, eventtarget.
... methods this interface also inherits methods from its
parent interface, eventtarget.
WEBGL_compressed_texture_etc - Web APIs
ext.compressed_rgb8_punchthrough_alpha1_etc2 similar to rgb8_etc, but with ability to punch through the alpha channel, which means to make it completely opaque or trans
parent.
... ext.compressed_srgb8_punchthrough_alpha1_etc2 similar to srgb8_etc, but with ability to punch through the alpha channel, which means to make it completely opaque or trans
parent.
WaveShaperNode - Web APIs
properties inherits properties from its
parent, audionode.
... methods no specific method; inherits methods from its
parent, audionode.
WebGL constants - Web APIs
compressed_rgb8_punchthrough_alpha1_etc2 0x9278 similar to rgb8_etc, but with ability to punch through the alpha channel, which means to make it completely opaque or trans
parent.
... compressed_srgb8_punchthrough_alpha1_etc2 0x9279 similar to srgb8_etc, but with ability to punch through the alpha channel, which means to make it completely opaque or trans
parent.
Viewpoints and viewers: Simulating cameras in WebXR - Web APIs
in business applications, the 3d camera is used to simply set the ap
parent size and perspective when rendering things such as graphs and charts.
...the inverse property is another xrrigidtransform object which is the inverse of the
parent transform.
Fundamentals of WebXR - Web APIs
devices which use trans
parent glasses to allow the user to see the world, while overlaying the rendered image atop the scene.
...instead, the display surface is trans
parent, and if not displaying anything is essentially identical to wearing regular eyeglasses.
Window.scrollX - Web APIs
window.pagexoffset : (document.documentelement || document.body.
parentnode || document.body).scrollleft; var y = (window.pageyoffset !== undefined) ?
... window.pageyoffset : (document.documentelement || document.body.
parentnode || document.body).scrolltop; specification specification status comment css object model (cssom) view modulethe definition of 'window.scrollx' in that specification.
Window.top - Web APIs
syntax var topwindow = window.top; notes where the window.
parent property returns the immediate
parent of the current window, window.top returns the topmost window in the hierarchy of window objects.
... this property is especially useful when you are dealing with a window that is in a subframe of a
parent or
parents, and you want to get to the top-level frameset.
WindowClient - Web APIs
methods windowclient inherits methods from its
parent interface, client.
... properties windowclient inherits properties from its
parent interface, client.
XRReferenceSpaceEvent - Web APIs
properties in addition to inheriting the properties available on the
parent interface, event, xrreferencespaceevent objects include the following properties: referencespace read only an xrreferencespace indicating the reference space that generated the event.
... methods while xrreferencespaceevent does not define any methods, it inherits the methods of its
parent interface, event.
XRSession - Web APIs
properties in addition to the properties listed below, xrsession inherits properties from its
parent interface, eventtarget.
... methods xrsession provides the following methods in addition to those inherited from its
parent interface, eventtarget.
XRSessionEvent - Web APIs
properties in addition to properties inherited from its
parent interface, event, xrsessionevent provides the folllowing: session read only the xrsession to which the event refers.
... methods while xrsessionevent defines no methods, it inherits methods from its
parent interface, event.
XRSpace - Web APIs
properties the xrspace interface defines no properties of its own; however, it does inherit the properties of its
parent interface, eventtarget.
...however, it inherits the methods of eventtarget, its
parent interface.
XRSystem - Web APIs
properties while xrsystem directly offers no properties, it does inherit properties from its
parent interface, eventtarget.
... methods in addition to inheriting methods from its
parent interface, eventtarget, the xrsystem interface includes the following methods: issessionsupported() returns a promise which resolves to true if the browser supports the given xrsessionmode.
:first-child - CSS: Cascading Style Sheets
/* selects any <p> that is the first element among its siblings */ p:first-child { color: lime; } note: as originally defined, the selected element had to have a
parent.
... working draft matching elements are not required to have a
parent.
:first-of-type - CSS: Cascading Style Sheets
/* selects any <p> that is the first element of its type among its siblings */ p:first-of-type { color: red; } note: as originally defined, the selected element had to have a
parent.
... working draft matching elements are not required to have a
parent.
:last-child - CSS: Cascading Style Sheets
/* selects any <p> that is the last element among its siblings */ p:last-child { color: lime; } note: as originally defined, the selected element had to have a
parent.
... working draft matching elements are not required to have a
parent.
:last-of-type - CSS: Cascading Style Sheets
/* selects any <p> that is the last element of its type among its siblings */ p:last-of-type { color: lime; } note: as originally defined, the selected element had to have a
parent.
... working draft matching elements are not required to have a
parent.
:only-child - CSS: Cascading Style Sheets
/* selects each <p>, but only if it is the */ /* only child of its
parent */ p:only-child { background-color: lime; } note: as originally defined, the selected element had to have a
parent.
... working draft matching elements are not required to have a
parent.
:only-of-type - CSS: Cascading Style Sheets
/* selects each <p>, but only if it is the */ /* only <p> element inside its
parent */ p:only-of-type { background-color: lime; } note: as originally defined, the selected element had to have a
parent.
... working draft matching elements are not required to have a
parent.
:visited - CSS: Cascading Style Sheets
syntax :visited examples properties that would otherwise have no color or be trans
parent cannot be modified with :visited.
... html <a href="#test-visited-link">have you visited this link yet?</a><br> <a href="">you've already visited this link.</a> css a { /* specify non-trans
parent defaults to certain properties, allowing them to be styled with the :visited state */ background-color: white; border: 1px solid white; } a:visited { background-color: yellow; border-color: hotpink; color: hotpink; } result specifications specification status comment html living standardthe definition of ':visited' in that specification.
prefers-reduced-transparency - CSS: Cascading Style Sheets
reduce indicates that user has notified the system that they prefer an interface that minimizes the amount of trans
parent or translucent layer effects.
... html <div class="transparency">trans
parent box</div> css .transparency { opacity: 0.5; } @media (prefers-reduced-transparency: reduce) { .transparency { opacity: 1; } } result specifications specification status comment media queries level 5the definition of 'prefers-reduced-transparency' in that specification.
Border-radius generator - CSS: Cascading Style Sheets
= this.maxh; this.updateheight(); } if (deltax || deltay) this.updateborderradius(); } /** * tool manager */ var tool = (function tool() { var preview; var preview_ui; var radius_containers = []; var border_width = 3; var borders1 = [null, null, null, null]; var borders2 = [0, 0, 0, 0]; var updateuiwidth = function updateuiwidth(value) { var pwidth = subject.
parentelement.clientwidth; var left = (pwidth - value) / 2; subject.style.width = value + "px"; for (var i = 0; i < 4; i++) radius_containers[i].updateunits(0); } var updateuiheight = function updateuiheight(value) { var pheight = subject.
parentelement.clientheight; var top = (pheight - value) / 2; subject.style.height = value + "px"; subject.style.top = top - border_width...
... + "px"; for (var i = 0; i < 4; i++) radius_containers[i].updateunits(1); } var updatepreviewuiwidth = function updatepreviewuiwidth() { var p = subject.
parentelement.clientwidth; var v = preview_ui.clientwidth; console.log(p, v, (p - v ) / 2); preview_ui.style.left = (p - v) / 2 + "px" ; } var updatepreviewuiheight = function updatepreviewuiheight() { var p = subject.
parentelement.clientheight; var v = preview_ui.clientheight; console.log(p, v, (p - v ) / 2); preview_ui.style.top = (p - v) / 2 + "px" ; } var updateoutput = function updateoutput(corner, radius) { var values = radius.split(" "); borders1[corner] = values[0]; borders2[corner] = values[0]; if (values.length === 2) borders2[corner] = values[1]; var border_1_value =...
Box-shadow generator - CSS: Cascading Style Sheets
; this.rotate = 0; this.width = 300; this.height = 100; this.display = true; this.border = true; this.zindex = -1; this.bgcolor = new color(); this.id = id; this.node = getelembyid('obj-' + id); this.object = getelembyid(id); this.shadowid = null; this.shadows = [] this.render = []; this.init(); } cssclass.prototype.init = function init() { this.left = ((this.node.
parentnode.clientwidth - this.node.clientwidth) / 2) | 0; this.top = ((this.node.
parentnode.clientheight - this.node.clientheight) / 2) | 0; this.settop(this.top); this.setleft(this.left); this.setheight(this.height); this.setwidth(this.width); this.bgcolor.sethsv(0, 0, 100); this.updatebgcolor(this.bgcolor); } cssclass.prototype.updatepos = function updatepos(deltax, deltay) { this.
...* layer manager */ var layermanager = (function layermanager() { var stacks = []; var active = { node : null, stack : null } var elements = {}; var mouseevents = function mouseevents(e) { var node = e.target; var type = node.getattribute('data-type'); if (type === 'subject') setactivestack(stacks[node.id]); if (type === 'disable') { tool.disableclass(node.
parentnode.id); setactivestack(stacks['element']); } if (type === 'add') active.stack.addlayer(); if (type === 'layer') active.stack.setactivelayer(node); if (type === 'delete') active.stack.deletelayer(node.
parentnode); if (type === 'move-up') active.stack.movelayer(1); if (type === 'move-down') active.stack.movelayer(-1); } var setactivestack = funct...
Flow Layout and Writing Modes - CSS: Cascading Style Sheets
boxes with a different writing mode to their
parent when a nested box is assigned a different writing mode to its
parent, then an inline level box will display as if it has display: inline-block.
...this is shown in the next example where the box which displays as horizontal-tb contains a float which is contained due to its
parent establishing a new bfc.
Stacking context example 1 - CSS: Cascading Style Sheets
in this last example you can see that div #2 and div #4 are not siblings, because they belong to different
parents in the html elements' hierarchy.
...and this example shows what happens when a
parent element does not create a stacking context.
CSS reference - CSS: Cascading Style Sheets
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 same
parent and that the element selected by a comes before—but not necessarily immediately before—the element selected by b.
Shorthand properties - CSS: Cascading Style Sheets
therefore: background-color: red; background: url(images/bg.gif) no-repeat left top; will not set the color of the background to red but to background-color's default, trans
parent, as the second rule has precedence.
... inherit sets the property value applied to a selected element to be the same as that of its
parent element.
align-self - CSS: Cascading Style Sheets
the flex item at the end */ /* baseline alignment */ align-self: baseline; align-self: first baseline; align-self: last baseline; align-self: stretch; /* stretch 'auto'-sized items to fit the container */ /* overflow alignment */ align-self: safe center; align-self: unsafe center; /* global values */ align-self: inherit; align-self: initial; align-self: unset; values auto computes to the
parent's align-items value.
... formal definition initial valueautoapplies toflex items, grid items, and absolutely-positioned boxesinheritednocomputed valueauto computes to itself on absolutely-positioned elements, and to the computed value of align-items on the
parent (minus any legacy keywords) on all other boxes, or start if the box has no
parent.
all - CSS: Cascading Style Sheets
body { font-size: small; background-color: #f0f0f0; color:blue; } blockquote { background-color: skyblue; color: red; } blockquote { all: unset; } the <blockquote> doesn't use the browser default styling: it is an inline element now (initial value), its background-color is trans
parent (initial value), but its font-size is still small (inherited value) and its color is blue (inherited value).
... body { font-size: small; background-color: #f0f0f0; color:blue; } blockquote { background-color: skyblue; color: red; } blockquote { all: initial; } the <blockquote> doesn't use the browser default styling: it is an inline element now (initial value), its background-color is trans
parent (initial value), its font-size is normal (initial value) and its color is black (initial value).
animation-timing-function - CSS: Cascading Style Sheets
<a href="/docs/css/value_definition_syntax#brackets" title="brackets: enclose several entities, combinators, and multipliers to transform them as a single component">[0,1]>, <number>)<step-timing-function> = step-start | step-end | steps(<integer>[, <step-position>]?)where <step-position> = jump-start | jump-end | jump-none | jump-both | start | end examples cubic-bezier examples <div class="
parent"> <div class="ease">ease</div> <div class="easein">ease-in</div> <div class="easeout">ease-out</div> <div class="easeinout">ease-in-out</div> <div class="linear">linear</div> <div class="cb">cubic-bezier(0.2,-2,0.8,2)</div> </div> .
parent > div[class] { animation-name: changeme; animation-duration: 10s; animation-iteration-count: infinite; margin-bottom: 4px; } @keyfr...
... border: 1px solid orange; } } .ease { animation-timing-function: ease; } .easein { animation-timing-function: ease-in; } .easeout { animation-timing-function: ease-out; } .easeinout { animation-timing-function: ease-in-out; } .linear { animation-timing-function: linear; } .cb { animation-timing-function: cubic-bezier(0.2,-2,0.8,2); } step examples <div class="
parent"> <div class="jump-start">jump-start</div> <div class="jump-end">jump-end</div> <div class="jump-both">jump-both</div> <div class="jump-none">jump-none</div> <div class="start">start</div> <div class="end">end</div> <div class="step-start">step-start</div> <div class="step-end">step-end</div> </div> .
parent > div[class] { animation-name: changeme; animation-duration: 10s;...
backface-visibility - CSS: Cascading Style Sheets
formal definition initial valuevisibleapplies totransformable elementsinheritednocomputed valueas specifiedanimation typediscrete formal syntax visible | hidden examples cube with trans
parent and opaque faces this example shows a cube with trans
parent faces, and one with opaque faces.
... <td> <div class="container"> <div class="cube showbf"> <div class="face front">1</div> <div class="face back">2</div> <div class="face right">3</div> <div class="face left">4</div> <div class="face top">5</div> <div class="face bottom">6</div> </div> </div> <p> since all faces are partially trans
parent, the back faces (2, 4, 5) are visible through the front faces (1, 3, 6).
background-clip - CSS: Cascading Style Sheets
if the element has no background-image or background-color, this property will only have a visual effect when the border has trans
parent regions or partially opaque regions (due to border-style or border-image); otherwise, the border masks the difference.
...see "the backgrounds of special elements." note: for documents whose root element is an html element: if the computed value of background-image on the root element is none and its background-color is trans
parent, user agents must instead propagate the computed values of the background properties from that element’s first html <body> child element.
background-image - CSS: Cascading Style Sheets
inear-color-hint> = <length-percentage><length-percentage> = <length> | <percentage><angular-color-stop> = <color> && <color-stop-angle>?<angular-color-hint> = <angle-percentage>where <color-stop-length> = <length-percentage>{1,2}<color-stop-angle> = <angle-percentage>{1,2}<angle-percentage> = <angle> | <percentage> examples layering background images note that the star image is partially trans
parent and is layered over the cat image.
... </p> <p>and no more.</p> </div> css p { font-size: 1.5em; color: #fe7f88; background-image: none; background-color: trans
parent; } div { background-image: url("https://mdn.mozillademos.org/files/6457/mdn_logo_only_color.png"); } .catsandstars { background-image: url("https://mdn.mozillademos.org/files/11991/startrans
parent.gif"), url("https://mdn.mozillademos.org/files/7693/catfront.png"); background-color: trans
parent; } result specifications specification status comment css backgrounds and borders module level 3the ...
background-position - CSS: Cascading Style Sheets
</div> <div class="exampletwo">example two</div> <div class="examplethree">example three</div> css /* shared among all <div>s */ div { background-color: #ffee99; background-repeat: no-repeat; width: 300px; height: 80px; margin-bottom: 12px; } /* these examples use the `background` shorthand property */ .exampleone { background: url("https://mdn.mozillademos.org/files/11987/startrans
parent.gif") #ffee99 2.5cm bottom no-repeat; } .exampletwo { background: url("https://mdn.mozillademos.org/files/11987/startrans
parent.gif") #ffee99 left 4em bottom 1em no-repeat; } /* multiple background images: each image is matched with the corresponding position, from first specified to last.
... */ .examplethree { background-image: url("https://mdn.mozillademos.org/files/11987/startrans
parent.gif"), url("https://mdn.mozillademos.org/files/7693/catfront.png"); background-position: 0px 0px, right 3em bottom 2em; } result specifications specification status comment css backgrounds and borders module level 3the definition of 'background-position' in that specification.
border-bottom-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-bottom-color: red; border-bottom-color: #ffbb00; border-bottom-color: rgb(255, 0, 0); border-bottom-color: hsla(100%, 50%, 25%, 0.75); border-bottom-color: currentcolor; border-bottom-color: trans
parent; /* global values */ border-bottom-color: inherit; border-bottom-color: initial; border-bottom-color: unset; the border-bottom-color property is specified as a single value.
... candidate recommendation no significant changes, though the trans
parent keyword, now included in <color> which has been extended, has been formally removed.
border-left-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-left-color: red; border-left-color: #ffbb00; border-left-color: rgb(255, 0, 0); border-left-color: hsla(100%, 50%, 25%, 0.75); border-left-color: currentcolor; border-left-color: trans
parent; /* global values */ border-left-color: inherit; border-left-color: initial; border-left-color: unset; the border-left-color property is specified as a single value.
... candidate recommendation no significant changes, though the trans
parent keyword, now included in <color> which has been extended, has been formally removed.
border-right-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-right-color: red; border-right-color: #ffbb00; border-right-color: rgb(255, 0, 0); border-right-color: hsla(100%, 50%, 25%, 0.75); border-right-color: currentcolor; border-right-color: trans
parent; /* global values */ border-right-color: inherit; border-right-color: initial; border-right-color: unset; the border-right-color property is specified as a single value.
... candidate recommendation no significant changes, though the trans
parent keyword, now included in <color> which has been extended, has been formally removed.
border-top-color - CSS: Cascading Style Sheets
syntax /* <color> values */ border-top-color: red; border-top-color: #ffbb00; border-top-color: rgb(255, 0, 0); border-top-color: hsla(100%, 50%, 25%, 0.75); border-top-color: currentcolor; border-top-color: trans
parent; /* global values */ border-top-color: inherit; border-top-color: initial; border-top-color: unset; the border-top-color property is specified as a single value.
... candidate recommendation no significant changes, though the trans
parent keyword, now included in <color> which has been extended, has been formally removed.
border - CSS: Cascading Style Sheets
candidate recommendation removes specific support for trans
parent, as it is now a valid <color>; this has no practical impact.
...also accepts trans
parent as a valid color.
<display-inside> - CSS: Cascading Style Sheets
depending on the value of other properties (such as position, float, or overflow) and whether it is itself participating in a block or inline formatting context, it either establishes a new block formatting context (bfc) for its contents or integrates its contents into its
parent formatting context.
... examples in this example the
parent box has been given display: flow-root and so establishes a new bfc and contains the floated item.
opacity() - CSS: Cascading Style Sheets
a value of 0% is completely trans
parent, while a value of 100% leaves the input unchanged.
... examples opacity(0%) /* completely trans
parent */ opacity(50%) /* 50% trans
parent */ opacity(1) /* no effect */ specifications specification status filter effects module level 1the definition of 'opacity()' in that specification.
filter - CSS: Cascading Style Sheets
if not specified, the color used depends on the browser - it is usually the value of the <color> property, but note that safari currently paints a trans
parent shadow in this case.
...a value of 0% is completely trans
parent.
grid-template-columns - CSS: Cascading Style Sheets
subgrid the subgrid value indicates that the grid will adopt the spanned portion of its
parent grid in that axis.
... rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the
parent grid’s definition.
grid-template-rows - CSS: Cascading Style Sheets
subgrid the subgrid value indicates that the grid will adopt the spanned portion of its
parent grid in that axis.
... rather than being specified explicitly, the sizes of the grid rows/columns will be taken from the
parent grid’s definition.
height - CSS: Cascading Style Sheets
tage or auto or the absolute lengthanimation typea length, percentage or calc(); formal syntax auto | <length> | <percentage> | min-content | max-content | fit-content(<length-percentage>)where <length-percentage> = <length> | <percentage> examples setting height using pixels and percentages html <div id="taller">i'm 50 pixels tall.</div> <div id="shorter">i'm 25 pixels tall.</div> <div id="
parent"> <div id="child"> i'm half the height of my
parent.
... </div> </div> css div { width: 250px; margin-bottom: 5px; border: 2px solid blue; } #taller { height: 50px; } #shorter { height: 25px; } #
parent { height: 100px; } #child { height: 50%; width: 75%; } result specifications specification status comment css box sizing module level 4the definition of 'height' in that specification.
Inheritance - CSS: Cascading Style Sheets
css properties can be categorized in two types: inherited properties, which by default are set to the computed value of the
parent element non-inherited properties, which by default are set to initial value of the property refer to any css property definition to see whether a specific property inherits by default ("inherited: yes") or not ("inherited: no").
... inherited properties when no value for an inherited property has been specified on an element, the element gets the computed value of that property on its
parent element.
left - CSS: Cascading Style Sheets
inherit specifies that the value is the same as the computed value from its
parent element (which might not be its containing block).
...on to its siblings.</p> </div> <div id="example_3"> <pre> float: right; position: relative; top: 20px; left: 20px; </pre> <p>relative to its sibling div above, but removed from flow of content.</p> <div id="example_4"> <pre> position: absolute; bottom: 10px; right: 20px; </pre> <p>absolute position inside of a
parent with relative position</p> </div> <div id="example_5"> <pre> position: absolute; right: 0; left: 0; top: 200px; </pre> <p>absolute position with both left and right declared</p> </div> </div> </div> css #wrap { width: 700px; margin: 0 auto; background: #5c5c5c; } pre { white-space: pre; white-space: pre-wrap; white-space:...
min() - CSS: Cascading Style Sheets
you may also use
parentheses to establish computation order when needed.
... let's look at some css: input, label { padding: 2px; box-sizing: border-box; display: inline-block; width: min(40%, 400px); background-color: pink; } form { margin: 4px; border: 1px solid black; padding: 4px; } here, the form itself, along with the margin, border, and padding, will be 100% of its
parent's width.
mix-blend-mode - CSS: Cascading Style Sheets
the mix-blend-mode css property sets how an element's content should blend with the content of the element's
parent and the element's background.
...height: auto; } .cell { margin: .5em; padding: .5em; background-color: #fff; overflow: hidden; text-align: center; } .note { background: #fff3d4; padding: 1em; margin: .5em .5em 0; font: .8em sans-serif; text-align: left; white-space: nowrap; } .note + .row .cell { margin-top: 0; } .container { position: relative; background: linear-gradient(to right, #000 0%, trans
parent 50%, #fff 100%), linear-gradient(to bottom, #ff0 0%, #f0f 50%, #0ff 100%); width: 150px; height: 150px; margin: 0 auto; } .r { transform-origin: center; transform: rotate(-30deg); fill: url(#red); } .g { transform-origin: center; transform: rotate(90deg); fill: url(#green); } .b { transform-origin: center; transform: rotate(210deg); fill: url(#blue); } .i...
<percentage> - CSS: Cascading Style Sheets
it is often used to define a size as relative to an element's
parent object.
...thus, even if a percentage value is used on the
parent property, a real value (such as a width in pixels for a <length> value) will be accessible on the inherited property, not the percentage value.
place-self - CSS: Cascading Style Sheets
place-self: self-end normal; place-self: flex-start auto; place-self: flex-end normal; place-self: left auto; place-self: right normal; /* baseline alignment */ place-self: baseline normal; place-self: first baseline auto; place-self: last baseline normal; place-self: stretch auto; /* global values */ place-self: inherit; place-self: initial; place-self: unset; values auto computes to the
parent's align-items value.
... formal definition initial valueas each of the properties of the shorthand:align-self: autojustify-self: autoapplies toblock-level boxes, absolutely-positioned boxes, and grid itemsinheritednocomputed valueas each of the properties of the shorthand:align-self: auto computes to itself on absolutely-positioned elements, and to the computed value of align-items on the
parent (minus any legacy keywords) on all other boxes, or start if the box has no
parent.
position - CSS: Cascading Style Sheets
my adjacent block level elements sit on new lines below me.</p> <p class="positioned">by default we span 100% of the width of our
parent element, and we are as tall as our child content.
...a stickily positioned element is treated as relatively positioned until it crosses a specified threshold, at which point it is treated as fixed until it reaches the boundary of its
parent.
right - CSS: Cascading Style Sheets
inherit specifies that the value is the same as the computed value from its
parent element (which might not be its containing block).
... html <div id="
parent">
parent <div id="nowidth">no width</div> <div id="width">width: 100px</div> </div> css div { outline: 1px solid #cccccc; } #
parent { width: 200px; height: 200px; background-color: #ffc7e4; position: relative; } /* declare both a left and a right */ #width, #nowidth { background-color: #c2ffd7; position: absolute; left: 0; right: 0; } /* declare a width */ #width { w...
shape-image-threshold - CSS: Cascading Style Sheets
values outside the range 0.0 (fully trans
parent) to 1.0 (fully opaque) are clamped to this range.
...</p> css #gradient-shape { width: 150px; height: 150px; float: left; background-image: linear-gradient(30deg, black, trans
parent 80%, trans
parent); shape-outside: linear-gradient(30deg, black, trans
parent 80%, trans
parent); shape-image-threshold: 0.2; } the shape is established here using background-image with a linear gradient rather than an image file.
Specified value - CSS: Cascading Style Sheets
if the document's style sheet doesn't specify a value but it is an inherited property, the value will be taken from the
parent element.
... examples html <p>my specified color is given explicitly in the css.</p> <div>the specified values of all my properties default to their initial values, because none of them are given in the css.</div> <div class="fun"> <p>the specified value of my font family is not given explicitly in the css, so it is inherited from my
parent.
transform-style - CSS: Cascading Style Sheets
the
parent container of the cube faces has transform-style: preserve-3d set on it by default, so it is transformed in the 3d space and you can see it as intended.
...in this alternative state, the cube faces are all flattened onto the plane of their
parent, and you might not be able to see them at all, depending on the browser you are using.
url() - CSS: Cascading Style Sheets
associated short-hand properties */ background: url('https://mdn.mozillademos.org/files/16761/star.gif') bottom right repeat-x blue; border-image: url("/media/diamonds.png") 30 fill / 30px / 30px space; /* as a parameter in another css function */ background-image: cross-fade(20% url(first.png), url(second.png)); mask-image: image(url(mask.png), skyblue, linear-gradient(rgba(0, 0, 0, 1.0), trans
parent); /* as part of a non-shorthand multiple value */ content: url(star.svg) url(star.svg) url(star.svg) url(star.svg) url(star.svg); /* at-rules */ @document url("https://www.example.com/") { ...
...quotes are required if the url includes
parentheses, whitespace, or quotes, unless these characters are escaped, or if the address includes control characters above 0x7e.
WAI ARIA Live Regions/API Support - Developer guides
atk/at-spi event iaccessible2 event object about to be hidden or removed children_changed::remove (fired on the
parent, with event data pointing to the child index of the accessible object to be removed) event_object_hide* (fired on the actual accessible object about to go away) object shown or inserted children_changed::add (fired on the
parent, with event data pointing to the child index of the inserted accessible object) event_object_show* (fired on the actual new accessible object) ...
...this means that the at does not need to traverse up the
parent chain to get this information.
Content categories - Developer guides
the script-supporting elements are: <script> <template> trans
parent content model if an element has a trans
parent content model, then its contents must be structured such that they would be valid html 5, even if the trans
parent element were removed and replaced by the child elements.
... for example, the <del> and <ins> elements are trans
parent: <p>we hold these truths to be <del><em>sacred & undeniable</em></del> <ins>self-evident</ins>.</p> if those elements were removed, this fragment would still be valid html (if not correct english).
HTML attribute: rel - HTML: Hypertext Markup Language
help relevant to <form>, <link>, <a>, and <area>, the help keyword indicates that the linked to content provides context-sensitive help, providing information for the
parent of the element defining the hyperlink, and its children.
...in other words, it makes the link behave as if window.opener were null and target="_
parent" were set.
Block-level elements - HTML: Hypertext Markup Language
by default, a block-level element occupies the entire space of its
parent element (container), thereby creating a "block." this article helps to explain what this means.
... the following example demonstrates the block-level element's influence: block-level elements html <p>this paragraph is a block-level element; its background has been colored to display the paragraph's
parent element.</p> css p { background-color: #8abb55; } usage block-level elements may appear only within a <body> element.
<bdi>: The Bidirectional Isolate element - HTML: Hypertext Markup Language
permitted
parents any element that accepts phrasing content.
... implicit aria role no corresponding role permitted aria roles any dom interface htmlelement attributes like all other html elements, this element supports the global attributes, except that the dir attribute behaves differently than normal: it defaults to auto, meaning its value is never inherited from the
parent element.
<dt>: The Description Term element - HTML: Hypertext Markup Language
the end tag may be omitted if this element is immediately followed by another <dt> or a <dd> element, or if there is no more content in the
parent element.
... permitted
parents before a <dt> or a <dd> element, inside a <dl> or (in whatwg html) a <div> that is inside a <dl>.
<legend> - HTML: Hypertext Markup Language
the html <legend> element represents a caption for the content of its
parent <fieldset>.
... permitted
parents a <fieldset> whose first child is this <legend> element implicit aria role no corresponding role permitted aria roles no role permitted dom interface htmllegendelement attributes this element only includes the global attributes.
<menuitem> - HTML: Hypertext Markup Language
permitted
parents the <menu> element, where that element is in the popup menu state.
... (if specified, the type attribute of the <menu> element must be popup; if missing, the
parent element of the <menu> must itself be a <menu> in the popup menu state.) permitted aria roles none dom interface htmlmenuitemelement attributes this element includes the global attributes; in particular title can be used to describe the command, or provide usage hints.
<noscript> - HTML: Hypertext Markup Language
when scripting is disabled and when it isn't a descendant of the <head> element: any trans
parent content, but no <noscript> element must be among its descendants.
... permitted
parents any element that accepts phrasing content, if there are no ancestor <noscript> element, or in a <head> element (but only for an html document), here again if there are no ancestor <noscript> element.
<optgroup> - HTML: Hypertext Markup Language
the end tag is optional if this element is immediately followed by another <optgroup> element, or if the
parent element has no more content.
... permitted
parents a <select> element.
<p>: The Paragraph element - HTML: Hypertext Markup Language
the end tag may be omitted if the <p> element is immediately followed by an <address>, <article>, <aside>, <blockquote>, <div>, <dl>, <fieldset>, <footer>, <form>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <header>, <hr>, <menu>, <nav>, <ol>, <pre>, <section>, <table>, <ul> or another <p> element, or if there is no more content in the
parent element and the
parent element is not an <a> element.
... permitted
parents any element that accepts flow content.
<slot> - HTML: Hypertext Markup Language
content categories flow content, phrasing content permitted content trans
parent events slotchange tag omission none, both the starting and ending tag are mandatory.
... permitted
parents any element that accepts phrasing content implicit aria role no corresponding role permitted aria roles no role permitted dom interface htmlslotelement attributes this element includes the global attributes.
<textarea> - HTML: Hypertext Markup Language
default : indicates that the element is to act according to a default behavior, possibly based on the
parent element's own spellcheck value.
... permitted
parents any element that accepts phrasing content.
<th> - HTML: Hypertext Markup Language
the end tag may be omitted, if it is immediately followed by a <th> or <td> element or if there are no more data in its
parent element.
... permitted
parents a <tr> element.
<video>: The Video Embed element - HTML: Hypertext Markup Language
permitted content if the element has a src attribute: zero or more <track> elements, followed by trans
parent content that contains no media elements–that is no <audio> or <video> else: zero or more <source> elements, followed by zero or more <track> elements, followed by trans
parent content that contains no media elements–that is no <audio> or <video>.
... permitted
parents any element that accepts embedded content.
Link types - HTML: Hypertext Markup Language
<a>, <area>, <link> <form> help if the element is <a> or <area>, it indicates that the hyperlink leads to a resource giving further help about the
parent of the element, and its descendants.
... note that when noopener is used, nonempty target names other than _top, _self, and _
parent are all treated like _blank in terms of deciding whether to open a new window/tab.
Compression in HTTP - HTTP
unlike text, these other media types use lot of space to store their data and the need to optimize storage and regain space was ap
parent very early.
... in practice, hop-by-hop compression is trans
parent for the server and the client, and is rarely used.
Content-Security-Policy - HTTP
frame-ancestors specifies valid
parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
... csp in workers workers are in general not governed by the content security policy of the document (or
parent worker) that created them.
HTTP Index - HTTP
84 csp: frame-ancestors ancestors, csp, content-security-policy, directive, frame, http, security, frame-ancestors the http content-security-policy (csp) frame-ancestors directive specifies valid
parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
... 267 506 variant also negotiates http, server error, status code the hypertext transfer protocol (http) 506 variant also negotiates response status code may be given in the context of trans
parent content negotiation (see rfc 2295).
HTTP Messages - HTTP
the http/2 binary framing mechanism has been designed to not require any alteration of the apis or config files applied: it is broadly trans
parent to the user.
... http frames are now trans
parent to web developers.
506 Variant Also Negotiates - HTTP
the hypertext transfer protocol (http) 506 variant also negotiates response status code may be given in the context of trans
parent content negotiation (see rfc 2295).
... status 506 variant also negotiates specifications specification title rfc 2295, section 8.1: 506 variant also negotiates trans
parent content negotiation in http ...
Functions - JavaScript
a list of parameters to the function, enclosed in
parentheses and separated by commas.
...a function defined inside another function can also access all variables defined in its
parent function, and any other variables to which the
parent function has access.
Grammar and types - JavaScript
for example, if a variable called phonenumber is declared in a document, you can refer to this variable from an iframe as
parent.phonenumber.
... parseint('101', 2) // 5 an alternative method of retrieving a number from a string is with the + (unary plus) operator: '1.1' + '1.1' // '1.11.1' (+'1.1') + (+'1.1') // 2.2 // note: the
parentheses are added for clarity, not required.
extends - JavaScript
syntax class childclass extends
parentclass { ...
... class square extends polygon { constructor(length) { // here, it calls the
parent class' constructor with lengths // provided for the polygon's width and height super(length, length); // note: in derived classes, super() must be called before you // can use 'this'.
TypeError: can't access dead object - JavaScript
the javascript exception "can't access dead object" occurs when firefox disallows add-ons to keep strong references to dom objects after their
parent document has been destroyed to improve in memory usage and to prevent memory leaks.
... to improve in memory usage and to prevent memory leaks, firefox disallows add-ons to keep strong references to dom objects after their
parent document has been destroyed.
Default parameters - JavaScript
this scope is a
parent of the scope created for the function body.
... function go() { return ':p' } } ...and this function will print undefined because variable var a is hoisted only to the top of the scope created for the function body (and not the
parent scope created for the parameter list): function f(a, b = () => console.log(a)) { var a = 1 b() // prints `undefined`, because default parameter values exist in their own scope } parameters without defaults after default parameters parameters are still set left-to-right, overwriting default parameters even if there are later parameters without defaults.
Array - JavaScript
"dbbd" [1], ...[n] read only elements that specify the
parenthesized substring matches (if included) in the regular expression.
... the number of possible
parenthesized substrings is unlimited.
Intl.NumberFormat() constructor - JavaScript
possible values are: "symbol" to use a localized currency symbol such as €, this is the default value, "narrowsymbol" to use a narrow format symbol ("$100" rather than "us$100"), "code" to use the iso currency code, "name" to use a localized currency name such as "dollar", currencysign in many locales, accounting format means to wrap the number with
parentheses instead of appending a minus sign.
...987654321); // → 988 millions new intl.numberformat('en-gb', { notation: "compact", compactdisplay: "short" }).format(987654321); // → 988m displaying signs display a sign for positive and negative numbers, but not zero: new intl.numberformat("en-us", { style: "percent", signdisplay: "exceptzero" }).format(0.55); // → '+55%' note that when the currency sign is "accounting",
parentheses might be used instead of a minus sign: new intl.numberformat('bn', { style: 'currency', currency: 'usd', currencysign: 'accounting', signdisplay: 'always' }).format(-3500); // → '($3,500.00)' specifications specification ecmascript internationalization api (ecma-402)the definition of 'intl.numberformat constructor' in that specification.
String.prototype.split() - JavaScript
if separator is a regular expression with capturing
parentheses, then each time separator matches, the results (including any undefined results) of the capturing
parentheses are spliced into the output array.
...how are you doing?' const splits = mystring.split(' ', 3) console.log(splits) this script displays the following: ["hello", "world.", "how"] splitting with a regexp to include parts of the separator in the result if separator is a regular expression that contains capturing
parentheses (), matched results are included in the array.
Symbol.species - JavaScript
for example, when using methods such as map() that return the default constructor, you want these methods to return a
parent array object, instead of the myarray object.
... the species symbol lets you do this: class myarray extends array { // overwrite species to the
parent array constructor static get [symbol.species]() { return array; } } let a = new myarray(1,2,3); let mapped = a.map(x => x * x); console.log(mapped instanceof myarray); // false console.log(mapped instanceof array); // true specifications specification ecmascript (ecma-262)the definition of 'symbol.species' in that specification.
Destructuring assignment - JavaScript
lement: const [a, ...b,] = [1, 2, 3]; // syntaxerror: rest element may not have a trailing comma // always consider using rest operator as the last element unpacking values from a regular expression match when the regular expression exec() method finds a match, it returns an array containing first the entire matched portion of the string and then the portions of the string that matched each
parenthesized group in the regular expression.
... let a, b; ({a, b} = {a: 1, b: 2}); notes: the
parentheses ( ...
Grouping operator ( ) - JavaScript
syntax ( ) description the grouping operator consists of a pair of
parentheses around an expression or sub-expression to override the normal operator precedence so that expressions with lower precedence can be evaluated before an expression with higher priority.
... as it sounds, it groups what's inside of the
parentheses.
for - JavaScript
the for statement creates a loop that consists of three optional expressions, enclosed in
parentheses and separated by semicolons, followed by a statement (usually a block statement) to be executed in the loop.
... function showoffsetpos(sid) { var nleft = 0, ntop = 0; for ( var oitnode = document.getelementbyid(sid); /* initialization */ oitnode; /* condition */ nleft += oitnode.offsetleft, ntop += oitnode.offsettop, oitnode = oitnode.offset
parent /* final-expression */ ); /* semicolon */ console.log('offset position of \'' + sid + '\' element:\n left: ' + nleft + 'px;\n top: ' + ntop + 'px;'); } /* example call: */ showoffsetpos('content'); // output: // "offset position of "content" element: // left: 0px; // top: 153px;" note: this is one of the few cases in javascript where the semicolon is mandatory.
<mo> - MathML
besides operators in strict mathematical meaning, this element also includes "operators" like
parentheses, separators like comma and semicolon, or "absolute value" bars.
... fence there is no visual effect for this attribute, but it specifies whether the operator is a fence (such as
parentheses).
MathML documentation index - MathML
14 <mfenced> deprecated, mathml, mathml reference, mathml:element, mathml:general layout schemata the deprecated mathml <mfenced> element used to provide the possibility to add custom opening and closing
parentheses (such as brackets) and separators (such as commas or semicolons) to an expression.
...besides operators in strict mathematical meaning, this element also includes "operators" like
parentheses, separators like comma and semicolon, or "absolute value" bars.
Critical rendering path - Web Performance
block level elements, by definition, have a default width of 100% of the width of their
parent.
... an element with a width of 50%, will be half of the width of its
parent.
SVG Presentation Attributes - SVG: Scalable Vector Graphics
y stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering transform unicode-bidi vector-effect visibility word-spacing writing-mode attributes alignment-baseline it specifies how an object is aligned along the font baseline with respect to its
parent.
... value: auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical|inherit; animatable: yes baseline-shift it allows repositioning of the dominant-baseline relative to the dominant-baseline of the
parent text content element.
enable-background - SVG: Scalable Vector Graphics
default value accumulate animatable no accumulate if an ancestor container element has a property value of enable-background: new, then all graphics elements within the current container element are rendered both onto the
parent container elementʼs background image canvas and onto the target device.
... it also indicates that a new (i.e., initially trans
parent black) background image canvas is established and that in effect all children of the current container element shall be rendered into the new background image canvas in addition to being rendered onto the target device.
href - SVG: Scalable Vector Graphics
if the href attribute or the deprecated xlink:href attribute is not provided, then the target element will be the immediate
parent element of the current animation element.
... if the href attribute is not provided, then the target element will be the immediate
parent element of the <discard> element.
in - SVG: Scalable Vector Graphics
in many cases, the fillpaint is opaque everywhere, but that might not be the case if a shape is painted with a gradient or pattern which itself includes trans
parent or semi-trans
parent parts.
...in many cases, the strokepaint is opaque everywhere, but that might not be the case if a shape is painted with a gradient or pattern which itself includes trans
parent or semi-trans
parent parts.
string - SVG: Scalable Vector Graphics
the string attribute is a hint to the user agent, and specifies a list of formats that the font referenced by the
parent <font-face-uri> element supports.
... only one element is using this attribute: <font-face-format> usage notes value <anything> default value none animatable no <anything> this value specifies a list of formats that are supported by the font referenced by the
parent <font-face-uri> element.
Basic shapes - SVG: Scalable Vector Graphics
the code to generate that looks something like: <?xml version="1.0" standalone="no"?> <svg width="200" height="250" version="1.1" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="30" height="30" stroke="black" fill="trans
parent" stroke-width="5"/> <rect x="60" y="10" rx="10" ry="10" width="30" height="30" stroke="black" fill="trans
parent" stroke-width="5"/> <circle cx="25" cy="75" r="20" stroke="red" fill="trans
parent" stroke-width="5"/> <ellipse cx="75" cy="75" rx="20" ry="5" stroke="red" fill="trans
parent" stroke-width="5"/> <line x1="10" x2="50" y1="110" y2="150" stroke="orange" stroke-width="5"/> <polyli...
...ne points="60 110 65 120 70 115 75 130 80 125 85 140 90 135 95 150 100 145" stroke="orange" fill="trans
parent" stroke-width="5"/> <polygon points="50 160 55 180 70 180 60 190 65 205 50 195 35 205 40 190 30 180 45 180" stroke="green" fill="trans
parent" stroke-width="5"/> <path d="m20,230 q40,205 50,230 t90,230" fill="none" stroke="blue" stroke-width="5"/> </svg> note: the stroke, stroke-width, and fill attributes are explained later in the tutorial.
Gradients in SVG - SVG: Scalable Vector Graphics
for instance, this one tells the gradient to start at the color red, change to trans
parent-black in the middle, and end at the color blue.
...efs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.25" fy="0.25"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="trans
parent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sans-serif" font-size="10pt">(cx,cy)</text> </svg> screenshotlive sample if the focal point is mo...
Texts - SVG: Scalable Vector Graphics
textpath this element fetches via its xlink:href attribute an arbitrary path and aligns the characters, that it encircles, along this path: <path id="my_path" d="m 20,20 c 80,60 100,40 120,20" fill="trans
parent" /> <text> <textpath xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#my_path"> a curve.
... </textpath> </text> playable code 2 <svg width="200" height="100" xmlns="http://www.w3.org/2000/svg"> <path id="my_path" d="m 20,20 c 80,60 100,40 120,20" fill="trans
parent" /> <text> <textpath xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#my_path"> a curve.
Types of attacks - Web security
when the user visits a page on the
parent domain (or another subdomain), the application may trust the existing value sent in the user's cookie.
... alternatively, if the
parent domain does not use http strict-transport-security with includesubdomains set, a user subject to an active mitm (perhaps connected to an open wifi network) could be served a response with a set-cookie header from a non-existent sub-domain.
Understanding WebAssembly text format - WebAssembly
each node in the tree goes inside a pair of
parentheses — ( ...
... the first label inside the
parenthesis tells you what type of node it is, and after that there is a space-separated list of either attributes or child nodes.
XUL Migration Guide - Archive of obsolete content
here's a really simple example add-on that modifies the browser chrome using window/utils: function removeforwardbutton() { var window = require("sdk/window/utils").getmostrecentbrowserwindow(); var forward = window.document.getelementbyid('forward-button'); var
parent = window.document.getelementbyid('urlbar-container');
parent.removechild(forward); } require("sdk/ui/button/action").actionbutton({ id: "remove-forward-button", label: "remove forward button", icon: "./icon-16.png", onclick: removeforwardbutton }); there are more useful examples of this technique in the jetpack wiki's collection of third party modules.
system/child_process - Archive of obsolete content
however, there are a few differences to be aware of: you need to require() the module using require("sdk/system/child_process") fork() is not supported gid and uid are not supported in node.js, spawn() and exec() inherit the environment variables from the
parent process, by default.
Displaying annotations - Archive of obsolete content
tated').bind('mouseenter', function(event) { self.port.emit('show', $(this).attr('annotation')); event.stoppropagation(); event.preventdefault(); }); $('.annotated').bind('mouseleave', function() { self.port.emit('hide'); }); }); function createanchor(annotation) { annotationanchorancestor = $('#' + annotation.ancestorid); annotationanchor = $(annotationanchorancestor).
parent().find( ':contains(' + annotation.anchortext + ')').last(); $(annotationanchor).addclass('annotated'); $(annotationanchor).attr('annotation', annotation.annotationtext); } save this in data as matcher.js.
Using XPCOM without chrome - Archive of obsolete content
import ci and the xpcomutils const { class } = require("sdk/core/heritage"); const { unknown } = require('sdk/platform/xpcom'); const { placesutils } = require("resource://gre/modules/placesutils.jsm"); let bmlistener = class({ extends: unknown, interfaces: [ "nsinavbookmarkobserver" ], //this event most often handles all events onitemchanged: function(bid, prop, an, nv, lm, type,
parentid, aguid, a
parentguid) { console.log("onitemchanged", "bid: "+bid, "property: "+prop, "isanno: "+an, "new value: "+nv, "lastmod: "+lm, "type: "+type, "
parentid:"+
parentid, "aguid:"+aguid);0 // code to handle the event here } }); //we just have a class, but need an object.
HTML to DOM - Archive of obsolete content
ocation.href == "about:blank" || doc.defaultview.frameelement) return; // do something with the dom of doc alert(doc.location.href); // when done remove frame or set location "about:blank" settimeout(function (){ var frame = document.getelementbyid("sample-frame"); // remove frame // frame.destroy(); // if using browser element instead of iframe frame.
parentnode.removechild(frame); // or set location "about:blank" // frame.contentdocument.location.href = "about:blank"; },10); }, true); } // load a page frame.contentdocument.location.href = "http://www.mozilla.org/"; // or // frame.webnavigation.loaduri("http://www.mozilla.org/",components.interfaces.nsiwebnavigation,null,null,null); if you are starting with an html string, ...
Label and description - Archive of obsolete content
absolutely nothing!</description> text can also be made to wrap by inserting an <html:br/> element regardless of the css style, but this creates a hard-break that does not change as
parent elements resize.
Toolbar - Archive of obsolete content
@optional */ function installbutton(toolbarid, id, afterid) { if (!document.getelementbyid(id)) { var toolbar = document.getelementbyid(toolbarid); // if no afterid is given, then append the item to the toolbar var before = null; if (afterid) { let elem = document.getelementbyid(afterid); if (elem && elem.
parentnode == toolbar) before = elem.nextelementsibling; } toolbar.insertitem(id, before); toolbar.setattribute("currentset", toolbar.currentset); document.persist(toolbar.id, "currentset"); if (toolbarid == "addon-bar") toolbar.collapsed = false; } } if (firstrun) { installbutton("nav-bar", "my-extension-navbar-button"); ...
xml:base support in old browsers - Archive of obsolete content
e, resolve against the full uri here' break; } else if (att.indexof('/') === 0) { // if absolute (/), need to prepare for next time to strip out after slash xmlbase = att + xmlbase; abs = true; // once the protocol is found on the next round, make sure any extra path is ignored } else { // if relative, just add it xmlbase = att + xmlbase; } } thisitem = thisitem.
parentnode; } //return (xmlbase === '') ?
getAttributeNS - Archive of obsolete content
// search for any prefixed xmlns declaration on thisitem which match prefixes found above with desired local name if (attrs2[i].nodename.match(xmlnsprefix) && attrs2[i].nodevalue === ns ) { // e.g., 'xmlns:xlink' and 'http://www.w3.org/1999/xlink' return attrs[j].nodevalue; } } thisitem = thisitem.
parentnode; } } } return ''; // if not found (some implementations return 'null' but this is not standard) } alert(getattributenswrapper (someelement, 'http://www.w3.org/1999/xlink', 'href')); // gets xlink:href, xl:href, etc.
Installing Extensions and Themes From Web Pages - Archive of obsolete content
web script example <script type="application/javascript"> <!-- function install (aevent) { for (var a = aevent.target; a.href === undefined;) a = a.
parentnode; var params = { "foo": { url: aevent.target.href, iconurl: aevent.target.getattribute("iconurl"), hash: aevent.target.getattribute("hash"), tostring: function () { return this.url; } } }; installtrigger.install(params); return false; } //--> </script> <a href="http://www.example.com/foo.xpi" iconurl="http://www.example.com/foo.png" ...
Interaction between privileged and non-privileged pages - Archive of obsolete content
chromium-like messaging: json request with json callback web page: <html> <head> <script> var something = { send_request: function(data, callback) { // analogue of chrome.extension.sendrequest var request = document.createtextnode(json.stringify(data)); request.addeventlistener("something-response", function(event) { request.
parentnode.removechild(request); if (callback) { var response = json.parse(request.nodevalue); callback(response); } }, false); document.head.appendchild(request); var event = document.createevent("htmlevents"); event.initevent("something-query", true, false); request.dispatchevent(event); },...
Offering a context menu for form controls - Archive of obsolete content
window.addeventlistener("load", function() { let settargetoriginal = nscontextmenu.prototype.settarget; components.utils.reporterror(settargetoriginal); nscontextmenu.prototype.settarget = function(anode, arange
parent, arangeoffset) { settargetoriginal.apply(this, arguments); if (this.istargetaformcontrol(anode)) this.shoulddisplay = true; }; }, false); this code, which is run when the window is opened up, works by replacing the settarget() routine for the prototype of nscontextmenu with one that forces the context menu to display if the target of the menu is a form control.
Creating reusable content with CSS and XBL - Archive of obsolete content
name="dodemo"> <body><![cdata[ this.square.style.backgroundcolor = "#cf4" this.square.style.marginleft = "20em" this.button.setattribute("disabled", "true") settimeout(this.cleardemo, 2000, this) ]]></body> </method> <method name="cleardemo"> <parameter name="me"/> <body><![cdata[ me.square.style.backgroundcolor = "trans
parent" me.square.style.marginleft = "0" me.button.removeattribute("disabled") ]]></body> </method> </implementation> <handlers> <handler event="click" button="0"><![cdata[ if (event.originaltarget == this.button) this.dodemo() ]]></handler> </handlers> </binding> </bindings> make a new css file, bind6.css.
Index of archived content - Archive of obsolete content
s lang/functional lang/type loader/cuddlefish loader/sandbox net/url net/xhr places/bookmarks places/favicon places/history platform/xpcom preferences/event-target preferences/service remote/child remote/
parent stylesheet/style stylesheet/utils system/child_process system/environment system/events system/runtime system/unload system/xul-app tabs/utils test/assert test/harness test/httpd test/runner test/utils ...
Getting Started - Archive of obsolete content
nager to create a zip archive: /chrome/my_theme.jar!/communicator/* /chrome/my_theme.jar!/editor/* /chrome/my_theme.jar!/global/* /chrome/my_theme.jar!/help/* /chrome/my_theme.jar!/messenger/* /chrome/my_theme.jar!/messenger-newsblog/* /chrome/my_theme.jar!/mozapps/* /chrome/my_theme.jar!/navigator/* /chrome.manifest /install.rdf /icon.png /preview.png make sure not to just zip up the my_theme
parent directory since that will cause the drag and drop install in the next section to fail without error messages.
Creating a Skin for Firefox/Getting Started - Archive of obsolete content
repackaging jar now all you need to do is repackage a jar file with the following directory structure, using your favorite archive manager to create a zip archive: /browser/* /communicator/* /global/* /help/* /mozapps/* /contents.rdf /install.rdf /icon.png /preview.png make sure not to just zip up the my_theme
parent directory since that will cause the drag and drop install in the next section to fail without error messages.
Java in Firefox Extensions - Archive of obsolete content
i've had problems with stability in the latest xquseme when testing in firefox 3.5b4, especially ap
parently on linux (i haven't so far been able to find any workarounds/incompatibilities, but everything is working in firefox 3.0.10.).
Hacking wiki - Archive of obsolete content
once you're done with the configuration script, copy the <tt>config/localsettings.php</tt> file it created to the
parent directory and navigate to the location you installed mediawiki to.
Table Layout Regression Tests - Archive of obsolete content
a typical beginning of a dump (*.rgd file) looks like: <frame va="15022440" type="viewport(-1)" state="270340"
parent="0"> <view va="47171904"> </view> <stylecontext va="15022232"> <font serif 240 240 0 /> <color data="-16777216"/> <background data="0 2 3 -1 0 0 "/> <spacing data="left: null top: null right: null bottom: null left: null top: null right: null bottom: null left: 1[0x1]enum top: 1[0x1]enum right: 1[0x1]enum bottom: 1[0x1]enum left: null top: null right: null bottom: null ...
Using cross commit - Archive of obsolete content
if you don't, however, then from the
parent directory of your source dir, do: cvs co mozilla/tools/cross-commit note that you will need to have $cvsroot and such set up correctly for this to work.
XPInstall API reference - Archive of obsolete content
folder installtrigger no properties methods compareversion enabled getversion install installchrome startsoftwareupdate installversion properties methods compareto init tostring file no properties methods copy dircreate dirget
parent dirremove dirrename diskspaceavailable execute exists isdirectory isfile macalias moddate moddatechanged move remove rename size windowsgetshortname windowsregisterserver windowsshortcut winprofile no properties methods getstri...
browser.type - Archive of obsolete content
this boundary has a number of special effects, such as making window.top == window (unless the browser is added to a chrome document), and preventing documents from inheriting the principal of the
parent document.
width - Archive of obsolete content
the actual displayed width may be different if the element or its contents have a minimum or maximum width, or the size is adjusted by the flexibility or alignment of its
parent.
Attribute (XUL) - Archive of obsolete content
mand onextra1 onextra2 oninput onload onnewtab onpageadvanced onpagehide onpagerewound onpageshow onpaneload onpopuphidden onpopuphiding onpopupshowing onpopupshown onsearchcomplete onselect ontextcommand ontextentered ontextrevert ontextreverted onunload onwizardback onwizardcancel onwizardfinish onwizardnext open ordinal orient pack pageid pageincrement pagestep
parent parsetype persist persistence phase pickertooltiptext placeholder popup position predicate preference preference-editable primary priority properties querytype readonly ref rel removeelement resizeafter resizebefore rows screenx screeny searchbutton searchsessions searchlabel selected selectedindex seltype setfocus showcaret showcommentcolumn showpopup size si...
Panels - Archive of obsolete content
<panel id="search-panel" noautohide="true"> <textbox id="search"/> <button label="search" oncommand="dosearch();"/> <button label="cancel" oncommand="this.
parentnode.hidepopup();"/> </panel> because the panel can no longer be closed by clicking elsewhere, the panel should always provide a means to close the panel itself.
toolboxid - Archive of obsolete content
this will either be the toolbox's
parent (if it's in a toolbox), or, if the toolbar is an external toolbar (that is, one not contained in a toolbox), the id of the toolbox it should be considered to be part of.
Additional Navigation - Archive of obsolete content
retrieving
parents a very uncommon form of navigation you can also do is to navigate upwards using a member tag, that is to get all the
parents of a node, as in this example: <query> <content uri="?start"/> <member container="?
parent" child="?start"/> </query> this might be used, for instance, to start at a particular photo and find all of the containers that it is inside.
Things I've tried to do with XUL - Archive of obsolete content
(to add insult, xul layout code *explicitly* trims off '%' from width/height, thus treating it as pixels.) for reference, i'd like the following to give a vbox that resizes along with the window, with the green, red, and blue inside boxes always maintaining a 30%-20%-50% ratio to the height of the
parent vbox.
Creating toolbar buttons (Customize Toolbar Window) - Archive of obsolete content
st add code like this to your overlay: <toolbarpalette id="browsertoolbarpalette"> <toolbarbutton id="myextension-button" class="toolbarbutton-1" label="&toolbarbutton.label;" tooltiptext="&toolbarbutton.tooltip;" oncommand="myextension.ontoolbarbuttoncommand(event);"/> </toolbarpalette> notes: the id of the palette (browsertoolbarpalette in the example) depends on the window (the
parent window of the toolbar you wish to insert a button).
Document Object Model - Archive of obsolete content
some common properties are listed below: firstchild reference to the first child node of an element lastchild reference to the last child node of an element childnodes holds a list of the children of an element
parentnode reference to the
parent of an node nextsibling reference to the next sibling in sequence previoussibling reference to the previous sibling in sequence these properties allow you to navigate through a document is various ways.
Using Remote XUL - Archive of obsolete content
because we added it to the menubar item, and events "bubble up" from child element to
parent element, it'll fire any time the user manipulates an element inside the menu bar, so we don't have to add it to each menu item and button.
Using the standard theme - Archive of obsolete content
you can either provide a complete custom styling, but most of the time you also want to be able to reuse the standard theme (also called the "global skin") of the base application for non-custom elements, trans
parently with regard to which theme the user has currently chosen.
Writing Skinnable XUL and CSS - Archive of obsolete content
} this evil rule caused the style system, for every treecell that wasn't in a treehead (which is practically every treecell in a typical tree), to crawl up the whole
parent chain to the root of the document in order to determine that the style rule wasn't a match.
XUL Event Propagation - Archive of obsolete content
in the example above, when the menuitem raises the "command" event, indicating that it has been selected, the menupopup, the menu itself, the
parent box, or the root window element itself can all take advantage of this.
browser - Archive of obsolete content
this boundary has a number of special effects, such as making window.top == window (unless the browser is added to a chrome document), and preventing documents from inheriting the principal of the
parent document.
prefwindow - Archive of obsolete content
note for mac os x: a common way of opening modal windows on mac os x that are not attached as a sheet to the main window is to use nsiwindowwatcher.openwindow() with a null
parentwindow.
radio - Archive of obsolete content
control type: radiogroup element returns the enclosing radiogroup that the radio element is contained within, which may or may not be its direct
parent.
titlebar - Archive of obsolete content
<?xml version="1.0"?> <window title="movable hud window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" width="300" height="200" style="background: trans
parent; -moz-appearance: none;"> <titlebar flex="1" oncommand="close()" style="background: rgba(30, 30, 30, 0.9); -moz-border-radius: 10px; -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); margin: 8px 12px 16px;"/> </window> it can be opened from the error console like this: open("file:///users/markus/sites/hudwindow.xul", "", "chrom...
toolbar - Archive of obsolete content
this will either be the toolbox's
parent (if it's in a toolbox), or, if the toolbar is an external toolbar (that is, one not contained in a toolbox), the id of the toolbox it should be considered to be part of.
window - Archive of obsolete content
the actual displayed width may be different if the element or its contents have a minimum or maximum width, or the size is adjusted by the flexibility or alignment of its
parent.
Using LDAP XPCOM with XULRunner - Archive of obsolete content
ll_suffix, moz_dll_prefix "prldap50" moz_dll_suffix, #endif //ns_unix nsnull }; // component.dll on windows, libcomponent.dll on linux static char krealcomponent[] = moz_dll_prefix "mozldap" moz_dll_suffix; nsresult nsgetmodule(nsicomponentmanager* acompmgr, nsifile* alocation, nsimodule* *aresult) { nsresult rv; nscomptr<nsifile> libraries; rv = alocation->get
parent(getter_addrefs(libraries)); if (ns_failed(rv)) return rv; nscomptr<nsilocalfile> library(do_queryinterface(libraries)); if (!library) return ns_error_unexpected; library->setnativeleafname(ns_literal_cstring("libraries")); library->appendnative(ns_literal_cstring("dummy")); // loop through and load dependent libraries for (char const *const *dependent = kdependentlibrarie...
calICalendarViewController - Archive of obsolete content
e.isdate && !anewendtime.isdate) { var instance = aoccurrence.clone(); instance.startdate = anewstarttime; instance.enddate = anewendtime; instance.calendar.modifyitem(instance, aoccurrence, null); } else { modifyeventwithdialog(aoccurrence); } }, deleteoccurrence: function (aoccurrence) { if (aoccurrence.
parentitem != aoccurrence) { var event = aoccurrence.
parentitem.clone(); event.recurrenceinfo.removeoccurrenceat(aoccurrence.recurrenceid); event.calendar.modifyitem(event, aoccurrence, null); } else { aoccurrence.calendar.deleteitem(aoccurrence, null); } } }; history calicalendarviewcontroller was introduced as part of the 'backen...
Extentsions FAQ - Archive of obsolete content
"); var replaceme = document.getelementbyid("replaceme"); replaceme.
parentnode.replacechild(newnode, replaceme); is it possible to place an image in the window that can be moved to anywhere in the window, and always remain on top of everything else?(similiar to using position:absolute and-index:100000 in html) you can almost do this with a stack: <window ...> <stack flex="1"> <image top="40" left="80"/> <vbox> other content here <...
:-moz-full-screen-ancestor - Archive of obsolete content
the :-moz-full-screen-ancestor css pseudo-class is a mozilla extension that represents all ancestors of the full-screen element, except containing frames in
parent documents, which are the full-screen element in their own documents.
::-ms-value - Archive of obsolete content
und-position-x -ms-background-position-y -ms-high-contrast-adjust opacity outline-color outline-style outline-width padding-bottom padding-left padding-right padding-top transform transform-origin visibility width syntax ::-ms-value example input::-ms-value { color: lime; font-style: italic; } to disable the default styling: select::-ms-value { background-color: trans
parent; color: inherit; } specifications not part of any specification.
Processing XML with E4X - Archive of obsolete content
these filter operations are specified using an expression contained in
parentheses: var html = <html> <p id="p1">first paragraph</p> <p id="p2">second paragraph</p> </html>; alert(html.p.(@id == "p1")); // alerts "first paragraph" nodes matching the path before the expression (in this case the paragraph elements) are added to the scope chain before the expression is evaluated, as if they had been specified using the with statement.
Archived JavaScript Reference - Archive of obsolete content
an use the more general proxy object instead.object.prototype.__count__the __count__ property used to store the count of enumerable properties on the object, but it has been removed.object.prototype.__nosuchmethod__the __nosuchmethod__ property used to reference a function to be executed when a non-existent method is called on an object, but this function is no longer available.object.prototype.__
parent__the __
parent__ property used to point to an object's context, but it has been removed.object.prototype.eval()the object.eval() method used to evaluate a string of javascript code in the context of an object, however, this method has been removed.object.prototype.unwatch()the unwatch() method removes a watchpoint set with the watch() method.object.prototype.watch()the watch() method watches for a...
Anatomy of a video game - Game development
you could draw every pixel individually on a canvas or you could layer dom elements (including multiple webgl canvases with trans
parent backgrounds if you want) into a complex hierarchy.
GLSL Shaders - Game development
e texture shader to the code — add the code below to the body's second <script> tag: void main() { gl_fragcolor = vec4(0.0, 0.58, 0.86, 1.0); } this will set an rgba color to recreate the current light blue one — the first three float values (ranging from 0.0 to 1.0) represent the red, green, and blue channels while the fourth one is the alpha transparency (ranging from 0.0 — fully trans
parent — to 1.0 — fully opaque).
Mobile touch controls - Game development
for example, tapping on the right side of the screen will fire the weapon: this.buttonshoot = this.add.button(this.world.width*0.5, 0, 'button-alpha', null, this); this.buttonshoot.oninputdown.add(this.goshootpressed, this); this.buttonshoot.oninputup.add(this.goshootreleased, this); the code above will create a new button using a trans
parent image that covers the right half of the screen.
MDN Web Docs Glossary: Definitions of Web-related terms
e null nullish value number o object object reference oop opengl openssl opera browser operand operator origin ota owasp p p2p pac packet page load time page prediction parameter
parent object parse parser pdf perceived performance percent-encoding php pixel placeholder names plaintext png polyfill polymorphism pop3 port prefetch preflight request prerender presto primitive privileged privileg...
Combinators - Learn web development
descendant combinator the descendant combinator — typically represented by a single space ( ) character — combines two selectors such that elements matched by the second selector are selected if they have an ancestor (
parent,
parent's
parent,
parent's
parent's
parent, etc) element matching the first selector.
Pseudo-classes and pseudo-elements - Learn web development
for example, if you wanted to select the first line of a paragraph you could wrap it in a <span> element and use an element selector; however, that would fail if the number of words you had wrapped were longer or shorter than the
parent element's width.
Type, class, and ID selectors - Learn web development
the universal selector the universal selector is indicated by an asterisk (*) and selects everything in the document (or inside the
parent element if it is being chained together with another element and a descendant combinator).
Styling tables - Learn web development
we've also added a repeating background tile to all the body rows, which is just a bit of noise (a semi-trans
parent .png with a bit of visual distortion on it) to provide some texture.
Floats - Learn web development
ial, helvetica, sans-serif } .box { float: left; margin-right: 15px; width: 150px; height: 150px; border-radius: 5px; background-color: rgb(207,232,220); padding: 1em; } so let's think about how the float works — the element with the float set on it (the <div> element in this case) is taken out of the normal layout flow of the document and stuck to the left-hand side of its
parent container (<body>, in this case).
How CSS is structured - Learn web development
an example would be the calc() function, which can do simple math within css: <div class="outer"><div class="box">the inner box is 90% - 30px.</div></div> .outer { border: 5px solid black; } .box { padding: 10px; width: calc(90% - 30px); background-color: rebeccapurple; color: white; } this renders as: a function consists of the function name, and
parentheses to enclose the values for the function.
CSS FAQ - Learn web development
it is important to remember that a rule applied to a descendent overrides the style of the
parent, in spite of any specificity or priority of css rules.
UI pseudo-classes - Learn web development
to fix this we style the
parent <div> to become a flex container, but also tell it to wrap its contents onto new lines if the content becomes too long: fieldset > div { margin-bottom: 20px; display: flex; flex-flow: row wrap; } the effect this has is that the label and input sit on separate lines because they are both width: 100%, but the <span> has a width of 0 so can sit on the same line as the input.
Tips for authoring fast-loading HTML pages - Learn web development
more information: http conditional get for rss hackers http 304: not modified http etag on wikipedia caching in http optimally order the components of the page download page content first, along with any css or javascript that may be required for its initial display, so that the user gets the quickest ap
parent response during the page loading.
Creating hyperlinks - Learn web development
the url you would use is projects/index.html: <p>visit my <a href="projects/index.html">project homepage</a>.</p> moving back up into
parent directories: if you wanted to include a hyperlink inside projects/index.html pointing to pdfs/project-brief.pdf, you'd have to go up a directory level, then back down into the pdf directory.
HTML table basics - Learn web development
tables are not automatically responsive: when you use proper layout containers (such as <header>, <section>, <article>, or <div>), their width defaults to 100% of their
parent element.
Image gallery - Learn web development
bar"> </div> the example looks like this: the most interesting parts of the example's css file: it absolutely positions the three elements inside the full-img <div> — the <img> in which the full-sized image is displayed, an empty <div> that is sized to be the same size as the <img> and put right over the top of it (this is used to apply a darkening effect to the image via a semi-trans
parent background color), and a <button> that is used to control the darkening effect.
Useful string methods - Learn web development
t.queryselector('.output ul'); list.innerhtml = ''; let greetings = ['happy birthday!', 'merry christmas my love', 'a happy christmas to all the family', 'you\'re all i want for christmas', 'get well soon']; for (let i = 0; i < greetings.length; i++) { let input = greetings[i]; // your conditional test needs to go inside the
parentheses // in the line below, replacing what's currently there if (greetings[i]) { let listitem = document.createelement('li'); listitem.textcontent = input; list.appendchild(listitem); } } </textarea> <div class="playable-buttons"> <input id="reset" type="button" value="reset"> <input id="solution" type="button" value="show solution"> </div> html { font-family: sans-serif...
Getting started with React - Learn web development
the jsx approach allows us to nest our elements within each other, just like we do with html: const header = ( <header> <h1>mozilla developer network</h1> </header> ); note: the
parentheses in the previous snippet aren't unique to jsx, and don’t have any effect on your application.
Implementing feature detection - Learn web development
generally, such tests are done via one of the following common patterns: summary of javascript feature detection techniques feature detection type explanation example if member in object check whether a certain method or property (typically an entry point into using the api or other feature you are detecting for) exists in its
parent object.
Handling common HTML and CSS problems - Learn web development
5,255,0.4), inset -1px -1px 3px rgba(0,0,0,0.4); } button:hover { background-color: rgba(255,0,0,0.5); } button:active { box-shadow: inset 1px 1px 3px rgba(0,0,0,0.4), inset -1px -1px 3px rgba(255,255,255,0.4); } here we are providing an rgba background-color that changes opacity on hover to give the user a hint that the button is interactive, and some semi-trans
parent inset box-shadow shades to give the button a bit of texture and depth.
Learn web development
for example, if you were in the
parent directory: cd learning-area update the repository using the following command: git pull contact us if you want to get in touch with us about anything, the best way is to drop us a message on our discourse forum.
Accessibility/LiveRegionDevGuide
in at-spi, the object changed event are called object:children-changed events because the event is triggered on the
parent of the object.
Debugging Frame Reflow
frames with children that overflow the
parent have the ns_frame_outside_children flag set.
Old Thunderbird build
on windows run: ./mozilla/mach build path/to/dir this is the tricky bit, since you need to specify the directory that installs the files, which may be a
parent directory of the changed file's directory.
Simple Thunderbird build
on windows run: ./mach build path/to/dir this is the tricky bit since you need to specify the directory that installs the files, which may be a
parent directory of the changed file's directory.
The Firefox codebase: CSS Guidelines
using the currentcolor keyword or inheriting is also good practice, because sometimes the needed value is already in the color or on the
parent element.
Obsolete Build Caveats and Tips
features that depend on this sdk include: windows vista
parental controls file associations and application registration on vista and above ability to display the uac shield icon in the ui thunderbird windows search integration text services framework support there are two ways to obtain it: download the windows vista sdk from the microsoft download center.
Contributing to the Mozilla code base
here are some further resources to help: ask for help in a comment on the bug, or in #introduction:mozilla.org or #developers:mozilla.org check out https://developer.mozilla.org/docs/developer_guide and its
parent document, https://developer.mozilla.org/docs/mozilla our reviewer checklist is very useful, if you have a patch near completion, and seek a favorable review utilize our build tool mach, its linting, static analysis, and other code checking features step 3: get your code reviewed once you fix the bug, you can advance to having your code reviewed.
SVG Guidelines
they must meet two conditions: they must be devoid of any fill (or a trans
parent one) or stroke.
Limitations of frame scripts
there is a shim for this that makes the content of about: pages registered by the add-on trans
parently available in the content process.
Browser API
this means that window.top, window.
parent, window.frameelement, etc.
Embedding Tips
implement the nsiuricontentlistener interface, and register it with the appropriate web browser object via the nsiwebbrowser::
parenturicontentlistener attribute.
How to add a build-time test
reference the test dir in a
parent makefile (<tt>yourmoduledir/makefile.in</tt>): ifdef enable_tests dirs += tests_type endif (optional, but recommended) add the new makefile to allmakefiles.sh (todo: need more details about this) reconfigure (e.g.
Glossary
actor bridge channel child compressed message message nullable
parent protocol state ...
Introduction to Layout in Mozilla
a style data is computed lazily, as it is asked for reflow recursively compute geometry (x, y, w, h) for frames, views, and widgets given w & h constraints of “root frame” compute (x, y, w, h) for all children constraints propagated “down” via nshtmlreflowstate desired size returned “up” via nshtmlreflowmetrics basic pattern
parent frame initializes child reflow state (available w, h); places child frame (x, y); invokes child’s reflow method child frame computes desired (w, h), returns via reflow metrics
parent frame sizes child frame and view based on child’s metrics n.b.
FileUtils.jsm
if the directory requested does not exist, it is created, along with any
parent directories that need to be created.
JNI.jsm
we can use dot notification here for the
parent class.
Log.jsm
keys of prototype: format(); logmessage(); length: 4 keys of prototype: leveldesc logger(); length: 2 keys of prototype: addappender(); level logstructured(); name
parent removeappender(); updateappenders(); and the methods mentioned below: logger methods loggerrepository(); length: 0 keys of prototype: getlogger(); rootlogger storagestreamappender(); length: 1 keys of prototype: ...
Services.jsm
e logins nsiloginmanager password manager service metro nsiwinmetroutils 2 mm nsimessagebroadcaster nsiframescriptloader global frame message manager3 obs nsiobserverservice observer service perms nsipermissionmanager permission manager service ppmm nsimessagebroadcaster nsiprocessscriptloader global
parent process message manager3 prefs nsiprefbranch nsiprefbranch2 nsiprefservice preferences service prompt nsipromptservice prompt service scriptloader mozijssubscriptloader javascript subscript loader service scriptsecuritymanager nsiscriptsecuritymanager script security manager search nsibrowsersearchservice browser s...
Webapps.jsm
ultcspbylocalid: function(alocalid) getapplocalidbystoreid: function(astoreid) getappbylocalid: function(alocalid) getmanifesturlbylocalid: function(alocalid) getapplocalidbymanifesturl: function(amanifesturl) getcoreappsbasepath: function() getwebappsbasepath: function() _islaunchable: function(aapp) _notifycategoryandobservers: function(subject, topic, data, msg) registerbrowserelement
parentforapp: function(amsg, amn) receiveappmessage: function(appid, message) _clearprivatedata: function(appid, browseronly, msg) _sendprogressevent: function() updatestatechanged: function appobs_update(aupdate, astate) applicationcacheavailable: function appobs_cacheavail(aapplicationcache) ...
L10n Checks
you pass both the path to the ini file and the
parent directory of the localizations as first arguments, followed by the locale codes of the locales you want to compare.
Creating localizable web applications
, sans-serif; border: none; background: none; cursor: pointer; overflow: visible; width: auto; height: 30px; text-decoration: none; vertical-align: middle; } .button span { background: #fff url(../img/main-sprites.png) no-repeat scroll -384px 1px; display:inline; line-height: 25px; padding: 6px 6px 6px 10px; } .button .arrow { background: trans
parent url(../img/main-sprites.png) no-repeat scroll -651px 1px; padding: 6px 15px; } html[dir='rtl'] .button .arrow { /* flip the arrow to point to the left*/ background: trans
parent url(../img/main-sprites.png) no-repeat scroll -601px 1px; } html/php: <button type="submit" class="button"><span><?= _('get started'); ?></span><span class="arrow"></span></button> don't put captions in t...
Activity Monitor, Battery Status Menu and top
they can all be customized to show any of the available measurements (by right-clicking on the column strip) but only the "energy" tab groups child processes with
parent processes, which is useful, so it's the best one to use.
Investigating CSS Performance
http://people.mozilla.org/~jmuizelaar/css-perf.patch this patch instruments a bunch of key places and should give an estimate of the order of magnitude of the different
parents.
Leak-hunting strategies and tips
this is the wrapper object in the reverse direction -- when a js object is used to implement an xpcom interface and be used trans
parently by native code.
Refcount tracing and balancing
0x00253ab0 (1) 0x00253ae0 (2) 0x00253bd0 (4) the number in
parentheses indicates the order in which it was allocated, if you care.
Midas
notes since an entire document becomes editable, authors often load the editable document into an iframe and do the bulk of the scripting in the
parent document.
Optimizing Applications For NSPR
if the spawned thread establishes and exits before the
parent thread is resumed, the
parent will be left with an invalid pointer to the child.
Process Forking in NSPR
all the threads present in the
parent process may be replicated in the child process, only the calling thread may be replicated in the child process or only the calling kernel thread may be replicated.
PRStaticLinkTable
a static link table entry can be created by a client of the runtime so that other clients can access static or dynamic libraries trans
parently.
PR_CreatePipe
pipes are useful for interprocess communication between a
parent and a child process.
PR_ReadDir
skip the directory entry ".." representing the
parent directory.
An overview of NSS Internals
the programmer's task is to initialize nss with the required parameters (such as a database), and nss will then trans
parently manage the database files.
Index
the programmer's task is to initialize nss with the required parameters (such as a database), and nss will then trans
parently manage the database files.
nss tech note1
it is only required for dynamically allocating memory for the structure if the template is being included from an asn.1 sequence or sequence of, or if dynamic allocation was requested from the
parent template using the sec_asn1_pointer modifier here is a description of the various tags and modifiers that apply to the <tt style="color: rgb(0,0,0);">kind field.
Notes on TLS - SSL 3.0 Intolerant Servers
servers currently known to exhibit this intolerant behavior as of this writing, this problem has been reported for the following servers: (wherever there is an upgraded version which fixes the problem, it is indicated by an asterisked remark in the
parentheses.
NSS environment variables
3.4 nss_strict_nofork string ("1", "disabled", or any other non-empty value) it is an error to try to use a pkcs#11 crypto module in a process before it has been initialized in that process, even if the module was initialized in the
parent process.
NSS_3.12.3_release_notes.html
nss_strict_nofork string ("1", "disabled", or any other non-empty value) it is an error to try to use a pkcs#11 crypto module in a process before it has been initialized in that process, even if the module was initialized in the
parent process.
Rhino overview
the deprecated features are the __proto__ and __
parent__ properties, and the constructors with, closure, and call.
Scripting Java
using the javascript for..in construct, we can print out all these values: js> for (i in f) { print(i) } exists
parentfile mkdir tostring wait [44 others] note that not only the methods of the file class are listed, but also the methods inherited from the base class java.lang.object (like wait).
Hacking Tips
the backtrace contains in the following order, the stack depth, the interpreter frame pointer (see js/src/vm/stack.h, stackframe class) or (nil) if compiled with ionmonkey, the file and line number of the call location and under
parentheses, the jsscript pointer and the jsbytecode pointer (pc) executed.
SpiderMonkey Internals
so optimizations such as dense arrays and the property cache are, alas, not trans
parently tucked away in the jsarray.* and jsobj.* files.
JSAPI User Guide
the
parent object is passed as the second argument, as * with all other api calls that take an object/name pair.
JS::AutoVectorRooter
there are derived classes for the main types: class
parent class js::autovaluevector autovectorrooter<value> js::autoidvector autovectorrooter<jsid> js::autoobjectvector added in spidermonkey 24 autovectorrooter<jsobject *> js::autofunctionvector added in spidermonkey 31 autovectorrooter<jsfunction *> js::autoscriptvector autovectorrooter<jsscript *> see also mxr id search for js::auto...
JS::CloneFunctionObject
js::clonefunctionobject takes care to choose a prototype that shares a global object with the given
parent whenever possible.
JSExtendedClass
wrappers sometimes trans
parently behave like the object they wrap.
JSExtendedClass.wrappedObject
(the result may be "object", "function", or "xml".) when assigning to __proto__ or __
parent__ from script, the javascript engine checks to see if the assignment would produce a cycle.
JSNewResolveOp
jsresolve_detecting obsolete since jsapi 20 the property is being used in code like "if (o.p)...", or a similar idiom where the ap
parent purpose of the property access is to detect whether the property exists.
JSObjectOps.getRequiredSlot
note: the slot parameter is a zero-based index into obj slots, unlike the index parameter to the js_getreservedslot and js_setreservedslot api entry points, which is a zero-based index into the jsclass_reserved_slots(clasp) reserved slots that come after the initial well-known slots: proto,
parent, class, and optionally, the private data slot.
JSObjectPrincipalsFinder
the callback returns a pointer to the principals associated with obj, possibly via the immutable
parent chain leading from obj to a top-level container (such as a window object in the dom).
JS_AlreadyHasOwnProperty
they are meant to be a trans
parent optimization; this is the only api that breaks the abstraction.) for non-native objects, this falls back on a complete search.
JS_ClearNonGlobalObject
description js_clearnonglobalobject removes all of obj's own properties, except the special __proto__ and __
parent__ properties, in a single operation.
JS_ClearScope
description js_clearscope removes all of obj's own properties, except the special __proto__ and __
parent__ properties, in a single operation.
JS_CompileFunction
see also mxr id search for js_compilefunction mxr id search for js_compileucfunction jsfun_bound_method jsfun_global_
parent js_callfunction js_callfunctionname js_callfunctionvalue js_decompilefunction js_decompilefunctionbody js_definefunction js_definefunctions js_getfunctionobject js_newfunction js_setbranchcallback js_valuetofunction bug 1089026 ...
JS_CompileFunctionForPrincipals
see also mxr id search for js_compilefunctionforprincipals mxr id search for js_compileucfunctionforprincipals jsfun_bound_method jsfun_global_
parent js_callfunction js_callfunctionname js_callfunctionvalue js_compilefunction js_decompilefunction js_decompilefunctionbody js_definefunction js_definefunctions js_getfunctionobject js_newfunction js_valuetofunction bug 938907 ...
JS_DoubleIsInt32
we should definitely fix this (bug 744965), but as ap
parently it "works" in practice, it's not a pressing concern now.
JS_ExecuteScript
instead: the scope chain is initialized to contain obj, followed by its
parent, then its
parent's
parent, etc.
JS_ExecuteScriptVersion
instead: the scope chain is initialized to contain obj, followed by its
parent, then its
parent's
parent, etc.
JS_ForgetLocalRoot
calling it successively on other than the most recently allocated gc-thing will tend to average the time inefficiency, and may risk o(n2) growth rate, but in any event, you shouldn't allocate too many local roots if you can root as you go (build a tree of objects from the top down, forgetting each latest-allocated gc-thing immediately upon linking it to its
parent).
JS_GetGlobalForObject
description js_getglobalforobject returns the last non-null object on the
parent chain of the input object.
JS_GetGlobalObject
second, the context's global object is used as a default value of last resort by functions that need a default
parent object (see js_set
parent for details) and by js_getscopechain.
JS_NewContext
syntax jscontext * js_newcontext(jsruntime *rt, size_t stackchunksize); name type description rt jsruntime *
parent runtime for the new context.
JS_SetAllNonReservedSlotsToUndefined
description js_setallnonreservedslotstoundefined assignes undefined to all of obj's own properties, except the special __proto__ and __
parent__ properties, in a single operation.
Shell global objects
haschild(
parent, child) return true if child is a child of
parent, as determined by a call to tracechildren setsavedstacksrngstate(seed) set this compartment's savedstacks' rng state.
TPS Tests
quoted keys, no trailing
parentheses, etc.
Web Replay
while the debugger can indicate it is for a child process, the interface should be as trans
parent as possible to the devtools js code; the debugger can still create script/object/etc.
compare-locales
you pass the path to the toml file and the
parent dir of the localizations as first arguments, followed by the locale codes of the locales you want to compare.
Using RAII classes in Mozilla
in particular, a class derived from a class using these macros does not use moz_guard_object_notifier_init or moz_decl_use_guard_object_notifier, but instead uses either moz_guard_object_notifier_param_to_
parent or moz_guard_object_notifier_only_param_to_
parent: nsspecialautoscriptblocker::nsspecialautoscriptblocker(moz_guard_object_notifier_param_in_impl) : nsautoscriptblocker(moz_guard_object_notifier_only_param_to_
parent) { } note that a few of these macros aren't actually implemented yet, but they can be implemented when needed.
A Web PKI x509 certificate primer
ssl x509 -req -sha256 -days 3650 -in example.csr -signkey key.pem -set_serial $any_integer -extfile openssl.ss.cnf -out example.pem" you can now use example.pem as your certfile cas included in firefox when you visit a secure website, firefox will validate the website’s certificate by checking that the certificate that signed it is valid, and checking that the certificate that signed the
parent certificate is valid and so forth up to a root certificate that is known to be valid.
Gecko states
state_floating children "owned" not "contained" by
parent state_checkable indicates scrolling or moving text or graphics.
XUL Accessibility
ered value is appended if the child node is element then if it implements nsidomxullabeledcontrolelement then the value of label property is appended otherwise if it's a label element then then value attribute is appended otherwise append tooltiptext attribute append the accessible value searching specific element in neighbour of the element search inside the element subtree go up through
parents (max level is 5) and search inside theirs subtrees if the element is anonymous then search in whole anonymous subtree, here the attribute anonid is used instead of id attribute accessible properties this section describes common rules how accessibility properties are formed for xul elements.
Places utilities for JavaScript
getindexofnode() gets the index of a node within its
parent container int getindexofnode(anode) parameters anode the node to look up return type returns the index of the node within its
parent container, or -1 if the node was not found or the node specified has no
parent.
Querying Places
// |query| and |options| are objects created in the previous section query.set
parents([placesutils.bookmarks.toolbarguid], 1); let result = placesutils.history.executequery(query, options); serializing queries query and options objects can be serialized into a string starting with "place:" using queriestoquerystring.
Using the Places livemark service
var newlvmkid = livemarkservice.createlivemark(
parentfolderid, "livemark name", uri("http://example.com/"), uri("http://example.com/rss.xml"), -1); the first parameter is the id of the folder in which to create the livemark.
Creating the Component Code
it can be used to implement
parental controlled browsing for children, or for targeted "kiosk browsing," where the content is restricted to a particular server.
Introduction to XPCOM for the DOM
the important thing to note is that a pointer to nsifoo can only call the methods defined on the nsifoo interface, and on its
parents.
Components.utils.Sandbox
in general, when accessing same-origin content, script gets a trans
parent wrapper rather than an xray wrapper.
Components.utils.getWeakReference
you might have to check other aspects of the object (like node.
parentnode() on a dom node) to verify the object is truly what you want.
Using components
xpconnect works trans
parently in mozilla and xpcshell to give you access to xpcom components.
nsIRegistry
try { st.first(); do { var data = st.currentitem(); if( data instanceof ci.nsiregistrynode ) print("nsiregistrynode: " + data.nameutf8 + " (" + data.key + ")"); st.next(); } while( components.lastresult == 0 ); } catch(e) {} now, the output is something like: profiles (344) profiles/default (530) profiles/foo (1046) profiles/bar (1518) the number inside the
parenthesis is the "key." you can use this key with the rest of the nsiregistry api (see mxr).
Language bindings
this can be particularly handy with restartless (boostrapped) extensions, so that you can unload an old version of a code module when a new version of your add-on is installed.components.utils.unwaivexraysundo a previous call to components.utils.waivexrays(), restoring xray vision for the caller.components.utils.waivexrayswaives xray vision for an object, giving the caller a trans
parent wrapper to the underlying object.javaxpcomjavaxpcom allows for communication between java and xpcom, such that a java application can access xpcom objects, and xpcom can access any java class that implements an xpcom interface.
Folders
folders have a number of interesting attributes:
parent subfolder server uri flags and methods getdatabase ( how to get a database of the messages in the folder.) updatefolder (gets new messages for that folder, if applicable, e.g., pop3 inboxes, imap folders, news folders, rss folders) ...
imgIEncoder
post-multiplied alpha us used (for example 50% trans
parent red is 0xff000080) input_format_hostargb 2 input is host-endian argb: on big-endian machines each pixel is therefore argb, and for little-endian machiens (intel) each pixel is bgra (this is used by canvas to match it's internal representation) pre-multiplied alpha is used (that is, 50% trans
parent red is 0x80800000, not 0x80ff0000) possible values for outputoptions.
mozIColorAnalyzer
it avoids the background color if it can be discerned and ignores sufficiently trans
parent colors.
nsIAccessibilityService
siaccessible createhtmllabelaccessible(in nsisupports aframe); nsiaccessible createhtmllabelaccessible(in nsidomnode anode, in nsiweakreference apresshell); nsiaccessible createhtmlobjectframeaccessible(in nsobjectframe aframe); nsiaccessible createhtmlradiobuttonaccessible(in nsisupports aframe); nsiaccessible createhtmlselectoptionaccessible(in nsidomnode anode, in nsiaccessible aacc
parent, in nsiweakreference apresshell); nsiaccessible createhtmltableaccessible(in nsisupports aframe); nsiaccessible createhtmltablecellaccessible(in nsisupports aframe); nsiaccessible createhtmltableheadaccessible(in nsidomnode adomnode); nsiaccessible createhtmltextaccessible(in nsisupports aframe); nsiaccessible createhtmltextfieldaccessible(in nsisupports aframe); nsiaccessible c...
ChildCount
attribute long childcount; see also nsiaccessible.firstchild nsiaccessible.lastchild nsiaccessible.children nsiaccessible.getchildat() nsiaccessible.
parent nsiaccessible.nextsibling nsiaccessible.previoussibling ...
Children
see also nsiaccessible.firstchild nsiaccessible.lastchild nsiaccessible.childcount nsiaccessible.getchildat() nsiaccessible.
parent nsiaccessible.nextsibling nsiaccessible.previoussibling ...
FirstChild
see also nsiaccessible.lastchild nsiaccessible.children nsiaccessible.childcount nsiaccessible.getchildat() nsiaccessible.
parent nsiaccessible.nextsibling nsiaccessible.previoussibling ...
GetChildAt
see also nsiaccessible.firstchild nsiaccessible.lastchild nsiaccessible.children nsiaccessible.childcount nsiaccessible.
parent nsiaccessible.nextsibling nsiaccessible.previoussibling ...
LastChild
see also nsiaccessible.firstchild nsiaccessible.children nsiaccessible.childcount nsiaccessible.getchildat() nsiaccessible.
parent nsiaccessible.nextsibling nsiaccessible.previoussibling ...
NextSibling
see also nsiaccessible.
parent nsiaccessible.previoussibling nsiaccessible.firstchild nsiaccessible.lastchild nsiaccessible.children nsiaccessible.childcount nsiaccessible.getchildat() ...
PreviousSibling
see also nsiaccessible.
parent nsiaccessible.nextsibling nsiaccessible.firstchild nsiaccessible.lastchild nsiaccessible.children nsiaccessible.childcount nsiaccessible.getchildat() ...
nsIAccessibleCoordinateType
coordtype_
parent_relative 0x02 the coordinates are relative to the upper left corner of the bounding box of the immediate
parent.
nsIAccessibleEvent
event_create 0x8000 event_destroy 0x8001 event_descriptionchange 0x800d event_
parentchange 0x800f event_helpchange 0x8010 event_defactionchange 0x8011 event_acceleratorchange 0x8012 event_menustart 0x0004 event_menuend 0x0005 event_menupopupstart 0x0006 event_menupopupend 0x0007 event_capturestart 0x0008 event_captureend 0x0009 event_movesizestart 0x000a event_movesizeend 0x000b event_contexthelpstart 0x000c ...
nsIAccessibleRelation
relation_
parent_window_of 0x0d this object is a
parent window of the target object.
nsIBoxObject
paintmanager nsiboxpaintmanager obsolete since gecko 1.9
parentbox nsidomelement the
parent of the box, in box-ordinal-group order.
nsIChannel
note: extensions should not call this method, because it tends to fail when a request is redirected, rather than redirecting trans
parentlynote: nsichannel implementations are not required to implement this method.
nsIContentFrameMessageManager
frame scripts can send either synchronous or asynchronous messages to the chrome process: for details on these messaging apis see the documentation for the nsicontentframemessagemanager's
parent classes nsisyncmessagesender and nsimessagesender.
nsIDOMEvent
for example, mouse events are retargeted to their
parent node when they happen over text nodes (bug 185889), and in that case .target will show the
parent and .explicitoriginaltarget will show the text node.
nsIDOMNSHTMLDocument
roughly equivalent to body.contenteditable domain domstring initially the host name of the document's url, but may be changed to the
parent (but not top-level) domain in order to facilitate data exchange between documents from different sites in the same domain.
nsIDOMWindowUtils
getclassname() returns the real classname (possibly of the mostly-trans
parent security wrapper) of aobj.
nsIDirectoryIterator
last changed in gecko 1.8 (firefox 1.5 / thunderbird 1.5 / seamonkey 1.0) inherits from: nsisupports method overview void init(in nsifilespec
parent, in boolean resolvesymlink); boolean exist(); void next(); attributes attribute type description currentspec nsifilespec init() void init( in nsifilespec
parent, in boolean resolvesymlink ); parameters
parent resolvesymlink exist() boolean exists(); next() void next(); ...
nsIEditor
getattributevalue(in nsidomelement aelement, in astring attributestr, out astring resultvalue); void removeattribute(in nsidomelement aelement, in astring aattribute); void cloneattribute(in astring aattribute, in nsidomnode asourcenode); void cloneattributes(in nsidomnode destnode, in nsidomnode sourcenode); nsidomnode createnode(in astring tag, in nsidomnode
parent, in long position); void insertnode(in nsidomnode node, in nsidomnode
parent, in long aposition); void splitnode(in nsidomnode existingrightnode, in long offset, out nsidomnode newleftnode); void joinnodes(in nsidomnode leftnode, in nsidomnode rightnode, in nsidomnode
parent); void deletenode(in nsidomnode child); void marknodedirty(in nsidomnode node)...
nsIExternalHelperAppService
awindowcontext use nsiservicemanager.getinterface() to retrieve properties like the dom window or
parent window; the service might need this in order to bring up dialogs.
nsIExternalProtocolService
awindowcontext the window to
parent the dialog against, and, if a web handler is chosen, it is loaded in this window as well.
nsIFeedEntry
parent nsifeedcontainer a reference to the entry's
parent, which is either a feed (nsifeed or another entry.
nsIFeedProgressListener
if the document is a standalone item or entry, the handlefeedatfirstentry() method will not already have been called, and the received nsifeedentry will have a null
parent value.
nsIFrameLoader
methods activateframeevent() activates event forwarding from client (remote frame) to
parent.
nsIJetpack
createhandle() this creates an opaque handle that can trans
parently be exchanged between processes.
nsIMessageSender
for example, a child-process message manager will send messages that are only delivered to its one
parent-process message manager.
nsIMessageWakeupService
the
parentprocessmessagemanager is used for this, so messages send from childprocessmessagemanagers will be heard.
Building an Account Manager Extension
<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet href="chrome://messenger/skin/accountmanage.css" type="text/css"?> <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="
parent.onpanelloaded('am-devmo-account.xul');"> <script type="application/javascript" src="chrome://messenger/content/accountmanager.js"/> <script type="application/javascript" src="chrome://example@mozilla.org/content/am-devmo-account.js"/> <dialogheader title="devmo example panel"/> <description> this panel is only shown in imap accounts...
nsIMsgDBHdr
thread
parent nsmsgkey indicates the
parent of this message in its thread.
nsIMsgIdentity
signaturedate long escapedvcard astring dofcc boolean fccfolder astring fccfolderpickermode astring fccreplyfollows
parent boolean draftsfolderpickermode astring tmplfolderpickermode astring bccself boolean note: don't call bccself, bccothers, and bcclist directly, they are only used for migration and backward compatability.
nsIProcessScriptLoader
idl file: mozilla-central/source/dom/base/nsimessagemanager.idl inherits from: nsisupports this interface is used by
parent process message managers to load scripts into a child process.
nsIProtocolHandler
if the protocol supports trans
parent proxying, the handler should implement the nsiproxiedprotocolhandler interface.
nsIProxyInfo
constant value description trans
parent_proxy_resolves_host 1 << 0 this flag is set if the proxy is to perform name resolution itself.
nsISocketTransportService
for more details on communicating information about proxies like socks (which are trans
parent to upper protocols), see nsiproxiedprotocolhandler , nsiprotocolproxyservice or proxies in necko.
nsISyncMessageSender
for example, a child-process message manager will send messages that are only delivered to its one
parent-process message manager.
nsIVariant
xpcom/ds/nsivariant.idlscriptable xpconnect has magic to trans
parently convert between nsivariant and js types.
nsIWebBrowserFind
note: that you can control whether the search propagates into child or
parent frames explicitly using nsiwebbrowserfindinframes, but if one, but not both, of searchsubframes and search
parentframes are set, this returns false.
nsIWebBrowserFindInFrames
search
parentframes boolean whether to allow the search to propagate out of the currentsearchframe into its
parent frame(s).
nsIWorkerScope
postmessage() posts a message to the scope's
parent worker object.
XPCOM Interface Reference
visitresultnodensinavhistoryobservernsinavhistoryquerynsinavhistoryqueryoptionsnsinavhistoryqueryresultnodensinavhistoryresultnsinavhistoryresultnodensinavhistoryresultobservernsinavhistoryresulttreeviewernsinavhistoryresultviewobservernsinavhistoryresultviewernsinavhistoryservicensinavhistoryvisitresultnodensinetworklinkservicensiobservernsiobserverservicensioutputstreamnsioutputstreamcallbacknsi
parentalcontrolsservicensiparserutilsnsipasswordnsipasswordmanagernsipermissionnsipermissionmanagernsipipensiplacesimportexportservicensiplacesviewnsipluginhostnsiprefbranch2nsipreflocalizedstringnsiprefservicensiprincipalnsiprinterenumeratornsiprintingpromptnsiprivatebrowsingservicensiprocessnsiprocess2nsiprocessscriptloadernsiprofilensiprofilelocknsiprofileunlockernsiprogramminglanguagensiprogresseven...
XPCOM reference
(i'm fully aware that this will be a great point of discussion and probably will end in tears, but since i'm the first person to ap
parently take a swing at this, i get first dibs.)xpcom primitivean xpcom primitive is an xpcom object that "boxes" a value of a primitive type.
Getting Started Guide
you don't need an owning reference when the object is passed in as a parameter, and you don't need to keep it any longer than the scope of this function; the object's lifetime is known to contain yours in some well defined way, e.g., in the nodes of a tree,
parent nodes keep owning references to their children, children need not keep owning references to their
parents.
XPIDL
the contents of the
parentheses of a native type declaration (although native declarations without
parentheses are parsable, i do not trust that they are properly handled by the xpidl handlers) is a string equivalent to the c++ type.
XUL Overlays
for example, if only the last menuitem above had been in an overlay and the other items were defined in the base file, the overlayed menuitem would still appear at the top of the
parent menu.
Mail and RDF
in the document's onload= handler the datasources are attached to their respective widgets by setting the database property on each rdf template's
parent element.
Mail event system
ump("the folder " + folder.prettyname + " now has " + newvalue + " messages."); } else if (propertystring == "testproperty") { dump("recieved integer test property fired on folder " + folder.prettyname + " with values " + oldvalue + " and " + newvalue + "\n"); } // set up the folder listener to point to the above function var folderlistener = { onitemadded: function(
parent, item, viewstring) {}, onitemremoved: function(
parent, item, viewstring) {}, onitempropertychanged: function(
parent, item, viewstring) {}, onitemintpropertychanged: myonintpropertychanged, onitemboolpropertychanged: function(item, property, oldvalue, newvalue) {}, onitemunicharpropertychanged: function(item, property, oldvalue, newvalue) {}, onitempropertyflagchanged: function(item, p...
Examples
lightweight bridge for calling cocoa frameworks from javascript, js-macosx trans
parently handles definition of cocoa api, both c and objective-c, and provides automatic declarations for framework functions, structures, constants and enumerations, as well as allows creating and subclassing cocoa classes.
Mozilla
each error is listed by its name and an error code in
parentheses.
DOM Inspector FAQ - Firefox Developer Tools
you can, however, find any rule in its
parent style sheet (e.g., to modify it) by using the style sheets viewer in the document pane, and locating it in the css rules viewer in the object pane.
Debugger.Memory - Firefox Developer Tools
function properties of the debugger.memory.prototype object memory use analysis exposes implementation details memory analysis may yield surprising results, because browser implementation details that are trans
parent to content javascript often have visible effects on memory consumption.
Debugger.Source - Firefox Developer Tools
thus, they donot refer to the call that created the element; stored the source as the element’s text child; made the element a child of some uninserted
parent node that was later inserted; or the like.
Tutorial: Set a breakpoint - Firefox Developer Tools
the debugger api tries to interact with garbage collection as trans
parently as possible; for example, if both a debugger.object instance and its referent are not reachable, they will both be collected, even while the debugger instance to which the shadow belonged continues to exist.
CSS Flexbox Inspector: Examine Flexbox layouts - Firefox Developer Tools
if you click on the item, the display shifts to show details about that element: this view shows information about the calculations for the size of the selected flex item: a diagram visualizing the sizing of the flex item content size - the size of the component without any restraints imposed on it by its
parent flexibility - how much a flex item grew or shrunk based on its flex-grow value when there is extra free space or its flex-shrink value when there is not enough space minimum size (only appears when an item is clamped to its minimum size) - the minimum content size of a flex item when there is no more free space in the flex container final size - the size of the flex item after all sizing const...
AudioTrack.sourceBuffer - Web APIs
the read-only audiotrack property sourcebuffer returns the sourcebuffer that created the track, or null if the track was not created by a sourcebuffer or the sourcebuffer has been removed from the mediasource.sourcebuffers attribute of its
parent media source.
AudioTrack - Web APIs
returns null if the track was not created by a sourcebuffer or the sourcebuffer has been removed from the mediasource.sourcebuffers attribute of its
parent media source.
Blob() - Web APIs
the default value, trans
parent, copies newline characters into the blob without changing them.
Bluetooth - Web APIs
referringdevice; promise<sequence<bluetoothdevice>> getdevices(); promise<bluetoothdevice> requestdevice(optional requestdeviceoptions options = {}); }; bluetooth includes bluetoothdeviceeventhandlers; bluetooth includes characteristiceventhandlers; bluetooth includes serviceeventhandlers; properties inherits properties from its
parent eventtarget.
CSSPseudoElement - Web APIs
properties csspseudoelement.element read only returns the originating/
parent element of the pseudo-element.
CSSValueList - Web APIs
t="_top"><rect x="121" y="1" width="120" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="181" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">cssvaluelist</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, cssvalue.
CSS Painting API - Web APIs
0.3; const blockwidth = size.width * 0.33; const blockheight = size.height * 0.85; const thecolor = props.get( '--boxcolor' ); const stroketype = args[0].tostring(); const strokewidth = parseint(args[1]); console.log(thecolor); if ( strokewidth ) { ctx.linewidth = strokewidth; } else { ctx.linewidth = 1.0; } if ( stroketype === 'stroke' ) { ctx.fillstyle = 'trans
parent'; ctx.strokestyle = thecolor; } else if ( stroketype === 'filled' ) { ctx.fillstyle = thecolor; ctx.strokestyle = thecolor; } else { ctx.fillstyle = 'none'; ctx.strokestyle = 'none'; } ctx.beginpath(); ctx.moveto( x, y ); ctx.lineto( blockwidth, y ); ctx.lineto( blockwidth + blockheight, blockheight ); ctx.lineto( x, blockheight ); ctx.lineto( x, y ); ctx.clo...
Optimizing canvas - Web APIs
var scalex = window.innerwidth / canvas.width; var scaley = window.innerheight / canvas.height; var scaletofit = math.min(scalex, scaley); var scaletocover = math.max(scalex, scaley); stage.style.transformorigin = '0 0'; //scale from top left stage.style.transform = 'scale(' + scaletofit + ')'; turn off transparency if your application uses canvas and doesn’t need a trans
parent backdrop, set the alpha option to false when creating a drawing context with htmlcanvaselement.getcontext().
ChildNode.remove() - Web APIs
and higher with the following code: // from:https://github.com/jserz/js_piece/blob/master/dom/childnode/remove()/remove().md (function (arr) { arr.foreach(function (item) { if (item.hasownproperty('remove')) { return; } object.defineproperty(item, 'remove', { configurable: true, enumerable: true, writable: true, value: function remove() { this.
parentnode.removechild(this); } }); }); })([element.prototype, characterdata.prototype, documenttype.prototype]); specifications specification status comment domthe definition of 'childnode.remove' in that specification.
Document.caretRangeFromPoint() - Web APIs
e.offsetnode; offset = range.offset; } else if (document.caretrangefrompoint) { range = document.caretrangefrompoint(e.clientx, e.clienty); textnode = range.startcontainer; offset = range.startoffset; } // only split text_nodes if (textnode && textnode.nodetype == 3) { let replacement = textnode.splittext(offset); let br = document.createelement('br'); textnode.
parentnode.insertbefore(br, replacement); } } let paragraphs = document.getelementsbytagname("p"); for (let i = 0; i < paragraphs.length; i++) { paragraphs[i].addeventlistener('click', insertbreakatpoint, false); } result ...
Document.getElementById() - Web APIs
example <!doctype html> <html> <head> <meta charset="utf-8"> <title>document</title> </head> <body> <div id="
parent-id"> <p>hello word1</p> <p id="test1">hello word2</p> <p>hello word3</p> <p>hello word4</p> </div> <script> var
parentdom = document.getelementbyid('
parent-id'); var test1 =
parentdom.getelementbyid('test1'); //throw error //uncaught typeerror:
parentdom.getelementbyid is not a function </script> </body> </html> if there...
Document.getElementsByTagNameNS() - Web APIs
example in the following example getelementsbytagnamens starts from a particular
parent element, and searches topdown recursively through the dom from that
parent element, looking for child elements matching the tag name parameter.
Document.querySelector() - Web APIs
in"/>) located inside a <div> whose class is "user-panel main" (<div class="user-panel main">) in the document is returned: var el = document.queryselector("div.user-panel.main input[name='login']"); negation as all css selector strings are valid, you can also negate selectors: var el = document.queryselector("div.user-panel:not(.main) input[name='login']"); this will select an input with a
parent div with the user-panel class but not the main class.
Document.referrer - Web APIs
inside an <iframe>, the document.referrer will initially be set to the same value as the href of the
parent window's window.location.
DocumentOrShadowRoot.caretPositionFromPoint() - Web APIs
node = range.offsetnode; offset = range.offset; } else if (document.caretrangefrompoint) { range = document.caretrangefrompoint(e.clientx, e.clienty); textnode = range.startcontainer; offset = range.startoffset; } // only split text_nodes if (textnode.nodetype == 3) { var replacement = textnode.splittext(offset); var br = document.createelement('br'); textnode.
parentnode.insertbefore(br, replacement); } } window.onload = function (){ var paragraphs = document.getelementsbytagname("p"); for (i=0 ; i < paragraphs.length; i++) { paragraphs[i].addeventlistener("click", insertbreakatpoint, false); } }; specifications specification status comment css object model (cssom) view modulethe definition of 'caretpositionfrompoint()' ...
Introduction to the DOM - Web APIs
document.getelementbyid(id) document.getelementsbytagname(name) document.createelement(name)
parentnode.appendchild(node) element.innerhtml element.style.left element.setattribute() element.getattribute() element.addeventlistener() window.content window.onload window.scrollto() testing the dom api this document provides samples for every interface that you can use in your own web development.
Example - Web APIs
xt node for the second paragraph var newtext = document.createtextnode("this is the second paragraph."); // create a new element to be the second paragraph var newelement = document.createelement("p"); // put the text in the paragraph newelement.appendchild(newtext); // and put the paragraph on the end of the document by appending it to // the body (which is the
parent of para) para.
parentnode.appendchild(newelement); } </script> </head> <body> <input type="button" value="change this document." onclick="change()"> <h1>header</h1> <p>paragraph</p> </body> </head> ...
Using the W3C DOM Level 1 Core - Web APIs
new text node for the second paragraph var newtext = document.createtextnode("this is the second paragraph."); // create a new element to be the second paragraph var newelement = document.createelement("p"); // put the text in the paragraph newelement.appendchild(newtext); // and put the paragraph on the end of the document by appending it to // the body (which is the
parent of para) para.
parentnode.appendchild(newelement); } you can see this script as a complete example.
Document Object Model (DOM) - Web APIs
dom interfaces attr cdatasection characterdata childnode comment customevent document documentfragment documenttype domerror domexception domimplementation domstring domtimestamp domstringlist domtokenlist element event eventtarget htmlcollection mutationobserver mutationrecord namednodemap node nodefilter nodeiterator nodelist nondocumenttypechildnode
parentnode processinginstruction selection range text textdecoder textencoder timeranges treewalker url window worker xmldocument obsolete dom interfaces the document object model has been highly simplified.
Element.insertAdjacentElement() - Web APIs
visualization of position names <!-- beforebegin --> <p> <!-- afterbegin --> foo <!-- beforeend --> </p> <!-- afterend --> note: the beforebegin and afterend positions work only if the node is in a tree and has an element
parent.
Element.insertAdjacentHTML() - Web APIs
visualization of position names <!-- beforebegin --> <p> <!-- afterbegin --> foo <!-- beforeend --> </p> <!-- afterend --> note: the beforebegin and afterend positions work only if the node is in the dom tree and has a
parent element.
Element.insertAdjacentText() - Web APIs
visualization of position names <!-- beforebegin --> <p> <!-- afterbegin --> foo <!-- beforeend --> </p> <!-- afterend --> note: the beforebegin and afterend positions work only if the node is in a tree and has an element
parent.
Element.outerHTML - Web APIs
notes if the element has no
parent element, setting its outerhtml property will not change it or its descendants.
Element.scrollHeight - Web APIs
"thank you." : "please, scroll and read the following text."; } onload = function () { var otoberead = document.getelementbyid("rules"); checkreading.noticebox = document.createelement("span"); document.registration.accept.checked = false; checkreading.noticebox.id = "notice"; otoberead.
parentnode.insertbefore(checkreading.noticebox, otoberead); otoberead.
parentnode.insertbefore(document.createelement("br"), otoberead); otoberead.onscroll = checkreading; checkreading.call(otoberead); } specifications specification status comment css object model (cssom) view modulethe definition of 'element.scrollheight' in that specification.
Element.scrollIntoView() - Web APIs
the element interface's scrollintoview() method scrolls the element's
parent container such that the element on which scrollintoview() is called is visible to the user syntax element.scrollintoview(); element.scrollintoview(aligntotop); // boolean parameter element.scrollintoview(scrollintoviewoptions); // object parameter parameters aligntotop optional is a boolean value: if true, the top of the element will be aligned to the top of the visible area of the scrollable ancestor.
Comparison of Event Targets - Web APIs
for example, mouse events are retargeted to their
parent node when they happen over text nodes (bug 185889), and in that case .target will show the
parent and .explicitoriginaltarget will show the text node.
Event.explicitOriginalTarget - Web APIs
for example, mouse events are retargeted to their
parent node when they happen over text nodes (see bug 185889), and in that case currenttarget will show the
parent and explicitoriginaltarget will show the text node.
Event.preventDefault() - Web APIs
it's not an elegant function but does the job for the purposes of this example: var warningtimeout; var warningbox = document.createelement("div"); warningbox.classname = "warning"; function displaywarning(msg) { warningbox.innerhtml = msg; if (document.body.contains(warningbox)) { window.cleartimeout(warningtimeout); } else { // insert warningbox after mytextbox mytextbox.
parentnode.insertbefore(warningbox, mytextbox.nextsibling); } warningtimeout = window.settimeout(function() { warningbox.
parentnode.removechild(warningbox); warningtimeout = -1; }, 2000); } result notes calling preventdefault() during any stage of event flow cancels the event, meaning that any default action normally taken by the implementation as a result of the event will not...
Event.target - Web APIs
// make a list const ul = document.createelement('ul'); document.body.appendchild(ul); const li1 = document.createelement('li'); const li2 = document.createelement('li'); ul.appendchild(li1); ul.appendchild(li2); function hide(evt) { // e.target refers to the clicked <li> element // this is different than e.currenttarget, which would refer to the
parent <ul> in this context evt.target.style.visibility = 'hidden'; } // attach the listener to the list // it will fire when each <li> is clicked ul.addeventlistener('click', hide, false); specifications specification status comment domthe definition of 'event.target' in that specification.
Event - Web APIs
(for example, a webpage with an advertising-module and statistics-module both monitoring video-watching.) when there are many nested elements, each with its own handler(s), event processing can become very complicated—especially where a
parent element receives the very same event as its child elements because "spatially" they overlap so the event technically occurs in both, and the processing order of such events depends on the event bubbling and capture settings of each handler triggered.
Using files from web applications - Web APIs
const self = this; this.xhr.upload.addeventlistener("progress", function(e) { if (e.lengthcomputable) { const percentage = math.round((e.loaded * 100) / e.total); self.ctrl.update(percentage); } }, false); xhr.upload.addeventlistener("load", function(e){ self.ctrl.update(100); const canvas = self.ctrl.ctx.canvas; canvas.
parentnode.removechild(canvas); }, false); xhr.open("post", "http://demos.hacks.mozilla.org/paul/demos/resources/webservices/devnull.php"); xhr.overridemimetype('text/plain; charset=x-user-defined-binary'); reader.onload = function(evt) { xhr.send(evt.target.result); }; reader.readasbinarystring(file); } the fileupload() function shown above creates a throbber, which is used to dis...
FileError - Web APIs
for example, the app might be trying to move a directory into its own child or moving a file into its
parent directory without changing its name.
FileException - Web APIs
examples of invalid modifications include moving a directory into its own child or moving a file into its
parent directory without changing its name.
FileSystemEntry.name - Web APIs
the read-only name property of the filesystementry interface returns a usvstring specifying the entry's name; this is the entry within its
parent directory (the last component of the path as indicated by the fullpath property).
FileSystemFileEntry - Web APIs
properties inherits the properties of its
parent interface, filesystementry, but has no properties unique to this interface.
HTMLCanvasElement.toDataURL() - Web APIs
apix[npixel + 2] = apix[npixel + 1] = apix[npixel] = (apix[npixel] + apix[npixel + 1] + apix[npixel + 2]) / 3; } octx.putimagedata(oimgdata, 0, 0); ograyimg = new image(); ograyimg.src = ocanvas.todataurl(); ograyimg.onmouseover = showcolorimg; ocolorimg.onmouseout = showgrayimg; octx.clearrect(0, 0, nwidth, nheight); ocolorimg.style.display = "none"; ocolorimg.
parentnode.insertbefore(ograyimg, ocolorimg); } } specifications specification status comment html living standardthe definition of 'htmlcanvaselement.todataurl' in that specification.
accessKeyLabel - Web APIs
syntax label = element.accesskeylabel example javascript var node = document.getelementbyid('btn1'); if (node.accesskeylabel) { node.title += ' [' + node.accesskeylabel + ']'; } else { node.title += ' [' + node.accesskey + ']'; } node.onclick = function () { var p = document.createelement('p'); p.textcontent = 'clicked!'; node.
parentnode.appendchild(p); }; html <button accesskey="h" title="caption" id="btn1">hover me</button> result specifications specification status comment html living standardthe definition of 'htmlelement.accesskeylabel' in that specification.
HTMLElement.dir - Web APIs
when an element has its dir set to "auto", the direction of the element is determined based on its first strong directionality character, or default to the directionality of its
parent element.
contentDocument - Web APIs
if the iframe and the iframe's
parent document are same origin, returns a document (that is, the active document in the inline frame's nested browsing context), else returns null.
HTMLModElement - Web APIs
_top"><rect x="351" y="65" width="140" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="421" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">htmlmodelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties inherits properties from its
parent, htmlelement.
HTMLStyleElement.scoped - Web APIs
the htmlstyleelement.scoped property is a boolean value indicating if the element applies to the whole document (false) or only to the
parent's sub-tree (true).
ImageData() - Web APIs
if no such array is given, an image with a trans
parent black rectangle of the specified width and height will be created.
LocalMediaStream - Web APIs
the primary reason for this interface to exist was to add a stop() method to its mediastream
parent interface.
MediaDevices.ondevicechange - Web APIs
once the string is assembled, containing the device's name in bold and the direction in
parentheses, it's appended to the appropriate list by calling appendchild() on either audiolist or videolist, as appropriate based on the device type.
MediaRecorder - Web APIs
ner.appendchild(deletebutton); soundclips.appendchild(clipcontainer); audio.controls = true; var blob = new blob(chunks, { 'type' : 'audio/ogg; codecs=opus' }); chunks = []; var audiourl = url.createobjecturl(blob); audio.src = audiourl; console.log("recorder stopped"); deletebutton.onclick = function(e) { evttgt = e.target; evttgt.
parentnode.
parentnode.removechild(evttgt.
parentnode); } } mediarecorder.ondataavailable = function(e) { chunks.push(e.data); } }) .catch(function(err) { console.log('the following error occurred: ' + err); }) } this code sample is inspired by the web dictaphone demo.
MutationObserver.MutationObserver() - Web APIs
const targetnode = document.queryselector("#someelement"); const observeroptions = { childlist: true, attributes: true, // omit (or set to false) to observe only changes to the
parent node subtree: true } const observer = new mutationobserver(callback); observer.observe(targetnode, observeroptions); the desired subtree is located by finding an element with the id someelement.
Node.baseURI - Web APIs
if the document contains xml:base attributes (which you shouldn't do in html documents), the element.baseuri takes the xml:base attributes of element's
parents into account when computing the base url.
Node.cloneNode() - Web APIs
the newclone has no
parent and is not part of the document, until it is added to another node that is part of the document (using node.appendchild() or a similar method).
Node.firstChild - Web APIs
to avoid the issue with node.firstchild returning #text or #comment nodes,
parentnode.firstelementchild can be used to return only the first element node.
Node.getRootNode() - Web APIs
(see the full source code): <!-- source: https://github.com/jserz/js_piece/blob/master/dom/node/getrootnode()/demo/getrootnode.html --> <div class="js-
parent"> <div class="js-child"></div> </div> <div class="js-shadowhost"></div> <script> // works on chrome 54+,opera 41+ var
parent = document.queryselector('.js-
parent'), child = document.queryselector('.js-child'), shadowhost = document.queryselector('.js-shadowhost'); console.log(
parent.getrootnode().nodename); // #document console.log(child.getrootnode().nodename); // #docu...
Node.lastChild - Web APIs
if its
parent is an element, then the child is generally an element node, a text node, or a comment node.
Node.nextSibling - Web APIs
the node.nextsibling read-only property returns the node immediately following the specified one in their
parent's childnodes, or returns null if the specified node is the last child in the
parent element.
Node.previousSibling - Web APIs
the node.previoussibling read-only property returns the node immediately preceding the specified one in its
parent's childnodes list, or null if the specified node is the first in that list.
NodeList - Web APIs
for example, node.childnodes is live: const
parent = document.getelementbyid('
parent'); let child_nodes =
parent.childnodes; console.log(child_nodes.length); // let's assume "2"
parent.appendchild(document.createelement('div')); console.log(child_nodes.length); // outputs "3" static nodelists in other cases, the nodelist is static, where any changes in the dom does not affect the content of the collection.
PageTransitionEvent - Web APIs
" width="190" height="50" fill="#f4f7f8" stroke="#d4dde4" stroke-width="2px" /><text x="211" y="30" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">pagetransitionevent</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface also inherits properties from its
parent, event.
PaymentRequest.show() - Web APIs
other reasons a securityerror may be thrown are at the discretion of the user agent, and may include situations such as too many calls to show() being made in a short time or show() being called while payment requests are blocked by
parental controls.
RTCError - Web APIs
properties in addition to the properties defined by the
parent interface, domexception, rtcerror includes the following properties: errordetail read only a domstring specifying the webrtc-specific error code identifying the type of error that occurred.
Range.commonAncestorContainer - Web APIs
dding: 1px; } javascript document.addeventlistener('pointerup', e => { const selection = window.getselection(); if (selection.type === 'range') { for (let i = 0; i < selection.rangecount; i++) { const range = selection.getrangeat(i); playanimation(range.commonancestorcontainer); } } }); function playanimation(el) { if (el.nodetype === node.text_node) { el = el.
parentnode; } el.classlist.remove('highlight'); settimeout(() => { el.classlist.add('highlight'); }, 0); } result specifications specification status comment domthe definition of 'range.commonancestorcontainer' in that specification.
SVGAElement.target - Web APIs
this property is used when there are multiple possible targets for the ending resource, like when the
parent document is a mlti-frame html or xhtml document.
SVGColorProfileElement - Web APIs
methods this interface does not provide any specific methods, but implements those of its
parent, svgelement, and implements methods of svgurireference and svgrenderingintent.
SVGRect - Web APIs
methods this interface also inherits properties from its
parent, domrectreadonly.
SVGScriptElement - Web APIs
methods this interface doesn't implement any specific methods, but inherits methods from its
parent interface, svgelement.
SVGTSpanElement - Web APIs
stroke="#d4dde4" stroke-width="2px" /><text x="-354" y="94" font-size="12px" font-family="consolas,monaco,andale mono,monospace" fill="#4d4e53" text-anchor="middle" alignment-baseline="middle">svgtspanelement</text></a></svg></div> a:hover text { fill: #0095dd; pointer-events: all;} properties this interface doesn't provide any specific properties, but inherits the properties from its
parent, svgtextpositioningelement.
SVGTransformList - Web APIs
<svg id="my-svg" viewbox="0 0 300 280" xmlns="http://www.w3.org/2000/svg" version="1.1"> <desc>example showing how to transform svg elements that using svgtransform objects</desc> <script type="application/ecmascript"> <![cdata[ function transformme(evt) { // svg root element to access the createsvgtransform() function var svgroot = evt.target.
parentnode; // svgtransformlist of the element that has been clicked on var tfmlist = evt.target.transform.baseval; // create a seperate transform object for each transform var translate = svgroot.createsvgtransform(); translate.settranslate(50,5); var rotate = svgroot.createsvgtransform(); rotate.setrotate(10,0,0); var scale = svgroot.createsvgtransfo...
Selection.containsNode() - Web APIs
html <p>can you find the secret word?</p> <p>hmm, where <span id="secret" style="color:trans
parent">secret</span> could it be?</p> <p id="win" hidden>you found it!</p> javascript const secret = document.getelementbyid('secret'); const win = document.getelementbyid('win'); // listen for selection changes document.addeventlistener('selectionchange', () => { const selection = window.getselection(); const found = selection.containsnode(secret); win.toggleattribute('hidden', !found); }); ...
ServiceWorkerGlobalScope - Web APIs
this interface inherits from the workerglobalscope interface, and its
parent eventtarget, and therefore implements properties from windowtimers, windowbase64, and windoweventhandlers.
SourceBuffer.abort() - Web APIs
exceptions exception explanation invalidstateerror the mediasource.readystate property of the
parent media source is not equal to open, or this sourcebuffer has been removed from the mediasource.
Using textures in WebGL - Web APIs
without performing the above configuration, webgl requires all samples of npot textures to fail by returning trans
parent black: rgba(0,0,0,0).
Web Audio API - Web APIs
audioscheduledsourcenode the audioscheduledsourcenode is a
parent interface for several types of audio source node interfaces.
Web Workers API - Web APIs
workers may in turn spawn new workers, as long as those workers are hosted within the same origin as the
parent page.
Window.frames - Web APIs
example var frames = window.frames; // or // var frames = window.
parent.frames; for (var i = 0; i < frames.length; i++) { // do something with each subframe as frames[i] frames[i].document.body.style.background = "red"; } specifications specification status comment html living standardthe definition of 'window.frames' in that specification.
Window.innerHeight - Web APIs
example assuming a frameset var intframeheight = window.innerheight; // or var intframeheight = self.innerheight; // will return the height of the frame viewport within the frameset var intframesetheight =
parent.innerheight; // will return the height of the viewport of the closest frameset var intouterframesetheight = top.innerheight; // will return the height of the viewport of the outermost frameset fixme: link to an interactive demo here to change the size of a window, see window.resizeby() and window.resizeto().
Window.innerWidth - Web APIs
example // this will return the width of the viewport var intframewidth = window.innerwidth; // this will return the width of the frame viewport within a frameset var intframewidth = self.innerwidth; // this will return the width of the viewport of the closest frameset var intframesetwidth =
parent.innerwidth; // this will return the width of the viewport of the outermost frameset var intouterframesetwidth = top.innerwidth; specification specification status comment css object model (cssom) view modulethe definition of 'window.innerwidth' in that specification.
Obsolete features - Web APIs
in addition to the personal toolbar, mozilla browser will render the site navigation bar if such toolbar is visible, present in the
parent window.
window.postMessage() - Web APIs
methods for obtaining such a reference include: window.open (to spawn a new window and then reference it), window.opener (to reference the window that spawned this one), htmliframeelement.contentwindow (to reference an embedded <iframe> from its
parent window), window.
parent (to reference the
parent window from within an embedded <iframe>), or window.frames + an index value (named or numeric).
Window.self - Web APIs
if (window.
parent.frames[0] != window.self) { // this window is not the first frame in the list } furthermore, when executing in the active document of a browsing context, window is a reference to the current global object and thus all of the following are equivalent: var w1 = window; var w2 = self; var w3 = window.window; var w4 = window.self; // w1, w2, w3, w4 all strictly equal, but only w2 will function...
Window.stop() - Web APIs
because of how scripts are executed, this method cannot interrupt its
parent document's loading, but it will stop its images, new windows, and other still-loading objects.
Window - Web APIs
window.pageyoffset read only an alias for window.scrolly window.
parent read only returns a reference to the
parent of the current window or subframe.
XRInputSourceEvent - Web APIs
methods the xrinputsourceevent interface doesn't define any methods; however, several methods are inherited from the
parent interface, event.
XRPermissionDescriptor - Web APIs
properties in addition to inheriting the properties of the
parent interface, permissiondescriptor, xrpermissiondescriptor provides the following properties.
XRPermissionStatus - Web APIs
properties in addition to the properties listed below, xrpermissionstatus includes the properties defined by its
parent interface, permissionstatus.
XRReferenceSpace - Web APIs
methods in addition to the methods inherited from its
parent interface, xrspace (there are none at this time), xrreferencespace inherits methods from eventtarget.
XRRigidTransform.inverse - Web APIs
applying the inverse of a transform to any object previously transformed by the
parent xrrigidtransform always undoes the transformation, resulting in the object returning to its previous pose.
XRRigidTransform - Web APIs
xrrigidtransform is used to specify transforms throughout the webxr apis, including: the offset and orientation relative to the
parent reference space to use when creating a new reference space with getoffsetreferencespace().
XRWebGLLayer.framebuffer - Web APIs
the default configuration of a new framebuffer upon creating a new xrwebgllayer, its new framebuffer is initialized just like the default framebuffer for any webgl interface: the color buffer is configured with its clear value set to the color (0, 0, 0, 0) (meaning trans
parent black).
Web APIs
yaudioavailableevent o oes_element_index_uint oes_fbo_render_mipmap oes_standard_derivatives oes_texture_float oes_texture_float_linear oes_texture_half_float oes_texture_half_float_linear oes_vertex_array_object ovr_multiview2 offlineaudiocompletionevent offlineaudiocontext offscreencanvas orientationsensor oscillatornode overconstrainederror p pagetransitionevent paintworklet pannernode
parentnode passwordcredential path2d payererrors paymentaddress paymentcurrencyamount paymentdetailsbase paymentdetailsupdate paymentitem paymentmethodchangeevent paymentrequest paymentrequestevent paymentrequestupdateevent paymentresponse paymentvalidationerrors pbkdf2params performance performanceentry performanceeventtiming performanceframetiming performancelongtasktiming performancemark perf...
ARIA live regions - Accessibility
while these changes are usually visually ap
parent to users who can see the page, they may not be obvious to users of assistive technologies.
ARIA annotations - Accessibility
omplex — rather than a simple text string, it might contain multiple bits of semantic information: <div id="detail-id"> <h2>a heading</h2> <p>an extended text description of some kind…</p> <p><time datetime="...">a timestamp</time></p> </div> <div aria-details="detail-id"> <!-- some kind of ui feature that needs an accessible description --> </div> this difference really becomes ap
parent when you get to how the content is actually interpreted in the accessibility layer, and read out by screenreaders.
ARIA: Complementary role - Accessibility
s</h2> <ul> <li><a href="#">18 tweets that will make you feel all the feels</a></li> <li><a href="#">stop searching for the perfect lunch containers because i've found them</a></li> <li><a href="#">the time has come to finally decide what we should be calling these foods</a></li> <li><a href="#">17 really good posts we saw on tumblr this week</a></li> <li><a href="#">10
parent hacks we know work because we tried them</a></li> </ul> </div> accessibility concerns landmark roles are intended to be used sparingly, to identify larger overall sections of the document.
ARIA: document role - Accessibility
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.
ARIA: List role - Accessibility
as an aside, note that if you are using the semantic html elements of ol or ul and apply a role of presentation, each child li element inherits the presentation role because aria requires the listitem elements to have the
parent list element.
ARIA: row role - Accessibility
associated wai-aria roles, states, and properties context roles role="rowgroup" an optional contextual row
parent, it establishes a relationship between descendant rows.
ARIA: button role - Accessibility
</audio> css button, [role="button"] { padding: 3px; border: 2px solid trans
parent; } button:active, button:focus, [role="button"][aria-pressed="true"] { border: 2px solid #000; } javascript function handlebtnclick(event) { togglebutton(event.target); } function handlebtnkeydown(event) { // check to see if space or enter were pressed if (event.key === " " || event.key === "enter" || event.key === "spacebar") { // "spacebar" for ie11 support // prevent the def...
Keyboard-navigable JavaScript widgets - Accessibility
grouping controls for grouping widgets such as menus, tablists, grids, or tree views, the
parent element should be in the tab order (tabindex="0"), and each descendent choice/tab/cell/row should be removed from the tab order (tabindex="-1").
-webkit-border-before - CSS: Cascading Style Sheets
the trans
parent keyword maps to rgba(0,0,0,0).animation typediscrete formal syntax <'border-width'> | <'border-style'> | <'color'>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
-webkit-box-reflect - CSS: Cascading Style Sheets
/* direction values */ -webkit-box-reflect: above; -webkit-box-reflect: below; -webkit-box-reflect: left; -webkit-box-reflect: right; /* offset value */ -webkit-box-reflect: below 10px; /* mask value */ -webkit-box-reflect: below 0 linear-gradient(trans
parent, white); /* global values */ -webkit-box-reflect: inherit; -webkit-box-reflect: initial; -webkit-box-reflect: unset; note: this feature is not intended to be used by web sites.
::part() - CSS: Cascading Style Sheets
template id="tabbed-custom-element"> <style type="text/css"> *, ::before, ::after { box-sizing: border-box; padding: 1rem; } :host { display: flex; } </style> <div part="tab active">tab 1</div> <div part="tab">tab 2</div> <div part="tab">tab 3</div> </template> <tabbed-custom-element></tabbed-custom-element> css tabbed-custom-element::part(tab) { color: #0c0c0dcc; border-bottom: trans
parent solid 2px; } tabbed-custom-element::part(tab):hover { background-color: #0c0c0d19; border-color: #0c0c0d33; } tabbed-custom-element::part(tab):hover:active { background-color: #0c0c0d33; } tabbed-custom-element::part(tab):focus { box-shadow: 0 0 0 1px #0a84ff inset, 0 0 0 1px #0a84ff, 0 0 0 4px rgba(10, 132, 255, 0.3); } tabbed-custom-element::part(active) { color: #0060...
:empty - CSS: Cascading Style Sheets
all interactive content must have an accessible name, which is created by providing a text value for the interactive control's
parent element (anchors, buttons, etc.).
:focus-visible - CSS: Cascading Style Sheets
">click me</custom-button> custom-button { display: inline-block; margin: 10px; } custom-button:focus { /* provide a fallback style for browsers that don't support :focus-visible */ outline: none; background: lightgrey; } custom-button:focus:not(:focus-visible) { /* remove the focus indicator on mouse-focus for browsers that do support :focus-visible */ background: trans
parent; } custom-button:focus-visible { /* draw a very noticeable focus style for keyboard-focus on browsers that do support :focus-visible */ outline: 4px dashed darkorange; background: trans
parent; } polyfill you can polyfill :focus-visible using focus-visible.js.
:is() (:matches(), :any()) - CSS: Cascading Style Sheets
} catch(e) { try { matcheditems = document.queryselectorall(':-moz-any(header, main, footer) p'); } catch(e) { console.log('your browser doesn\'t support :is(), :matches(), or :any()'); } } } } matcheditems.foreach(applyhandler); function applyhandler(elem) { elem.addeventlistener('click', function(e) { alert('this paragraph is inside a ' + e.target.
parentnode.nodename); }); } simplifying list selectors the :is() pseudo-class can greatly simplify your css selectors.
Descendant combinator - CSS: Cascading Style Sheets
the descendant combinator — typically represented by a single space ( ) character — combines two selectors such that elements matched by the second selector are selected if they have an ancestor (
parent,
parent's
parent,
parent's
parent's
parent, etc) element matching the first selector.
Center an element - CSS: Cascading Style Sheets
in the future we may be able to center elements without needing to turn the
parent into a flex container, as the box alignment properties used here are specified to apply to block layout too.
Linear-gradient Generator - CSS: Cascading Style Sheets
ttool.init(); }); var lineargradienttool = (function lineargradienttool() { 'use strict'; var radian = 180 / math.pi; var inv_radian = math.pi / 180; var units = {'%': 1, 'px' : 0}; /*========== dom methods ==========*/ function getelembyid(id) { return document.getelementbyid(id); } function allowdropevent(e) { e.preventdefault(); } function createclasselement(tag, classname,
parent) { var elem = document.createelement(tag); elem.classname = classname; if (
parent)
parent.appendchild(elem); return elem; }; function trackmouse(elem, callback, startfunc, endfunc) { startfunc = startfunc || function(e) {}; endfunc = endfunc || function(e) {}; elem.addeventlistener('mousedown', function(e) { e.preventdefault(); startfunc(e); document.addeventlistener('...
background-attachment - CSS: Cascading Style Sheets
</p> css p { background-image: url("https://mdn.mozillademos.org/files/12057/starsolid.gif"), url("https://mdn.mozillademos.org/files/12059/startrans
parent.gif"); background-attachment: fixed, scroll; background-repeat: no-repeat, repeat-y; } result specifications specification status comment css backgrounds and borders module level 3the definition of 'background-attachment' in that specification.
background - CSS: Cascading Style Sheets
understanding wcag, guideline 1.1 explanations understanding success criterion 1.1.1 | w3c understanding wcag 2.0 formal definition initial valueas each of the properties of the shorthand:background-image: nonebackground-position: 0% 0%background-size: auto autobackground-repeat: repeatbackground-origin: padding-boxbackground-clip: border-boxbackground-attachment: scrollbackground-color: trans
parentapplies toall elements.
box-align - CSS: Cascading Style Sheets
align: center; /* as specified */ -moz-box-align: center; /* mozilla */ -webkit-box-align: center; /* webkit */ /* pack children to the bottom of this box */ box-pack: end; /* as specified */ -moz-box-pack: end; /* mozilla */ -webkit-box-pack: end; /* webkit */ } div.example > p { /* make children narrower than their
parent, so there is room for the box-align */ width: 200px; } </style> </head> <body> <div class="example"> <p>i will be second from the bottom of div.example, centered horizontally.</p> <p>i will be on the bottom of div.example, centered horizontally.</p> </div> </body> </html> specifications not part of any standard.
box-pack - CSS: Cascading Style Sheets
ozilla */ -webkit-box-orient: vertical; /* webkit */ /* align children to the horizontal center of this box */ -moz-box-align: center; /* mozilla */ -webkit-box-align: center; /* webkit */ /* pack children to the bottom of this box */ -moz-box-pack: end; /* mozilla */ -webkit-box-pack: end; /* webkit */ } div.example p { /* make children narrower than their
parent, so there is room for the box-align */ width: 200px; } <div class="example"> <p>i will be second from the bottom of div.example, centered horizontally.</p> <p>i will be on the bottom of div.example, centered horizontally.</p> </div> specifications not part of any standard.
box-sizing - CSS: Cascading Style Sheets
for example, if you have four boxes with width: 25%;, if any has left or right padding or a left or right border, they will not by default fit on one line within the constraints of the
parent container.
caret-color - CSS: Cascading Style Sheets
syntax /* keyword values */ caret-color: auto; caret-color: trans
parent; caret-color: currentcolor; /* <color> values */ caret-color: red; caret-color: #5729e9; caret-color: rgb(0, 200, 0); caret-color: hsla(228, 4%, 24%, 0.8); values auto the user agent selects an appropriate color for the caret.
color - CSS: Cascading Style Sheets
the trans
parent keyword maps to rgba(0,0,0,0).animation typea color formal syntax <color>where <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
column-rule-color - CSS: Cascading Style Sheets
syntax /* <color> values */ column-rule-color: red; column-rule-color: rgb(192, 56, 78); column-rule-color: trans
parent; column-rule-color: hsla(0, 100%, 50%, 0.6); /* global values */ column-rule-color: inherit; column-rule-color: initial; column-rule-color: unset; the column-rule-color property is specified as a single <color> value.
<display-box> - CSS: Cascading Style Sheets
however it also has display: contents specified therefore this <div> will not be rendered, the border and width will no longer apply, and the child element will be displayed as if the
parent had never existed.
display - CSS: Cascading Style Sheets
depending on the value of other properties (such as position, float, or overflow) and whether it is itself participating in a block or inline formatting context, it either establishes a new block formatting context (bfc) for its contents or integrates its contents into its
parent formatting context.
float - CSS: Cascading Style Sheets
we gave the
parent width: 100% and floated it to ensure it is tall enough to encompass it's floated children, and to make sure it takes up the width of the
parent so we don't have to clear it's adjacent sibling.
justify-items - CSS: Cascading Style Sheets
values auto the value used is the value of the justify-items property of the
parents box, unless the box has no
parent, or is absolutely positioned, in these cases, auto represents normal.
justify-self - CSS: Cascading Style Sheets
values auto the value used is the value of the justify-items property of the
parents box, unless the box has no
parent, or is absolutely positioned, in these cases, auto represents normal.
<length> - CSS: Cascading Style Sheets
font-relative lengths font-relative lengths define the <length> value in terms of the size of a particular character or font attribute in the font currently in effect in an element or its
parent.
mask-image - CSS: Cascading Style Sheets
/* keyword value */ mask-image: none; /* <mask-source> value */ mask-image: url(masks.svg#mask1); /* <image> values */ mask-image: linear-gradient(rgba(0, 0, 0, 1.0), trans
parent); mask-image: image(url(mask.png), skyblue); /* multiple values */ mask-image: image(url(mask.png), skyblue), linear-gradient(rgba(0, 0, 0, 1.0), trans
parent); /* global values */ mask-image: inherit; mask-image: initial; mask-image: unset; syntax values none this keyword is interpreted as a trans
parent black image layer.
offset-anchor - CSS: Cascading Style Sheets
html <section> <div class="offset-anchor1"></div> </section> <section> <div class="offset-anchor2"></div> </section> <section> <div class="offset-anchor3"></div> </section> css div { offset-path: path('m 0,20 l 200,20'); animation: move 3000ms infinite alternate ease-in-out; width: 40px; height: 40px; } section { background-image: linear-gradient(to bottom, trans
parent, trans
parent 49%, #000 50%, #000 51%, trans
parent 52%); border: 1px solid #ccc; margin-bottom: 10px; } .offset-anchor1 { offset-anchor: auto; background: cyan; } .offset-anchor2 { offset-anchor: right top; background: purple; } .offset-anchor3 { offset-anchor: left bottom; background: magenta; } @keyframes move { 0% { offset-distance: 0%; } 100% { offset-distance...
offset-path - CSS: Cascading Style Sheets
the offset-path css property specifies a motion path for an element to follow and defines the element's positioning within the
parent container or svg coordinate system.
outline-color - CSS: Cascading Style Sheets
the trans
parent keyword maps to rgba(0,0,0,0).animation typea color formal syntax <color> | invertwhere <color> = <rgb()> | <rgba()> | <hsl()> | <hsla()> | <hex-color> | <named-color> | currentcolor | <deprecated-system-color>where <rgb()> = rgb( <percentage>{3} [ / <alpha-value> ]?
outline - CSS: Cascading Style Sheets
the trans
parent keyword maps to rgba(0,0,0,0).outline-width: an absolute length; if the keyword none is specified, the computed value is 0outline-style: as specifiedanimation typeas each of the properties of the shorthand:outline-color: a coloroutline-width: a lengthoutline-style: discrete formal syntax [ <'outline-color'> | <'outline-style'> | <'outline-width'> ] examples using outline to set a focus style ...
perspective-origin - CSS: Cascading Style Sheets
the perspective-origin and perspective properties are attached to the
parent of a child transformed in 3-dimensional space, unlike the perspective() transform function which is placed on the element being transformed.
place-items - CSS: Cascading Style Sheets
lace-items: flex-end normal; place-items: left auto; place-items: right normal; /* baseline alignment */ place-items: baseline normal; place-items: first baseline auto; place-items: last baseline normal; place-items: stretch auto; /* global values */ place-items: inherit; place-items: initial; place-items: unset; values auto the value used is the value of the justify-items property of the
parents box, unless the box has no
parent, or is absolutely positioned, in these cases, auto represents normal.
radial-gradient() - CSS: Cascading Style Sheets
examples simple gradient <div class="radial-gradient"></div> .radial-gradient { width: 240px; height: 120px; } .radial-gradient { background-image: radial-gradient(cyan 0%, trans
parent 20%, salmon 40%); } non-centered gradient <div class="radial-gradient"></div> .radial-gradient { width: 240px; height: 120px; } .radial-gradient { background-image: radial-gradient(farthest-corner at 40px 40px, #f35 0%, #43e 100%); } more radial-gradient examples please see using css gradients for more examples.
repeating-linear-gradient() - CSS: Cascading Style Sheets
and <color-stop-length> = [ <percentage> | <length> ]{1,2} and <color-hint> = [ <percentage> | <length> ] examples zebra stripes body { width: 100vw; height: 100vh; } body { background-image: repeating-linear-gradient(-45deg, trans
parent, trans
parent 20px, black 20px, black 40px); /* with multiple color stop lengths */ background-image: repeating-linear-gradient(-45deg, trans
parent 0 20px, black 20px 40px); } ten repeating horizontal bars body { width: 100vw; height: 100vh; } body { background-image: repeating-linear-gradient(to bottom, rgb(26,198,204), rgb(26,198,204) 7...
text-decoration-color - CSS: Cascading Style Sheets
syntax /* <color> values */ text-decoration-color: currentcolor; text-decoration-color: red; text-decoration-color: #00ff00; text-decoration-color: rgba(255, 128, 128, 0.5); text-decoration-color: trans
parent; /* global values */ text-decoration-color: inherit; text-decoration-color: initial; text-decoration-color: unset; values <color> the color of the line decoration.
text-emphasis-color - CSS: Cascading Style Sheets
/* initial value */ text-emphasis-color: currentcolor; /* <color> */ text-emphasis-color: #555; text-emphasis-color: blue; text-emphasis-color: rgba(90, 200, 160, 0.8); text-emphasis-color: trans
parent; /* global values */ text-emphasis-color: inherit; text-emphasis-color: initial; text-emphasis-color: unset; syntax values <color> defines the color of the emphasis marks.
top - CSS: Cascading Style Sheets
inherit specifies that the value is the same as the computed value from its
parent element (which might not be its containing block).
rotate() - CSS: Cascading Style Sheets
html <div>normal</div> <div class="rotate">rotated</div> <div class="rotate-translate">rotated + translated</div> <div class="translate-rotate">translated + rotated</div> css div { position: absolute; left: 40px; top: 40px; width: 100px; height: 100px; background-color: lightgray; } .rotate { background-color: trans
parent; outline: 2px dashed; transform: rotate(45deg); } .rotate-translate { background-color: pink; transform: rotate(45deg) translatex(180px); } .translate-rotate { background-color: gold; transform: translatex(180px) rotate(45deg); } result specifications specification status comment css transforms level 1the definition of 'rotate()' in that specificati...
unset - CSS: Cascading Style Sheets
the unset css keyword resets a property to its inherited value if the property naturally inherits from its
parent, and to its initial value if not.
<url> - CSS: Cascading Style Sheets
if you choose to write the url without quotes, use a backslash (\) before any
parentheses, whitespace characters, single quotes (') and double quotes (") that are part of the url.
user-select - CSS: Cascading Style Sheets
auto the used value of auto is determined as follows: on the ::before and ::after pseudo elements, the used value is none if the element is an editable element, the used value is contain otherwise, if the used value of user-select on the
parent of this element is all, the used value is all otherwise, if the used value of user-select on the
parent of this element is none, the used value is none otherwise, the used value is text text the text can be selected by the user.
Event reference
domnoderemoved mutationevent dom l3 a node has been removed from its
parent node (use mutation observers instead).
Getting Started - Developer guides
at this stage, you need to tell the xmlhttp request object which javascript function will handle the response, by setting the onreadystatechange property of the object and naming it after the function to call when the request changes state, like this: httprequest.onreadystatechange = nameofthefunction; note that there are no
parentheses or parameters after the function name, because you're assigning a reference to the function, rather than actually calling it.
Creating a cross-browser video player - Developer guides
eo/ogg"> <!-- flash fallback --> <object type="application/x-shockwave-flash" data="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" width="1024" height="576"> <param name="movie" value="flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <param name="allowfullscreen" value="true" /> <param name="wmode" value="trans
parent" /> <param name="flashvars" value="controlbar=over&image=img/poster.jpg&file=flash-player.swf?videourl=video/tears-of-steel-battle-clip-medium.mp4" /> <img alt="tears of steel poster image" src="img/poster.jpg" width="1024" height="428" title="no video playback possible, please download the video from the link below" /> </object> <!-- offer download --> ...
Audio and Video Delivery - Developer guides
c="dynamicsearch.jpg" alt="dynamic app search in firefox os"> </a> <p>click image to play a video demo of dynamic app search</p> </video> var v = document.queryselector('video'), sources = v.queryselectorall('source'), lastsource = sources[sources.length-1]; lastsource.addeventlistener('error', function(ev) { var d = document.createelement('div'); d.innerhtml = v.innerhtml; v.
parentnode.replacechild(d, v); }, false); audio/video javascript libraries a number of audio and video javascript libaries exist.
DOM onevent handlers - Developer guides
rong> setattribute method </strong> '); el.setattribute("onclick", 'anchoronclick(event)'); log(`changed the property to: <code> ${el.onclick.tostring()} </code>`); log(`now even the html attribute has changed: <code> ${el.getattribute("onclick")} </code><br>`); result for historical reasons, some attributes/properties on the <body> and <frameset> elements instead set event handlers on their
parent window object.
Mutation events - Developer guides
3 events specification: domattrmodified domattributenamechanged domcharacterdatamodified domelementnamechanged domnodeinserted domnodeinsertedintodocument domnoderemoved domnoderemovedfromdocument domsubtreemodified mutation observers alternatives examples domnoderemovedfromdocument var isdescendant = function (desc, root) { return !!desc && (desc === root || isdescendant(desc.
parentnode, root)); }; var onremove = function (element, callback) { var observer = new mutationobserver(function (mutations) { _.foreach(mutations, function (mutation) { _.foreach(mutation.removednodes, function (removed) { if (isdescendant(element, removed)) { callback(); // allow garbage collection o...
title - HTML: Hypertext Markup Language
some caution must be taken, as this means the following renders across two lines: html <p>newlines in <code>title</code> should be taken into account, like <abbr title="this is a multiline title">example</abbr>.</p> result title attribute inheritance if an element has no title attribute, then it inherits it from its
parent node, which in turn may inherit it from its
parent, and so on.
HTML: Hypertext Markup Language
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.
Evolution of HTTP - HTTP
this rapid adoption rate was likely as http/2 does not require adaptation of web sites and applications: using http/1.1 or http/2 is trans
parent for them.
Browser detection using the user agent - HTTP
from this point on, we shall assume that all the dog boxes are at the top of the source code, that all the cat boxes are at the bottom of the source code, and that all these boxes have the same
parent element.
HTTP conditional requests - HTTP
besides the setting of the validators on the server side, this mechanism is trans
parent: all browsers manage a cache and send such conditional requests without any special work to be done by web developers.
Connection - HTTP
the list of headers are the name of the header to be removed by the first non-trans
parent proxy or cache in-between: these headers define the connection between the emitter and the first entity, not the destination node.
CSP: frame-ancestors - HTTP
the http content-security-policy (csp) frame-ancestors directive specifies valid
parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
CSP: sandbox - HTTP
allow-storage-access-by-user-activation lets the resource request access to the
parent's storage capabilities with the storage access api.
Index - HTTP
36 csp: frame-ancestors csp, directive, http, security the http content-security-policy (csp) frame-ancestors directive specifies valid
parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
X-Frame-Options - HTTP
the spec leaves it up to browser vendors to decide whether this option applies to the top level, the
parent, or the whole chain, although it is argued that the option is not very useful unless all ancestors are also in the same origin (see bug 725490).
HTTP response status codes - HTTP
506 variant also negotiates the server has an internal configuration error: the chosen variant resource is configured to engage in trans
parent content negotiation itself, and is therefore not a proper end point in the negotiation process.
Control flow and error handling - JavaScript
for example, do not write code like this: // prone to being misread as "x == y" if (x = y) { /* statements here */ } if you need to use an assignment in a conditional expression, a common practice is to put additional
parentheses around the assignment, like this: if ((x = y)) { /* statements here */ } falsy values the following values evaluate to false (also known as falsy values): false undefined null 0 nan the empty string ("") all other values—including all objects—evaluate to true when passed to a conditional statement.
Working with objects - JavaScript
(note that you may need to wrap the object literal in
parentheses if the object appears where a statement is expected, so as not to have the literal be confused with a block statement.) object initializers are expressions, and each object initializer results in a new object being created whenever the statement in which it appears is executed.
static - JavaScript
class triple { static triple(n = 1) { return n * 3; } } class biggertriple extends triple { static triple(n) { return super.triple(n) * super.triple(n); } } console.log(triple.triple()); // 3 console.log(triple.triple(6)); // 18 var tp = new triple(); console.log(biggertriple.triple(3)); // 81 (not affected by
parent's instantiation) console.log(tp.triple()); // 'tp.triple is not a function'.
SyntaxError: Unexpected token - JavaScript
message syntaxerror: expected expression, got "x" syntaxerror: expected property name, got "x" syntaxerror: expected target, got "x" syntaxerror: expected rest argument name, got "x" syntaxerror: expected closing
parenthesis, got "x" syntaxerror: expected '=>' after argument list, got "x" error type syntaxerror what went wrong?
get Array[@@species] - JavaScript
however, you might want to overwrite this, in order to return
parent array objects in your derived class methods: class myarray extends array { // overwrite myarray species to the
parent array constructor static get [symbol.species]() { return array; } } specifications specification ecmascript (ecma-262)the definition of 'get array [ @@species ]' in that specification.
get ArrayBuffer[@@species] - JavaScript
however, you might want to overwrite this, in order to return
parent arraybuffer objects in your derived class methods: class myarraybuffer extends arraybuffer { // overwrite myarraybuffer species to the
parent arraybuffer constructor static get [symbol.species]() { return arraybuffer; } } specifications specification ecmascript (ecma-262)the definition of 'get arraybuffer [ @@species ]' in that specification.
Error.prototype.stack - JavaScript
argument values in the stack: prior to firefox 14, the function name would be followed by the argument values converted to string in
parentheses immediately before the at (@) sign.
Error - JavaScript
class customerror extends error { constructor(foo = 'bar', ...params) { // pass remaining arguments (including vendor specific ones) to
parent constructor super(...params) // maintains proper stack trace for where our error was thrown (only available on v8) if (error.capturestacktrace) { error.capturestacktrace(this, customerror) } this.name = 'customerror' // custom debugging information this.foo = foo this.date = new date() } } try { throw new customerror('baz', 'bazmessage') } catch(e) { ...
InternalError - JavaScript
example cases are mostly when something is too large, e.g.: "too many switch cases", "too many
parentheses in regular expression", "array initializer too large", "too much recursion".
get Map[@@species] - JavaScript
however, you might want to overwrite this, in order to return
parent map objects in your derived class methods: class mymap extends map { // overwrite mymap species to the
parent map constructor static get [symbol.species]() { return map; } } specifications specification ecmascript (ecma-262)the definition of 'get map [ @@species ]' in that specification.
Object.getOwnPropertyNames() - JavaScript
items on the prototype chain are not listed: function
parentclass() {}
parentclass.prototype.inheritedmethod = function() {}; function childclass() { this.prop = 5; this.method = function() {}; } childclass.prototype = new
parentclass; childclass.prototype.prototypemethod = function() {}; console.log( object.getownpropertynames( new childclass() // ["prop", "method"] ) ); get non-enumerable properties only this uses the array.prototype.fil...
get RegExp[@@species] - JavaScript
however, you might want to overwrite this, in order to return
parent regexp objects in your derived class methods: class myregexp extends regexp { // overwrite myregexp species to the
parent regexp constructor static get [symbol.species]() { return regexp; } } specifications specification ecmascript (ecma-262)the definition of 'get regexp [ @@species ]' in that specification.
RegExp.lastParen ($+) - JavaScript
the non-standard lastparen property is a static and read-only property of regular expressions that contains the last
parenthesized substring match, if any.
RegExp - JavaScript
in the replacement text, the script uses $1 and $2 to indicate the results of the corresponding matching
parentheses in the regular expression pattern.
get Set[@@species] - JavaScript
however, you might want to overwrite this, in order to return
parent set objects in your derived class methods: class myset extends set { // overwrite myset species to the
parent set constructor static get [symbol.species]() { return set; } } specifications specification ecmascript (ecma-262)the definition of 'get set [ @@species ]' in that specification.
get TypedArray[@@species] - JavaScript
however, you might want to overwrite this, in order to return a
parent typed array object in your derived class methods: class mytypedarray extends uint8array { // overwrite mytypedarray species to the
parent uint8array constructor static get [symbol.species]() { return uint8array; } } specifications specification ecmascript (ecma-262)the definition of 'get %typedarray% [ @@species ]' in that specification.
WeakRef - JavaScript
this is primarily to avoid making the behavior of any given javascript engine's garbage collector ap
parent in code — because if it were, people would write code relying on that behavior, which would break when the garbage collector's behavior changed.
Logical AND (&&) - JavaScript
s "" a9 = false && '' // f && f returns false conversion rules for booleans converting and to or the following operation involving booleans: bcondition1 && bcondition2 is always equal to: !(!bcondition1 || !bcondition2) converting or to and the following operation involving booleans: bcondition1 || bcondition2 is always equal to: !(!bcondition1 && !bcondition2) removing nested
parentheses as logical expressions are evaluated left to right, it is always possible to remove
parentheses from a complex expression following some rules.
Logical OR (||) - JavaScript
conversion rules for booleans converting and to or the following operation involving booleans: bcondition1 && bcondition2 is always equal to: !(!bcondition1 || !bcondition2) converting or to and the following operation involving booleans: bcondition1 || bcondition2 is always equal to: !(!bcondition1 && !bcondition2) removing nested
parentheses as logical expressions are evaluated left to right, it is always possible to remove
parentheses from a complex expression following some rules.
new.target - JavaScript
this is also the case if the constructor is in a
parent class and was delegated from a child constructor.
typeof - JavaScript
using new operator // all constructor functions, with the exception of the function constructor, will always be typeof 'object' let str = new string('string'); let num = new number(100); typeof str; // it will return 'object' typeof num; // it will return 'object' let func = new function(); typeof func; // it will return 'function' need for
parentheses in syntax //
parentheses can be used for determining the data type of expressions.
void operator - JavaScript
it should be noted that the precedence of the void operator should be taken into account and that
parentheses can help clarify the resolution of the expression following the void operator: void 2 == '2'; // (void 2) == '2', returns false void (2 == '2'); // void (2 == '2'), returns undefined examples immediately invoked function expressions when using an immediately-invoked function expression, void can be used to force the function keyword to be treated as an expression instead of a declarat...
if...else - JavaScript
for example, do not use the following code: if (x = y) { /* do something */ } if you need to use an assignment in a conditional expression, a common practice is to put additional
parentheses around the assignment.
return - JavaScript
to avoid this problem (to prevent asi), you could use
parentheses: return ( a + b ); examples interrupt a function a function immediately stops at the point where return is called.
Statements and declarations - JavaScript
for creates a loop that consists of three optional expressions, enclosed in
parentheses and separated by semicolons, followed by a statement executed in the loop.
Trailing commas - JavaScript
furthermore, when using a rest parameters, trailing commas are not allowed: function f(,) {} // syntaxerror: missing formal parameter (,) => {}; // syntaxerror: expected expression, got ',' f(,) // syntaxerror: expected expression, got ',' function f(...p,) {} // syntaxerror: parameter after rest parameter (...p,) => {} // syntaxerror: expected closing
parenthesis, got ',' trailing commas in destructuring a trailing comma is also allowed on the left-hand side when using destructuring assignment: // array destructuring with trailing comma [a, b,] = [1, 2]; // object destructuring with trailing comma var o = { p: 42, q: true, }; var {p, q,} = o; again, when using a rest element, a syntaxerror will be thrown: var [a, ...b,] = [1, 2, 3]; // sy...
<mfenced> - MathML
the deprecated mathml <mfenced> element used to provide the possibility to add custom opening and closing
parentheses (such as brackets) and separators (such as commas or semicolons) to an expression.
MathML element reference - MathML
mathml presentation elements a to z math <math> (top-level element) a <maction> (binded actions to sub-expressions) <maligngroup> (alignment group) <malignmark> (alignment points) e <menclose> (enclosed contents) <merror> (enclosed syntax error messages) f <mfenced> (
parentheses) <mfrac> (fraction) g <mglyph> (displaying non-standard symbols) i <mi> (identifier) l <mlabeledtr> (labeled row in a table or a matrix) <mlongdiv> (long division notation) m <mmultiscripts> (prescripts and tensor indices) n <mn> (number) o <mo> (operator) <mover> (overscript) p <mpadded> (space around content) <mphantom> (invisible content with reser...
Privacy, permissions, and information security
for example, in firefox 73, the user permission requests were revised so that when an <iframe> uses the allow keyword to delegate permission to the embeded document, the browser asks the user to grant the
parent document permission to use the resource, and that permission is then shared with the embedded content that requested the resource to begin with.
Mobile first - Progressive web apps (PWAs)
i had to make sure both of these were not direct children of the <article>, otherwise the following would not work: #bottom, #top { font-size: 0.8em; position:absolute; right: 1em; text-decoration: none; } #top { color: white; top: 0.5em; } #bottom { bottom: 0.5em; } i also set their
parents to be positioned relatively, so they would become the positioning contexts of the absolutely positioned elements (you don't want them to be positioned relative to the <body> element.) adding a mobile first layout the above layout is fine for narrower layouts, but it doesn't work very well when you get wider than about 480px.
fr - SVG: Scalable Vector Graphics
> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="trans
parent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sans-serif" font-size="10pt">(cx,cy)</text> </svg> specifications specification s...
fx - SVG: Scalable Vector Graphics
> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="trans
parent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sans-serif" font-size="10pt">(cx,cy)</text> </svg> specifications specification stat...
fy - SVG: Scalable Vector Graphics
> <defs> <radialgradient id="gradient" cx="0.5" cy="0.5" r="0.5" fx="0.35" fy="0.35" fr="5%"> <stop offset="0%" stop-color="red"/> <stop offset="100%" stop-color="blue"/> </radialgradient> </defs> <rect x="10" y="10" rx="15" ry="15" width="100" height="100" fill="url(#gradient)" stroke="black" stroke-width="2"/> <circle cx="60" cy="60" r="50" fill="trans
parent" stroke="white" stroke-width="2"/> <circle cx="35" cy="35" r="2" fill="white" stroke="white"/> <circle cx="60" cy="60" r="2" fill="white" stroke="white"/> <text x="38" y="40" fill="white" font-family="sans-serif" font-size="10pt">(fx,fy)</text> <text x="63" y="63" fill="white" font-family="sans-serif" font-size="10pt">(cx,cy)</text> </svg> specifications specification stat...
name - SVG: Scalable Vector Graphics
unlike the syntax allowed between the
parentheses of the local(…) clause in an @font-face rule src descriptor, the font name specified in this attribute is not surrounded in single or double quotes.
side - SVG: Scalable Vector Graphics
dy, svg { height: 100%; } text { font: 25px arial, helvelica, sans-serif; } <svg viewbox="0 0 420 200" xmlns="http://www.w3.org/2000/svg"> <text> <textpath href="#circle1" side="left">text left from the path</textpath> </text> <text> <textpath href="#circle2" side="right">text right from the path</textpath> </text> <circle id="circle1" cx="100" cy="100" r="70" fill="trans
parent" stroke="silver"/> <circle id="circle2" cx="320" cy="100" r="70" fill="trans
parent" stroke="silver"/> </svg> usage notes value left | right default value left animatable yes left this value places the text on the left side of the path (relative to the path direction).
visibility - SVG: Scalable Vector Graphics
teen elements: <a>, <altglyph>, <audio>, <canvas>, <circle>, <ellipse>, <foreignobject>, <iframe>, <image>, <line>, <path>, <polygon>, <polyline>, <rect>, <text>, <textpath>, <tref>, <tspan>, <video> html, body, svg { height: 100%; } <svg viewbox="0 0 220 120" xmlns="http://www.w3.org/2000/svg"> <rect x="10" y="10" width="200" height="100" stroke="black" stroke-width="5" fill="trans
parent" /> <g stroke="seagreen" stroke-width="5" fill="skyblue"> <rect x="20" y="20" width="80" height="80" visibility="visible" /> <rect x="120" y="20" width="80" height="80" visibility="hidden"/> </g> </svg> usage notes value visible | hidden | collapse default value visible animatable yes visible this value indicates that the element will...
Linking - SVG: Scalable Vector Graphics
when svg documents are embedded within a
parent html document using the tag: page1.html: <html> <body> <p>this is a svg button:</p> <object width="100" height="50" type="image/svg+xml" data="button.svg"/> </body> </html> button.svg: <?xml version="1.1" encoding="utf-8"?> <svg xmlns="http://www.w3.org/2000/svg"> <a xlink:href="page2.html" target="_top"> <g> <!-- button graphical elements here --> </g> </a> </svg> the specification says that the browser should navigate to the html document page2.html when the button graphics are clicked.
mimeTypes.rdf corruption - SVG: Scalable Vector Graphics
symptoms previously you were able to open and display svg content with mozilla, but for no ap
parent reason its behaviour changes and now it always pops up the "open or save file" dialog when you try to open local svg files, and displays the "additional plugins are required to display all the media on this page" bar when you try to view html with embedded svg.
Web security
csp: frame-ancestors the http content-security-policy (csp) frame-ancestors directive specifies valid
parents that may embed a page using <frame>, <iframe>, <object>, <embed>, or <applet>.
xml:base - XML: Extensible Markup Language
the base uri of an element is: the base uri specified by an xml:base attribute on the element, if one exists, otherwise the base uri of the element's
parent element within the document entity or external entity, if one exists, otherwise the base uri of the document entity or external entity containing the element.
ancestor - XPath
the ancestor axis indicates all the ancestors of the context node beginning with the
parent node and traveling through to the root node.
descendant-or-self - XPath
attribute and namespace nodes are not included - the
parent of an attribute node is an element node, but attribute nodes are not the children of their
parents.
descendant - XPath
attribute and namespace nodes are not included - the
parent of an attribute node is an element node, but attribute nodes are not the children of their
parents.
following-sibling - XPath
the following-sibling axis indicates all the nodes that have the same
parent as the context node and appear after the context node in the source document.
preceding-sibling - XPath
the preceding-sibling axis indicates all the nodes that have the same
parent as the context node and appear before the context node in the source document.
Comparison of CSS Selectors and XPath - XPath
xpath feature css equivalent ancestor,
parent or preceding-sibling axis :has() selector attribute axis attribute selectors child axis child combinator descendant axis descendant combinator following-sibling axis general sibling combinator or adjacent sibling combinator self axis :scope or :host selector ...
XPath snippets - XPath
xml.documentelement) { pos = 0; tempitem2 = el; while(tempitem2) { if (tempitem2.nodetype === 1 && tempitem2.nodename === el.nodename) { // if it is element_node of the same name pos += 1; } tempitem2 = tempitem2.previoussibling; } xpath = "*[name()='"+el.nodename+"' and namespace-uri()='"+(el.namespaceuri===null?'':el.namespaceuri)+"']["+pos+']'+'/'+xpath; el = el.
parentnode; } xpath = '/*'+"[name()='"+xml.documentelement.nodename+"' and namespace-uri()='"+(el.namespaceuri===null?'':el.namespaceuri)+"']"+'/'+xpath; xpath = xpath.replace(/\/$/, ''); return xpath; } resources xpath forum discussion on this topic see also introduction to using xpath in javascript ...