break;
case XHTML:
+ case HTML:
case RAW:
sinkOnloads = true;
case XML:
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* Content mode, where the error contains preformatted text.
*/
PREFORMATTED,
+
+ /**
+ * Content mode, where the error contains XHTML.
+ *
+ */
+ HTML,
+
/**
* Content mode, where the error contains XHTML.
+ *
+ * @deprecated Use {@link ContentMode.HTML}
*/
+ @Deprecated
XHTML;
}
+ "</pre>";
break;
case XHTML:
+ case HTML:
result = getMessage();
break;
}
} else if (t instanceof Validator.InvalidValueException) {
UserError error = new UserError(
((Validator.InvalidValueException) t).getHtmlMessage(),
- ContentMode.XHTML, ErrorLevel.ERROR);
+ ContentMode.HTML, ErrorLevel.ERROR);
for (Validator.InvalidValueException nestedException : ((Validator.InvalidValueException) t)
.getCauses()) {
error.addCause(getErrorMessageForException(nestedException));
Document document = response.getDocument();
- DocumentType doctype = new DocumentType("html",
- "-//W3C//DTD XHTML 1.0 Transitional//EN",
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd",
+ DocumentType doctype = new DocumentType("html", "", "",
document.baseUri());
+
document.child(0).before(doctype);
document.body().parent().attr("xmlns", "http://www.w3.org/1999/xhtml");
* .v-app-loading
* .v-app-<simpleName for app class>
*- Additionally added from javascript:
- * .v-theme-<themeName, remove non-alphanum>
+ * .v-theme-<themeName, remove non-alphanum>
*/
String appClass = "v-app-"
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
public SystemError(String message) {
super(message);
setErrorLevel(ErrorLevel.SYSTEMERROR);
- setMode(ContentMode.XHTML);
+ setMode(ContentMode.HTML);
setMessage(getHtmlMessage());
}
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
public static final ContentMode CONTENT_PREFORMATTED = ContentMode.PREFORMATTED;
/**
- * @deprecated from 7.0, use {@link ContentMode#XHTML} instead
+ * @deprecated from 7.0, use {@link ContentMode#HTML} instead
*/
@Deprecated
public static final ContentMode CONTENT_XHTML = ContentMode.XHTML;
-/*
+/*
* Copyright 2011 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
}
if (getContentMode() == ContentMode.XHTML
- || getContentMode() == ContentMode.XML) {
+ || getContentMode() == ContentMode.XML
+ || getContentMode() == ContentMode.HTML) {
return stripTags(stringValue);
} else {
return stringValue;
String appUri = getSession().getURL().toString();
try {
- return ("<!DOCTYPE html PUBLIC \"-//W3C//DTD "
- + "XHTML 1.0 Transitional//EN\" "
- + "\"http://www.w3.org/TR/xhtml1/"
- + "DTD/xhtml1-transitional.dtd\">\n" + "<html>"
+ return ("<!DOCTYPE html>\n" + "<html>"
+ "<head><script type='text/javascript'>"
+ "var setTarget = function() {" + "var uri = '"
+ appUri
*/
package com.vaadin.shared.ui.label;
+
/**
* Content modes defining how the client should interpret a Label's value.
*
PREFORMATTED,
/**
- * Content mode, where the label contains XHTML. Care should be taken to
- * ensure
+ * Content mode, where the label contains HTML.
+ */
+ HTML,
+
+ /**
+ * Content mode, where the label contains XHTML.
+ *
+ * @deprecated Use {@link ContentMode.HTML}
*/
+ @Deprecated
XHTML,
/**