зеркало из https://github.com/mozilla/gecko-dev.git
Bug 477667: manifest attribute not handled in xhtml. r+sr=jst
This commit is contained in:
Родитель
364057055f
Коммит
39c2dd6d73
|
@ -1000,6 +1000,12 @@ nsXMLContentSink::SetDocElement(PRInt32 aNameSpaceID,
|
|||
// find a parent content node to append to, which is fine.
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
if (aTagName == nsGkAtoms::html &&
|
||||
aNameSpaceID == kNameSpaceID_XHTML) {
|
||||
ProcessOfflineManifest(aContent);
|
||||
}
|
||||
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -107,6 +107,7 @@ _TEST_FILES = \
|
|||
changingManifest.cacheManifest \
|
||||
changingManifest.cacheManifest^headers^ \
|
||||
offlineChild.html \
|
||||
test_xhtmlManifest.xhtml \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" manifest="http://localhost:8888/tests/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest">
|
||||
<head>
|
||||
<title>xhtml manifest test</title>
|
||||
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="/tests/dom/tests/mochitest/ajax/offline/offlineTests.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function manifestUpdated()
|
||||
{
|
||||
OfflineTest.ok(true, "Application cache updated.");
|
||||
|
||||
OfflineTest.teardown();
|
||||
OfflineTest.finish();
|
||||
}
|
||||
|
||||
if (OfflineTest.setup()) {
|
||||
applicationCache.onerror = OfflineTest.failEvent;
|
||||
applicationCache.oncached = OfflineTest.priv(manifestUpdated);
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче