-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load catalog DTDs even if we don't have a useful DTD URI, since we ig…
…nore that URI anyway when we find a catalog DTD. Differential Revision: https://phabricator.services.mozilla.com/D34815 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1559008 gecko-commit: e65bee2165ec5b7db8e2a5fa6422a001eac25324 gecko-integration-branch: central gecko-reviewers: peterv
- Loading branch information
1 parent
d989939
commit 7f07938
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
html/the-xhtml-syntax/parsing-xhtml-documents/data-xhtml-with-dtd-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
Test passes if it correctly shows Á in the subframe. | ||
<hr> | ||
<iframe srcdoc="&Aacute"></iframe> |
27 changes: 27 additions & 0 deletions
27
html/the-xhtml-syntax/parsing-xhtml-documents/data-xhtml-with-dtd.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ | ||
--> | ||
<html> | ||
<head> | ||
<title> | ||
Test that an XHTML document with a data: URL still handles the XHTML DTD | ||
properly even if the DTD URL is given as a relative URL. | ||
</title> | ||
<link rel="author" title="Boris Zbarsky" href="bzbarsky@mit.edu"> | ||
<link rel="match" href="data-xhtml-with-dtd-ref.html"> | ||
</head> | ||
<body> | ||
Test passes if it correctly shows Á in the subframe. | ||
<hr> | ||
<!-- Document in the subframe is: | ||
<?xml version="1.0"?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<body> | ||
Á | ||
</body> | ||
</html> | ||
--> | ||
<iframe src='data:application/xml,%3C%3Fxml%20version%3D%221.0%22%3F%3E%0A%3C!DOCTYPE%20html%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20XHTML%201.0%20Strict%2F%2FEN%22%20%22DTD%2Fxhtml1-strict.dtd%22%3E%0A%3Chtml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%20%20%3Cbody%3E%0A%20%20%20%20%26Aacute%3B%0A%20%20%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A'></iframe> |