Skip to content

Commit 733e83b

Browse files
committed
Change to simplify doctypes
Closes GH-19.
1 parent 9705cf0 commit 733e83b

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

readme.md

+1-19
Original file line numberDiff line numberDiff line change
@@ -289,25 +289,12 @@ For example, `<div class="alpha bravo"></div>` is represented as `['alpha',
289289
```idl
290290
interface Doctype <: Node {
291291
type: "doctype"
292-
name: string
293-
public: string?
294-
system: string?
295292
}
296293
```
297294

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

301-
A `name` field must be present.
302-
303-
A `public` field can be present.
304-
If present, it must be set to a string, and represents the document’s public
305-
identifier.
306-
307-
A `system` field can be present.
308-
If system, it must be set to a string, and represents the document’s system
309-
identifier.
310-
311298
For example, the following HTML:
312299

313300
```html
@@ -317,12 +304,7 @@ For example, the following HTML:
317304
Yields:
318305

319306
```js
320-
{
321-
type: 'doctype',
322-
name: 'html',
323-
public: null,
324-
system: null
325-
}
307+
{type: 'doctype'}
326308
```
327309

328310
### `Comment`

0 commit comments

Comments
 (0)