ether-code 0.9.8 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/ether.js +1 -1
- package/package.json +1 -1
- package/parsers/ether-parser-html.js +8 -0
package/cli/ether.js
CHANGED
package/package.json
CHANGED
|
@@ -172,6 +172,13 @@ class EtherParserHTML extends EtherParserBase {
|
|
|
172
172
|
this.advance()
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
if (this.current() && this.current().type === TokenType.COMMA) {
|
|
176
|
+
this.advance()
|
|
177
|
+
}
|
|
178
|
+
} else if (nextToken && nextToken.type === TokenType.STRING) {
|
|
179
|
+
attributes[attrName] = nextToken.value.replace(/^["']|["']$/g, '')
|
|
180
|
+
this.advance()
|
|
181
|
+
|
|
175
182
|
if (this.current() && this.current().type === TokenType.COMMA) {
|
|
176
183
|
this.advance()
|
|
177
184
|
}
|
|
@@ -616,6 +623,7 @@ class EtherParserHTML extends EtherParserBase {
|
|
|
616
623
|
'retour ligne possible': 'wbr',
|
|
617
624
|
'carte image': 'map',
|
|
618
625
|
'script': 'script',
|
|
626
|
+
'style': 'style',
|
|
619
627
|
'details': 'details',
|
|
620
628
|
'resume': 'summary',
|
|
621
629
|
'dialogue': 'dialog',
|