W3C home > Mailing lists > Public > www-dom@w3.org > October to December 1999

Re: DOM level 2 StyleSheets : What means "binding-specific casting methods"

From: Philippe Le Hegaret <plh@w3.org>
Date: Wed, 27 Oct 1999 11:41:33 +0200
Message-ID: <3816C8CD.745B6C0E@w3.org>
To: Lee Hyoung Moon <darkness@www.paichai.ac.kr>
CC: www-dom@w3.org
Lee Hyoung Moon wrote:
> 
> Please tell me...
> I don't understand this sentence.
> " binding-specific casting methods ".
> 
> An instance of the LinkStyle interface can be
> obtained using binding-specific casting methods on an instance of a linking
> node (HTMLLinkElement [p.76] , HTMLStyleElement [p.78] or
> ProcessingInstruction [p.64] in DOM Level 2).

  If your DOM implementation supports "StyleSheets", the following operation
are allowed :

Java:
 ((LinkStyle) processingInstruction).sheet

Ecmascript:
  processingInstruction.sheet

  The main reason to not have a ProcessingInstructionStyle (inherits
from LinkStyle and ProcessingInstruction) was to avoid diamond inheritance.

Regards,
Philippe.
---------
Philippe Le Hegaret - http://www.w3.org/People/LeHegaret/
World Wide Web Consortium (W3C), DOM Activity Lead
Received on Wednesday, 27 October 1999 05:42:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT