Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Mayayana" Newsgroups: microsoft.public.scripting.vbscript Subject: Re: [OT] More features for HTA with MSIE8+ Date: Sat, 7 Sep 2019 09:30:31 -0400 Organization: A noiseless patient Spider Lines: 92 Message-ID: References: <1xyrxt7b46hfk.1aqkvwl45bota$.dlg@40tude.net> Injection-Date: Sat, 7 Sep 2019 13:31:28 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="6fb54d40224d5e59c8166695bb2e2477"; logging-data="30585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19a3P9Rk1IzyyZbLZM7Fnpzs0P//JV9zBs=" Cancel-Lock: sha1:EdbIIUItRYqAj3du/95Y6+cuCgc= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-Priority: 3 X-MSMail-Priority: Normal Xref: csiph.com microsoft.public.scripting.vbscript:12186 "JJ" wrote | In the past weeks, I wanted to programmatically create and draw images from | scratch using HTA. I thought about using the HTML5's Canvas element because | I already have MSIE11 in my Windows 7 system, but turns out that it doesn't | recognize the HTML tag..... | Thanks for all that. I've seen that compatible tag in webpages but didn't know what it meant. It seems odd outside of HTA. I use quirks mode by just not adding a DOCTYPE tag. That serves for all browsers. With IE11 it renders in Edge mode unless otherwise specified on clientside by adding that domain as an exemption. (The exemption then changes the userAgent to IE7.) In other words, you can spec quirks mode for IE 6-10, but it won't work in IE11. IE11 breaks compatibility with IE-specific functionality and the webpage author gets no say in the matter. So I don't know why anyone would specify IE11 compatibility in a webpage. It's interesting that it changes HTA behavior. As far as I know, IE in an HTA will generally render as that version. In other words, if you write an HTA with IE10 you should get IE10 behavior, as long as you add a suitable doctype tag. I suspect you're seeing the difference with IE11 because of its unusual Edge pairing. For my own purposes I always use quirks mode, in HTAs or webpages. (No doctype tag.) I've never been curious about SVG drawing and don't see anything especially relevant in HTML5. And using quirks mode means I know that anyone, with any IE version, can load the page and see the same thing with the same layout. If you don't use quirks mode you need to test in each IE version. Which is why so many websites use code like so: