Search completed in 1.19 seconds.
3 results for "nsidomhtmlelement":
Introduction to XPCOM for the DOM
Mozilla › Tech › XPCOM › Introduction to XPCOM for the DOM
e no problem understanding this discussion. Raw interface inheritance The first concept is easy to grasp, it's the "interface inheritance". If we look at any interface definition, in XPIDL or as a header, we can see that it always inherits from another interface. For instance, we have the following "chain" for the nsIDOMHTMLAnchorElement interface: nsISupports -> nsIDOMNode -> nsIDOMElement -> nsIDOMHTMLElement -> nsIDOMHTMLAnchorElement. This means that, if a class implements one of the interfaces in the chain, it has to also implement all the ancestors of that interface. For example if a real class implements nsIDOMElement, it also has to implement nsIDOMNode and nsISupports. Theory Now that we know what interface inheritance means, we can look at more generic cases. We will first see this in a ver...
...th a lot of classes and interfaces, but you can always reduce the problem to the above situation. Example Let's take a look at a simple example, the HTML Anchor Element. First, let's illustrate the interface inheritance rules. If we look at nsIDOMHTMLAnchorElement (which contains the methods and properties defined by the W3C for this element), we can see that it inherits from another interface, nsIDOMHTMLElement: interface nsIDOMHTMLAnchorElement : nsIDOMHTMLElement This means that whatever class implements the nsIDOMHTMLAnchorElement interface will also have to implement the nsIDOMHTMLElement interface. If we look at nsIDOMHTMLElement, we can see that it inherits from nsIDOMElement, which inherits from nsIDOMNode, which inherits from nsISupports. Any class implementing nsIDOMHTMLAnchorElement will ha...
nsIDOMHTMLMediaElement
Mozilla › Tech › XPCOM › Reference › Interface › nsIDOMHTMLMediaElement
See that page for details. ...
nsIDOMHTMLSourceElement
Mozilla › Tech › XPCOM › Reference › Interface › nsIDOMHTMLSourceElement
It does not specify anything on its own. ...