@glimmer/interfaces
Advanced tools
Comparing version 0.26.0 to 0.26.1
@@ -13,14 +13,14 @@ import { FIXME, Option } from '../core'; | ||
export enum NodeType { | ||
Element = 1, | ||
Attribute = 2, | ||
Text = 3, | ||
CdataSection = 4, | ||
EntityReference = 5, | ||
Entity = 6, | ||
ProcessingInstruction = 7, | ||
Comment = 8, | ||
Document = 9, | ||
DocumentType = 10, | ||
DocumentFragment = 11, | ||
Notation = 12 | ||
Element, | ||
Attribute, | ||
Text, | ||
CdataSection, | ||
EntityReference, | ||
Entity, | ||
ProcessingInstruction, | ||
Comment, | ||
Document, | ||
DocumentType, | ||
DocumentFragment, | ||
Notation | ||
} | ||
@@ -35,14 +35,8 @@ | ||
parentNode: Option<Node>; | ||
nodeType: NodeType; | ||
nodeType: NodeType | number; | ||
nodeValue: Option<string>; | ||
firstChild: Option<Node>; | ||
lastChild: Option<Node>; | ||
} | ||
export interface DocumentFragment extends Node { | ||
nodeType: NodeType.DocumentFragment; | ||
} | ||
export interface Document extends Node { | ||
nodeType: NodeType.Document; | ||
createElement(tag: string): Element; | ||
@@ -58,34 +52,11 @@ createElementNS(namespace: Namespace, tag: string): Element; | ||
export interface TokenList { | ||
[index: number]: string; | ||
length: number; | ||
export interface Text extends CharacterData {} | ||
add(s: string): void; | ||
remove(s: string): void; | ||
contains(s: string): boolean; | ||
} | ||
export interface Comment extends CharacterData {} | ||
export interface Text extends CharacterData { | ||
nodeType: NodeType.Text; | ||
} | ||
export interface Comment extends CharacterData { | ||
nodeType: NodeType.Comment; | ||
} | ||
export interface Attribute { | ||
name: string; | ||
value: string; | ||
} | ||
export interface Attributes { | ||
[index: number]: Attribute; | ||
length: number; | ||
} | ||
export interface Element extends Node { | ||
nodeType: NodeType.Element; | ||
namespaceURI: Option<string>; | ||
tagName: string; | ||
attributes: Attributes; | ||
firstChild: Option<Node>; | ||
lastChild: Option<Node>; | ||
removeAttribute(name: string): void; | ||
@@ -92,0 +63,0 @@ removeAttributeNS(namespaceURI: string, name: string): void; |
{ | ||
"name": "@glimmer/interfaces", | ||
"version": "0.26.0", | ||
"version": "0.26.1", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/interfaces", | ||
"dependencies": { | ||
"@glimmer/wire-format": "^0.26.0" | ||
"@glimmer/wire-format": "^0.26.1" | ||
}, | ||
@@ -8,0 +8,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4863
106
Updated@glimmer/wire-format@^0.26.1