@glimmer/interfaces
Advanced tools
Comparing version 0.25.1 to 0.26.0
@@ -13,14 +13,14 @@ import { FIXME, Option } from '../core'; | ||
export enum NodeType { | ||
Element, | ||
Attribute, | ||
Text, | ||
CdataSection, | ||
EntityReference, | ||
Entity, | ||
ProcessingInstruction, | ||
Comment, | ||
Document, | ||
DocumentType, | ||
DocumentFragment, | ||
Notation | ||
Element = 1, | ||
Attribute = 2, | ||
Text = 3, | ||
CdataSection = 4, | ||
EntityReference = 5, | ||
Entity = 6, | ||
ProcessingInstruction = 7, | ||
Comment = 8, | ||
Document = 9, | ||
DocumentType = 10, | ||
DocumentFragment = 11, | ||
Notation = 12 | ||
} | ||
@@ -35,8 +35,14 @@ | ||
parentNode: Option<Node>; | ||
nodeType: NodeType | number; | ||
nodeType: NodeType; | ||
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; | ||
@@ -52,11 +58,34 @@ createElementNS(namespace: Namespace, tag: string): Element; | ||
export interface Text extends CharacterData {} | ||
export interface TokenList { | ||
[index: number]: string; | ||
length: number; | ||
export interface Comment extends CharacterData {} | ||
add(s: string): void; | ||
remove(s: string): void; | ||
contains(s: string): boolean; | ||
} | ||
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; | ||
firstChild: Option<Node>; | ||
lastChild: Option<Node>; | ||
attributes: Attributes; | ||
removeAttribute(name: string): void; | ||
@@ -63,0 +92,0 @@ removeAttributeNS(namespaceURI: string, name: string): void; |
{ | ||
"name": "@glimmer/interfaces", | ||
"version": "0.25.1", | ||
"version": "0.26.0", | ||
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/interfaces", | ||
"dependencies": { | ||
"@glimmer/wire-format": "^0.25.1" | ||
"@glimmer/wire-format": "^0.26.0" | ||
}, | ||
@@ -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
5450
130
+ Added@glimmer/util@0.26.2(transitive)
+ Added@glimmer/wire-format@0.26.2(transitive)
- Removed@glimmer/util@0.25.8(transitive)
- Removed@glimmer/wire-format@0.25.8(transitive)
Updated@glimmer/wire-format@^0.26.0