I am working on html5 offline mode in sales-force. I added following line to cache current page.
<html manifest="{!$Page.offlineCache}">
I turn off the developer mode and check the console. It is by default taking parent tag as follow:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!DOCTYPE html>
<html manifest="/apex/offlineCache">
<head>
As parent tag is not taking manifest attribute, Current page is not getting cached.
How can I remove that auto appended <html>
parent tag?
Apex page code :
<apex:page standardStylesheets="false" cache="true" showHeader="false" sidebar="false" controller="offlineCon" title="Offline Page" docType="html-5.0">
<html manifest="/apex/offlineCache">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Offline page</title>
<apex:includeScript value="{!$Resource.all}"/>
</head>
<body>
<label >Contact First Name</label>
<input type="text" id="FirstName"></input>
<button id="savebtn">Save</button><br/><br/>
<label>Contact Last Name </label>
<input type="text" id="LastName"></input>
<button id="test">test</button>
<ol id="state"></ol>
</body>
</html>
</apex:page>