Skip to content

Commit

Permalink
Allow empty namespace URI
Browse files Browse the repository at this point in the history
W3C Namespaces Standard states that "The attribute value in a default
namespace declaration MAY be empty" (secion 6.2). Analysis and fix
thanks to Eugenio Rustico.

Task-number: QTBUG-63538
Change-Id: Icd8d4df639b9737d8e0d215bf2bea56fe1e161ac
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
paulolav committed Dec 14, 2017
1 parent 345be58 commit af70d4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/corelib/xml/qxmlstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3708,7 +3708,6 @@ void QXmlStreamWriter::writeEntityReference(const QString &name)
void QXmlStreamWriter::writeNamespace(const QString &namespaceUri, const QString &prefix)
{
Q_D(QXmlStreamWriter);
Q_ASSERT(!namespaceUri.isEmpty());
Q_ASSERT(prefix != QLatin1String("xmlns"));
if (prefix.isEmpty()) {
d->findNamespace(namespaceUri, d->inStartElement);
Expand Down

0 comments on commit af70d4e

Please sign in to comment.