/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
bool shouldProcessMeta = true; // We don't want to call ProcessMETATag when we are pretty print // the document if (doc.IsXMLDocument()) { if (nsCOMPtr<nsIXMLContentSink> xmlSink =
do_QueryInterface(doc.GetCurrentContentSink())) { if (xmlSink->IsPrettyPrintXML() &&
xmlSink->IsPrettyPrintHasSpecialRoot()) {
shouldProcessMeta = false;
}
}
}
if (shouldProcessMeta) {
doc.ProcessMETATag(this);
}
if (AttrValueIs(kNameSpaceID_None, nsGkAtoms::httpEquiv, nsGkAtoms::headerCSP,
eIgnoreCase)) { // only accept <meta http-equiv="Content-Security-Policy" content=""> if it // appears in the <head> element.
Element* headElt = doc.GetHeadElement(); if (headElt && IsInclusiveDescendantOf(headElt)) {
nsAutoString content;
GetContent(content);
if (LOG_ENABLED()) {
nsAutoCString documentURIspec; if (nsIURI* documentURI = doc.GetDocumentURI()) {
documentURI->GetAsciiSpec(documentURIspec);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.