A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "DOM XSLTProcessor"

From WHATWG Wiki
Jump to: navigation, search
(add missing [)
(IDL: Add CEReactions)
Line 9: Line 9:
 
interface XSLTProcessor {
 
interface XSLTProcessor {
 
   void importStylesheet(Node style);
 
   void importStylesheet(Node style);
   DocumentFragment transformToFragment(Node source, Document output);
+
   [CEReactions] DocumentFragment transformToFragment(Node source, Document output);
   Document transformToDocument(Node source);
+
   [CEReactions] Document transformToDocument(Node source);
 
   void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName, any value);
 
   void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName, any value);
 
   any getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName);
 
   any getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName);

Revision as of 19:30, 20 April 2016

Issue for standardization

https://github.com/whatwg/dom/issues/181

IDL

[Constructor]
interface XSLTProcessor {
  void importStylesheet(Node style);
  [CEReactions] DocumentFragment transformToFragment(Node source, Document output);
  [CEReactions] Document transformToDocument(Node source);
  void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName, any value);
  any getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName);
  void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, DOMString localName);
  void clearParameters();
  void reset();
};

MDN

https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor