- From: Anthony Judge <anthony.judge@gmail.com>
- Date: Wed, 27 Sep 2017 11:23:04 +0200
- To: www-validator@w3.org
I have a bunch of old SVG standalone files which used to work in various browsers. Using the validator I get messages relating to the mismatch between attributes which are only recognized with TRANSITIONAL DOCTYPE. However there is no clear indication of how to specify the TRANSITIONAL (loose) DOCTYPE when specifying an SVG document. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> --> <!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> --> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="120" height="120" viewBox="0 0 236 120"> Typical validator msg is: Warning Mismatch between Public and System identifiers in the DOCTYPE declaration This document uses an inconsistent DOCTYPE declaration. The System Identifier http://www.w3.org/TR/html4/loose.dtd declares the HTML 4.01 Transitional document type, but the associated Public Identifier -//W3C//DTD SVG 1.1 Transitional//EN does not match this document type. The recommended Public Identifier for http://www.w3.org/TR/html4/loose.dtd is -//W3C//DTD HTML 4.01 Transitional//EN. I understand that the probable wOuld be resolved if I wanted to avoid attributes only available in TRANSITIONAL -- namely switching to STRICT. I am trying to avoid rewriting the SVG content -- Anthony Judge <anthony.judge@gmail.com> www.laetusinpraesens.org
Received on Wednesday, 27 September 2017 09:55:18 UTC