RobG wrote:
> On Jul 17, 8:03 am, Petemaxi <[email protected]> wrote:
>   
>> 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.


I think Pete means "needed by iUI".


>  If you have gone to the lengths of creating a custom DTD, why
> are you using a transitional DOCTYPE?
>   


Pete, were there any special reasons for using transitional?  Just 
curious...

>
>
> 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.

The problem with ignoring errors is that if there are N of them, you 
might not notice N+1.  Validating your documents with desktop or 
command-line tools can be a useful check on your work before publishing.


>  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

I can think of at least two reasons to use XHTML on the web:
1) Compound document types using namespaces (e.g. SVG, MathML, etc.)
2) You may be using an XML publishing/processing toolchain where XHTML 
makes life easier

One of the main arguments against using XHTML has been IE's lame 
support, but for iPhone/mobile sites we fortunately don't have to worry 
about IE so much.


BTW, I've used iUI with XHTML/SVG documents and had to make some changes 
to get everything working right.  I hope to merge those changes back to 
trunk some day.

-- Sean


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to