Change to simplify doctypes · syntax-tree/hast@733e83b (original) (raw)

Original file line number Diff line number Diff line change
@@ -289,25 +289,12 @@ For example, `
` is represented as `['alpha',
289 289 ```idl
290 290 interface Doctype <: Node {
291 291 type: "doctype"
292 - name: string
293 - public: string?
294 - system: string?
295 292 }
296 293 ```
297 294
298 295 **Doctype** ([**Node**][dfn-unist-node]) represents a
299 296 [DocumentType][concept-documenttype] ([\[DOM\]][dom]).
300 297
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 -
311 298 For example, the following HTML:
312 299
313 300 ```html
@@ -317,12 +304,7 @@ For example, the following HTML:
317 304 Yields:
318 305
319 306 ```js
320 -{
321 - type: 'doctype',
322 - name: 'html',
323 - public: null,
324 - system: null
325 -}
307 +{type: 'doctype'}
326 308 ```
327 309
328 310 ### `Comment`