Neal Grosskopf Dot Com A NG Designs Site

Neal Grosskopf Dot Com Return To Neal Grosskopf's Home Page a NG Designs Site

Toolbar

  • Skip To
    • Menu
    • Content
  • Validate
    • HTML
    • CSS
    • WAI
  • Font Size
    • Small
    • Medium
    • Large
    • Extra Large
  • Account
    • Create Account
    • Login

Interact

Navigation

  • Home
  • Interact
    • Blog
    • Message Board
    • Open Links
    • Open Videos
    • Photo Gallery
    • Polls
    • Reviews
    • Geek Speak
  • Designs
    • View All Designs
    • Professional
    • Corporate
    • Templates
    • Personal
    • Club
    • NG Designs
    • Web Guides
  • Files
    • Artwork
    • Wallpapers
    • My File Downloads
  • Extras
    • Bookmarklets
    • The Magic 8-Ball
    • Career Builder RSS Feed Generator
    • Monster.com RSS Feed Generator

Display Tags For 'internet explorer'

( View All Tags)

Internet Explorer 8 Passes Acid 2 Test

Neal Grosskopf
12/19/2007 12:00:00 AM
From the IE blog they report that Internet Explorer will pass the Acid 2 css rendering test. This is great news considering IE has always lacked in supporting CSS. Ironically this comes a week after Opera files a compliant to the European Union stating that IE does not support web standards.
Group:Web
URL:http://blogs.msdn.com/ie/archive/2007/12/19/internet-explorer-8-and-acid2-a-milestone.aspx

How To Serve XHTML to Internet Explorer 6 And 7 as XML Using Content Negotiation

Neal Grosskopf
1/24/2008 9:02:24 PM

It seems that XHTML is all the craze now days. Unfortunately very few developers and designers are using it correctly and taking full advantage of it. So why is this?

XHTML can be served as text or XML. It seems that 90% of sites using XHTML are serving it as XML but are failing to serve it correctly to Internet Explorer as XML. Never fear, there is a solution.

So why bother serving it as XML to Internet Explorer? If you do it will mean that your html code will appear as XML and will have to adhere to XML standards. This means that you can be sure the code you are using is extremely compliant. It will also mean that if your page is not valid, it will not display without error. It's an annoying but great way to keep your code clean

Follow these steps:

  1. Serve your page as application/xml to Internet Explorer and as application/xhtml+xml to every other browser:

    If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml") > 0 Then Response.ContentType = "application/xhtml+xml" Else Response.ContentType = "application/xml" End If
  2. Use a special .xsl file at the top of your page above your doctype:

    <?xml-stylesheet type="text/xsl" href="xhtml.xsl"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    Contents of xhtml.xsl file:

    <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"> <template match="/"> <copy-of select="."/> </template> </stylesheet>
  3. Add html element to page:

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

Putting it all together:

<% If InStr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml") > 0 Then Response.ContentType = "application/xhtml+xml" Else Response.ContentType = "application/xml" End If Response.Charset = "utf-8" %> <?xml-stylesheet type="text/xsl" href="xhtml.xsl"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>XHTML</title> </head> <body> </body> </html>

Sources

  • OT: How do you serve up XHTML?
  • XHTML 1.1 Conformance Definition
  • MIME Types and Content Negotiation
  • The <?xml> prolog, strict mode, and XHTML in IE
  • XHTML media type test - results: Microsoft Internet Explorer 7.0 Beta2
  • XHTML media type test - results
  • Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource
  • Does Microsoft Internet Explorer accept the media type application/xhtml+xml?
  • XHTML: How to succeed
  • XHTML Deprecated Elements and Attributes
Replies:8
Views:36862

Internet Explorer 8 Beta 1 CSS Improvements

Neal Grosskopf
3/5/2008 12:00:00 AM
A list of CSS improvements in IE 8. I haven't had a chance to look it over yet, but I am very excited to see how much more compliant the browser will be.
Group:Web
URL:http://code.msdn.microsoft.com/ie8whitepapers/Release/ProjectReleases.aspx?ReleaseId=568

Bugs Fixed For Internet Explorer 7

Neal Grosskopf
10/31/2006 12:00:00 AM
A list of rendering bugs fixed in Internet Explorer 7
Group:Web
URL:http://blogs.msdn.com/ie/archive/2006/08/22/712830.aspx

Internet Explorer CSS Attributes Listing

Neal Grosskopf
6/4/2008 12:00:00 AM
A complete listing of attributes supported by Internet Explorer as well as what versions support which attributes. There are a few proprietary attributes I found interesting one called "accelerator" and another called "zoom".
Group:Web
URL:http://msdn.microsoft.com/en-us/library/ms531207.aspx

  • 1
  • 2
  • Next >

<< Back

Font Size:

  • A
  • A
  • A
  • A

Search:

Places:

  • Blog
  • Message Board
  • Chat Room
  • Geek Speak
  • Open Videos
  • Reviews
  • Tag Cloud
 

Site Links

Site

  • About
  • Contact Me
  • Site Map
  • Site Search

Interact

  • Blog
  • Geek Speak
  • Message Board
  • Open Links
  • Open Videos
  • Photo Gallery
  • Polls
  • Reviews

Random Stuff

  • Hosting by FatCow
  • © Copyright 2005 - 2010
  • Modified: Friday, January 15, 2010
  • Load Time: 0.02 Seconds

Site Coded And Designed By Neal Grosskopf Using No Crappy CMS Or Themes