Skip to content

Commit

Permalink
Change to simplify doctypes
Browse files Browse the repository at this point in the history
Closes GH-19.
  • Loading branch information
wooorm committed Apr 14, 2021
1 parent 9705cf0 commit 733e83b
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,25 +289,12 @@ For example, `<div class="alpha bravo"></div>` is represented as `['alpha',
```idl
interface Doctype <: Node {
type: "doctype"
name: string
public: string?
system: string?
}
```

**Doctype** ([**Node**][dfn-unist-node]) represents a
[DocumentType][concept-documenttype] ([\[DOM\]][dom]).

A `name` field must be present.

A `public` field can be present.
If present, it must be set to a string, and represents the document’s public
identifier.

A `system` field can be present.
If system, it must be set to a string, and represents the document’s system
identifier.

For example, the following HTML:

```html
Expand All @@ -317,12 +304,7 @@ For example, the following HTML:
Yields:

```js
{
type: 'doctype',
name: 'html',
public: null,
system: null
}
{type: 'doctype'}
```

### `Comment`
Expand Down

0 comments on commit 733e83b

Please sign in to comment.