| 
	
 | 
 Posted by Andy Dingley on 03/26/07 10:27 
On 23 Mar, 20:58, "Greg N." <yodel_do...@yahoo.com> wrote: 
> I'm incorporating GoogleMaps in one of my pageshttp://hothaus.de/greg-tour-2006/route.htm 
> This requires XHTML to work properly on IE.  Also, it requires an <html> 
> tag like this: 
> 
> <html xmlns="http://www.w3.org/1999/xhtml" 
> xmlns:v="urn:schemas-microsoft-com:vml"> 
 
It can't "require XHTML to work properly on IE" as IE just doesn't 
work properly with XHTML anyway. I'm also puzzled as to just why it 
requires the vml namespace to be declared. This content looks like 
SVG, not VML ! It doesn't appear to make any use of it. 
 
In practical terms you just can't do this, exactly as described. It's 
easy to describe what you need to do to do it perfectly (including 
serving it under an XHTML-as-XML content type), but it will then fail 
under IE.  As it obviously "works", then there's clearly some leeway 
in just how valid you need to be to make things work. 
 
I suggest simply ditching the vml namespace. It's not necessary to use 
it -- even if Google did require and impose it, it would be possible 
for a pure-XML approach to add it to child elements of the page, not 
necessarily the <head>. I even doubt it's appropriate to use this, let 
alone required.  Obviously you'd need to test this on a few browsers. 
 
You might even get this page into plain old HTML 4.01 Strict, rather 
than fiddling about with pseudo-XHTML under Appendix C. 
 
I strongly suspect that practical support of Google's embedded maps 
and the SVG features they use will work just as well embedded into 
HTML as they do in XHTML with problematic VML namespaces dotted around 
the place.
 
  
Navigation:
[Reply to this message] 
 |