mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 477667: manifest attribute not handled in xhtml. r+sr=jst
This commit is contained in:
parent
b30257f34d
commit
1981fa22ce
@ -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)
|
||||
|
34
dom/tests/mochitest/ajax/offline/test_xhtmlManifest.xhtml
Normal file
34
dom/tests/mochitest/ajax/offline/test_xhtmlManifest.xhtml
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user