mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
use modern doctype suggested, or FF 115 uses quirks mode with classic html 4.01. See https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default
This commit is contained in:
parent
8792f56ebd
commit
550facb17f
1 changed files with 1 additions and 3 deletions
|
@ -431,9 +431,7 @@ static NSMutableSet *textNodes = nil;
|
|||
buf = [NSMutableString stringWithCapacity: 4096];
|
||||
|
||||
/* Declaration */
|
||||
[buf appendString: @"<!DOCTYPE html PUBLIC "];
|
||||
[buf appendString: @"\"-//W3C//DTD HTML 4.01//EN\"\n"];
|
||||
[buf appendString:@"\"http://www.w3.org/TR/html4/strict.dtd\">\n"];
|
||||
[buf appendString: @"<!DOCTYPE html>\n"];
|
||||
[buf appendString: @"<html lang=\"en\">"]; // if we support multi-lang doc, this should be dynamic
|
||||
|
||||
[self incIndent];
|
||||
|
|
Loading…
Reference in a new issue