File tree 3 files changed +7
-17
lines changed
fixtures/doctype-quirksmode-ibm
3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,12 @@ function root(node, ctx) {
100
100
/**
101
101
* Create a `doctype`.
102
102
*
103
- * @param {HastDoctype } node
103
+ * @param {HastDoctype } _
104
104
* @param {Context } ctx
105
105
* @returns {DocumentType }
106
106
*/
107
- function doctype ( node , { doc} ) {
108
- return doc . implementation . createDocumentType (
109
- node . name || 'html' ,
110
- node . public || '' ,
111
- node . system || ''
112
- )
107
+ function doctype ( _ , { doc} ) {
108
+ return doc . implementation . createDocumentType ( 'html' , '' , '' )
113
109
}
114
110
115
111
/**
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html SYSTEM "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd" > < html > < head > </ head > < body > </ body > </ html >
1
+ <!DOCTYPE html> < html > < head > </ head > < body > </ body > </ html >
Original file line number Diff line number Diff line change @@ -165,15 +165,9 @@ test('hast-util-to-dom', (t) => {
165
165
)
166
166
167
167
t . equal (
168
- serializeNodeToHtmlString (
169
- toDom ( {
170
- type : 'doctype' ,
171
- name : 'html' ,
172
- public : null ,
173
- system : 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd'
174
- } )
175
- ) ,
176
- '<!DOCTYPE html SYSTEM "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd">' ,
168
+ // @ts -ignore hast types out of date.
169
+ serializeNodeToHtmlString ( toDom ( { type : 'doctype' } ) ) ,
170
+ '<!DOCTYPE html>' ,
177
171
'creates a doctype node'
178
172
)
179
173
You can’t perform that action at this time.
0 commit comments