You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -763,22 +760,12 @@ public final void doctype(@Local String name, String publicIdentifier,
763
760
publicIdentifier, systemIdentifier, false);
764
761
} elseif (isAlmostStandards(publicIdentifier,
765
762
systemIdentifier)) {
766
-
// [NOCPP[
767
-
if (firstCommentLocation != null) {
768
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
769
-
firstCommentLocation);
770
-
}
771
-
// ]NOCPP]
772
763
errAlmostStandardsDoctype();
773
764
documentModeInternal(
774
765
DocumentMode.ALMOST_STANDARDS_MODE,
775
766
publicIdentifier, systemIdentifier, false);
776
767
} else {
777
768
// [NOCPP[
778
-
if (firstCommentLocation != null) {
779
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
780
-
firstCommentLocation);
781
-
}
782
769
if ((Portability.literalEqualsString(
783
770
"-//W3C//DTD HTML 4.0//EN", publicIdentifier) && (systemIdentifier == null || Portability.literalEqualsString(
784
771
"http://www.w3.org/TR/REC-html40/strict.dtd",
@@ -821,19 +808,11 @@ public final void doctype(@Local String name, String publicIdentifier,
821
808
publicIdentifier, systemIdentifier, true);
822
809
} elseif (isAlmostStandards(publicIdentifier,
823
810
systemIdentifier)) {
824
-
if (firstCommentLocation != null) {
825
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
826
-
firstCommentLocation);
827
-
}
828
811
err("Almost standards mode doctype. Expected \u201C<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\u201D.");
829
812
documentModeInternal(
830
813
DocumentMode.ALMOST_STANDARDS_MODE,
831
814
publicIdentifier, systemIdentifier, true);
832
815
} else {
833
-
if (firstCommentLocation != null) {
834
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
835
-
firstCommentLocation);
836
-
}
837
816
if ("-//W3C//DTD HTML 4.01//EN".equals(publicIdentifier)) {
838
817
if (!"http://www.w3.org/TR/html4/strict.dtd".equals(systemIdentifier)) {
839
818
warn("The doctype did not contain the system identifier prescribed by the HTML 4.01 specification. Expected \u201C<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\u201D.");
@@ -855,10 +834,6 @@ public final void doctype(@Local String name, String publicIdentifier,
855
834
publicIdentifier, systemIdentifier, true);
856
835
} elseif (isAlmostStandards(publicIdentifier,
857
836
systemIdentifier)) {
858
-
if (firstCommentLocation != null) {
859
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
860
-
firstCommentLocation);
861
-
}
862
837
if ("-//W3C//DTD HTML 4.01 Transitional//EN".equals(publicIdentifier)
863
838
&& systemIdentifier != null) {
864
839
if (!"http://www.w3.org/TR/html4/loose.dtd".equals(systemIdentifier)) {
@@ -871,10 +846,6 @@ public final void doctype(@Local String name, String publicIdentifier,
871
846
DocumentMode.ALMOST_STANDARDS_MODE,
872
847
publicIdentifier, systemIdentifier, true);
873
848
} else {
874
-
if (firstCommentLocation != null) {
875
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
876
-
firstCommentLocation);
877
-
}
878
849
err("The doctype was not the HTML 4.01 Transitional doctype. Expected \u201C<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\"http://www.w3.org/TR/html4/loose.dtd\">\u201D.");
879
850
documentModeInternal(DocumentMode.STANDARDS_MODE,
880
851
publicIdentifier, systemIdentifier, true);
@@ -892,19 +863,11 @@ public final void doctype(@Local String name, String publicIdentifier,
892
863
publicIdentifier, systemIdentifier, html4);
893
864
} elseif (isAlmostStandards(publicIdentifier,
894
865
systemIdentifier)) {
895
-
if (firstCommentLocation != null) {
896
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
897
-
firstCommentLocation);
898
-
}
899
866
errAlmostStandardsDoctype();
900
867
documentModeInternal(
901
868
DocumentMode.ALMOST_STANDARDS_MODE,
902
869
publicIdentifier, systemIdentifier, html4);
903
870
} else {
904
-
if (firstCommentLocation != null) {
905
-
warn("Comments seen before doctype. Internet Explorer will go into the quirks mode.",
906
-
firstCommentLocation);
907
-
}
908
871
if ("-//W3C//DTD HTML 4.01//EN".equals(publicIdentifier)) {
909
872
if (!"http://www.w3.org/TR/html4/strict.dtd".equals(systemIdentifier)) {
910
873
warn("The doctype did not contain the system identifier prescribed by the HTML 4.01 specification. Expected \u201C<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\u201D.");
@@ -978,9 +941,6 @@ public final void comment(@NoLength char[] buf, int start, int length)
0 commit comments