On Jul 17, 8:03 am, Petemaxi <[email protected]> wrote:
> Hi there!
>
> I was having real trouble getting my iUI website to validate as XHTML
> 1.0 transitional, because of things like selected="true" in a ul tag,
> which is not valid, but is needed.
Where "needed" means you could have used some other tactic but decided
not to. If you have gone to the lengths of creating a custom DTD, why
are you using a transitional DOCTYPE?
> I have created a custom DTD, so documents can be validated. If you use
> this line in place of the normal doctype
>
> <!DOCTYPE html SYSTEM "http://www.maxiwebs.co.uk/dtd/xhtml1-
> transitional-maxiwebs-iui.dtd">
>
> It should validate, provided the rest of your code is valid xHTML 1.0
> Transitional!
Which seems quite pointless. If the custom attributes are known, just
ignore those errors. Browsers do not use the DTD to validate the
documents they load - if they did, they'd be very much slower than
they are.
It is pointless to use XHTML on the web, use HTML 4.01 strict. You
might find the following enlightening:
<URL:
http://groups.google.com.au/group/comp.infosystems.www.authoring.html/browse_frm/thread/7aeb423dfcee156e/f73c0c39793c5b06?hl=en&lnk=gst&q=custom+dtd#f73c0c39793c5b06
>
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---