Skip to content

Commit ae924b6

Browse files
Report a better error message for obsolete “manifest” attribute
1 parent 7e3bd78 commit ae924b6

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

schema/html5/applications.rnc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ datatypes w = "http://whattf.org/datatype-draft"
9595
)
9696
}
9797

98+
## obsolete “manifest” attribute (non-conforming; see assertions for error)
99+
100+
html.attrs.manifest =
101+
attribute manifest {
102+
text
103+
}
104+
105+
html.attrs &= html.attrs.manifest?
106+
98107
## Progess Indicator: <progress>
99108

100109
progress.elem =

src/nu/validator/checker/schematronequiv/Assertions.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2000,6 +2000,9 @@ public void startElement(String uri, String localName, String name,
20002000
+ " \u201Cautofocus\u201D attribute.");
20012001
}
20022002
hasAutofocus = true;
2003+
} else if ("manifest" == attLocal && "html" == localName) {
2004+
err("The manifest-based application-cache feature is"
2005+
+ " obsolete. Use service workers instead.");
20032006
}
20042007
} else if ("http://www.w3.org/XML/1998/namespace" == attUri) {
20052008
if ("lang" == atts.getLocalName(i)) {

0 commit comments

Comments
 (0)