Search completed in 1.31 seconds.
HTMLLegendElement - Web APIs
It inherits properties and methods from the HTMLElement interface. ...
...,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">HTMLElement</text></a><polyline points="491,25 501,20 501,30 491,25" stroke="#D4DDE4" fill="none"/><line x1="501" y1="25" x2="509" y2="25" stroke="#D4DDE4"/><line x1="509" y1="25" x2="509" y2="90" stroke="#D4DDE4"/><line x1="509" y1="90" x2="492" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/HTMLLeg
endElement" target="_top"><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">HTMLLeg
endElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits propert...
...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">HTMLLeg
endElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Properties Inherits properties from its parent, HTMLElement. HTMLLeg
endElement.form Read only Is a HTMLFormElement representing the form that this legend belongs to. 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. Otherwise, it returns null. HTMLLeg
endElement.accessKey Is a DOMString representing a single-character access key to give access to the element. HTMLLegend...
...And 2 more matches
SVGFEBlendElement - Web APIs
The SVGFEBl
endElement interface corresponds to the <feBlend> element. <div id="interfaceDiagram" style="display: inline-block; position: relative; width: 100%; padding-bottom: 23.333333333333332%; vertical-align: middle; overflow: hidden;"><svg style="display: inline-block; position: absolute; top: 0; left: 0;" viewbox="-50 0 600 140" preserveAspectRatio="xMinYMin meet"><a xlink:href="/docs/Web/API/EventTarget" target="_top"><rect x="1" y="1" width="110" height="50" fill="#fff" stroke="#D4DDE4" stroke-width="2px" /><text x="56" y="30" font-size="12px" font-family="Consolas,Monaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">EventTarget</text></a><polyline points="111,25 121,20 121,30 111,25" stroke="#D4DDE4" fill="none"/><line x1="121" y1="25" x2="...
...o,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGElement</text></a><polyline points="481,25 491,20 491,30 481,25" stroke="#D4DDE4" fill="none"/><line x1="491" y1="25" x2="499" y2="25" stroke="#D4DDE4"/><line x1="499" y1="25" x2="499" y2="90" stroke="#D4DDE4"/><line x1="499" y1="90" x2="482" y2="90" stroke="#D4DDE4"/><a xlink:href="/docs/Web/API/SVGFEBl
endElement" target="_top"><rect x="311" y="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">SVGFEBl
endElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Constants Name ...
... SVG_FEBLEND_MODE_SCREEN 3 Corresponds to the value screen. SVG_FEBLEND_MODE_DARKEN 4 Corresponds to the value darken. SVG_FEBLEND_MODE_LIGHTEN 5 Corresponds to the value lighten. Properties This interface also inherits properties from its parent interface, SVGElement, and implements properties of SVGFilterPrimitiveStandardAttributes. SVGFEBl
endElement.in1 Read only An SVGAnimatedString corresponding to the in attribute of the given element. SVGFEBl
endElement.in2 Read only An SVGAnimatedString corresponding to the in2 attribute of the given element. SVGFEBl
endElement.mode Read only An SVGAnimatedEnumeration corresponding to the mode attribute of the given element. It takes one of the SVG_FEBLEND_MODE_* constants defined on this interfac...
...of the given element. It takes one of the SVG_FEBLEND_MODE_* constants defined on this interface. Methods This interface does not provide any specific methods, but implements those of its parent, SVGElement, and implements methods of SVGFilterPrimitiveStandardAttributes. Specifications Specification Status Comment Filter Effects Module Level 1The definition of 'SVGFEBl
endElement' in that specification. Working Draft No change Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'SVGFEBl
endElement' in that specification. Recommendation Initial definition ...
XPCOM array guide
ropriate. When the array can or should be modified, then use nsIMutableArray: // array is read-only because it uses nsIArray void PrintSize(nsIArray* elements) { PRUint32 count; elements->GetLength(&count); printf("There are %d elements.\n", count); } // using nsIMutableArray, so callee may modify void TweakArray(nsIMutableArray* elements) { elements->RemoveElementAt(0); elements->App
endElement(newElement, PR_FALSE); } While it is usually possible to call QueryInterface on an nsIArray to get access to the nsIMutableArray interface, this is against convention and it should be avoided. // no need for the double-pointer, and this violates XPCOM rules // which expect acess to a new object void TweakArray(nsIMutableArray** elements) { // ugh, extra indirection! *elements->RemoveElemen...
...} While it is usually possible to call QueryInterface on an nsIArray to get access to the nsIMutableArray interface, this is against convention and it should be avoided. // no need for the double-pointer, and this violates XPCOM rules // which expect acess to a new object void TweakArray(nsIMutableArray** elements) { // ugh, extra indirection! *elements->RemoveElementAt(0); *elements->App
endElement(newElement, PR_FALSE); } In-place enumeration When accessing all members of an nsIArray, in-place enumeration is preferred over indexed access. However, I seem to have forgotten to implement that. Good thing the interface is under review. Sorry! Enumerators Creating an enumerator from an nsIArray is easy. The method Enumerate() returns a nsISimpleEnumerator which accesses all the elements in...
...s to store a list of well-typed objects. It is also usually declared as an inline member rather than a pointer. For example, here is its use in a class: class MediaList { public: void AddMedium(const nsString& aMedium); private: nsTArray<nsString> mMedia; }; // typesafety of mMedia ensures that we only append an nsString void NodeContainer::AddMedium(const nsString& aMedium) { mMedia.App
endElement(aMedium); } nsTArray<T> can also be declared on the stack to collect a temporary list of objects and manipulate them. When the object goes out of scope, all its members have their destructors called. Note that if the nsTArray<T> holds pointers to objects, the objects will not be deleted (and hence not have their destructors called). You can work around this by using nsTArray<UniquePtr<T>> inst...
...ad-only. Here is an example with a read-only and a writable array: // array is read-only because of const void PrintSize(const nsTArray<nsElement>& elements) { printf("There are %d elements.\n", elements.Length()); } // no const, so we can modify the array void TweakArray(nsTArray<nsElement>& elements, const nsElement& newElement) { elements.RemoveElementAt(0); elements.App
endElement(newElement); } In-place enumeration There are no enumerator objects that work on an nsTArray<T>. Enumerators Enumerators are very simple, structure-free objects for visiting each member of a set of objects. The enumerators are used as a generic interface for arrays, hashtables, and other constructs which contain one or more objects. When designing public interfaces, enumerators are the prefe...
Styling a Tree - Archive of obsolete content
ties() function, to add a property 'makeItBlue' for cells in every fourth row. (We don't use getRowProperties() as the text color will not be inherited into each cell.) Prior to Gecko 22 the properties object that is passed as the last argument to the getCellProperties() is an XPCOM object that implements nsISupportsArray. It is really just an XPCOM version of an array. ...
...on of an array. It contains a function App
endElement() which can be used to add an element to the array. We can use the interface nsIAtomService to construct string atoms for the properties. getCellProperties: function(row,col,props){ if ((row %4) == 0){ var aserv=Components.classes["@mozilla.org/atom-service;1"]. getService(Components.interfaces.nsIAtomService); props.App
endElement(aserv.getAtom("makeItBlue")); } } The properties list requires an array of atom objects, which can be thought of as constant strings. We create them using the XPCOM interface nsIAtomService and add them to the array using the App
endElement() function. Here, we create an atom 'makeItBlue'. You can call App
endElement() again to add additional properties. From Gecko 22 your function should retu...
... the property. getCellProperties: function(row,col){ if ((row %4) == 0){ return "makeItBlue"; } } To support Gecko versions before and after this change use. getCellProperties: function(row,col,props){ if ((row %4) == 0){ if (props) { var aserv=Components.classes["@mozilla.org/atom-service;1"]. getService(Components.interfaces.nsIAtomService); props.App
endElement(aserv.getAtom("makeItBlue")); } else { return "makeItBlue"; } } } This function would be defined as part of a view object. It first checks to see which row is being requested and sets a property for cells in every fourth row. Example style sheet treechildren::-moz-tree-row(selected) { background-color: #FFFFAA; } treechildren::-moz-tree-row(odd) { ba...
SAX - Archive of obsolete content
(uri, localName, qName, /*nsISAXAttributes*/ attributes) { var attrs = []; for(var i=0; i<attributes.length; i++) { attrs.push(attributes.getQName(i) + "='" + attributes.getValue(i) + "'"); } print("startElement: namespace='" + uri + "', localName='" + localName + "', qName='" + qName + "', attributes={" + attrs.join(",") + "}"); },
endElement: function(uri, localName, qName) { print("
endElement: namespace='" + uri + "', localName='" + localName + "', qName='" + qName + "'"); }, characters: function(value) { print("characters: " + value); }, processingInstruction: function(target, data) { print("processingInstruction: target='" + target + "', data='" + data + "'"); }, ignorableWhitespace: ...
...ace. ...
...Reader.parseFromString("<f:a xmlns:f='g' d='1'><BBQ/></f:a>", "text/xml"); This call results in the following output (assuming the content handler from the example above is used): startDocument startElement: namespace='g', localName='a', qName='f:a', attributes={d='1'} startElement: namespace='', localName='BBQ', qName='BBQ', attributes={}
endElement: namespace='', localName='BBQ', qName='BBQ'
endElement: namespace='g', localName='a', qName='f:a' endDocument ...
nsICollection
xpcom/ds/nsICollection.idlScriptable This interface represents a list of nsISupports items. It provides basic operations on those items like: getting, setting, appending, removing, and so on. ...
... Clear() Removes all items from the collection. void Clear(); Parameters None. Count() Returns the number of items in the collection. PRUint32 Count(); Parameters None. Return value Number of items in the list. Enumerate() Returns an nsIEnume...
...(); nsIEnumerator Enumerate(); nsISupports GetElementAt(in PRUint32 index); void QueryElementAt(in PRUint32 index, in nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result); void RemoveElement(in nsISupports item); void SetElementAt(in PRUint32 index, in nsISupports item); Methods App
endElement() Appends a new item to the collection. void App
endElement( in nsISupports item ) Parameters item nsISupports item to be appended to the list. Clear() Removes all items from the collection. void Clear(); Parameters None. Count() Returns the number of items in the collection. PRUint32 Count(); Parameters None. Return value Number of items in the list. Enumerate() Returns an nsIEnumerator that lets you iterate over the items in the collectio...
nsISupportsArray
xpcom/ds/nsISupportsArray.idlScriptable Please add a summary to this article. ...
...Return value Compact() void Compact(); Parameters None. DeleteElementAt() void DeleteElementAt( in unsigned long aIndex ); Parameters aIndex DeleteLastElement() void DeleteLastElement( in nsISupports aElement ); Parameters aElement ...
...Return value Compact() void Compact(); Parameters None. DeleteElementAt() void DeleteElementAt( in unsigned long aIndex ); Parameters aIndex DeleteLastElement() void DeleteLastElement( in nsISupports aElement ); Parameters aElement Violates the XPCOM int...
Address Book examples
ifyCard to save the card in the database. addressbook.modifyCard(card); Deleting Contacts Once you have obtained a card(s) from an nsIAbDirectory (see above) you can delete one or more simply by calling the deleteCards function: let cardsToDelete = Components.classes["@mozilla.org/array;1"] .createInstance(Components.interfaces.nsIMutableArray); cardsToDelete.app
endElement(card); // Repeat append as necessary addressbook.deleteCards(cardsToDelete); How do I add and use my own properties? Use the setProperty/getProperty functions on nsIAbCard to set your property in the same way as you would do with normal properties: card.setProperty("Random1", "xyz"); card.setProperty("Random2", "foo"); ... my value = card.getProperty("Random1"); Note: Local (mork) address ...
... parentDirectory.addMailList(mailList); Modifying a Mailing List To modify a mailing list, you first need an object that implements nsIAbCard. This can be obtained via searching in address books as mentioned above. Once you have the nsIAbCard object you can modify the name...
...If you have it in its nsIAbCard form, then you can delete it in the same way as per deleting a contact. If you have it in its nsIAbDirectory form, then you can delete it like this: var abManager = Component...
Index - Web APIs
sn't in a form. 1757 HTMLLabelElement.htmlFor Forms, HTML DOM, HTMLLabelElement, Reference, htmlFor The HTMLLabelElement.htmlFor property reflects the value of the for content property. That means that this script-accessible property is used to set and read the value of the content property for, which is the ID of the label's associated control element. 1758 HTMLLeg
endElement API, HTML DOM, Interface, NeedsNewLayout, Reference The HTMLLeg
endElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. 1759 HTMLLinkElement API, HTML DOM, HTMLLInkElement, Interface, Reference The HTMLLinkElement interface represents reference information for external resou...
...erence, SVG, WebAPI The SVGEvent interface represents the event object for most SVG-related events. 3739 SVGExternalResourcesRequired API, Deprecated, Reference, SVG, SVG DOM The SVGExternalResourcesRequired interface defines an interface which applies to all elements where this element or one of its descendants can reference an external resource. 3740 SVGFEBl
endElement API, NeedsExample, Reference, SVG, SVG DOM The SVGFEBl
endElement interface corresponds to the <feBlend> element. 3741 SVGFEColorMatrixElement API, NeedsBrowserCompatibility, NeedsExample, NeedsMobileBrowserCompatibility, Reference, SVG, SVG DOM The SVGFEColorMatrixElement interface corresponds to the <feColorMatrix> element. 3742 SVGFEComponentTransferEle...
Web APIs
MLDialogElement HTMLDivElement HTMLDocument HTMLElement HTMLEmbedElement HTMLFieldSetElement HTMLFontElement HTMLFormControlsCollection HTMLFormElement HTMLFrameSetElement HTMLHRElement HTMLHeadElement HTMLHeadingElement HTMLHtmlElement HTMLHyperlinkElementUtils HTMLIFrameElement HTMLImageElement HTMLInputElement HTMLIsIndexElement HTMLKeygenElement HTMLLIElement HTMLLabelElement HTMLLeg
endElement HTMLLinkElement HTMLMapElement HTMLMarqueeElement HTMLMediaElement HTMLMenuElement HTMLMenuItemElement HTMLMetaElement HTMLMeterElement HTMLModElement HTMLOListElement HTMLObjectElement HTMLOptGroupElement HTMLOptionElement HTMLOptionsCollection HTMLOrForeignElement HTMLOutputElement HTMLParagraphElement HTMLParamElement HTMLPictureElement HTMLPreElement HTMLProgressElement HTMLQuoteEleme...
...dLengthList SVGAnimatedNumber SVGAnimatedNumberList SVGAnimatedPoints SVGAnimatedPreserveAspectRatio SVGAnimatedRect SVGAnimatedString SVGAnimatedTransformList SVGAnimationElement SVGCircleElement SVGClipPathElement SVGColorProfileElement SVGComponentTransferFunctionElement SVGCursorElement SVGDefsElement SVGDescElement SVGElement SVGEllipseElement SVGEvent SVGExternalResourcesRequired SVGFEBl
endElement SVGFEColorMatrixElement SVGFEComponentTransferElement SVGFECompositeElement SVGFEConvolveMatrixElement SVGFEDiffuseLightingElement SVGFEDisplacementMapElement SVGFEDistantLightElement SVGFEDropShadowElement SVGFEFloodElement SVGFEFuncAElement SVGFEFuncBElement SVGFEFuncGElement SVGFEFuncRElement SVGFEGaussianBlurElement SVGFEImageElement SVGFEMergeElement SVGFEMergeNodeElement SVGFEMorphologyElem...
mozIStorageAggregateFunction
stmt.executeStep()) { // handle the results } } finally { stmt.reset(); } C++ // First, create our class that will represent our function. ...
nsIMutableArray
created as a side effect of insertElementAt(). Conversely, if insertElementAt() is never used, and null elements are never explicitly added to the array, then it is guaranteed that nsIArray.queryElementAt() will never return a null value. Any of these methods may throw NS_ERROR_OUT_OF_MEMORY when the array must grow to complete the call, but the allocation fails. Method overview void app
endElement(in nsISupports element, in boolean weak); void clear(); void insertElementAt(in nsISupports element, in unsigned long index, in boolean weak); void removeElementAt(in unsigned long index); void replaceElementAt(in nsISupports element, in unsigned long index, in boolean weak); Methods app
endElement() Append an element at the end of the array. void appendE...
nsITreeView
Code that is forced to march down the view looking at levels can optimize the march by starting at afterIndex+1. boolean hasNextSibling( in long rowIndex, in long afterIndex ); Parameters rowIndex The index of the item. afterIndex The index of t...
Document Object Model (DOM) - Web APIs
s SVGAElement SVGAltGlyphElement SVGAltGlyphDefElement SVGAltGlyphItemElement SVGAnimationElement SVGAnimateElement SVGAnimateColorElement SVGAnimateMotionElement SVGAnimateTransformElement SVGCircleElement SVGClipPathElement SVGColorProfileElement SVGComponentTransferFunctionElement SVGCursorElement SVGDefsElement SVGDescElement SVGElement SVGEllipseElement SVGFEBl
endElement SVGFEColorMatrixElement SVGFEComponentTransferElement SVGFECompositeElement SVGFEConvolveMatrixElement SVGFEDiffuseLightingElement SVGFEDisplacementMapElement SVGFEDistantLightElement SVGFEDropShadowElement SVGFEFloodElement SVGFEFuncAElement SVGFEFuncBElement SVGFEFuncGElement SVGFEFuncRElement SVGFEGaussianBlurElement SVGFEImageElement SVGFEMergeElement SVGFEMergeNodeElement S...
The HTML DOM API - Web APIs
ButtonElement HTMLCanvasElement HTMLDListElement HTMLDataElement HTMLDataListElement HTMLDetailsElement HTMLDialogElement HTMLDirectoryElement HTMLDivElement HTMLElement HTMLEmbedElement HTMLFieldSetElement HTMLFormElement HTMLHRElement HTMLHeadElement HTMLHeadingElement HTMLHtmlElement HTMLIFrameElement HTMLImageElement HTMLInputElement HTMLLIElement HTMLLabelElement HTMLLeg
endElement HTMLLinkElement HTMLMapElement HTMLMediaElement HTMLMenuElement HTMLMetaElement HTMLMeterElement HTMLModElement HTMLOListElement HTMLObjectElement HTMLOptGroupElement HTMLOptionElement HTMLOutputElement HTMLParagraphElement HTMLParamElement HTMLPictureElement HTMLPreElement HTMLProgressElement HTMLQuoteElement HTMLScriptElement HTMLSelectElement HTMLSlotElement HTMLSourceEle...
SVGAnimationElement - Web APIs
ment() Creates a begin instance time for the current time. The new instance time is added to the begin instance times list. The behavior of this method is equivalent to beginElementAt(0). SVGAnimationElement.beginElementAt() Creates a begin instance time for the current time plus the specified offset. The new instance time is added to the begin instance times list. SVGAnimationElement.
endElement() Creates an end instance time for the current time. The new instance time is added to the end instance times list. The behavior of this method is equivalent to
endElementAt(0). SVGAnimationElement.
endElementAt() Creates a end instance time for the current time plus the specified offset. The new instance time is added to the end instance times list. Events Listen to these events usi...
<legend> - HTML: Hypertext Markup Language
categories None. Permitted content Phrasing content and headings (h1-h6 elements). Tag omission None, both the starting and ending tag are mandatory. 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 HTMLLeg
endElement Attributes This element only includes the global attributes. Examples See <form> for examples on <legend>. Specifications Specification Status Comment HTML Living StandardThe definition of '<legend>' in that specification. Living Standard Definition of the legend element HTML5The definition of '<legend>' in that specification. Recommendati...
end - SVG: Scalable Vector Graphics
l offset value as defined in <offset-value> can be appended. <wallclock-sync-value> This value defines the animation end time as a real-world clock time. A valid wallclock-sync-value consists of the function wallclock() with a time value as parameter. The time syntax is based upon the syntax defined in ISO 8601. indefinite The end of the animation will be determined by an SVGAnimationElement.
endElement() method call. Examples Offset example <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1"> <!-- animated rectangles --> <rect x="10" y="35" height="15" width="0"> <animate attributeType="XML" attributeName="width" to="100" begin="0s" end="8s" fill="freeze" /> </rect> <rect x="10...
<feBlend> - SVG: Scalable Vector Graphics
two layers. The mode is defined by the mode attribute. Usage context CategoriesFilter primitive elementPermitted contentAny number of the following elements, in any order:<animate>, <set> Attributes Global attributes Core attributes Presentation attributes Filter primitive attributes class style Specific attributes in in2 mode DOM Interface This element implements the SVGFEBl
endElement interface. Example SVG <svg width="200" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="spotlight"> <feFlood result="floodFill" x="0" y="0" width="100%" height="100%" flood-color="green" flood-opacity="1"/> <feBlend in="SourceGraphic" in2="floodFill" mode="multiply"/> </filter> </defs> <imag...