Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- add doctype dynamically....
September 6, 2007, 9:48 pm
rate this thread
For my google maps, I have to use the following doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
<html xmlns="http://www.w3.org/1999/xhtml " xmlns:v="urn:schemas-
This means that my page does not validate anymore.
Is there a way to use this doctype AND validate the page at the same
- Benjamin Niemann
September 7, 2007, 8:30 am
Re: add doctype dynamically....
You could try to create a DTD which adds the VML elements and attributes to
XHTML (or use an existing, if you can find one). But that would require a
different public identifier, probably forcing the browser into quirks
mode - that's probably a price you don't wanna pay...
You may also try to use a schema based validator, which is namespace aware -
DTD base validation is pretty much useless, when multiple namespaces are
used. Can't say, if that actually works without an example though...
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de /
- » using forms to add records to mysql database - block submit on entering
- — Previous thread in » HTML Markup Language