W3C home > Mailing lists > Public > www-html@w3.org > November 2008

Using the X in XHTML to make hacks work in validators

From: Tei <oscar.vives@gmail.com>
Date: Thu, 20 Nov 2008 18:32:36 +0100
Message-ID: <a093da440811200932j7de5a58dxd46e058d7e359271@mail.gmail.com>
To: www-html@w3.org
People like Google and others add stuff to his webpages to fix general
problems. I call that hacks "Crown Control Hacks".
One of that hacks is rel=nofollow,  other is autocomplete="off"  (that
one is created by mozilla, I think).

This make my XHTML validator cry, and show a ugly red error number > 0.
I want my XHTML validator happy, and show a error=0 in big, green letters.

So..  maybe I can use the X in XHTML and *extend*

Thats my first attemp (one to extend XHTML to add autocomplete to a input box.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 <!ATTLIST html
     xmlns:goo CDATA #FIXED "http://zerror.com/google/autocomplete"
 <!ATTLIST input autocomplete CDATA #IMPLIED>
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"
     xmlns:goo="http://zerror.com/google/autocomplete" >
       <input type="text" name="search" autocomplete="on"
value="Looks mon, no hands!" />

Of course, don't work:
- The validator seems happy with the code. (WIN!)
- Browsers hate my code and show the "]>" , but maybe is me... tryiing
to run XHTML on HTML browsers with the wrong mime type.(FAIL!)

Any idea?

It has to run on IE and Firefox.   (NOTE: I use text/html to make IE
happy, but If a different mime type can help, I want to know)

ℱin del ℳensaje.
Received on Thursday, 20 November 2008 17:33:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:21 UTC