waxmiguelito / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

iUI Valid XHTML #149

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Validate an iUI page using the W3C validator and a standard XHTML
Transitional DOCTYPE. 

What is the expected output? What do you see instead?
Does not validate

What version of the product are you using? On what operating system?
REL-0.13 2007-11-04

Please provide any additional information below.

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.

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!

NOTE: This is far from complete! If you find anything that needs
changing, please email me at webmaster@maxiwebs.co.uk

Hope this is of use!

PS: Check out my iUI site:-
iphone.comedycircus.co.uk

and validate it
http://validator.w3.org/check?uri=http%3A%2F%2Fiphone.comedycircus.co.uk%2F

Original issue reported on code.google.com by pete.mcc...@gmail.com on 17 Jul 2009 at 12:15

Attachments:

GoogleCodeExporter commented 9 years ago
A few more edits would help with validating using manifests for local caching 
and
offline apps. Likewise I noticed some attributes I seemed to need for 0.30 
alpha1. I
will send email directly to the contributor as well.

Add html tag attribute manifest=...)

<!ATTLIST html
  %i18n;
  id          ID             #IMPLIED
  manifest    %URI;          #IMPLIED
  xmlns       %URI;          #FIXED 'http://www.w3.org/1999/xhtml'
  >

Add attribute to div (toggled) and ul (selected).

<!ELEMENT div %Flow;>  <!-- generic language/style container -->
<!ATTLIST div
  %attrs;
  %TextAlign;
  selected     (true)     #IMPLIED
  toggled      (true)     #IMPLIED
  >

...

<!-- Unordered list -->

<!ELEMENT ul (li)+>
<!ATTLIST ul
  %attrs;
  type        %ULStyle;     #IMPLIED
  compact     (compact)     #IMPLIED
  selected     (true)     #IMPLIED
  >

Hope that helps.

Original comment by tom.king...@gmail.com on 20 Jul 2009 at 3:50

GoogleCodeExporter commented 9 years ago
Hi there!

I have made the changes to the DTD you listed above.

Original comment by pete.mcc...@gmail.com on 7 Aug 2009 at 6:55

GoogleCodeExporter commented 9 years ago
Here's the edited file.

Please let me know if you use it, either at my Gmail or 
webmaster@maxiwebs.co.uk.

Thanks!

Pete

Original comment by pete.mcc...@gmail.com on 7 Aug 2009 at 6:58

Attachments: