Eric
Eric

Reputation: 97661

What is the javascript `window.Notation` object?

I was playing around in the chrome developer console, and found the Notation member of window. However, it's native code, and any invocation seems to throw TypeError: Illegal constructor. It doesn't seem to be present in IE10.

What is this object?

Upvotes: 2

Views: 117

Answers (1)

Denys Séguret
Denys Séguret

Reputation: 382424

From the MDN

NOTE: This is not implemented in Mozilla

Represents a DTD notation (read-only). May declare format of an unparsed entity or formally declare the document's processing instruction targets. Inherits methods and properties from Node. Its nodeName is the notation name. Has no parent.

The w3.org explains why any constructor call fails :

The DOM Core does not support editing Notation nodes; they are therefore readonly.

I'm not sure this still makes a lot of sense now that the web is largely going away frow XML and XHTML...

Upvotes: 2

Related Questions